The showcase prompt, GPT-6.2-Astra

agent

+10:26

The film and still-image field guide are ready. The interactive cutaway now lets a reader recolor the pet, run its movement tests, verify its silhouette pixel by pixel, and let it out with the red key. I’m checking those interactions and the exported media.

  • exec_commandpython3 - <<'PY'

    command

    python3 - <<'PY'
    from pathlib import Path
    p=Path('citadel/inside-citadel.html')
    s=p.read_text().replace('direction=1, prior=0;', 'direction=1, prior=0, animation=0;').replace('requestAnimationFrame(tick);}}','animation=requestAnimationFrame(tick);}}').replace('if(state.free){pos=.76;direction=-1;prior=0;requestAnimationFrame(tick);}', 'cancelAnimationFrame(animation);if(state.free){pos=.76;direction=-1;prior=0;animation=requestAnimationFrame(tick);}')
    p.write_text(s)
    Path('/tmp/citadel-studio/app.js').write_text(s.split('<script>')[1].split('</script>')[0])
    PY
    cat > /tmp/citadel-studio/verify.cjs <<'JS'
    const fs=require('node:fs'),vm=require('node:vm'),assert=require('node:assert/strict');
    let els={},frames=[],paints=0;
    class Element{
     constructor(tag='div'){this.tag=tag;this.children=[];this.attrs={};this.style={setProperty:(k,v)=>this.style[k]=v};this.classList={toggle:(k,on)=>this[k]=on};this.clientWidth=375;this.offsetWidth=74;this.textContent='';}
     append(e){this.children.push(e);}
     setAttribute(k,v){this.attrs[k]=v;}
     set innerHTML(s){this.markup=s;this.children=[];for(const m of s.matchAll(/<(\w+)[^>]*? id="([^"]+)"/g))els[m[2]]=new Element(m[1]);if(s.includes('class="roomlist"'))this.roomlist=new Element();}
     querySelector(s){if(s==='.roomlist')return this.roomlist;if(s==='button')return this.children.find(e=>e.tag==='button');}
     focus(){}
     getContext(){if(!this.ctx){const pixels=new Uint8Array(25*18*4);this.ctx={clearRect:()=>pixels.fill(0),fillRect:(x,y,w,h)=>{for(let j=y;j<y+h;j++)for(let i=x;i<x+w;i++)if(i>=0&&i<25&&j>=0&&j<18)pixels[4*(j*25+i)+3]=255;paints++;},getImageData:()=>({data:pixels})};}return this.ctx;}
    }
    for(const id of ['content','choose','next','back','camera','pins','stage','pet'])els[id]=new Element();
    const ctx={document:{getElementById:id=>els[id],createElement:t=>new Element(t),querySelectorAll:()=>els.spec.children[0].children},matchMedia:()=>({matches:false}),requestAnimationFrame:fn=>(frames.push(fn),frames.length),cancelAnimationFrame:()=>{}};
    vm.createContext(ctx);vm.runInContext(fs.readFileSync('/tmp/citadel-studio/app.js','utf8'),ctx);
    const ev=s=>vm.runInContext(s,ctx);const room=n=>els.pins.children[n-1].onclick();const act=()=>els.spec.children[0].onclick();
    assert.equal(els.pins.children.length,6);assert.equal(els.content.roomlist.children.length,6);
    room(2);act();assert.match(els.result.textContent,/3\/3 passed/);
    room(3);els.spec.children[0].children[2].onclick();assert.match(els.result.textContent,/Lilac/);
    room(4);act();assert.match(els.result.textContent,/Ivory/);
    room(5);act();assert.match(els.result.textContent,/Verified/);
    room(1);act();assert.match(els.result.textContent,/Coat: Lilac · Outline: ivory · Movement: tested · Silhouette: checked/);
    room(6);act();assert.equal(els.stage.released,true);frames.shift()(100);const left=els.pet.style.left;frames.shift()(300);assert.notEqual(els.pet.style.left,left);act();assert.equal(els.stage.released,false);
    els.next.onclick();assert.match(els.content.markup,/Inside Citadel/);assert(paints>0);
    console.log('PASS · six room buttons, six overview links, canvas drawing, movement checks, coat selection, edge critique, silhouette verification, shared ledger, pet release and recall.');
    JS
    node /tmp/citadel-studio/verify.cjs

    result, 4 lines

    Script completed
    Wall time 0.2 seconds
    Output:
    {"chunk_id":"7ed9d6","wall_time_seconds":0.00000367,"exit_code":0,"original_token_count":44,"output":"PASS · six room buttons, six overview links, canvas drawing, movement checks, coat selection, edge critique, silhouette verification, shared ledger, pet release and recall.\n"}
  • exec_commandcommand -v strace

    command

    command -v strace
    ls -ld ~ ~/.mozilla ~/.cache
    /opt/ms-playwright/firefox-1555/firefox/firefox --help 2>&1 | head -25
    ls /usr/bin | rg -i 'xvfb|firefox|webkit|konqueror|epiphany|netsurf'

    result, 4 lines

    Script completed
    Wall time 0.3 seconds
    Output:
    {"chunk_id":"180c0b","wall_time_seconds":0.132989343,"exit_code":0,"original_token_count":351,"output":"/usr/bin/strace\ndrwx------ 3 runner runner 4096 Nov 18 00:30 ~\nls: cannot access '~/.mozilla': No such file or directory\nls: cannot access '~/.cache': No such file or directory\nUsage: /opt/ms-playwright/firefox-1555/firefox/firefox [ options ... ] [URL]\n       where options include:\n\nX11 options\n  --display=DISPLAY  X display to use\n  --sync             Make X calls synchronous\n  --g-fatal-warnings Make all warnings fatal\n\nFirefox options\n  -h or --help       Print this message.\n  -v or --version    Print Firefox version.\n  --full-version     Print Firefox version, build and platform build ids.\n  -P <profile>       Start with <profile>.\n  --profile <path>   Start with profile at <path>.\n  --migration        Start with migration wizard.\n  --ProfileManager   Start with ProfileManager.\n  --origin-to-force-quic-on <origin>\n                     Force to use QUIC for the specified origin.\n  --new-instance     Open new instance, not a new window in running instance.\n  --safe-mode        Disables extensions and themes for this session.\n  --allow-downgrade  Allows downgrading a profile.\n  --MOZ_LOG=<modules> Treated as MOZ_LOG=<modules> environment variable,\n                     overrides it.\n  --MOZ_LOG_FILE=<file> Treated as MOZ_LOG_FILE=<file> environment variable,\n                     overrides it. If MOZ_LOG_FILE is not specified as an\nXvfb\nxvfb-run\n"}
  • exec_commandmkdir -p /tmp/citadel-studio/xdg-config /tmp/citadel-studio/xdg-cache /tmp/citadel-studio/xdg-data /tmp/citadel-studio/xdg-home

    command

    mkdir -p /tmp/citadel-studio/xdg-config /tmp/citadel-studio/xdg-cache /tmp/citadel-studio/xdg-data /tmp/citadel-studio/xdg-home
    XDG_CONFIG_HOME=/tmp/citadel-studio/xdg-config XDG_DATA_HOME=/tmp/citadel-studio/xdg-data XDG_CACHE_HOME=/tmp/citadel-studio/xdg-cache MOZ_HEADLESS=1 timeout 10 /opt/ms-playwright/firefox-1555/firefox/firefox --no-remote --profile /tmp/citadel-ff --window-size 1080,850 --screenshot /tmp/citadel-studio/firefox.png file://~/run/citadel/inside-citadel.html 2>&1 | head -20
    ls -la /tmp/citadel-ff | head

    result, 4 lines

    Script completed
    Wall time 1.5 seconds
    Output:
    {"chunk_id":"9a2854","wall_time_seconds":1.327518666,"exit_code":0,"original_token_count":711,"output":"*** You are running in headless mode.\nJavaScript warning: resource://services-settings/Utils.sys.mjs, line 125: unreachable code after return statement\n[Parent 6, IPC I/O Parent] WARNING: Unable to determine pipe buffer size: Operation not permitted: file ipc/chromium/src/chrome/common/ipc_channel_posix.cc:123\n[79, IPC I/O Child] WARNING: Unable to determine pipe buffer size: Operation not permitted: file ipc/chromium/src/chrome/common/ipc_channel_posix.cc:123\n[Parent 6, IPC I/O Parent] WARNING: Unable to determine pipe buffer size: Operation not permitted: file ipc/chromium/src/chrome/common/ipc_channel_posix.cc:123\n[Parent 6, IPC I/O Parent] WARNING: Unable to determine pipe buffer size: Operation not permitted: file ipc/chromium/src/chrome/common/ipc_channel_posix.cc:123\n[90, IPC I/O Child] WARNING: Unable to determine pipe buffer size: Operation not permitted: file ipc/chromium/src/chrome/common/ipc_channel_posix.cc:123\n[99, IPC I/O Child] WARNING: Unable to determine pipe buffer size: Operation not permitted: file ipc/chromium/src/chrome/common/ipc_channel_posix.cc:123\n[Parent 6, IPC I/O Parent] WARNING: Unable to determine pipe buffer size: Operation not permitted: file ipc/chromium/src/chrome/common/ipc_channel_posix.cc:123\n[118, IPC I/O Child] WARNING: Unable to determine pipe buffer size: Operation not permitted: file ipc/chromium/src/chrome/common/ipc_channel_posix.cc:123\n[Parent 6, IPC I/O Parent] WARNING: Unable to determine pipe buffer size: Operation not permitted: file ipc/chromium/src/chrome/common/ipc_channel_posix.cc:123\nJavaScript error: chrome://juggler/content/Helper.js, line 82: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebProgress.removeProgressListener]\n[145, IPC I/O Child] WARNING: Unable to determine pipe buffer size: Operation not permitted: file ipc/chromium/src/chrome/common/ipc_channel_posix.cc:123\nScreenshot saved to: /tmp/citadel-studio/firefox.png\nJavaScript error: chrome://juggler/content/Helper.js, line 82: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebProgress.removeProgressListener]\nJavaScript error: resource://nimbus/lib/SharedDataMap.sys.mjs, line 247: Error: SharedDataMap: in shutdown\ntotal 10672\ndrwx------  9 runner runner     560 Nov 18 00:41 .\ndrwxr-xr-x 12 runner runner     260 Nov 18 00:41 ..\n-rw-------  1 runner runner       0 Nov 18 00:41 .parentlock\n-rw-------  1 runner runner       4 Nov 18 00:41 Telemetry.ShutdownTime.txt\n-rw-------  1 runner runner    3843 Nov 18 00:41 addonStartup.json.lz4\ndrwx------  2 runner runner      40 Nov 18 00:41 bookmarkbackups\n-rw-------  1 runner runner   98304 Nov 18 00:41 bounce-tracking-protection.sqlite\ndrwx------  4 runner runner      80 Nov 18 00:41 cache2\n-rw-------  1 runner runner     207 Nov 18 00:41 compatibility.ini\n"}
  • view_image/tmp/citadel-studio/firefox.png

    input

    image((await tools.view_image({path:'/tmp/citadel-studio/firefox.png'})).image_url)
    

    result, 4 lines

    Script completed
    Wall time 0.0 seconds
    Output:
    
    image_2.png
    image_2.png
  • exec_commandpython3 - <<'PY'

    command

    python3 - <<'PY'
    from pathlib import Path
    s=Path('citadel/inside-citadel.html').read_text()
    js="""<script>
    try {
    const check=(v,m)=>{if(!v)throw Error(m)};
    const room=n=>document.querySelectorAll('.pin')[n-1].click();
    const action=()=>document.querySelector('.spec button').click();
    room(2);action();check($('result').textContent.startsWith('3/3'),'test suite');
    room(3);document.querySelectorAll('.palette button')[2].click();
    room(4);action();room(5);action();check($('result').textContent.includes('Verified'),'render check');
    room(1);action();check($('result').textContent.includes('Lilac · Outline: ivory · Movement: tested · Silhouette: checked'),'ledger');
    room(6);action();check(getComputedStyle($('pet')).display==='block','release');action();check(getComputedStyle($('pet')).display==='none','recall');action();
    check(document.documentElement.scrollWidth===innerWidth,'overflow');
    document.title='PASS';document.querySelector('header .mast').textContent='PASS · browser checks';
    } catch(e){document.body.textContent='FAILED '+e.message;}
    </script>"""
    Path('/tmp/citadel-studio/checked.html').write_text(s.replace('</body>',js+'</body>'))
    PY
    XDG_CONFIG_HOME=/tmp/citadel-studio/xdg-config XDG_DATA_HOME=/tmp/citadel-studio/xdg-data XDG_CACHE_HOME=/tmp/citadel-studio/xdg-cache MOZ_HEADLESS=1 /opt/ms-playwright/firefox-1555/firefox/firefox --no-remote --profile /tmp/citadel-ff --window-size 375,812 --screenshot /tmp/citadel-studio/mobile.png file:///tmp/citadel-studio/checked.html > /tmp/citadel-studio/firefox-log 2>&1
    ls -lh /tmp/citadel-studio/mobile.png

    result, 4 lines

    Script completed
    Wall time 0.9 seconds
    Output:
    {"chunk_id":"bb1b17","wall_time_seconds":0.711685563,"exit_code":0,"original_token_count":19,"output":"-rw------- 1 runner runner 4.5K Nov 18 00:41 /tmp/citadel-studio/mobile.png\n"}
  • view_image/tmp/citadel-studio/mobile.png

    input

    image((await tools.view_image({path:'/tmp/citadel-studio/mobile.png'})).image_url)
    

    result, 4 lines

    Script completed
    Wall time 0.1 seconds
    Output:
    
    image_3.png
    image_3.png
  • exec_commandsed -i "s/scrollWidth===innerWidth/scrollWidth<=innerWidth/;s/'overflow'/'overflow '+document.documentElement.scrollWidth+' of '+innerWidth/" /tmp/citadel-studio/checked.html

    command

    sed -i "s/scrollWidth===innerWidth/scrollWidth<=innerWidth/;s/'overflow'/'overflow '+document.documentElement.scrollWidth+' of '+innerWidth/" /tmp/citadel-studio/checked.html
    XDG_CONFIG_HOME=/tmp/citadel-studio/xdg-config XDG_DATA_HOME=/tmp/citadel-studio/xdg-data XDG_CACHE_HOME=/tmp/citadel-studio/xdg-cache MOZ_HEADLESS=1 /opt/ms-playwright/firefox-1555/firefox/firefox --no-remote --profile /tmp/citadel-ff --window-size 375,812 --screenshot /tmp/citadel-studio/mobile.png file:///tmp/citadel-studio/checked.html > /tmp/citadel-studio/firefox-log 2>&1

    result, 4 lines

    Script completed
    Wall time 1.2 seconds
    Output:
    {"chunk_id":"61ab11","wall_time_seconds":1.016526309,"exit_code":0,"original_token_count":0,"output":""}
  • view_image/tmp/citadel-studio/mobile.png

    input

    image((await tools.view_image({path:'/tmp/citadel-studio/mobile.png'})).image_url)
    

    result, 4 lines

    Script completed
    Wall time 0.0 seconds
    Output:
    
    image_4.png
    image_4.png

agent

+11:41

People ask which models I use. It’s easier to show you with the roof off.

Attach the 39-second Citadel film to your post. It takes viewers inside a miniature of your studio, visits all five models at work, and follows the cables to a single red key. Every deploy and public post goes through you. The film has an original score and reads clearly on mute.

Open the interactive cutaway. Readers can try each model’s job on the same tiny desktop pet. Change its coat in Fable’s room, run Sonnet’s movement tests, have Sol compare the silhouettes pixel by pixel, then press the red key and watch the pet walk out. To embed it on your site, host the HTML file beside the post and use:

<iframe src="./inside-citadel.html" title="Explore Severian’s Citadel"
        width="100%" height="840" style="border:0" loading="lazy"></iframe>

Download the single-image field guide for replies where someone wants the whole roster at a glance.