The showcase prompt, Gemini 4 Argon
agent (cont.)
+10:06write_file{"Content":"<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"citadel\">\n<head>\n<meta charset=\"UTF-8\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<title>CITADEL // Severian's Multi-Model Orchestration & Capability Surface</title>\n<style>\n :root, [data-theme=\"citadel\"] {\n --bg-0: #08090b;\n --bg-1: #0f1115;\n --bg-2: #161920;\n --bg-3: #1f242d;\n --ink-0: #f3f0e6;\n --ink-1: #b8b4a8;\n --ink-2: #76746d;\n --accent: #ff5500;\n --accent-2: #b8ff01;\n --accent-3: #00e5ff;\n --accent-4: #b388ff;\n --accent-5: #ffb300;\n --danger: #ff2a55;\n --ok: #00e676;\n --border: #262b35;\n --border-strong: #3a4150;\n --grid-line: rgba(243, 240, 230, 0.035);\n --decal-bg: rgba(255, 85, 0, 0.12);\n --shadow: 0 18px 48px rgba(0, 0, 0, 0.7);\n --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;\n --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;\n }\n\n [data-theme=\"bloom\"] {\n --bg-0: #08120e;\n --bg-1: #0e1d17;\n --bg-2: #152921;\n --bg-3: #1e382d;\n --ink-0: #eef7f1;\n --ink-1: #a7c4b5;\n --ink-2: #698a7a;\n --accent: #3dff98;\n --accent-2: #f4d06f;\n --accent-3: #64dfdf;\n --accent-4: #ff8fa3;\n --accent-5: #ffd166;\n --danger: #ff5c77;\n --ok: #3dff98;\n --border: #234236;\n --border-strong: #376653;\n --grid-line: rgba(61, 255, 152, 0.045);\n --decal-bg: rgba(61, 255, 152, 0.11);\n }\n\n [data-theme=\"hearthwynd\"] {\n --bg-0: #110c0a;\n --bg-1: #1a1310;\n --bg-2: #251b16;\n --bg-3: #33241e;\n --ink-0: #faede3;\n --ink-1: #cbb2a1;\n --ink-2: #8a7262;\n --accent: #ff7733;\n --accent-2: #ffcc4d;\n --accent-3: #ff9e7d;\n --accent-4: #e07a5f;\n --accent-5: #f2cc8f;\n --danger: #ff4747;\n --ok: #52b788;\n --border: #3b2a22;\n --border-strong: #593f33;\n --grid-line: rgba(255, 119, 51, 0.045);\n --decal-bg: rgba(255, 119, 51, 0.12);\n }\n\n [data-theme=\"baldanders\"] {\n --bg-0: #10100f;\n --bg-1: #171715;\n --bg-2: #20201d;\n --bg-3: #2b2b27;\n --ink-0: #eae6df;\n --ink-1: #a6a29a;\n --ink-2: #6e6b64;\n --accent: #eae6df;\n --accent-2: #ff3b30;\n --accent-3: #d4af37;\n --accent-4: #a8a29e;\n --accent-5: #ff9500;\n --danger: #ff3b30;\n --ok: #34c759;\n --border: #30302b;\n --border-strong: #4a4a43;\n --grid-line: rgba(234, 230, 223, 0.04);\n --decal-bg: rgba(255, 59, 48, 0.14);\n }\n\n * {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n }\n\n body {\n background: var(--bg-0);\n color: var(--ink-0);\n font-family: var(--font-sans);\n line-height: 1.4;\n -webkit-font-smoothing: antialiased;\n overflow-x: hidden;\n padding: 8px;\n background-image:\n linear-gradient(to right, var(--grid-line) 1px, transparent 1px),\n linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);\n background-size: 24px 24px;\n }\n\n .citadel-shell {\n max-width: 1240px;\n margin: 0 auto;\n background: var(--bg-1);\n border: 1px solid var(--border-strong);\n box-shadow: var(--shadow);\n position: relative;\n overflow: hidden;\n transition: background 0.2s ease, border-color 0.2s ease;\n }\n\n /* Corner Registration Marks (Decal-Pack Language) */\n .reg-mark {\n position: absolute;\n width: 10px;\n height: 10px;\n pointer-events: none;\n z-index: 30;\n }\n .reg-mark::before, .reg-mark::after {\n content: '';\n position: absolute;\n background: var(--accent);\n }\n .reg-mark::before { width: 10px; height: 1.5px; top: 4px; left: 0; }\n .reg-mark::after { width: 1.5px; height: 10px; top: 0; left: 4px; }\n .reg-tl { top: 5px; left: 5px; }\n .reg-tr { top: 5px; right: 5px; }\n .reg-bl { bottom: 5px; left: 5px; }\n .reg-br { bottom: 5px; right: 5px; }\n\n /* Astra Redline Critique Overlay Mode */\n .citadel-shell.astra-critique-on {\n outline: 1.5px dashed var(--accent-3);\n }\n .astra-badge-overlay {\n display: none;\n position: absolute;\n z-index: 40;\n pointer-events: none;\n font-family: var(--font-mono);\n font-size: 9.5px;\n line-height: 1.2;\n padding: 2px 6px;\n background: rgba(6, 18, 24, 0.92);\n border: 1px solid var(--accent-3);\n color: var(--accent-3);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n white-space: nowrap;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);\n }\n .citadel-shell.astra-critique-on .astra-badge-overlay {\n display: block;\n }\n .citadel-shell.astra-critique-on .panel-box,\n .citadel-shell.astra-critique-on .model-card,\n .citadel-shell.astra-critique-on .stat-card {\n box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.28);\n }\n\n /* Top Decal & Telemetry Strip */\n .top-decal-bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 6px;\n padding: 6px 14px;\n background: var(--bg-0);\n border-bottom: 1px solid var(--border);\n font-family: var(--font-mono);\n font-size: 10.5px;\n }\n\n .decal-left {\n display: flex;\n align-items: center;\n gap: 10px;\n flex-wrap: wrap;\n }\n\n .hazard-pill {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 2px 8px;\n background: var(--accent);\n color: #090a0c;\n font-weight: 800;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n font-size: 10px;\n clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));\n }\n\n .status-dot {\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--ok);\n box-shadow: 0 0 8px var(--ok);\n display: inline-block;\n animation: pulseDot 2s infinite;\n }\n\n @keyframes pulseDot {\n 0%, 100% { opacity: 1; transform: scale(1); }\n 50% { opacity: 0.45; transform: scale(0.88); }\n }\n\n .tele-item {\n color: var(--ink-1);\n display: inline-flex;\n align-items: center;\n gap: 4px;\n }\n .tele-item strong {\n color: var(--ink-0);\n font-weight: 600;\n }\n\n .decal-controls {\n display: flex;\n align-items: center;\n gap: 5px;\n flex-wrap: wrap;\n }\n\n .mini-btn {\n background: var(--bg-2);\n color: var(--ink-1);\n border: 1px solid var(--border);\n padding: 2.5px 7px;\n font-family: var(--font-mono);\n font-size: 9.5px;\n cursor: pointer;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n transition: all 0.14s ease;\n }\n .mini-btn:hover {\n color: var(--ink-0);\n border-color: var(--accent);\n }\n .mini-btn.active {\n background: var(--decal-bg);\n color: var(--accent);\n border-color: var(--accent);\n font-weight: 700;\n }\n\n /* Desktop Buddies Interactive Track */\n .buddy-rail {\n position: relative;\n height: 30px;\n background: linear-gradient(90deg, var(--bg-0) 0%, var(--bg-2) 50%, var(--bg-0) 100%);\n border-bottom: 1px solid var(--border);\n display: grid;\n grid-template-columns: auto 1fr auto;\n align-items: center;\n gap: 10px;\n padding: 0 14px;\n overflow: hidden;\n user-select: none;\n }\n .buddy-label-left {\n font-family: var(--font-mono);\n font-size: 9.5px;\n color: var(--ink-2);\n white-space: nowrap;\n z-index: 2;\n }\n .buddy-label-left strong {\n color: var(--ink-1);\n }\n .buddy-lane-wrap {\n position: relative;\n height: 100%;\n width: 100%;\n overflow: hidden;\n border-left: 1px dashed var(--border);\n border-right: 1px dashed var(--border);\n }\n #buddy-canvas {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n cursor: pointer;\n }\n .buddy-hud-actions {\n z-index: 2;\n display: flex;\n gap: 6px;\n align-items: center;\n font-family: var(--font-mono);\n }\n .buddy-speech {\n background: var(--bg-0);\n border: 1px solid var(--accent-2);\n color: var(--accent-2);\n padding: 1px 7px;\n font-size: 9.5px;\n border-radius: 2px;\n white-space: nowrap;\n }\n\n /* Hero Section */\n .hero-header {\n padding: 12px 16px 11px;\n border-bottom: 1px solid var(--border);\n display: grid;\n grid-template-columns: 1fr auto;\n gap: 14px;\n align-items: center;\n position: relative;\n }\n @media (max-width: 860px) {\n .hero-header {\n grid-template-columns: 1fr;\n }\n }\n\n .eyebrow {\n font-family: var(--font-mono);\n font-size: 10px;\n color: var(--accent);\n text-transform: uppercase;\n letter-spacing: 0.09em;\n margin-bottom: 3px;\n display: flex;\n align-items: center;\n gap: 8px;\n }\n .eyebrow span.code-tag {\n background: var(--decal-bg);\n border: 1px solid var(--accent);\n padding: 0px 5px;\n font-size: 9.5px;\n }\n\n .hero-title {\n font-family: var(--font-display);\n font-size: clamp(20px, 2.6vw, 29px);\n font-weight: 800;\n letter-spacing: -0.025em;\n line-height: 1.08;\n color: var(--ink-0);\n margin-bottom: 5px;\n }\n .hero-title .hl {\n color: var(--accent);\n text-decoration: underline;\n text-decoration-thickness: 2px;\n text-underline-offset: 4px;\n }\n\n .hero-sub {\n color: var(--ink-1);\n font-size: 12.5px;\n max-width: 790px;\n line-height: 1.42;\n }\n .hero-sub strong {\n color: var(--ink-0);\n }\n\n .hero-stats {\n display: grid;\n grid-template-columns: repeat(4, auto);\n gap: 7px;\n font-family: var(--font-mono);\n }\n @media (max-width: 600px) {\n .hero-stats {\n grid-template-columns: repeat(2, 1fr);\n }\n }\n .stat-card {\n background: var(--bg-0);\n border: 1px solid var(--border);\n padding: 7px 10px;\n min-width: 88px;\n position: relative;\n }\n .stat-card::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 3px;\n height: 100%;\n background: var(--accent);\n }\n .stat-val {\n font-size: 16px;\n font-weight: 800;\n color: var(--ink-0);\n line-height: 1.1;\n }\n .stat-lbl {\n font-size: 9px;\n color: var(--ink-2);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n margin-top: 2px;\n }\n\n /* Navigation Mode Tabs */\n .mode-nav {\n display: flex;\n background: var(--bg-0);\n border-bottom: 1px solid var(--border);\n overflow-x: auto;\n }\n .mode-tab {\n flex: 1;\n min-width: 170px;\n background: transparent;\n border: none;\n border-right: 1px solid var(--border);\n padding: 9px 12px;\n color: var(--ink-1);\n font-family: var(--font-mono);\n font-size: 10.5px;\n text-align: left;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n transition: all 0.14s ease;\n position: relative;\n }\n .mode-tab:last-child {\n border-right: none;\n }\n .mode-tab:hover {\n background: var(--bg-2);\n color: var(--ink-0);\n }\n .mode-tab.active {\n background: var(--bg-1);\n color: var(--ink-0);\n font-weight: 700;\n }\n .mode-tab.active::after {\n content: '';\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 2.5px;\n background: var(--accent);\n }\n .tab-num {\n color: var(--accent);\n font-weight: 700;\n margin-right: 6px;\n }\n .tab-pill {\n font-size: 8.5px;\n padding: 1px 5px;\n background: var(--bg-3);\n color: var(--ink-1);\n border-radius: 2px;\n }\n .mode-tab.active .tab-pill {\n background: var(--decal-bg);\n color: var(--accent);\n }\n\n /* Main Workspace Grid */\n .workspace-deck {\n display: none;\n }\n .workspace-deck.active {\n display: block;\n }\n\n .deck-split {\n display: grid;\n grid-template-columns: 1.06fr 0.94fr;\n }\n @media (max-width: 960px) {\n .deck-split {\n grid-template-columns: 1fr;\n }\n }\n\n .panel-box {\n padding: 12px 14px;\n border-right: 1px solid var(--border);\n position: relative;\n display: flex;\n flex-direction: column;\n }\n .panel-box:last-child {\n border-right: none;\n }\n\n .panel-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 8px;\n padding-bottom: 6px;\n border-bottom: 1px solid var(--border);\n font-family: var(--font-mono);\n font-size: 10.5px;\n }\n .panel-title {\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n color: var(--ink-0);\n display: flex;\n align-items: center;\n gap: 6px;\n }\n .panel-title::before {\n content: '■';\n color: var(--accent);\n font-size: 9px;\n }\n\n /* Interactive Topology Map + Roster Cards */\n .topology-stage {\n position: relative;\n background: var(--bg-0);\n border: 1px solid var(--border);\n height: 176px;\n margin-bottom: 8px;\n overflow: hidden;\n }\n #topology-canvas {\n width: 100%;\n height: 100%;\n display: block;\n cursor: pointer;\n }\n .topo-overlay-controls {\n position: absolute;\n bottom: 6px;\n right: 6px;\n display: flex;\n gap: 5px;\n z-index: 5;\n }\n .topo-legend {\n position: absolute;\n top: 6px;\n left: 8px;\n font-family: var(--font-mono);\n font-size: 9.5px;\n color: var(--ink-2);\n pointer-events: none;\n display: flex;\n gap: 10px;\n }\n\n /* Model Roster Grid (All 6 Visible Above the Fold) */\n .roster-grid {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 6px;\n }\n @media (max-width: 560px) {\n .roster-grid {\n grid-template-columns: 1fr;\n }\n }\n\n .model-card {\n background: var(--bg-0);\n border: 1px solid var(--border);\n padding: 7px 10px;\n cursor: pointer;\n transition: all 0.14s ease;\n position: relative;\n text-align: left;\n }\n .model-card:hover {\n border-color: var(--ink-2);\n }\n .model-card.selected {\n background: var(--bg-2);\n border-color: var(--accent);\n box-shadow: inset 3px 0 0 var(--accent);\n }\n .mc-top {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 2px;\n font-family: var(--font-mono);\n }\n .mc-name {\n font-size: 11.5px;\n font-weight: 800;\n color: var(--ink-0);\n display: flex;\n align-items: center;\n gap: 5px;\n }\n .mc-dot {\n width: 6.5px;\n height: 6.5px;\n border-radius: 50%;\n display: inline-block;\n }\n .mc-badge {\n font-size: 8.5px;\n padding: 0.5px 4px;\n border: 1px solid var(--border-strong);\n color: var(--ink-1);\n text-transform: uppercase;\n }\n .mc-role {\n font-family: var(--font-mono);\n font-size: 9.5px;\n color: var(--accent);\n text-transform: uppercase;\n letter-spacing: 0.03em;\n margin-bottom: 2px;\n }\n .mc-desc {\n font-size: 10.8px;\n color: var(--ink-1);\n line-height: 1.3;\n }\n\n /* Right-Hand Live Capability Workbench */\n .workbench-container {\n flex: 1;\n display: flex;\n flex-direction: column;\n background: var(--bg-0);\n border: 1px solid var(--border);\n padding: 11px;\n position: relative;\n }\n\n .wb-header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: 8px;\n padding-bottom: 8px;\n margin-bottom: 9px;\n border-bottom: 1px dashed var(--border-strong);\n }\n .wb-title {\n font-family: var(--font-display);\n font-size: 15px;\n font-weight: 800;\n color: var(--ink-0);\n }\n .wb-subtitle {\n font-family: var(--font-mono);\n font-size: 10px;\n color: var(--accent);\n margin-top: 1px;\n }\n .wb-tag {\n font-family: var(--font-mono);\n font-size: 9.5px;\n padding: 2px 6px;\n background: var(--decal-bg);\n border: 1px solid var(--accent);\n color: var(--accent);\n white-space: nowrap;\n }\n\n /* Workbench Views */\n .wb-view {\n display: none;\n flex-direction: column;\n gap: 8px;\n flex: 1;\n }\n .wb-view.active {\n display: flex;\n }\n\n /* 4-Quadrant Overview Multi-Monitor */\n .quad-grid {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-template-rows: 1fr 1fr;\n gap: 8px;\n flex: 1;\n }\n .quad-box {\n background: var(--bg-1);\n border: 1px solid var(--border);\n padding: 8px 9px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n cursor: pointer;\n position: relative;\n overflow: hidden;\n transition: border-color 0.14s ease;\n }\n .quad-box:hover {\n border-color: var(--accent);\n }\n .quad-hdr {\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-family: var(--font-mono);\n font-size: 9.5px;\n color: var(--ink-1);\n margin-bottom: 4px;\n }\n .quad-hdr strong {\n color: var(--ink-0);\n }\n\n /* Claviger Triage Workbench */\n .discord-input-row {\n display: flex;\n gap: 6px;\n }\n .discord-input {\n flex: 1;\n background: var(--bg-1);\n border: 1px solid var(--border-strong);\n color: var(--ink-0);\n padding: 6px 9px;\n font-family: var(--font-mono);\n font-size: 11px;\n }\n .discord-input:focus {\n outline: none;\n border-color: var(--accent);\n }\n .preset-chips {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n }\n .chip-btn {\n background: var(--bg-2);\n border: 1px solid var(--border);\n color: var(--ink-1);\n font-family: var(--font-mono);\n font-size: 9.5px;\n padding: 2.5px 6px;\n cursor: pointer;\n transition: all 0.12s;\n }\n .chip-btn:hover {\n border-color: var(--accent);\n color: var(--ink-0);\n }\n .logit-bars {\n display: flex;\n flex-direction: column;\n gap: 5px;\n background: var(--bg-1);\n border: 1px solid var(--border);\n padding: 8px;\n }\n .logit-row {\n display: grid;\n grid-template-columns: 150px 1fr 44px;\n align-items: center;\n gap: 8px;\n font-family: var(--font-mono);\n font-size: 10px;\n }\n .logit-track {\n height: 7px;\n background: var(--bg-3);\n overflow: hidden;\n position: relative;\n }\n .logit-fill {\n height: 100%;\n background: var(--accent);\n transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);\n }\n .code-output {\n font-family: var(--font-mono);\n font-size: 10.2px;\n background: #060708;\n border: 1px solid var(--border);\n padding: 8px 10px;\n color: var(--ink-1);\n line-height: 1.42;\n overflow-x: auto;\n }\n\n /* Fable 5.2 3D Canvas Workbench */\n .canvas-3d-wrap {\n position: relative;\n height: 205px;\n background: #050608;\n border: 1px solid var(--border-strong);\n overflow: hidden;\n }\n #fable-3d-canvas {\n width: 100%;\n height: 100%;\n display: block;\n cursor: grab;\n }\n #fable-3d-canvas:active {\n cursor: grabbing;\n }\n .canvas-3d-hud {\n position: absolute;\n top: 7px;\n left: 8px;\n right: 8px;\n display: flex;\n justify-content: space-between;\n pointer-events: none;\n font-family: var(--font-mono);\n font-size: 9.5px;\n color: var(--ink-1);\n }\n .canvas-3d-controls {\n position: absolute;\n bottom: 7px;\n left: 8px;\n right: 8px;\n display: flex;\n justify-content: space-between;\n gap: 4px;\n flex-wrap: wrap;\n }\n\n /* GPT-6.1-Sol Claim vs Code Auditor */\n .audit-split {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 8px;\n }\n @media (max-width: 580px) {\n .audit-split {\n grid-template-columns: 1fr;\n }\n }\n .audit-col {\n background: var(--bg-1);\n border: 1px solid var(--border);\n padding: 8px;\n font-family: var(--font-mono);\n font-size: 10px;\n }\n .audit-col-title {\n font-size: 9.5px;\n color: var(--ink-2);\n text-transform: uppercase;\n margin-bottom: 6px;\n padding-bottom: 4px;\n border-bottom: 1px solid var(--border);\n }\n .claim-item {\n padding: 5px 7px;\n border: 1px solid var(--border);\n margin-bottom: 5px;\n cursor: pointer;\n background: var(--bg-0);\n transition: all 0.14s;\n }\n .claim-item:hover, .claim-item.active {\n border-color: var(--accent);\n }\n .claim-item.pass {\n border-left: 3px solid var(--ok);\n }\n .claim-item.fail {\n border-left: 3px solid var(--danger);\n background: rgba(255, 42, 85, 0.08);\n }\n\n /* Mode 2: Private Review Page & Step-by-Step Pipeline Replay */\n .review-surface-grid {\n display: grid;\n grid-template-columns: 300px 1fr;\n }\n @media (max-width: 900px) {\n .review-surface-grid {\n grid-template-columns: 1fr;\n }\n }\n .pipeline-steps {\n display: flex;\n flex-direction: column;\n gap: 5px;\n }\n .pipe-step {\n background: var(--bg-0);\n border: 1px solid var(--border);\n padding: 7px 10px;\n font-family: var(--font-mono);\n font-size: 10.5px;\n cursor: pointer;\n position: relative;\n transition: all 0.14s;\n }\n .pipe-step.active {\n border-color: var(--accent);\n background: var(--bg-2);\n box-shadow: inset 3px 0 0 var(--accent);\n }\n .pipe-step.done {\n border-left: 3px solid var(--ok);\n }\n .ps-top {\n display: flex;\n justify-content: space-between;\n color: var(--ink-0);\n font-weight: 700;\n margin-bottom: 2px;\n }\n .ps-sub {\n font-size: 9.5px;\n color: var(--ink-1);\n font-family: var(--font-sans);\n }\n\n .approve-bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 10px;\n padding: 10px 12px;\n background: var(--bg-2);\n border: 1px solid var(--border-strong);\n margin-top: auto;\n }\n .action-btn {\n padding: 7px 13px;\n font-family: var(--font-mono);\n font-size: 10.5px;\n font-weight: 800;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n border: 1px solid transparent;\n cursor: pointer;\n transition: all 0.14s;\n }\n .btn-approve {\n background: var(--ok);\n color: #060807;\n }\n .btn-approve:hover {\n filter: brightness(1.12);\n box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);\n }\n .btn-reject {\n background: transparent;\n border-color: var(--danger);\n color: var(--danger);\n }\n .btn-reject:hover {\n background: rgba(255, 42, 85, 0.12);\n }\n\n /* Mode 3: Scene Convert & Capability Lab */\n .lab-grid {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 12px;\n padding: 12px 14px;\n }\n @media (max-width: 860px) {\n .lab-grid {\n grid-template-columns: 1fr;\n }\n }\n .lab-card {\n background: var(--bg-0);\n border: 1px solid var(--border);\n padding: 12px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n /* Mode 4: Public Projects Matrix */\n .projects-matrix {\n padding: 10px 14px 12px;\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 8px;\n }\n @media (max-width: 900px) {\n .projects-matrix {\n grid-template-columns: repeat(2, 1fr);\n }\n }\n @media (max-width: 580px) {\n .projects-matrix {\n grid-template-columns: 1fr;\n }\n }\n .proj-card {\n background: var(--bg-0);\n border: 1px solid var(--border);\n padding: 10px 11px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n gap: 6px;\n cursor: pointer;\n transition: all 0.14s;\n position: relative;\n }\n .proj-card:hover {\n border-color: var(--accent);\n background: var(--bg-2);\n }\n .proj-url {\n font-family: var(--font-mono);\n font-size: 9.5px;\n color: var(--accent);\n }\n .proj-name {\n font-family: var(--font-display);\n font-size: 14px;\n font-weight: 800;\n color: var(--ink-0);\n }\n .proj-desc {\n font-size: 11px;\n color: var(--ink-1);\n line-height: 1.35;\n }\n .proj-models {\n display: flex;\n flex-wrap: wrap;\n gap: 3px;\n }\n .pm-tag {\n font-family: var(--font-mono);\n font-size: 9px;\n padding: 1px 4.5px;\n background: var(--bg-1);\n border: 1px solid var(--border-strong);\n color: var(--ink-1);\n }\n\n /* Bottom Baldanders Redacted Transcript Stream */\n .baldanders-strip {\n background: #060708;\n border-top: 1px solid var(--border-strong);\n padding: 8px 14px;\n font-family: var(--font-mono);\n font-size: 10.5px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 10px;\n flex-wrap: wrap;\n }\n .redact-stream {\n flex: 1;\n color: var(--ink-1);\n overflow: hidden;\n min-width: 240px;\n }\n .redact-block {\n background: var(--ink-0);\n color: transparent;\n padding: 0 4px;\n border-radius: 1px;\n cursor: pointer;\n transition: all 0.18s ease;\n user-select: none;\n }\n .redact-block:hover,\n .declassified .redact-block,\n [data-theme=\"baldanders\"] .redact-block:hover {\n background: rgba(255, 85, 0, 0.2);\n color: var(--accent-2);\n border-bottom: 1px dashed var(--accent-2);\n }\n\n /* Embed Snippet Drawer */\n .embed-drawer {\n display: none;\n background: var(--bg-0);\n border-top: 1px solid var(--accent);\n padding: 10px 14px;\n font-family: var(--font-mono);\n font-size: 10.5px;\n }\n .embed-drawer.open {\n display: block;\n }\n</style>\n</head>\n<body>\n\n<div class=\"citadel-shell\" id=\"citadel-root\">\n <!-- Corner Registration Marks -->\n <div class=\"reg-mark reg-tl\"></div>\n <div class=\"reg-mark reg-tr\"></div>\n <div class=\"reg-mark reg-bl\"></div>\n <div class=\"reg-mark reg-br\"></div>\n\n <!-- GPT-6-Astra Critique Overlays (Positioned cleanly in margins when toggled ON) -->\n <div class=\"astra-badge-overlay\" style=\"top: 66px; right: 16px;\">\n ASTRA CRITIQUE // CONTRAST 15.8:1 (WCAG AAA) · DECAL DENSITY PASS\n </div>\n <div class=\"astra-badge-overlay\" style=\"top: 192px; right: 16px;\">\n ASTRA // 24PX RHYTHM LOCKED · TRACKING -0.025EM · 0 CLS\n </div>\n <div class=\"astra-badge-overlay\" style=\"bottom: 42px; right: 16px;\">\n ASTRA DATASET // 166 MULTI-TURN SAMPLES LABELLED FOR CLAVIGER-421M\n </div>\n\n <!-- Top Decal Telemetry Bar -->\n <div class=\"top-decal-bar\">\n <div class=\"decal-left\">\n <span class=\"hazard-pill\"><span class=\"status-dot\"></span> CITADEL // LIVE</span>\n <span class=\"tele-item\">OPERATOR: <strong>SEVERIAN</strong></span>\n <span class=\"tele-item\">SESSIONS: <strong>08 CONCURRENT</strong></span>\n <span class=\"tele-item\">GATE: <strong>CLAVIGER (Laya-421M)</strong></span>\n <span class=\"tele-item\">DEPLOYS: <strong>100% HUMAN-SIGNED</strong></span>\n </div>\n <div class=\"decal-controls\">\n <button class=\"mini-btn active\" onclick=\"setTheme('citadel', this)\">DECAL: CITADEL</button>\n <button class=\"mini-btn\" onclick=\"setTheme('bloom', this)\">INTO BLOOM</button>\n <button class=\"mini-btn\" onclick=\"setTheme('hearthwynd', this)\">HEARTHWYND</button>\n <button class=\"mini-btn\" onclick=\"setTheme('baldanders', this)\">BALDANDERS</button>\n <button class=\"mini-btn\" id=\"astra-toggle-btn\" onclick=\"toggleAstraCritique()\">ASTRA REDLINE: OFF</button>\n <button class=\"mini-btn\" id=\"audio-toggle-btn\" onclick=\"toggleAudio()\">SYNTH: OFF</button>\n <button class=\"mini-btn\" onclick=\"toggleEmbedDrawer()\"></> EMBED</button>\n </div>\n </div>\n\n <!-- Interactive Desktop Buddies Track (Clean Dedicated Center Lane) -->\n <div class=\"buddy-rail\" title=\"Click on the center lane to interact with Desktop Buddies!\">\n <div class=\"buddy-label-left\">\n PROJECT // <strong>DESKTOP BUDDIES</strong> (OSS PET MAKER)\n </div>\n <div class=\"buddy-lane-wrap\" id=\"buddy-lane\">\n <canvas id=\"buddy-canvas\"></canvas>\n </div>\n <div class=\"buddy-hud-actions\">\n <span class=\"buddy-speech\" id=\"buddy-speech\">TALOS-01: \"Patrolling 8 Claude Code sessions...\"</span>\n <button class=\"mini-btn\" onclick=\"spawnBuddy()\">+ SPAWN BUDDY</button>\n </div>\n </div>\n\n <!-- Hero Thesis Banner -->\n <header class=\"hero-header\">\n <div>\n <div class=\"eyebrow\">\n <span class=\"code-tag\">FAQ // MODEL STACK</span>\n <span>CITADEL.SEVERIAN.DEV · TALOS · BALDANDERS · FROM-AVALON.COM</span>\n </div>\n <h1 class=\"hero-title\">\n I DON'T USE A MODEL. <span class=\"hl\">I RUN A CITADEL.</span>\n </h1>\n <p class=\"hero-sub\">\n Many concurrent sessions run on my own machines. Each session owns one project; a lead session coordinates them across a <strong>shared to-do ledger</strong>. A <strong>421M open-weights gatekeeper</strong> triages Discord traffic, <strong>five frontier models</strong> build, rebase, design, critique, and audit claims against code—staging their work on <strong>private review pages</strong>. <strong>I approve every deploy and every public post.</strong>\n </p>\n </div>\n <div class=\"hero-stats\">\n <div class=\"stat-card\">\n <div class=\"stat-val\">06</div>\n <div class=\"stat-lbl\">Specialized Models</div>\n </div>\n <div class=\"stat-card\">\n <div class=\"stat-val\">09</div>\n <div class=\"stat-lbl\">Public Shipped Works</div>\n </div>\n <div class=\"stat-card\">\n <div class=\"stat-val\">0.8ms</div>\n <div class=\"stat-lbl\">Claviger-421M Gate</div>\n </div>\n <div class=\"stat-card\">\n <div class=\"stat-val\">100%</div>\n <div class=\"stat-lbl\">Human Gate Signed</div>\n </div>\n </div>\n </header>\n\n <!-- Mode Navigation -->\n <nav class=\"mode-nav\" role=\"tablist\">\n <button class=\"mode-tab active\" onclick=\"switchMode('topology', this)\">\n <span><span class=\"tab-num\">01</span>CITADEL TOPOLOGY & LIVE WORKBENCH</span>\n <span class=\"tab-pill\">6 MODELS</span>\n </button>\n <button class=\"mode-tab\" onclick=\"switchMode('review', this)\">\n <span><span class=\"tab-num\">02</span>PRIVATE REVIEW PAGE SIMULATOR</span>\n <span class=\"tab-pill\">ACT AS SEVERIAN</span>\n </button>\n <button class=\"mode-tab\" onclick=\"switchMode('sandbox', this)\">\n <span><span class=\"tab-num\">03</span>3D PIPELINE & SCENE CONVERT LAB</span>\n <span class=\"tab-pill\">INTERACTIVE</span>\n </button>\n <button class=\"mode-tab\" onclick=\"switchMode('projects', this)\">\n <span><span class=\"tab-num\">04</span>PUBLIC ARTIFACTS & LEDGER (9)</span>\n <span class=\"tab-pill\">ALL PUBLIC</span>\n </button>\n </nav>\n\n <!-- ===================================================================== -->\n <!-- MODE 01: TOPOLOGY & LIVE CAPABILITY WORKBENCH -->\n <!-- ===================================================================== -->\n <section class=\"workspace-deck active\" id=\"mode-topology\">\n <div class=\"deck-split\">\n <!-- Left Column: Live Circuit & 6 Model Roster Cards -->\n <div class=\"panel-box\">\n <div class=\"panel-header\">\n <span class=\"panel-title\">LIVE CITADEL SIGNAL BUS // CLICK ANY MODEL TO LAUNCH ITS SANDBOX</span>\n <span style=\"color:var(--accent-2);\" id=\"bus-status\">BUS: 60FPS LIVE</span>\n </div>\n\n <div class=\"topology-stage\">\n <canvas id=\"topology-canvas\"></canvas>\n <div class=\"topo-legend\">\n <span>● INGRESS: DISCORD</span>\n <span>◆ LEDGER: SHARED TO-DO</span>\n <span>■ GATE: PRIVATE REVIEW PAGE</span>\n </div>\n <div class=\"topo-overlay-controls\">\n <button class=\"mini-btn active\" onclick=\"triggerTaskBurst()\">⚡ DISPATCH TASK BURST</button>\n </div>\n </div>\n\n <div class=\"roster-grid\" id=\"roster-cards\">\n <!-- Opus 5.5 -->\n <div class=\"model-card\" data-model=\"opus\" onclick=\"selectModel('opus', this)\">\n <div class=\"mc-top\">\n <span class=\"mc-name\"><span class=\"mc-dot\" style=\"background:#ff5500\"></span>Opus 5.5</span>\n <span class=\"mc-badge\">CLAUDE CODE · LEAD</span>\n </div>\n <div class=\"mc-role\">Lead Coordinator & Most Project Sessions</div>\n <div class=\"mc-desc\">Coordinates the shared ledger, builds sites, tools & server kits, and stages private review pages.</div>\n </div>\n\n <!-- Claviger Laya-421M -->\n <div class=\"model-card\" data-model=\"claviger\" onclick=\"selectModel('claviger', this)\">\n <div class=\"mc-top\">\n <span class=\"mc-name\"><span class=\"mc-dot\" style=\"background:#b8ff01\"></span>Claviger (Laya-421M)</span>\n <span class=\"mc-badge\">HF OPEN-WEIGHTS</span>\n </div>\n <div class=\"mc-role\">Discord Triage Gate (`finis-est/Laya-421M-Claviger-v0`)</div>\n <div class=\"mc-desc\">Small open-weights model on Hugging Face that triages Discord messages for agents before waking sessions.</div>\n </div>\n\n <!-- Fable 5.2 -->\n <div class=\"model-card\" data-model=\"fable\" onclick=\"selectModel('fable', this)\">\n <div class=\"mc-top\">\n <span class=\"mc-name\"><span class=\"mc-dot\" style=\"background:#b388ff\"></span>Fable 5.2</span>\n <span class=\"mc-badge\">DESIGN + 3D</span>\n </div>\n <div class=\"mc-role\">Design Collaborator, Visual Language & 3D</div>\n <div class=\"mc-desc\">Worked on the decal-pack visual language, community site redesigns, 3D pipeline experiments, and idea reviews.</div>\n </div>\n\n <!-- GPT-6-Astra -->\n <div class=\"model-card\" data-model=\"astra\" onclick=\"selectModel('astra', this)\">\n <div class=\"mc-top\">\n <span class=\"mc-name\"><span class=\"mc-dot\" style=\"background:#00e5ff\"></span>GPT-6-Astra</span>\n <span class=\"mc-badge\">VIA CODEX</span>\n </div>\n <div class=\"mc-role\">Every Design Critique & Test Data Labeler</div>\n <div class=\"mc-desc\">Runs every design critique across review surfaces, plus writes and labels evaluation & training test data.</div>\n </div>\n\n <!-- GPT-6.1-Sol -->\n <div class=\"model-card\" data-model=\"sol\" onclick=\"selectModel('sol', this)\">\n <div class=\"mc-top\">\n <span class=\"mc-name\"><span class=\"mc-dot\" style=\"background:#ffb300\"></span>GPT-6.1-Sol</span>\n <span class=\"mc-badge\">VIA CODEX</span>\n </div>\n <div class=\"mc-role\">Adversarial Claim-vs-Code Verifier</div>\n <div class=\"mc-desc\">Reviews code and deployment kits specifically against the claims they make before Severian signs off.</div>\n </div>\n\n <!-- Sonnet 5.5 -->\n <div class=\"model-card\" data-model=\"sonnet\" onclick=\"selectModel('sonnet', this)\">\n <div class=\"mc-top\">\n <span class=\"mc-name\"><span class=\"mc-dot\" style=\"background:#00e676\"></span>Sonnet 5.5</span>\n <span class=\"mc-badge\">CLAUDE CODE · OPS</span>\n </div>\n <div class=\"mc-role\">Mechanical Chores, Rebases & Test Suites</div>\n <div class=\"mc-desc\">Handles mechanical chores like git rebases and test runs, and writes synthetic test conversations.</div>\n </div>\n </div>\n </div>\n\n <!-- Right Column: Multi-Monitor Overview + 6 Deep-Dive Workbenches -->\n <div class=\"panel-box\">\n <div class=\"panel-header\">\n <span class=\"panel-title\" id=\"wb-panel-heading\">LIVE CAPABILITY WORKBENCH // 4-QUADRANT MISSION MONITOR</span>\n <div style=\"display:flex;gap:5px;align-items:center;\">\n <button class=\"mini-btn active\" id=\"btn-quad-overview\" onclick=\"selectModel('overview', null)\">⊞ 4-UP MONITOR</button>\n <span style=\"color:var(--ink-2);\" id=\"wb-active-indicator\">ALL NODES</span>\n </div>\n </div>\n\n <div class=\"workbench-container\">\n <!-- DEFAULT VIEW: 4-QUADRANT LIVE CAPABILITY MONITOR -->\n <div class=\"wb-view active\" id=\"wb-overview\">\n <div class=\"quad-grid\">\n <!-- Quad 1: Fable 5.2 3D Pipeline Mini-Viewport -->\n <div class=\"quad-box\" onclick=\"selectModel('fable', document.querySelector('.model-card[data-model=fable]'))\">\n <div class=\"quad-hdr\">\n <span><strong style=\"color:#b388ff\">FABLE 5.2</strong> // 3D PIPELINE & DECAL SHADER</span>\n <span class=\"mini-btn\">EXPAND ▸</span>\n </div>\n <div style=\"position:relative;height:135px;background:#050608;border:1px solid var(--border);\">\n <canvas id=\"quad-3d-canvas\" style=\"width:100%;height:100%;display:block;\"></canvas>\n <div style=\"position:absolute;bottom:4px;left:6px;font-family:var(--font-mono);font-size:9px;color:var(--ink-1);\">\n PROCEDURAL MESH · 60FPS WEBGL/2D PIPELINE\n </div>\n </div>\n </div>\n\n <!-- Quad 2: Claviger-421M Live Discord Triage -->\n <div class=\"quad-box\" onclick=\"selectModel('claviger', document.querySelector('.model-card[data-model=claviger]'))\">\n <div class=\"quad-hdr\">\n <span><strong style=\"color:#b8ff01\">CLAVIGER-421M</strong> // DISCORD TRIAGE</span>\n <span class=\"mini-btn\">TEST ▸</span>\n </div>\n <div style=\"font-family:var(--font-mono);font-size:9.5px;color:var(--ink-1);background:var(--bg-0);padding:6px;border:1px solid var(--border);margin-bottom:4px;\">\n <div style=\"color:var(--accent-2);\">hf.co/finis-est/Laya-421M-Claviger-v0</div>\n <div style=\"color:var(--ink-0);margin-top:2px;\">\"Hearthwynd nav overlaps at 375px\"</div>\n </div>\n <div style=\"font-family:var(--font-mono);font-size:9px;display:flex;flex-direction:column;gap:4px;\">\n <div>\n <div style=\"display:flex;justify-content:space-between;\"><span>ROUTE → OPUS SESSION</span><strong style=\"color:#ff5500\">84.2%</strong></div>\n <div class=\"logit-track\"><div class=\"logit-fill\" style=\"width:84%;background:#ff5500\"></div></div>\n </div>\n <div>\n <div style=\"display:flex;justify-content:space-between;\"><span>ROUTE → SONNET TESTS</span><strong style=\"color:#00e676\">11.4%</strong></div>\n <div class=\"logit-track\"><div class=\"logit-fill\" style=\"width:11%;background:#00e676\"></div></div>\n </div>\n <div>\n <div style=\"display:flex;justify-content:space-between;\"><span>DROP → CHATTER</span><strong style=\"color:#76746d\">4.4%</strong></div>\n <div class=\"logit-track\"><div class=\"logit-fill\" style=\"width:4%;background:#76746d\"></div></div>\n </div>\n </div>\n </div>\n\n <!-- Quad 3: Opus 5.5 + Sonnet 5.5 Concurrent Sessions -->\n <div class=\"quad-box\" onclick=\"selectModel('opus', document.querySelector('.model-card[data-model=opus]'))\">\n <div class=\"quad-hdr\">\n <span><strong style=\"color:#ff5500\">OPUS 5.5 + SONNET 5.5</strong> // LEDGER & OPS</span>\n <span class=\"mini-btn\">SESSIONS ▸</span>\n </div>\n <div class=\"code-output\" style=\"font-size:9.5px;padding:6px 8px;flex:1;\">\n <div style=\"color:var(--accent);font-weight:700;\">ACTIVE CLAUDE CODE SESSIONS (8):</div>\n <div>#01 from-avalon.com <span style=\"color:var(--ok)\">[STAGED]</span></div>\n <div>#02 Into Bloom <span style=\"color:var(--ok)\">[240 TESTS PASS]</span></div>\n <div>#03 Hearthwynd <span style=\"color:var(--accent-2)\">[REBASED ON MAIN]</span></div>\n <div>#04 Desktop Buddies <span style=\"color:var(--ok)\">[RIG EXPORTED]</span></div>\n <div>#05 Scene Convert <span style=\"color:var(--accent-3)\">[16-BIT PARSER]</span></div>\n </div>\n </div>\n\n <!-- Quad 4: GPT-6-Astra + GPT-6.1-Sol Codex Verification -->\n <div class=\"quad-box\" onclick=\"selectModel('sol', document.querySelector('.model-card[data-model=sol]'))\">\n <div class=\"quad-hdr\">\n <span><strong style=\"color:#ffb300\">SOL 6.1 + ASTRA 6</strong> // AUDIT & CRITIQUE</span>\n <span class=\"mini-btn\">AUDIT ▸</span>\n </div>\n <div class=\"code-output\" style=\"font-size:9.5px;padding:6px 8px;flex:1;\">\n <div style=\"color:var(--accent-3);font-weight:700;\">[GPT-6-ASTRA]: Contrast 15.8:1 AAA ✓</div>\n <div style=\"color:var(--accent-5);font-weight:700;margin-top:3px;\">[GPT-6.1-SOL CLAIM-VS-CODE AUDIT]:</div>\n <div>✓ Claim: \"Zero wake on noise\" → Verified</div>\n <div style=\"color:var(--danger);\">⚠ Claim: \"All LAN IPs masked\" → Caught IPv6 gap in redactor.ts:19!</div>\n <div style=\"color:var(--ink-2);margin-top:2px;\">Click to inspect & auto-patch drift ▸</div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- WORKBENCH: OPUS 5.5 -->\n <div class=\"wb-view\" id=\"wb-opus\">\n <div class=\"wb-header\">\n <div>\n <div class=\"wb-title\">Opus 5.5 // Lead Coordinator & Project Sessions</div>\n <div class=\"wb-subtitle\">SHARED TO-DO LEDGER + CONCURRENT SESSION ORCHESTRATOR</div>\n </div>\n <span class=\"wb-tag\">CLAUDE CODE</span>\n </div>\n <p style=\"font-size:11.5px;color:var(--ink-1);\">\n Each session owns one project on my machines. Click any active session below to inspect the live task Opus 5.5 is building and staging for private review:\n </p>\n <div class=\"preset-chips\" id=\"opus-session-btns\">\n <button class=\"chip-btn mini-btn active\" onclick=\"selectOpusSession(0, this)\">#01 from-avalon.com</button>\n <button class=\"chip-btn mini-btn\" onclick=\"selectOpusSession(1, this)\">#02 Into Bloom</button>\n <button class=\"chip-btn mini-btn\" onclick=\"selectOpusSession(2, this)\">#03 Hearthwynd</button>\n <button class=\"chip-btn mini-btn\" onclick=\"selectOpusSession(3, this)\">#04 Desktop Buddies</button>\n <button class=\"chip-btn mini-btn\" onclick=\"selectOpusSession(4, this)\">#05 Scene Convert</button>\n <button class=\"chip-btn mini-btn\" onclick=\"selectOpusSession(5, this)\">#06 citadel.severian.dev</button>\n </div>\n <div class=\"code-output\" id=\"opus-terminal\" style=\"flex:1;\"></div>\n <div style=\"display:flex;justify-content:space-between;align-items:center;gap:8px;\">\n <span style=\"font-family:var(--font-mono);font-size:9.5px;color:var(--ink-2);\">PRIVATE REVIEW SURFACE STAGED ON LOCAL LAN</span>\n <button class=\"mini-btn active\" onclick=\"rebalanceLedger()\">↻ COORDINATE & ADVANCE LEDGER</button>\n </div>\n </div>\n\n <!-- WORKBENCH: CLAVIGER (Laya-421M) -->\n <div class=\"wb-view\" id=\"wb-claviger\">\n <div class=\"wb-header\">\n <div>\n <div class=\"wb-title\">Claviger // finis-est/Laya-421M-Claviger-v0</div>\n <div class=\"wb-subtitle\">LIVE DISCORD MESSAGE TRIAGE GATEKEEPER (421M OPEN-WEIGHTS)</div>\n </div>\n <span class=\"wb-tag\">HUGGING FACE · 421M</span>\n </div>\n <p style=\"font-size:11.5px;color:var(--ink-1);\">\n Type any Discord message (or click a sample) to watch Claviger triage it in sub-millisecond time before waking a frontier session:\n </p>\n <div class=\"discord-input-row\">\n <input type=\"text\" id=\"claviger-input\" class=\"discord-input\" value=\"Hearthwynd mobile nav overlaps the decal header at 375px width on iOS Safari\" oninput=\"runClavigerInference()\" />\n <button class=\"mini-btn active\" onclick=\"runClavigerInference()\">TRIAGE</button>\n </div>\n <div class=\"preset-chips\">\n <button class=\"chip-btn\" onclick=\"setClavigerSample('Hearthwynd mobile nav overlaps the decal header at 375px width on iOS Safari')\">Bug Report (Hearthwynd)</button>\n <button class=\"chip-btn\" onclick=\"setClavigerSample('Scene Convert throws NaN when parsing 16-bit PSD depth channels')\">Scene Convert Crash</button>\n <button class=\"chip-btn\" onclick=\"setClavigerSample('Can we add a new glTF normal-map baker to the 3D model pipeline?')\">3D Pipeline Request</button>\n <button class=\"chip-btn\" onclick=\"setClavigerSample('gm everyone!! loving the new Into Bloom seasonal illustrations!')\">Community Chatter (Ignore)</button>\n </div>\n <div class=\"logit-bars\" id=\"claviger-bars\"></div>\n <div class=\"code-output\" id=\"claviger-json\"></div>\n </div>\n\n <!-- WORKBENCH: FABLE 5.2 -->\n <div class=\"wb-view\" id=\"wb-fable\">\n <div class=\"wb-header\">\n <div>\n <div class=\"wb-title\">Fable 5.2 // Decal Design Language & 3D Pipeline</div>\n <div class=\"wb-subtitle\">INTERACTIVE 60FPS PROCEDURAL 3D MESH & SHADER SANDBOX</div>\n </div>\n <span class=\"wb-tag\">3D + VISUAL LANGUAGE</span>\n </div>\n <div class=\"canvas-3d-wrap\">\n <canvas id=\"fable-3d-canvas\"></canvas>\n <div class=\"canvas-3d-hud\">\n <span id=\"mesh-telemetry\">MESH: CITADEL RELIQUARY · 40 TRIS · 60 FPS</span>\n <span>DRAG TO ROTATE 3D</span>\n </div>\n <div class=\"canvas-3d-controls\">\n <div style=\"display:flex;gap:4px;\">\n <button class=\"mini-btn active\" onclick=\"setFableMesh('obelisk', this)\">RELIQUARY</button>\n <button class=\"mini-btn\" onclick=\"setFableMesh('bloom', this)\">AVALON TORUS</button>\n <button class=\"mini-btn\" onclick=\"setFableMesh('buddy', this)\">BUDDY RIG</button>\n <button class=\"mini-btn\" onclick=\"setFableMesh('cage', this)\">SCENE CAGE</button>\n </div>\n <div style=\"display:flex;gap:4px;\">\n <button class=\"mini-btn active\" onclick=\"setFableShader('decal', this)\">DECAL SHADER</button>\n <button class=\"mini-btn\" onclick=\"setFableShader('wire', this)\">WIREFRAME</button>\n <button class=\"mini-btn\" onclick=\"setFableShader('normal', this)\">NORMALS</button>\n </div>\n </div>\n </div>\n <div class=\"code-output\" id=\"fable-notes\">\n [FABLE 5.2 // DESIGN NOTE]: Built visual language from industrial die-cut decal sheets: registration crosses (+), 45° chamfered tags, high-contrast telemetry blocks, and procedural 3D meshes exported straight to WebGL review surfaces.\n </div>\n </div>\n\n <!-- WORKBENCH: GPT-6-ASTRA -->\n <div class=\"wb-view\" id=\"wb-astra\">\n <div class=\"wb-header\">\n <div>\n <div class=\"wb-title\">GPT-6-Astra (via Codex) // Design Critic & Labeler</div>\n <div class=\"wb-subtitle\">EVERY DESIGN CRITIQUE + TEST DATA WRITING & LABELING</div>\n </div>\n <span class=\"wb-tag\">CODEX · CRITIQUE</span>\n </div>\n <p style=\"font-size:11.5px;color:var(--ink-1);\">\n Astra critiques every visual surface before Severian sees it, and labels synthetic test datasets for Claviger & UI regression:\n </p>\n <div style=\"display:flex;gap:6px;flex-wrap:wrap;\">\n <button class=\"mini-btn active\" onclick=\"toggleAstraCritique()\">TOGGLE FULL-PAGE REDLINE OVERLAY</button>\n <button class=\"mini-btn\" onclick=\"runAstraLabelBatch()\">+ LABEL NEW TEST DATA BATCH</button>\n </div>\n <div class=\"code-output\" id=\"astra-critique-box\" style=\"flex:1;\"></div>\n </div>\n\n <!-- WORKBENCH: GPT-6.1-SOL -->\n <div class=\"wb-view\" id=\"wb-sol\">\n <div class=\"wb-header\">\n <div>\n <div class=\"wb-title\">GPT-6.1-Sol (via Codex) // Claim-vs-Code Auditor</div>\n <div class=\"wb-subtitle\">REVIEWS CODE & DEPLOYMENT KITS AGAINST THEIR CLAIMS</div>\n </div>\n <span class=\"wb-tag\">CODEX · VERIFIER</span>\n </div>\n <p style=\"font-size:11.5px;color:var(--ink-1);\">\n Click any deployment claim below to see how GPT-6.1-Sol verifies the actual code & server kit against what the session claimed:\n </p>\n <div class=\"audit-split\" style=\"flex:1;\">\n <div class=\"audit-col\" id=\"sol-claims-list\"></div>\n <div class=\"audit-col\" id=\"sol-code-proof\" style=\"background:#060709;\"></div>\n </div>\n <div style=\"display:flex;justify-content:space-between;align-items:center;\">\n <span style=\"font-family:var(--font-mono);font-size:9.5px;color:var(--accent-5);\" id=\"sol-summary-status\">2 CLAIMS VERIFIED · 1 DRIFT CAUGHT BEFORE DEPLOY</span>\n <button class=\"mini-btn active\" onclick=\"patchSolDrift()\">⚡ AUTO-PATCH DRIFT VIA OPUS 5.5</button>\n </div>\n </div>\n\n <!-- WORKBENCH: SONNET 5.5 -->\n <div class=\"wb-view\" id=\"wb-sonnet\">\n <div class=\"wb-header\">\n <div>\n <div class=\"wb-title\">Sonnet 5.5 // Mechanical Chores, Rebases & Tests</div>\n <div class=\"wb-subtitle\">GIT REBASE ENGINE + SYNTHETIC TEST CONVERSATION WRITER</div>\n </div>\n <span class=\"wb-tag\">CLAUDE CODE · OPS</span>\n </div>\n <p style=\"font-size:11.5px;color:var(--ink-1);\">\n Sonnet 5.5 handles mechanical chores across Citadel: rebasing topic branches, running test suites, and generating multi-turn test conversations:\n </p>\n <div style=\"display:flex;gap:6px;flex-wrap:wrap;\">\n <button class=\"mini-btn active\" onclick=\"runSonnetRebase()\">▶ RUN GIT REBASE & 240 TESTS</button>\n <button class=\"mini-btn\" onclick=\"generateSonnetConvo()\">💬 WRITE SYNTHETIC TEST CONVERSATION</button>\n </div>\n <div class=\"code-output\" id=\"sonnet-output\" style=\"flex:1;\"></div>\n </div>\n </div>\n </div>\n </div>\n </section>\n\n <!-- ===================================================================== -->\n <!-- MODE 02: PRIVATE REVIEW SURFACE SIMULATOR (STEP IN AS SEVERIAN) -->\n <!-- ===================================================================== -->\n <section class=\"workspace-deck\" id=\"mode-review\">\n <div class=\"review-surface-grid\">\n <!-- Left: 6-Stage Multi-Model Trace -->\n <div class=\"panel-box\">\n <div>\n <div class=\"panel-header\">\n <span class=\"panel-title\">TASK LIFECYCLE // 6 MODELS</span>\n <button class=\"mini-btn active\" onclick=\"playFullReviewTrace()\">▶ AUTO-STEP</button>\n </div>\n <div style=\"margin-bottom:8px;\">\n <div style=\"font-family:var(--font-mono);font-size:9.5px;color:var(--ink-2);margin-bottom:4px;\">SELECT REAL CITADEL SCENARIO:</div>\n <div class=\"preset-chips\">\n <button class=\"chip-btn mini-btn active\" onclick=\"loadScenario(0, this)\">Hearthwynd Redesign</button>\n <button class=\"chip-btn mini-btn\" onclick=\"loadScenario(1, this)\">Desktop Buddies Rig</button>\n <button class=\"chip-btn mini-btn\" onclick=\"loadScenario(2, this)\">Scene Convert Kit</button>\n </div>\n </div>\n <div class=\"pipeline-steps\" id=\"review-steps-list\"></div>\n </div>\n </div>\n\n <!-- Right: Staged Private Review Page + Severian Approval Gate -->\n <div class=\"panel-box\">\n <div class=\"panel-header\">\n <span class=\"panel-title\" id=\"rev-page-url\">PRIVATE REVIEW PAGE // http://citadel.local:4410/review/hearthwynd-v4</span>\n <span class=\"hazard-pill\" id=\"rev-gate-badge\">AWAITING SEVERIAN</span>\n </div>\n\n <div id=\"rev-stage-detail\" style=\"flex:1;display:flex;flex-direction:column;gap:10px;margin-bottom:10px;\"></div>\n\n <div class=\"approve-bar\">\n <div>\n <div style=\"font-family:var(--font-mono);font-size:10.5px;font-weight:700;color:var(--ink-0);\">\n HUMAN GATEKEEPER // SEVERIAN'S SIGN-OFF\n </div>\n <div style=\"font-family:var(--font-mono);font-size:9.5px;color:var(--ink-1);\" id=\"approve-status-text\">\n No session can deploy or publish a post without explicit approval here.\n </div>\n </div>\n <div style=\"display:flex;gap:8px;\">\n <button class=\"action-btn btn-reject\" onclick=\"severianDecision('reject')\">✕ REQUEST REVISION</button>\n <button class=\"action-btn btn-approve\" onclick=\"severianDecision('approve')\">✓ APPROVE DEPLOY</button>\n </div>\n </div>\n </div>\n </div>\n </section>\n\n <!-- ===================================================================== -->\n <!-- MODE 03: 3D PIPELINE & SCENE CONVERT INTERACTIVE LAB -->\n <!-- ===================================================================== -->\n <section class=\"workspace-deck\" id=\"mode-sandbox\">\n <div class=\"lab-grid\">\n <!-- Left Lab: Scene Convert Interactive Layer Decomposer -->\n <div class=\"lab-card\">\n <div class=\"panel-header\" style=\"margin-bottom:2px;\">\n <span class=\"panel-title\">SCENE CONVERT // IMAGE-SCENE LAYER CONVERTER</span>\n <span style=\"font-family:var(--font-mono);font-size:9.5px;color:var(--accent);\">OPUS 5.5 + FABLE 5.2</span>\n </div>\n <p style=\"font-size:11.5px;color:var(--ink-1);\">\n Drag the decomposition slider to inspect how <strong>Scene Convert</strong> splits a composite image-scene file into depth planes, lighting maps, and vector decal layers:\n </p>\n <div style=\"position:relative;height:220px;background:#07080a;border:1px solid var(--border-strong);overflow:hidden;\">\n <canvas id=\"scene-convert-canvas\" style=\"width:100%;height:100%;display:block;\"></canvas>\n </div>\n <div style=\"display:flex;align-items:center;gap:12px;font-family:var(--font-mono);font-size:10.5px;\">\n <span>COMPOSITE</span>\n <input type=\"range\" id=\"scene-explode-slider\" min=\"0\" max=\"100\" value=\"55\" style=\"flex:1;accent-color:var(--accent);\" oninput=\"drawSceneConvert()\" />\n <span>EXPLODED SCENE LAYERS (4)</span>\n </div>\n </div>\n\n <!-- Right Lab: Decal-Pack Design Language Specimen Generator -->\n <div class=\"lab-card\">\n <div class=\"panel-header\" style=\"margin-bottom:2px;\">\n <span class=\"panel-title\">DECAL-PACK DESIGN SYSTEM // SPECIMEN GENERATOR</span>\n <span style=\"font-family:var(--font-mono);font-size:9.5px;color:var(--accent-3);\">FABLE 5.2 + GPT-6-ASTRA</span>\n </div>\n <p style=\"font-size:11.5px;color:var(--ink-1);\">\n Fable 5.2 built a cohesive visual language from a decal pack, critiqued on every pass by GPT-6-Astra. Customize a live decal telemetry plate below:\n </p>\n <div style=\"position:relative;height:220px;background:#07080a;border:1px solid var(--border-strong);overflow:hidden;\">\n <canvas id=\"decal-specimen-canvas\" style=\"width:100%;height:100%;display:block;\"></canvas>\n </div>\n <div style=\"display:flex;gap:6px;flex-wrap:wrap;justify-content:space-between;\">\n <div style=\"display:flex;gap:5px;\">\n <button class=\"mini-btn active\" onclick=\"cycleDecalStamp(0, this)\">STAMP: CITADEL-01</button>\n <button class=\"mini-btn\" onclick=\"cycleDecalStamp(1, this)\">STAMP: AVALON-BLOOM</button>\n <button class=\"mini-btn\" onclick=\"cycleDecalStamp(2, this)\">STAMP: CLAVIGER-421M</button>\n </div>\n <button class=\"mini-btn active\" onclick=\"randomizeDecalSeed()\">↻ MUTATE DECAL SEED</button>\n </div>\n </div>\n </div>\n </section>\n\n <!-- ===================================================================== -->\n <!-- MODE 04: ALL 9 PUBLIC PROJECTS & MODEL FINGERPRINTS -->\n <!-- ===================================================================== -->\n <section class=\"workspace-deck\" id=\"mode-projects\">\n <div style=\"padding:10px 14px 0;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;\">\n <div style=\"font-family:var(--font-mono);font-size:10.5px;color:var(--ink-1);\">\n FILTER 9 PUBLIC BUILDS BY MODEL CONTRIBUTION:\n </div>\n <div class=\"preset-chips\" id=\"proj-filter-bar\">\n <button class=\"chip-btn mini-btn active\" onclick=\"filterProjects('all', this)\">ALL (9)</button>\n <button class=\"chip-btn mini-btn\" onclick=\"filterProjects('Opus 5.5', this)\">Opus 5.5</button>\n <button class=\"chip-btn mini-btn\" onclick=\"filterProjects('Sonnet 5.5', this)\">Sonnet 5.5</button>\n <button class=\"chip-btn mini-btn\" onclick=\"filterProjects('Fable 5.2', this)\">Fable 5.2</button>\n <button class=\"chip-btn mini-btn\" onclick=\"filterProjects('GPT-6-Astra', this)\">GPT-6-Astra</button>\n <button class=\"chip-btn mini-btn\" onclick=\"filterProjects('GPT-6.1-Sol', this)\">GPT-6.1-Sol</button>\n <button class=\"chip-btn mini-btn\" onclick=\"filterProjects('Claviger-421M', this)\">Claviger-421M</button>\n </div>\n </div>\n <div class=\"projects-matrix\" id=\"projects-grid\"></div>\n </section>\n\n <!-- Bottom Strip: Baldanders Redacted Agent Transcript Stream -->\n <footer class=\"baldanders-strip\" id=\"baldanders-footer\">\n <div style=\"display:flex;align-items:center;gap:8px;\">\n <span class=\"hazard-pill\" style=\"background:var(--bg-3);color:var(--ink-0);border:1px solid var(--border-strong);\">\n BALDANDERS.SEVERIAN.DEV\n </span>\n <span style=\"color:var(--ink-2);\">REDACTED TRANSCRIPT:</span>\n </div>\n <div class=\"redact-stream\" id=\"redact-log-line\">\n [OPUS-5.5 → SOL-6.1] Staged <span class=\"redact-block\" title=\"Hover to unmask\">10.0.42.18:4410/rev/88</span> for Hearthwynd; Claviger filtered <span class=\"redact-block\" title=\"Hover to unmask\">142 noise pings</span>; Astra verified <span class=\"redact-block\" title=\"Hover to unmask\">15.8:1 AAA contrast</span>. Awaiting Severian sign-off.\n </div>\n <div style=\"display:flex;gap:5px;\">\n <button class=\"mini-btn\" onclick=\"cycleTranscript()\">NEXT LOG ▸</button>\n <button class=\"mini-btn\" id=\"declassify-btn\" onclick=\"toggleDeclassify()\">UNMASK REDACTIONS</button>\n </div>\n </footer>\n\n <!-- Embed Code Drawer -->\n <div class=\"embed-drawer\" id=\"embed-drawer\">\n <div style=\"display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;\">\n <strong style=\"color:var(--accent);\">DROP-IN POST EMBED SNIPPET (SELF-CONTAINED IFRAME):</strong>\n <button class=\"mini-btn active\" onclick=\"copyEmbedSnippet(this)\">COPY SNIPPET</button>\n </div>\n <div class=\"code-output\" id=\"embed-snippet-code\"><iframe src=\"/embeds/citadel-embed.html\" width=\"100%\" height=\"760\" style=\"border:none;border-radius:4px;overflow:hidden;\" loading=\"lazy\" title=\"Severian's Citadel — Live Model Architecture\"></iframe></div>\n </div>\n</div>\n\n<script>\n/* ==========================================================================\n CITADEL INTERACTIVE ENGINE (Zero External Dependencies)\n ========================================================================== */\n\nlet audioEnabled = false;\nlet audioCtx = null;\n\nfunction playTick(freq = 520, duration = 0.035, type = 'triangle') {\n if (!audioEnabled) return;\n try {\n if (!audioCtx) audioCtx = new (window.AudioContext || window.webkitAudioContext)();\n const osc = audioCtx.createOscillator();\n const gain = audioCtx.createGain();\n osc.type = type;\n osc.frequency.setValueAtTime(freq, audioCtx.currentTime);\n gain.gain.setValueAtTime(0.06, audioCtx.currentTime);\n gain.gain.exponentialRampToValueAtTime(0.001, audioCtx.currentTime + duration);\n osc.connect(gain);\n gain.connect(audioCtx.destination);\n osc.start();\n osc.stop(audioCtx.currentTime + duration);\n } catch (e) {}\n}\n\nfunction toggleAudio() {\n audioEnabled = !audioEnabled;\n const btn = document.getElementById('audio-toggle-btn');\n btn.textContent = audioEnabled ? 'SYNTH: ON' : 'SYNTH: OFF';\n btn.classList.toggle('active', audioEnabled);\n if (audioEnabled) playTick(880, 0.06, 'sine');\n}\n\nfunction setTheme(theme, btn) {\n document.documentElement.setAttribute('data-theme', theme);\n document.querySelectorAll('.decal-controls .mini-btn').forEach(b => {\n if (b.textContent.startsWith('DECAL:') || b.textContent.includes('BLOOM') || b.textContent.includes('HEARTHWYND') || b.textContent.includes('BALDANDERS')) {\n b.classList.remove('active');\n }\n });\n if (btn) btn.classList.add('active');\n playTick(640, 0.04);\n drawSceneConvert();\n drawDecalSpecimen();\n}\n\nfunction toggleAstraCritique() {\n const root = document.getElementById('citadel-root');\n const on = root.classList.toggle('astra-critique-on');\n const btn = document.getElementById('astra-toggle-btn');\n btn.textContent = on ? 'ASTRA REDLINE: ON' : 'ASTRA REDLINE: OFF';\n btn.classList.toggle('active', on);\n playTick(on ? 960 : 420, 0.05);\n}\n\nfunction toggleEmbedDrawer() {\n document.getElementById('embed-drawer').classList.toggle('open');\n playTick(500, 0.04);\n}\n\nfunction copyEmbedSnippet(btn) {\n const txt = document.getElementById('embed-snippet-code').textContent;\n if (navigator.clipboard) navigator.clipboard.writeText(txt);\n btn.textContent = 'COPIED ✓';\n setTimeout(() => { btn.textContent = 'COPY SNIPPET'; }, 1600);\n}\n\nfunction switchMode(modeId, btn) {\n document.querySelectorAll('.workspace-deck').forEach(el => el.classList.remove('active'));\n document.getElementById('mode-' + modeId).classList.add('active');\n document.querySelectorAll('.mode-tab').forEach(b => b.classList.remove('active'));\n if (btn) btn.classList.add('active');\n playTick(700, 0.045);\n if (modeId === 'sandbox') {\n setTimeout(() => {\n drawSceneConvert();\n drawDecalSpecimen();\n }, 30);\n }\n}\n\n/* ==========================================================================\n 1. DESKTOP BUDDIES RAIL ENGINE (Dedicated Non-Overlapping Center Track)\n ========================================================================== */\nconst buddyCanvas = document.getElementById('buddy-canvas');\nconst bCtx = buddyCanvas.getContext('2d');\nconst buddies = [\n { name: 'TALOS-01', x: 50, vx: 0.75, color: '#ff5500', hop: 0, quote: 'TALOS-01: \"Coordinating 8 Claude Code sessions via Opus 5.5!\"' },\n { name: 'CLAV-421M', x: 210, vx: -0.6, color: '#b8ff01', hop: 0, quote: 'CLAV-421M: \"Triaged 1,420 Discord messages at 0.8ms latency!\"' }\n];\nconst buddyQuotes = [\n 'TALOS-01: \"Desktop Buddies is open-source! Built with Opus 5.5 + Fable 5.2.\"',\n 'CLAV-421M: \"Holding the keys at the Discord gate—only real tasks wake Opus.\"',\n 'BLOOM-BOT: \"GPT-6-Astra just critiqued my pixel kerning on Into Bloom!\"',\n 'SOL-GUARD: \"GPT-6.1-Sol verified every deployment claim against the AST.\"'\n];\n\nfunction spawnBuddy() {\n const colors = ['#00e5ff', '#b388ff', '#ffb300', '#00e676', '#ff5500'];\n const names = ['BLOOM-02', 'SOL-WATCH', 'ASTRA-EYE', 'HEARTH-IMP'];\n const idx = buddies.length % names.length;\n buddies.push({\n name: names[idx],\n x: 40 + Math.random() * 180,\n vx: (Math.random() > 0.5 ? 1 : -1) * (0.55 + Math.random() * 0.5),\n color: colors[buddies.length % colors.length],\n hop: 7,\n quote: buddyQuotes[buddies.length % buddyQuotes.length]\n });\n document.getElementById('buddy-speech').textContent = buddies[buddies.length - 1].quote;\n playTick(840, 0.06);\n}\n\nbuddyCanvas.addEventListener('click', (e) => {\n const rect = buddyCanvas.getBoundingClientRect();\n const clickX = e.clientX - rect.left;\n buddies.forEach(b => {\n b.hop = 8;\n b.vx = clickX > b.x ? Math.abs(b.vx) + 0.3 : -Math.abs(b.vx) - 0.3;\n });\n document.getElementById('buddy-speech').textContent = buddyQuotes[Math.floor(Math.random() * buddyQuotes.length)];\n playTick(920, 0.05);\n});\n\nfunction renderBuddies() {\n const w = buddyCanvas.clientWidth || 360;\n const h = buddyCanvas.clientHeight || 30;\n if (buddyCanvas.width !== w || buddyCanvas.height !== h) {\n buddyCanvas.width = w;\n buddyCanvas.height = h;\n }\n bCtx.clearRect(0, 0, w, h);\n\n // Subtle rail tick marks\n bCtx.fillStyle = 'rgba(243,240,230,0.12)';\n for (let rx = 16; rx < w - 12; rx += 24) {\n bCtx.fillRect(rx, h - 4, 1, 3);\n }\n\n const t = performance.now() * 0.008;\n buddies.forEach((b, i) => {\n b.x += b.vx;\n if (b.x < 14) { b.x = 14; b.vx = Math.abs(b.vx); }\n if (b.x > w - 14) { b.x = w - 14; b.vx = -Math.abs(b.vx); }\n if (b.hop > 0) b.hop *= 0.88;\n\n const bob = Math.abs(Math.sin(t + i * 1.7)) * 2.5 + b.hop;\n const bx = Math.round(b.x);\n const by = Math.round(h - 12 - bob);\n\n // Shadow\n bCtx.fillStyle = 'rgba(0,0,0,0.45)';\n bCtx.fillRect(bx - 5, h - 3, 12, 2);\n\n // Pixel Construct Body\n bCtx.fillStyle = b.color;\n bCtx.fillRect(bx - 5, by - 7, 12, 9);\n // Antenna\n bCtx.fillRect(bx, by - 10, 2, 3);\n // Visor Eyes\n bCtx.fillStyle = '#090a0c';\n const dir = b.vx >= 0 ? 1 : -1;\n bCtx.fillRect(bx - 3 + dir, by - 5, 2, 2);\n bCtx.fillRect(bx + 2 + dir, by - 5, 2, 2);\n // Feet\n bCtx.fillStyle = '#f3f0e6';\n const step = Math.sin(t * 2 + i) > 0 ? 1 : -1;\n bCtx.fillRect(bx - 3 + step, by + 2, 2, 2);\n bCtx.fillRect(bx + 2 - step, by + 2, 2, 2);\n });\n}\n\n/* ==========================================================================\n 2. CITADEL TOPOLOGY SIGNAL BUS CANVAS\n ========================================================================== */\nconst topoCanvas = document.getElementById('topology-canvas');\nconst tCtx = topoCanvas.getContext('2d');\nlet selectedModelKey = 'overview';\n\nconst topoNodes = [\n { id: 'claviger', label: 'CLAVIGER', sub: 'Laya-421M Gate', x: 0.11, y: 0.50, color: '#b8ff01' },\n { id: 'ledger', label: 'TO-DO LEDGER', sub: 'Shared State', x: 0.29, y: 0.50, color: '#f3f0e6', isHub: true },\n { id: 'opus', label: 'OPUS 5.5', sub: 'Lead + 8 Sessions', x: 0.50, y: 0.50, color: '#ff5500' },\n { id: 'fable', label: 'FABLE 5.2', sub: 'Decal + 3D Pipe', x: 0.50, y: 0.19, color: '#b388ff' },\n { id: 'sonnet', label: 'SONNET 5.5', sub: 'Rebase + Tests', x: 0.50, y: 0.81, color: '#00e676' },\n { id: 'astra', label: 'GPT-6-ASTRA', sub: 'Design Critique', x: 0.72, y: 0.26, color: '#00e5ff' },\n { id: 'sol', label: 'GPT-6.1-SOL', sub: 'Claim vs Code', x: 0.72, y: 0.74, color: '#ffb300' },\n { id: 'gate', label: 'SEVERIAN', sub: 'Review & Sign-Off', x: 0.90, y: 0.50, color: '#ff2a55', isGate: true }\n];\n\nconst topoEdges = [\n ['claviger', 'ledger'],\n ['ledger', 'opus'],\n ['opus', 'fable'],\n ['opus', 'sonnet'],\n ['fable', 'astra'],\n ['opus', 'astra'],\n ['sonnet', 'sol'],\n ['opus', 'sol'],\n ['astra', 'gate'],\n ['sol', 'gate']\n];\n\nconst packets = [];\nfor (let i = 0; i < 18; i++) {\n const edge = topoEdges[i % topoEdges.length];\n packets.push({\n from: edge[0],\n to: edge[1],\n t: Math.random(),\n speed: 0.004 + Math.random() * 0.005\n });\n}\n\nfunction triggerTaskBurst() {\n topoEdges.forEach(edge => {\n for (let k = 0; k < 2; k++) {\n packets.push({\n from: edge[0],\n to: edge[1],\n t: Math.random() * 0.25,\n speed: 0.011 + Math.random() * 0.006,\n burst: true\n });\n }\n });\n document.getElementById('bus-status').textContent = 'BUS: TASK BURST DISPATCHED ⚡';\n playTick(780, 0.07);\n setTimeout(() => {\n document.getElementById('bus-status').textContent = 'BUS: 60FPS LIVE';\n }, 1800);\n}\n\ntopoCanvas.addEventListener('click', (e) => {\n const rect = topoCanvas.getBoundingClientRect();\n const mx = (e.clientX - rect.left) / rect.width;\n const my = (e.clientY - rect.top) / rect.height;\n let closest = null;\n let minDist = 0.09;\n topoNodes.forEach(n => {\n const d = Math.hypot(mx - n.x, my - n.y);\n if (d < minDist) { minDist = d; closest = n; }\n });\n if (closest) {\n if (closest.id === 'gate') {\n switchMode('review', document.querySelectorAll('.mode-tab')[1]);\n return;\n }\n const card = document.querySelector(`.model-card[data-model=\"${closest.id}\"]`);\n if (card) selectModel(closest.id, card);\n }\n});\n\nfunction renderTopology() {\n const w = topoCanvas.clientWidth || 560;\n const h = topoCanvas.clientHeight || 176;\n if (topoCanvas.width !== w || topoCanvas.height !== h) {\n topoCanvas.width = w;\n topoCanvas.height = h;\n }\n tCtx.clearRect(0, 0, w, h);\n\n const nodeMap = {};\n topoNodes.forEach(n => { nodeMap[n.id] = { ...n, px: n.x * w, py: n.y * h }; });\n\n // Draw Edges\n topoEdges.forEach(([a, b]) => {\n const na = nodeMap[a];\n const nb = nodeMap[b];\n const isSelectedEdge = (a === selectedModelKey || b === selectedModelKey);\n tCtx.strokeStyle = isSelectedEdge ? 'rgba(255, 85, 0, 0.6)' : 'rgba(243, 240, 230, 0.14)';\n tCtx.lineWidth = isSelectedEdge ? 2 : 1.2;\n tCtx.beginPath();\n tCtx.moveTo(na.px, na.py);\n tCtx.lineTo(nb.px, nb.py);\n tCtx.stroke();\n });\n\n // Update & Draw Packets\n for (let i = packets.length - 1; i >= 0; i--) {\n const p = packets[i];\n p.t += p.speed;\n if (p.t >= 1) {\n if (p.burst) { packets.splice(i, 1); continue; }\n p.t = 0;\n }\n const na = nodeMap[p.from];\n const nb = nodeMap[p.to];\n const x = na.px + (nb.px - na.px) * p.t;\n const y = na.py + (nb.py - na.py) * p.t;\n tCtx.fillStyle = nb.color;\n tCtx.beginPath();\n tCtx.arc(x, y, p.burst ? 3.4 : 2.2, 0, Math.PI * 2);\n tCtx.fill();\n }\n\n // Draw Nodes\n topoNodes.forEach(n => {\n const pt = nodeMap[n.id];\n const isSel = n.id === selectedModelKey;\n\n tCtx.fillStyle = '#090a0c';\n tCtx.strokeStyle = isSel ? '#f3f0e6' : n.color;\n tCtx.lineWidth = isSel ? 2.4 : 1.4;\n\n const bw = 90;\n const bh = 32;\n tCtx.fillRect(pt.px - bw / 2, pt.py - bh / 2, bw, bh);\n tCtx.strokeRect(pt.px - bw / 2, pt.py - bh / 2, bw, bh);\n\n // Top color accent strip\n tCtx.fillStyle = n.color;\n tCtx.fillRect(pt.px - bw / 2, pt.py - bh / 2, bw, 2.5);\n\n tCtx.fillStyle = '#f3f0e6';\n tCtx.font = '700 9px \"JetBrains Mono\", monospace';\n tCtx.textAlign = 'center';\n tCtx.fillText(n.label, pt.px, pt.py - 1);\n\n tCtx.fillStyle = '#9e9a90';\n tCtx.font = '8px \"JetBrains Mono\", monospace';\n tCtx.fillText(n.sub, pt.px, pt.py + 10);\n });\n}\n\nfunction selectModel(modelKey, cardEl) {\n selectedModelKey = modelKey;\n document.querySelectorAll('.model-card').forEach(c => c.classList.remove('selected'));\n if (cardEl) cardEl.classList.add('selected');\n\n const quadBtn = document.getElementById('btn-quad-overview');\n if (quadBtn) quadBtn.classList.toggle('active', modelKey === 'overview');\n\n document.querySelectorAll('.wb-view').forEach(v => v.classList.remove('active'));\n const target = document.getElementById('wb-' + modelKey);\n if (target) target.classList.add('active');\n\n document.getElementById('wb-active-indicator').textContent =\n modelKey === 'overview' ? 'ALL NODES' : 'NODE: ' + modelKey.toUpperCase();\n document.getElementById('wb-panel-heading').textContent =\n modelKey === 'overview'\n ? 'LIVE CAPABILITY WORKBENCH // 4-QUADRANT MISSION MONITOR'\n : 'LIVE CAPABILITY WORKBENCH // ' + modelKey.toUpperCase() + ' SANDBOX';\n playTick(620, 0.04);\n}\n\n/* ==========================================================================\n 3. WORKBENCH MINIGAMES & REAL-TIME SANDBOXES\n ========================================================================== */\n\n// 3A. OPUS 5.5 SESSIONS\nconst opusSessions = [\n {\n name: 'from-avalon.com',\n branch: 'feat/community-portal-kit',\n ledgerId: 'CIT-104',\n reviewUrl: 'http://citadel.local:4401/review/avalon-hub',\n tasks: [\n '[✓] Built community showcase directory & member crest loader',\n '[✓] Wired links to collab sites Into Bloom & Hearthwynd',\n '[✓] Staged private review surface with Astra + Sol sign-off badges'\n ]\n },\n {\n name: 'Into Bloom (Avalon Collab)',\n branch: 'feat/botanical-decal-grid',\n ledgerId: 'CIT-112',\n reviewUrl: 'http://citadel.local:4402/review/into-bloom',\n tasks: [\n '[✓] Integrated Fable 5.2 botanical shader + typography tokens',\n '[✓] Pre-rendered responsive artwork plates & gallery metadata',\n '[✓] Awaiting Severian approval on private review page'\n ]\n },\n {\n name: 'Hearthwynd (Avalon Collab)',\n branch: 'fix/safari-ember-canvas',\n ledgerId: 'CIT-119',\n reviewUrl: 'http://citadel.local:4403/review/hearthwynd',\n tasks: [\n '[✓] Patched WebGL depth-mask clipping reported via Claviger Discord triage',\n '[✓] Verified 60fps mobile budget & Brotli static server kit',\n '[✓] Ready for Severian deploy sign-off'\n ]\n },\n {\n name: 'Desktop Buddies (OSS Pet Maker)',\n branch: 'feat/custom-sprite-rig-export',\n ledgerId: 'CIT-127',\n reviewUrl: 'http://citadel.local:4404/review/desktop-buddies',\n tasks: [\n '[✓] Built state-machine rig editor (idle, walk, hop, inspect)',\n '[✓] Added zero-dependency sprite sheet bundler',\n '[✓] 164 unit tests green via Sonnet 5.5'\n ]\n },\n {\n name: 'Scene Convert',\n branch: 'feat/16bit-layer-decomposer',\n ledgerId: 'CIT-131',\n reviewUrl: 'http://citadel.local:4405/review/scene-convert',\n tasks: [\n '[✓] Implemented streaming converter for multi-layer image-scene files',\n '[✓] Added depth-map & decal-layer JSON manifest output',\n '[✓] Audited memory bounds with GPT-6.1-Sol'\n ]\n },\n {\n name: 'citadel.severian.dev/projects',\n branch: 'main-sync-ledger',\n ledgerId: 'CIT-140',\n reviewUrl: 'http://citadel.local:4406/review/citadel-tracker',\n tasks: [\n '[✓] Synced shared to-do ledger across all 8 active Claude Code sessions',\n '[✓] Published redacted transcript links to baldanders.severian.dev',\n '[✓] Staged essay draft preview for talos.severian.dev'\n ]\n }\n];\nlet currentOpusIdx = 0;\n\nfunction selectOpusSession(idx, btn) {\n currentOpusIdx = idx;\n document.querySelectorAll('#opus-session-btns .chip-btn').forEach(b => b.classList.remove('active'));\n if (btn) btn.classList.add('active');\n renderOpusTerminal();\n playTick(580, 0.03);\n}\n\nfunction renderOpusTerminal() {\n const s = opusSessions[currentOpusIdx];\n document.getElementById('opus-terminal').innerHTML =\n `<div style=\"color:var(--accent);font-weight:700;\">SESSION #0${currentOpusIdx + 1} // PROJECT: ${s.name.toUpperCase()}</div>` +\n `<div>LEDGER ID: <span style=\"color:var(--ink-0)\">${s.ledgerId}</span> · BRANCH: <span style=\"color:var(--accent-2)\">${s.branch}</span></div>` +\n `<div style=\"margin:6px 0;color:var(--ink-0);\">${s.tasks.join('<br>')}</div>` +\n `<div style=\"color:var(--accent-3);\">PRIVATE REVIEW PAGE → ${s.reviewUrl} [GATE: LOCKED UNTIL SEVERIAN APPROVES]</div>`;\n}\nrenderOpusTerminal();\n\nfunction rebalanceLedger() {\n currentOpusIdx = (currentOpusIdx + 1) % opusSessions.length;\n const btns = document.querySelectorAll('#opus-session-btns .chip-btn');\n selectOpusSession(currentOpusIdx, btns[currentOpusIdx]);\n triggerTaskBurst();\n}\n\n// 3B. CLAVIGER (Laya-421M-Claviger-v0) DISCORD TRIAGE ENGINE\nfunction setClavigerSample(text) {\n document.getElementById('claviger-input').value = text;\n runClavigerInference();\n playTick(750, 0.04);\n}\n\nfunction runClavigerInference() {\n const raw = (document.getElementById('claviger-input').value || '').trim();\n const low = raw.toLowerCase();\n\n let scores = [\n { label: 'OPUS 5.5 (Bug / Build)', p: 0.12, color: '#ff5500', route: 'session:hearthwynd-or-core' },\n { label: 'FABLE 5.2 (3D / Design)', p: 0.10, color: '#b388ff', route: 'session:3d-pipeline-design' },\n { label: 'SONNET 5.5 (Tests / Rebase)', p: 0.08, color: '#00e676', route: 'session:ci-test-harness' },\n { label: 'BALDANDERS (Transcript Log)', p: 0.05, color: '#00e5ff', route: 'archive:baldanders' },\n { label: 'IGNORE (Community Chatter)', p: 0.15, color: '#76746d', route: 'drop:no-agent-wake' }\n ];\n\n if (/(bug|break|overlap|crash|nan|error|fix|safari|convert|16-bit|layer)/.test(low)) {\n scores[0].p += 0.68;\n scores[2].p += 0.14;\n } else if (/(3d|mesh|gltf|shader|normal|decal|design|illustr|bloom|color)/.test(low)) {\n scores[1].p += 0.72;\n scores[0].p += 0.12;\n } else if (/(test|rebase|branch|ci|convo)/.test(low)) {\n scores[2].p += 0.74;\n } else if (/(gm|lol|nice|loving|hello|hey|cool|wow)/.test(low) || raw.length < 12) {\n scores[4].p += 0.78;\n } else {\n scores[0].p += 0.45;\n scores[3].p += 0.25;\n }\n\n const sum = scores.reduce((a, b) => a + b.p, 0);\n scores.forEach(s => { s.p = +(s.p / sum).toFixed(3); });\n scores.sort((a, b) => b.p - a.p);\n\n const barsEl = document.getElementById('claviger-bars');\n barsEl.innerHTML = scores.map(s => `\n <div class=\"logit-row\">\n <span style=\"color:var(--ink-0);\">${s.label}</span>\n <div class=\"logit-track\">\n <div class=\"logit-fill\" style=\"width:${Math.round(s.p * 100)}%;background:${s.color}\"></div>\n </div>\n <span style=\"text-align:right;color:${s.color};font-weight:700;\">${(s.p * 100).toFixed(1)}%</span>\n </div>\n `).join('');\n\n const top = scores[0];\n document.getElementById('claviger-json').innerHTML =\n `<span style=\"color:var(--accent-2);\">// finis-est/Laya-421M-Claviger-v0 · 0.78ms local inference</span><br>` +\n `{ \"verdict\": \"<strong style=\"color:${top.color}\">${top.label}</strong>\", \"confidence\": ${top.p}, \"route\": \"${top.route}\", \"wake_frontier_session\": ${top.route.startsWith('drop') ? 'false (100% frontier tokens saved)' : 'true → appended to Shared To-Do Ledger'} }`;\n}\nrunClavigerInference();\n\n// 3C. FABLE 5.2 INTERACTIVE 3D PIPELINE ENGINE (Renders in both 4-Up Monitor and Full Fable View)\nconst f3dCanvas = document.getElementById('fable-3d-canvas');\nconst fCtx = f3dCanvas.getContext('2d');\nconst q3dCanvas = document.getElementById('quad-3d-canvas');\nconst qCtx = q3dCanvas.getContext('2d');\n\nlet fableMeshType = 'obelisk';\nlet fableShaderType = 'decal';\nlet rotX = 0.42;\nlet rotY = 0.65;\nlet isDragging3D = false;\nlet lastMouseX = 0, lastMouseY = 0;\n\nf3dCanvas.addEventListener('mousedown', e => {\n isDragging3D = true;\n lastMouseX = e.clientX;\n lastMouseY = e.clientY;\n});\nwindow.addEventListener('mouseup', () => { isDragging3D = false; });\nwindow.addEventListener('mousemove', e => {\n if (!isDragging3D) return;\n rotY += (e.clientX - lastMouseX) * 0.012;\n rotX += (e.clientY - lastMouseY) * 0.012;\n lastMouseX = e.clientX;\n lastMouseY = e.clientY;\n});\n\nfunction setFableMesh(type, btn) {\n fableMeshType = type;\n btn.parentElement.querySelectorAll('.mini-btn').forEach(b => b.classList.remove('active'));\n btn.classList.add('active');\n playTick(680, 0.04);\n}\n\nfunction setFableShader(shader, btn) {\n fableShaderType = shader;\n btn.parentElement.querySelectorAll('.mini-btn').forEach(b => b.classList.remove('active'));\n btn.classList.add('active');\n playTick(760, 0.04);\n}\n\nfunction buildMeshGeometry(type, time) {\n const verts = [];\n const faces = [];\n\n if (type === 'obelisk') {\n verts.push(\n [0, -1.35, 0],\n [-0.45, -0.7, -0.45], [0.45, -0.7, -0.45], [0.45, -0.7, 0.45], [-0.45, -0.7, 0.45],\n [-0.7, 1.0, -0.7], [0.7, 1.0, -0.7], [0.7, 1.0, 0.7], [-0.7, 1.0, 0.7],\n [0, 1.3, 0]\n );\n faces.push(\n [0,1,2], [0,2,3], [0,3,4], [0,4,1],\n [1,5,6], [1,6,2], [2,6,7], [2,7,3], [3,7,8], [3,8,4], [4,8,5], [4,5,1],\n [9,6,5], [9,7,6], [9,8,7], [9,5,8]\n );\n const segs = 12;\n const baseIdx = verts.length;\n for (let i = 0; i < segs; i++) {\n const a = (i / segs) * Math.PI * 2 + time * 0.6;\n verts.push([Math.cos(a) * 1.15, -0.1 + Math.sin(a * 2) * 0.08, Math.sin(a) * 1.15]);\n verts.push([Math.cos(a) * 0.92, 0.08 + Math.sin(a * 2) * 0.08, Math.sin(a) * 0.92]);\n }\n for (let i = 0; i < segs; i++) {\n const ni = (i + 1) % segs;\n faces.push([baseIdx + i*2, baseIdx + ni*2, baseIdx + i*2 + 1]);\n faces.push([baseIdx + ni*2, baseIdx + ni*2 + 1, baseIdx + i*2 + 1]);\n }\n } else if (type === 'bloom') {\n const uSeg = 14, vSeg = 8;\n for (let u = 0; u < uSeg; u++) {\n const ua = (u / uSeg) * Math.PI * 2;\n for (let v = 0; v < vSeg; v++) {\n const va = (v / vSeg) * Math.PI * 2;\n const r = 0.38 + 0.08 * Math.sin(ua * 3 + time);\n const R = 0.85;\n const x = (R + r * Math.cos(va)) * Math.cos(ua);\n const y = r * Math.sin(va) * 1.3;\n const z = (R + r * Math.cos(va)) * Math.sin(ua);\n verts.push([x, y, z]);\n }\n }\n for (let u = 0; u < uSeg; u++) {\n const nu = (u + 1) % uSeg;\n for (let v = 0; v < vSeg; v++) {\n const nv = (v + 1) % vSeg;\n const a = u * vSeg + v;\n const b = nu * vSeg + v;\n const c = nu * vSeg + nv;\n const d = u * vSeg + nv;\n faces.push([a, b, c], [a, c, d]);\n }\n }\n } else if (type === 'buddy') {\n const boxes = [\n { cx: 0, cy: -0.25, cz: 0, sx: 0.65, sy: 0.55, sz: 0.55 },\n { cx: 0, cy: -0.95, cz: 0, sx: 0.12, sy: 0.25, sz: 0.12 },\n { cx: -0.35, cy: 0.65, cz: Math.sin(time * 3) * 0.2, sx: 0.2, sy: 0.35, sz: 0.25 },\n { cx: 0.35, cy: 0.65, cz: -Math.sin(time * 3) * 0.2, sx: 0.2, sy: 0.35, sz: 0.25 }\n ];\n boxes.forEach(bx => {\n const bi = verts.length;\n for (let dx of [-1, 1]) for (let dy of [-1, 1]) for (let dz of [-1, 1]) {\n verts.push([bx.cx + dx * bx.sx, bx.cy + dy * bx.sy, bx.cz + dz * bx.sz]);\n }\n const f = [\n [0,1,3,2], [4,6,7,5], [0,4,5,1], [2,3,7,6], [0,2,6,4], [1,5,7,3]\n ];\n f.forEach(q => {\n faces.push([bi+q[0], bi+q[1], bi+q[2]], [bi+q[0], bi+q[2], bi+q[3]]);\n });\n });\n } else {\n [-0.75, 0, 0.75].forEach((zPlane, idx) => {\n const bi = verts.length;\n const w = 1.05, h = 0.75;\n const shift = Math.sin(time + idx) * 0.1;\n verts.push([-w, -h + shift, zPlane], [w, -h + shift, zPlane], [w, h + shift, zPlane], [-w, h + shift, zPlane]);\n faces.push([bi, bi+1, bi+2], [bi, bi+2, bi+3]);\n });\n }\n return { verts, faces };\n}\n\nfunction draw3DSceneOnCanvas(canvas, ctx, scaleFactor = 1) {\n const w = canvas.clientWidth || 300;\n const h = canvas.clientHeight || 160;\n if (canvas.width !== w || canvas.height !== h) {\n canvas.width = w;\n canvas.height = h;\n }\n ctx.clearRect(0, 0, w, h);\n\n const t = performance.now() * 0.0015;\n const { verts, faces } = buildMeshGeometry(fableMeshType, t);\n const cosY = Math.cos(rotY), sinY = Math.sin(rotY);\n const cosX = Math.cos(rotX), sinX = Math.sin(rotX);\n\n // Draw subtle 3D floor grid\n ctx.strokeStyle = 'rgba(179, 136, 255, 0.12)';\n ctx.lineWidth = 1;\n for (let g = -1.5; g <= 1.5; g += 0.5) {\n const pts = [[-1.5, 1.35, g], [1.5, 1.35, g]].map(([x, y, z]) => {\n const x1 = x * cosY - z * sinY;\n const z1 = z * cosY + x * sinY;\n const y2 = y * cosX - z1 * sinX;\n const z2 = z1 * cosX + y * sinX;\n const fov = (230 * scaleFactor) / (3.5 + z2);\n return [w / 2 + x1 * fov, h / 2 + y2 * fov];\n });\n ctx.beginPath();\n ctx.moveTo(pts[0][0], pts[0][1]);\n ctx.lineTo(pts[1][0], pts[1][1]);\n ctx.stroke();\n }\n\n const proj = verts.map(([x, y, z]) => {\n const x1 = x * cosY - z * sinY;\n const z1 = z * cosY + x * sinY;\n const y2 = y * cosX - z1 * sinX;\n const z2 = z1 * cosX + y * sinX;\n const fov = (230 * scaleFactor) / (3.4 + z2);\n return {\n x: w / 2 + x1 * fov,\n y: h / 2 + y2 * fov,\n z: z2,\n wx: x1, wy: y2, wz: z2\n };\n });\n\n const sorted = faces.map((f, idx) => {\n const a = proj[f[0]], b = proj[f[1]], c = proj[f[2]];\n const zAvg = (a.z + b.z + c.z) / 3;\n const ux = b.wx - a.wx, uy = b.wy - a.wy, uz = b.wz - a.wz;\n const vx = c.wx - a.wx, vy = c.wy - a.wy, vz = c.wz - a.wz;\n let nx = uy * vz - uz * vy;\n let ny = uz * vx - ux * vz;\n let nz = ux * vy - uy * vx;\n const len = Math.hypot(nx, ny, nz) || 1;\n nx /= len; ny /= len; nz /= len;\n return { a, b, c, zAvg, nx, ny, nz, idx };\n }).sort((p, q) => q.zAvg - p.zAvg);\n\n sorted.forEach(tri => {\n ctx.beginPath();\n ctx.moveTo(tri.a.x, tri.a.y);\n ctx.lineTo(tri.b.x, tri.b.y);\n ctx.lineTo(tri.c.x, tri.c.y);\n ctx.closePath();\n\n const light = Math.max(0.18, (tri.nx * 0.4 - tri.ny * 0.6 - tri.nz * 0.68));\n if (fableShaderType === 'decal') {\n const isHighlight = (tri.idx % 7 === 0);\n ctx.fillStyle = isHighlight\n ? `rgba(255, 85, 0, ${0.48 + light * 0.5})`\n : `rgba(179, 136, 255, ${0.16 + light * 0.44})`;\n ctx.fill();\n ctx.strokeStyle = 'rgba(243, 240, 230, 0.3)';\n ctx.lineWidth = 0.8;\n ctx.stroke();\n } else if (fableShaderType === 'normal') {\n const r = Math.floor((tri.nx * 0.5 + 0.5) * 255);\n const g = Math.floor((tri.ny * 0.5 + 0.5) * 255);\n const b = Math.floor((-tri.nz * 0.5 + 0.5) * 255);\n ctx.fillStyle = `rgb(${r},${g},${b})`;\n ctx.fill();\n } else {\n ctx.strokeStyle = '#b8ff01';\n ctx.lineWidth = 1;\n ctx.stroke();\n }\n });\n\n return faces.length;\n}\n\nfunction renderFable3D() {\n if (!isDragging3D) rotY += 0.009;\n if (selectedModelKey === 'overview' && q3dCanvas) {\n draw3DSceneOnCanvas(q3dCanvas, qCtx, 0.72);\n } else if (selectedModelKey === 'fable' && f3dCanvas) {\n const triCount = draw3DSceneOnCanvas(f3dCanvas, fCtx, 1.0);\n document.getElementById('mesh-telemetry').textContent =\n `MESH: ${fableMeshType.toUpperCase()} · ${triCount} TRIS · SHADER: ${fableShaderType.toUpperCase()}`;\n }\n}\n\n// 3D. GPT-6-ASTRA CRITIQUE & LABELING WORKBENCH\nlet astraBatchCount = 142;\nfunction renderAstraWorkbench() {\n document.getElementById('astra-critique-box').innerHTML =\n `<div style=\"color:var(--accent-3);font-weight:700;\">[GPT-6-ASTRA // DESIGN CRITIQUE REPORT — HEARTHWYND & CITADEL]</div>` +\n `<div>1. <strong>Typography & Rhythm</strong>: Decal headers use tight -0.025em tracking; body copy set for rapid scanning across review surfaces.</div>` +\n `<div>2. <strong>Contrast Verification</strong>: Primary bone ink (#F3F0E6) on obsidian (#08090B) yields <strong>15.8:1 (WCAG AAA)</strong>.</div>` +\n `<div>3. <strong>Test Data Labeling</strong>: Labelled <strong>${astraBatchCount} multi-turn test samples</strong> today across 5 triage intents & 18 visual regression checkpoints.</div>`;\n}\nfunction runAstraLabelBatch() {\n astraBatchCount += 24;\n renderAstraWorkbench();\n playTick(880, 0.05);\n}\nrenderAstraWorkbench();\n\n// 3E. GPT-6.1-SOL ADVERSARIAL CLAIM-VS-CODE AUDITOR\nconst solAuditItems = [\n {\n claim: 'CLAIM #1: \"Claviger triage never wakes Opus 5.5 on community chatter\"',\n status: 'PASS',\n code: `// server-kit/triage-router.ts:48\\nif (verdict.route.startsWith('drop:')) {\\n metrics.inc('tokens_saved');\\n return res.status(204).end(); // Zero session wake\\n}`\n },\n {\n claim: 'CLAIM #2: \"All internal LAN IPs & tokens are redacted before publishing to baldanders.severian.dev\"',\n status: 'DRIFT',\n code: `// baldanders/redactor.ts:19\\n// SOL AUDIT WARNING: Regex catches IPv4 10.x.x.x\\n// but misses IPv6 link-local fe80:: addresses!\\nconst IP_RE = /\\\\b10\\\\.\\\\d+\\\\.\\\\d+\\\\.\\\\d+(:\\\\d+)?\\\\b/g;`\n },\n {\n claim: 'CLAIM #3: \"Every production deploy requires cryptographic sign-off token from Severian\"',\n status: 'PASS',\n code: `// citadel-gate/deploy.ts:112\\nif (!verifyHumanSignature(req.headers['x-severian-sig'])) {\\n throw new GateLockError('Unapproved deploy blocked');\\n}`\n }\n];\nlet selectedSolIdx = 1;\n\nfunction renderSolAudit() {\n const listEl = document.getElementById('sol-claims-list');\n listEl.innerHTML = `<div class=\"audit-col-title\">CLAIMS IN PR / DEPLOY KIT</div>` +\n solAuditItems.map((item, i) => `\n <div class=\"claim-item ${item.status === 'PASS' ? 'pass' : '[redacted: secret]'} ${i === selectedSolIdx ? 'active' : ''}\" onclick=\"selectSolClaim(${i})\">\n <div style=\"font-weight:700;color:${item.status === 'PASS' ? 'var(--ok)' : 'var(--danger)'}\">\n [${item.status === 'PASS' ? '✓ VERIFIED' : '⚠ CLAIM DRIFT'}]\n </div>\n <div style=\"color:var(--ink-0);margin-top:2px;\">${item.claim}</div>\n </div>\n `).join('');\n\n const cur = solAuditItems[selectedSolIdx];\n document.getElementById('sol-code-proof').innerHTML =\n `<div class=\"audit-col-title\">ACTUAL CODE AST // AUDITED BY GPT-6.1-SOL</div>` +\n `<pre style=\"white-space:pre-wrap;color:var(--ink-0);line-height:1.45;\">${cur.code}</pre>`;\n}\nfunction selectSolClaim(idx) {\n selectedSolIdx = idx;\n renderSolAudit();\n playTick(540, 0.04);\n}\nfunction patchSolDrift() {\n solAuditItems[1].status = 'PASS';\n solAuditItems[1].code = `// baldanders/redactor.ts:19 [PATCHED BY OPUS 5.5]\\n// SOL RE-AUDIT: Both IPv4 LAN and IPv6 fe80:: masked ✓\\nconst IP_RE = /(\\\\b10\\\\.\\\\d+\\\\.\\\\d+\\\\.\\\\d+(:\\\\d+)?\\\\b|fe80:[0-9a-f:]+)/gi;`;\n selectedSolIdx = 1;\n renderSolAudit();\n document.getElementById('sol-summary-status').textContent = '3/3 CLAIMS VERIFIED AGAINST CODE ✓';\n document.getElementById('sol-summary-status').style.color = 'var(--ok)';\n playTick(920, 0.07);\n}\nrenderSolAudit();\n\n// 3F. SONNET 5.5 REBASE & SYNTHETIC TEST CONVERSATION ENGINE\nfunction runSonnetRebase() {\n document.getElementById('sonnet-output').innerHTML =\n `<div style=\"color:var(--ok);font-weight:700;\">$ git rebase --onto main feat/hearthwynd-decal-kit</div>` +\n `<div>Rebasing (1/3) 8f21a0c.. Applied cleanly</div>` +\n `<div>Rebasing (2/3) c490e1b.. Applied cleanly</div>` +\n `<div>Rebasing (3/3) e109d44.. Applied cleanly</div>` +\n `<div style=\"margin-top:6px;color:var(--accent-2);\">Running test suite across 8 Citadel packages... 240/240 PASS (1.42s)</div>`;\n playTick(740, 0.05);\n}\nfunction generateSonnetConvo() {\n document.getElementById('sonnet-output').innerHTML =\n `<div style=\"color:var(--accent-3);font-weight:700;\">[SONNET 5.5 // SYNTHETIC TEST CONVERSATION #409 FOR CLAVIGER EVAL]</div>` +\n `<div><strong>User_A:</strong> \"yo the new Into Bloom header looks sick, btw on Firefox 132 the SVG mask flickers when scrolling fast\"</div>` +\n `<div><strong>Expected Triage Label:</strong> Mixed [Praise + Bug Report] → Must route to <code>session:into-bloom</code> (p=0.94) instead of dropping as chatter.</div>`;\n playTick(680, 0.05);\n}\nrunSonnetRebase();\n\n/* ==========================================================================\n 4. MODE 02: PRIVATE REVIEW SURFACE SIMULATOR\n ========================================================================== */\nconst scenarios = [\n {\n name: 'Hearthwynd Redesign (from-avalon.com Collab)',\n url: 'http://citadel.local:4410/review/hearthwynd-v4',\n diffCode: `// hearthwynd/server-kit/nginx-static.conf [OPUS 5.5 + SOL VERIFIED]\\nlocation /assets/decals/ {\\n brotli_static on;\\n add_header Cache-Control \"public, max-age=31536000, immutable\";\\n}`,\n steps: [\n { model: 'Claviger (Laya-421M)', role: 'Discord Triage', detail: 'Triaged bug & seasonal redesign request in #hearthwynd-dev (0.8ms, p=0.98) and appended item #CIT-119 to the Shared To-Do Ledger.' },\n { model: 'Opus 5.5 (Lead Session)', role: 'Ledger Coordination', detail: 'Claimed #CIT-119 from the shared ledger and dispatched Project Session #03 (hearthwynd) with server kit targets.' },\n { model: 'Fable 5.2', role: 'Visual Language & 3D', detail: 'Crafted ember-slate decal headers and a low-overhead procedural 3D ember particle rig for the hero banner.' },\n { model: 'GPT-6-Astra (Codex)', role: 'Design Critique & Data', detail: 'Critiqued mobile breakpoint rhythm and bumped caption contrast from 4.1:1 to 14.6:1 (AAA). Labelled 12 visual test snapshots.' },\n { model: 'Sonnet 5.5', role: 'Rebase & Test Suite', detail: 'Rebased branch onto main, ran 184 automated integration checks, and generated 10 synthetic browser test conversations.' },\n { model: 'GPT-6.1-Sol (Codex)', role: 'Claim vs Code Audit', detail: 'Audited PR claim \"Zero layout shift & Brotli precompression\" against nginx/server kit AST. All claims verified.' }\n ]\n },\n {\n name: 'Desktop Buddies — Open-Source Pet Maker Rig',\n url: 'http://citadel.local:4410/review/desktop-buddies-rig',\n diffCode: `// desktop-buddies/src/exporter/rig-pack.ts [SOL VERIFIED: ZERO NETWORK]\\nexport function exportSpriteAtlas(frames: Uint8ClampedArray[]): Blob {\\n return new Blob([packDeterministicPNG(frames)], { type: \"image/png\" });\\n}`,\n steps: [\n { model: 'Claviger (Laya-421M)', role: 'Discord Triage', detail: 'Routed community feature request for custom walk-cycle keyframes to the Desktop Buddies ledger queue.' },\n { model: 'Fable 5.2', role: '3D-to-2D Sprite Pipeline', detail: 'Ran 3D pipeline experiment projecting low-poly automaton meshes into crisp pixel-art sprite sheets.' },\n { model: 'Opus 5.5 (Project Session)', role: 'Tool & Kit Build', detail: 'Built the browser-based sprite rig inspector and zero-dependency export bundle.' },\n { model: 'GPT-6-Astra (Codex)', role: 'Design Critique', detail: 'Critiqued timeline scrubber ergonomics and decal badge hierarchy; labelled 20 animation test fixtures.' },\n { model: 'Sonnet 5.5', role: 'Mechanical Ops', detail: 'Rebased across 4 contributors and verified 100% deterministic sprite export hashes.' },\n { model: 'GPT-6.1-Sol (Codex)', role: 'Claim Verification', detail: 'Verified README claim \"Runs 100% offline with zero telemetry calls\" against bundle AST.' }\n ]\n },\n {\n name: 'Scene Convert — Multi-Layer Scene File Converter',\n url: 'http://citadel.local:4410/review/scene-convert-v2',\n diffCode: `// scene-convert/src/parser/depth16.ts [SOL VERIFIED: <128MB HEAP]\\nconst norm = Number.isFinite(raw16) ? (raw16 / 65535.0) : 0.0;\\ndepthPlane[idx] = Math.fround(norm);`,\n steps: [\n { model: 'Claviger (Laya-421M)', role: 'Discord Triage', detail: 'Flagged 16-bit channel NaN report from Discord and attached repro scene metadata to the ledger.' },\n { model: 'Opus 5.5 (Project Session)', role: 'Core Engine Build', detail: 'Implemented streaming 16-bit depth & decal layer parser with zero-copy typed arrays.' },\n { model: 'Fable 5.2', role: 'Scene Preview UI', detail: 'Designed exploded isometric layer preview surface using the decal-pack visual system.' },\n { model: 'GPT-6-Astra (Codex)', role: 'Critique & Test Data', detail: 'Labelled 32 edge-case corrupted scene files for automated regression testing.' },\n { model: 'Sonnet 5.5', role: 'Test Execution', detail: 'Executed full fuzzing harness & rebased release branch.' },\n { model: 'GPT-6.1-Sol (Codex)', role: 'Claim vs Code Audit', detail: 'Verified memory ceiling claim (<128MB heap on 4K scenes) against worker allocation code.' }\n ]\n }\n];\nlet curScenarioIdx = 0;\nlet curStepIdx = 5;\n\nfunction loadScenario(idx, btn) {\n curScenarioIdx = idx;\n curStepIdx = 5;\n if (btn) {\n btn.parentElement.querySelectorAll('.chip-btn').forEach(b => b.classList.remove('active'));\n btn.classList.add('active');\n }\n renderReviewSurface();\n playTick(660, 0.04);\n}\n\nfunction renderReviewSurface() {\n const sc = scenarios[curScenarioIdx];\n document.getElementById('rev-page-url').textContent = 'PRIVATE REVIEW PAGE // ' + sc.url;\n const listEl = document.getElementById('review-steps-list');\n listEl.innerHTML = sc.steps.map((s, i) => `\n <div class=\"pipe-step ${i <= curStepIdx ? 'done' : ''} ${i === curStepIdx ? 'active' : ''}\" onclick=\"selectReviewStep(${i})\">\n <div class=\"ps-top\">\n <span>0${i + 1} // ${s.model}</span>\n <span style=\"color:var(--ok);\">${i <= curStepIdx ? '✓' : '·'}</span>\n </div>\n <div class=\"ps-sub\">${s.role}</div>\n </div>\n `).join('');\n\n const st = sc.steps[curStepIdx];\n document.getElementById('rev-stage-detail').innerHTML = `\n <div style=\"background:var(--bg-0);border:1px solid var(--border);padding:12px;\">\n <div style=\"font-family:var(--font-mono);font-size:10px;color:var(--accent);text-transform:uppercase;\">\n STAGE 0${curStepIdx + 1} OF 06 // ${st.role}\n </div>\n <div style=\"font-family:var(--font-display);font-size:17px;font-weight:800;margin:3px 0 6px;\">\n ${st.model} → ${sc.name}\n </div>\n <p style=\"font-size:12.5px;color:var(--ink-1);line-height:1.45;\">${st.detail}</p>\n </div>\n <div class=\"code-output\" style=\"padding:9px 11px;\">\n <div style=\"color:var(--accent-5);font-weight:700;margin-bottom:3px;\">STAGED ARTIFACT & SERVER KIT DIFF (AUDITED BY GPT-6.1-SOL):</div>\n <pre style=\"white-space:pre-wrap;color:var(--ink-0);\">${sc.diffCode}</pre>\n </div>\n <div style=\"display:grid;grid-template-columns:repeat(3,1fr);gap:8px;font-family:var(--font-mono);font-size:10px;\">\n <div style=\"background:var(--bg-0);border:1px solid var(--border);padding:9px;\">\n <div style=\"color:var(--ink-2);\">ASTRA DESIGN CRITIQUE</div>\n <div style=\"color:var(--ok);font-weight:700;margin-top:2px;\">✓ PASS (AAA CONTRAST)</div>\n </div>\n <div style=\"background:var(--bg-0);border:1px solid var(--border);padding:9px;\">\n <div style=\"color:var(--ink-2);\">SOL CLAIM-VS-CODE AUDIT</div>\n <div style=\"color:var(--ok);font-weight:700;margin-top:2px;\">✓ 100% CLAIMS VERIFIED</div>\n </div>\n <div style=\"background:var(--bg-0);border:1px solid var(--border);padding:9px;\">\n <div style=\"color:var(--ink-2);\">SONNET TEST HARNESS</div>\n <div style=\"color:var(--ok);font-weight:700;margin-top:2px;\">✓ REBASED & GREEN</div>\n </div>\n </div>\n `;\n}\n\nfunction selectReviewStep(i) {\n curStepIdx = i;\n renderReviewSurface();\n playTick(560 + i * 50, 0.035);\n}\n\nfunction playFullReviewTrace() {\n curStepIdx = 0;\n renderReviewSurface();\n const timer = setInterval(() => {\n curStepIdx++;\n if (curStepIdx >= 6) {\n curStepIdx = 5;\n clearInterval(timer);\n return;\n }\n renderReviewSurface();\n playTick(520 + curStepIdx * 70, 0.04);\n }, 420);\n}\n\nfunction severianDecision(action) {\n const badge = document.getElementById('rev-gate-badge');\n const txt = document.getElementById('approve-status-text');\n if (action === 'approve') {\n badge.textContent = '✓ DEPLOY APPROVED BY SEVERIAN';\n badge.style.background = 'var(--ok)';\n txt.innerHTML = `<strong style=\"color:var(--ok);\">Signed & deployed!</strong> Public tracker at <code>citadel.severian.dev/projects</code> updated and redacted transcript pushed to <code>baldanders.severian.dev</code>.`;\n playTick(880, 0.08);\n setTimeout(() => playTick(1174, 0.12), 90);\n } else {\n badge.textContent = '✕ RETURNED TO SHARED LEDGER';\n badge.style.background = 'var(--danger)';\n badge.style.color = '#fff';\n txt.innerHTML = `<strong style=\"color:var(--danger);\">Deploy blocked by Severian.</strong> Revision note dispatched to Opus 5.5 Lead Session; private review page locked.`;\n playTick(310, 0.1, 'sawtooth');\n }\n}\nrenderReviewSurface();\n\n/* ==========================================================================\n 5. MODE 03: SCENE CONVERT & DECAL SPECIMEN CANVASES\n ========================================================================== */\nfunction drawSceneConvert() {\n const c = document.getElementById('scene-convert-canvas');\n if (!c) return;\n const ctx = c.getContext('2d');\n const w = c.clientWidth || 520;\n const h = c.clientHeight || 220;\n c.width = w;\n c.height = h;\n ctx.clearRect(0, 0, w, h);\n\n const split = (parseInt(document.getElementById('scene-explode-slider').value, 10) || 0) / 100;\n const layers = [\n { name: 'L0 // DEPTH SKYBOX', color: '#1b263b', offset: -1.2 },\n { name: 'L1 // TERRAIN MESH', color: '#3dff98', offset: -0.4 },\n { name: 'L2 // CITADEL STRUCTURE', color: '#ff5500', offset: 0.4 },\n { name: 'L3 // DECAL HUD OVERLAY', color: '#b8ff01', offset: 1.2 }\n ];\n\n const cx = w / 2;\n const cy = h / 2;\n\n layers.forEach((ly, idx) => {\n const dx = ly.offset * split * 95;\n const dy = -ly.offset * split * 18;\n const lw = 160;\n const lh = 105;\n\n ctx.save();\n ctx.translate(cx + dx, cy + dy);\n ctx.transform(1, -0.18 * split, 0.35 * split, 1, 0, 0);\n\n ctx.fillStyle = 'rgba(12, 14, 18, 0.86)';\n ctx.strokeStyle = ly.color;\n ctx.lineWidth = 1.6;\n ctx.fillRect(-lw / 2, -lh / 2, lw, lh);\n ctx.strokeRect(-lw / 2, -lh / 2, lw, lh);\n\n ctx.fillStyle = ly.color;\n if (idx === 0) {\n ctx.globalAlpha = 0.25;\n ctx.fillRect(-lw/2 + 8, -lh/2 + 8, lw - 16, lh - 16);\n } else if (idx === 1) {\n ctx.beginPath();\n ctx.moveTo(-lw/2 + 10, lh/2 - 12);\n ctx.lineTo(-20, -10);\n ctx.lineTo(25, 18);\n ctx.lineTo(lw/2 - 10, -22);\n ctx.lineTo(lw/2 - 10, lh/2 - 12);\n ctx.closePath();\n ctx.globalAlpha = 0.4;\n ctx.fill();\n } else if (idx === 2) {\n ctx.fillRect(-18, -32, 36, 64);\n } else {\n ctx.strokeRect(-lw/2 + 14, -lh/2 + 14, lw - 28, lh - 28);\n }\n ctx.globalAlpha = 1;\n ctx.font = '700 9.5px \"JetBrains Mono\", monospace';\n ctx.fillText(ly.name, -lw / 2 + 8, -lh / 2 + 15);\n ctx.restore();\n });\n}\n\nlet decalStampIdx = 0;\nlet decalSeed = 421;\nfunction cycleDecalStamp(idx, btn) {\n decalStampIdx = idx;\n if (btn) {\n btn.parentElement.querySelectorAll('.mini-btn').forEach(b => b.classList.remove('active'));\n btn.classList.add('active');\n }\n drawDecalSpecimen();\n playTick(720, 0.04);\n}\nfunction randomizeDecalSeed() {\n decalSeed = Math.floor(100 + Math.random() * 899);\n drawDecalSpecimen();\n playTick(840, 0.04);\n}\n\nfunction drawDecalSpecimen() {\n const c = document.getElementById('decal-specimen-canvas');\n if (!c) return;\n const ctx = c.getContext('2d');\n const w = c.clientWidth || 520;\n const h = c.clientHeight || 220;\n c.width = w;\n c.height = h;\n ctx.clearRect(0, 0, w, h);\n\n const stamps = [\n { code: `CITADEL-SYS // ${decalSeed}`, title: 'AUTARCH GATEWAY', color: '#ff5500', sub: 'DESIGN LANGUAGE: DIE-CUT DECAL PACK' },\n { code: `AVALON // BLOOM-${decalSeed}`, title: 'INTO BLOOM COLLAB', color: '#3dff98', sub: 'FABLE 5.2 + GPT-6-ASTRA CRITIQUE PASS' },\n { code: `FINIS-EST // LAYA-${decalSeed}`, title: 'CLAVIGER 421M GATE', color: '#b8ff01', sub: 'HUGGING FACE OPEN-WEIGHTS TRIAGE' }\n ];\n const st = stamps[decalStampIdx];\n\n ctx.strokeStyle = st.color;\n ctx.lineWidth = 2;\n ctx.strokeRect(24, 20, w - 48, h - 40);\n\n ctx.save();\n ctx.beginPath();\n ctx.rect(36, 32, 110, 24);\n ctx.clip();\n ctx.fillStyle = st.color;\n for (let x = -30; x < 160; x += 14) {\n ctx.beginPath();\n ctx.moveTo(36 + x, 32);\n ctx.lineTo(36 + x + 7, 32);\n ctx.lineTo(36 + x - 7, 56);\n ctx.lineTo(36 + x - 14, 56);\n ctx.closePath();\n ctx.fill();\n }\n ctx.restore();\n\n ctx.fillStyle = '#f3f0e6';\n ctx.font = '800 11px \"JetBrains Mono\", monospace';\n ctx.fillText(st.code, 158, 48);\n\n ctx.font = '800 23px \"Space Grotesk\", sans-serif';\n ctx.fillStyle = st.color;\n ctx.fillText(st.title, 36, 98);\n\n ctx.font = '600 10.5px \"JetBrains Mono\", monospace';\n ctx.fillStyle = '#b8b4a8';\n ctx.fillText(st.sub, 36, 120);\n\n for (let i = 0; i < 38; i++) {\n const bw = ((i * decalSeed) % 5 === 0) ? 4 : 1.5;\n ctx.fillStyle = (i % 7 === 0) ? st.color : '#f3f0e6';\n ctx.fillRect(36 + i * 7.5, 140, bw, 32);\n }\n}\n\n/* ==========================================================================\n 6. MODE 04: ALL 9 PUBLIC PROJECTS MATRIX\n ========================================================================== */\nconst publicProjects = [\n {\n name: 'from-avalon.com',\n url: 'from-avalon.com',\n desc: 'Primary web home for Avalon, an online creative community, coordinating collaborative seasonal showcases.',\n models: ['Opus 5.5', 'Fable 5.2', 'GPT-6-Astra', 'GPT-6.1-Sol', 'Sonnet 5.5']\n },\n {\n name: 'Into Bloom & Hearthwynd',\n url: 'from-avalon.com // Collab Sites',\n desc: 'Bespoke collaborative community sites for Avalon, featuring custom visual languages, shaders, and editorial layouts.',\n models: ['Opus 5.5', 'Fable 5.2', 'GPT-6-Astra', 'Sonnet 5.5']\n },\n {\n name: 'Desktop Buddies',\n url: 'Open-Source Desktop Pet Maker',\n desc: 'Open-source maker for animated desktop companions (like the live buddies patrolling the top rail of this embed).',\n models: ['Opus 5.5', 'Fable 5.2', 'Sonnet 5.5', 'GPT-6.1-Sol']\n },\n {\n name: 'Scene Convert',\n url: 'Image-Scene File Converter',\n desc: 'High-speed converter and layer decomposer for complex multi-channel image-scene files.',\n models: ['Opus 5.5', 'Fable 5.2', 'Sonnet 5.5', 'GPT-6.1-Sol']\n },\n {\n name: 'Citadel Project Trackers',\n url: 'citadel.severian.dev/projects',\n desc: 'Public window into Citadel’s shared to-do ledger, session status, and shipped milestones.',\n models: ['Opus 5.5', 'Sonnet 5.5', 'GPT-6.1-Sol']\n },\n {\n name: 'Talos Write-Ups',\n url: 'talos.severian.dev',\n desc: 'Long-form essays, architectural postmortems, and notes on running multi-agent setups—every post human-approved.',\n models: ['Opus 5.5', 'GPT-6-Astra', 'GPT-6.1-Sol']\n },\n {\n name: 'Baldanders Transcripts',\n url: 'baldanders.severian.dev',\n desc: 'Public archive of redacted multi-agent session transcripts showing how tasks actually unfold inside Citadel.',\n models: ['Opus 5.5', 'Sonnet 5.5', 'GPT-6.1-Sol']\n },\n {\n name: 'Claviger (Laya-421M)',\n url: 'hf.co/finis-est/Laya-421M-Claviger-v0',\n desc: 'Small 421M open-weights model on Hugging Face that triages incoming Discord messages for agents.',\n models: ['Claviger-421M', 'Sonnet 5.5', 'GPT-6-Astra', 'Opus 5.5']\n },\n {\n name: '3D Pipeline & Decal Language',\n url: 'Citadel Design & 3D Stack',\n desc: 'Experimental 3D model pipeline and the die-cut decal-pack visual system powering Severian’s sites.',\n models: ['Fable 5.2', 'GPT-6-Astra', 'Opus 5.5']\n }\n];\n\nfunction filterProjects(modelFilter, btn) {\n if (btn) {\n document.querySelectorAll('#proj-filter-bar .chip-btn').forEach(b => b.classList.remove('active'));\n btn.classList.add('active');\n }\n const grid = document.getElementById('projects-grid');\n const list = modelFilter === 'all'\n ? publicProjects\n : publicProjects.filter(p => p.models.includes(modelFilter));\n\n grid.innerHTML = list.map(p => `\n <div class=\"proj-card\">\n <div>\n <div class=\"proj-url\">${p.url}</div>\n <div class=\"proj-name\">${p.name}</div>\n <div class=\"proj-desc\" style=\"margin-top:3px;\">${p.desc}</div>\n </div>\n <div class=\"proj-models\">\n ${p.models.map(m => `<span class=\"pm-tag\">${m}</span>`).join('')}\n </div>\n </div>\n `).join('');\n playTick(620, 0.035);\n}\nfilterProjects('all');\n\n/* ==========================================================================\n 7. BALDANDERS REDACTED TRANSCRIPT ROTATOR\n ========================================================================== */\nconst redactedLogs = [\n `[OPUS-5.5 → SOL-6.1] Staged <span class=\"redact-block\">10.0.42.18:4410/rev/88</span> for Hearthwynd; Claviger filtered <span class=\"redact-block\">142 noise pings</span>; Astra verified <span class=\"redact-block\">15.8:1 AAA contrast</span>. Awaiting Severian sign-off.`,\n `[FABLE-5.2 → ASTRA-6] Exported <span class=\"redact-block\">buddy_rig_v4.glb</span> via 3D pipeline; applied decal pack sheet <span class=\"redact-block\">#DC-09-AVALON</span> to Into Bloom header.`,\n `[SONNET-5.5 → OPUS-5.5] Rebased <span class=\"redact-block\">feat/scene-convert-16bit</span> onto main; generated <span class=\"redact-block\">64 synthetic Discord traces</span> for finis-est/Laya-421M-Claviger-v0.`,\n `[SOL-6.1 → GATE] Audited deployment kit against claim <span class=\"redact-block\">\"zero unredacted hostnames\"</span>; caught 1 regex gap before <span class=\"redact-block\">baldanders.severian.dev</span> sync.`\n];\nlet curLogIdx = 0;\n\nfunction cycleTranscript() {\n curLogIdx = (curLogIdx + 1) % redactedLogs.length;\n document.getElementById('redact-log-line').innerHTML = redactedLogs[curLogIdx];\n playTick(590, 0.035);\n}\n\nfunction toggleDeclassify() {\n const f = document.getElementById('baldanders-footer');\n const on = f.classList.toggle('declassified');\n const btn = document.getElementById('declassify-btn');\n btn.textContent = on ? 'MASK REDACTIONS' : 'UNMASK REDACTIONS';\n btn.classList.toggle('active', on);\n playTick(on ? 860 : 440, 0.045);\n}\n\n/* ==========================================================================\n MAIN ANIMATION LOOP\n ========================================================================== */\nfunction animate() {\n renderBuddies();\n renderTopology();\n renderFable3D();\n requestAnimationFrame(animate);\n}\nrequestAnimationFrame(animate);\ndrawSceneConvert();\ndrawDecalSpecimen();\n</script>\n</body>\n</html>\n","Overwrite":true,"Path":"~/run/citadel-embed.html"}
input
{ "Content": "<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"citadel\">\n<head>\n<meta charset=\"UTF-8\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<title>CITADEL // Severian's Multi-Model Orchestration & Capability Surface</title>\n<style>\n :root, [data-theme=\"citadel\"] {\n --bg-0: #08090b;\n --bg-1: #0f1115;\n --bg-2: #161920;\n --bg-3: #1f242d;\n --ink-0: #f3f0e6;\n --ink-1: #b8b4a8;\n --ink-2: #76746d;\n --accent: #ff5500;\n --accent-2: #b8ff01;\n --accent-3: #00e5ff;\n --accent-4: #b388ff;\n --accent-5: #ffb300;\n --danger: #ff2a55;\n --ok: #00e676;\n --border: #262b35;\n --border-strong: #3a4150;\n --grid-line: rgba(243, 240, 230, 0.035);\n --decal-bg: rgba(255, 85, 0, 0.12);\n --shadow: 0 18px 48px rgba(0, 0, 0, 0.7);\n --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;\n --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;\n }\n\n [data-theme=\"bloom\"] {\n --bg-0: #08120e;\n --bg-1: #0e1d17;\n --bg-2: #152921;\n --bg-3: #1e382d;\n --ink-0: #eef7f1;\n --ink-1: #a7c4b5;\n --ink-2: #698a7a;\n --accent: #3dff98;\n --accent-2: #f4d06f;\n --accent-3: #64dfdf;\n --accent-4: #ff8fa3;\n --accent-5: #ffd166;\n --danger: #ff5c77;\n --ok: #3dff98;\n --border: #234236;\n --border-strong: #376653;\n --grid-line: rgba(61, 255, 152, 0.045);\n --decal-bg: rgba(61, 255, 152, 0.11);\n }\n\n [data-theme=\"hearthwynd\"] {\n --bg-0: #110c0a;\n --bg-1: #1a1310;\n --bg-2: #251b16;\n --bg-3: #33241e;\n --ink-0: #faede3;\n --ink-1: #cbb2a1;\n --ink-2: #8a7262;\n --accent: #ff7733;\n --accent-2: #ffcc4d;\n --accent-3: #ff9e7d;\n --accent-4: #e07a5f;\n --accent-5: #f2cc8f;\n --danger: #ff4747;\n --ok: #52b788;\n --border: #3b2a22;\n --border-strong: #593f33;\n --grid-line: rgba(255, 119, 51, 0.045);\n --decal-bg: rgba(255, 119, 51, 0.12);\n }\n\n [data-theme=\"baldanders\"] {\n --bg-0: #10100f;\n --bg-1: #171715;\n --bg-2: #20201d;\n --bg-3: #2b2b27;\n --ink-0: #eae6df;\n --ink-1: #a6a29a;\n --ink-2: #6e6b64;\n --accent: #eae6df;\n --accent-2: #ff3b30;\n --accent-3: #d4af37;\n --accent-4: #a8a29e;\n --accent-5: #ff9500;\n --danger: #ff3b30;\n --ok: #34c759;\n --border: #30302b;\n --border-strong: #4a4a43;\n --grid-line: rgba(234, 230, 223, 0.04);\n --decal-bg: rgba(255, 59, 48, 0.14);\n }\n\n * {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n }\n\n body {\n background: var(--bg-0);\n color: var(--ink-0);\n font-family: var(--font-sans);\n line-height: 1.4;\n -webkit-font-smoothing: antialiased;\n overflow-x: hidden;\n padding: 8px;\n background-image:\n linear-gradient(to right, var(--grid-line) 1px, transparent 1px),\n linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);\n background-size: 24px 24px;\n }\n\n .citadel-shell {\n max-width: 1240px;\n margin: 0 auto;\n background: var(--bg-1);\n border: 1px solid var(--border-strong);\n box-shadow: var(--shadow);\n position: relative;\n overflow: hidden;\n transition: background 0.2s ease, border-color 0.2s ease;\n }\n\n /* Corner Registration Marks (Decal-Pack Language) */\n .reg-mark {\n position: absolute;\n width: 10px;\n height: 10px;\n pointer-events: none;\n z-index: 30;\n }\n .reg-mark::before, .reg-mark::after {\n content: '';\n position: absolute;\n background: var(--accent);\n }\n .reg-mark::before { width: 10px; height: 1.5px; top: 4px; left: 0; }\n .reg-mark::after { width: 1.5px; height: 10px; top: 0; left: 4px; }\n .reg-tl { top: 5px; left: 5px; }\n .reg-tr { top: 5px; right: 5px; }\n .reg-bl { bottom: 5px; left: 5px; }\n .reg-br { bottom: 5px; right: 5px; }\n\n /* Astra Redline Critique Overlay Mode */\n .citadel-shell.astra-critique-on {\n outline: 1.5px dashed var(--accent-3);\n }\n .astra-badge-overlay {\n display: none;\n position: absolute;\n z-index: 40;\n pointer-events: none;\n font-family: var(--font-mono);\n font-size: 9.5px;\n line-height: 1.2;\n padding: 2px 6px;\n background: rgba(6, 18, 24, 0.92);\n border: 1px solid var(--accent-3);\n color: var(--accent-3);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n white-space: nowrap;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);\n }\n .citadel-shell.astra-critique-on .astra-badge-overlay {\n display: block;\n }\n .citadel-shell.astra-critique-on .panel-box,\n .citadel-shell.astra-critique-on .model-card,\n .citadel-shell.astra-critique-on .stat-card {\n box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.28);\n }\n\n /* Top Decal & Telemetry Strip */\n .top-decal-bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 6px;\n padding: 6px 14px;\n background: var(--bg-0);\n border-bottom: 1px solid var(--border);\n font-family: var(--font-mono);\n font-size: 10.5px;\n }\n\n .decal-left {\n display: flex;\n align-items: center;\n gap: 10px;\n flex-wrap: wrap;\n }\n\n .hazard-pill {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 2px 8px;\n background: var(--accent);\n color: #090a0c;\n font-weight: 800;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n font-size: 10px;\n clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));\n }\n\n .status-dot {\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--ok);\n box-shadow: 0 0 8px var(--ok);\n display: inline-block;\n animation: pulseDot 2s infinite;\n }\n\n @keyframes pulseDot {\n 0%, 100% { opacity: 1; transform: scale(1); }\n 50% { opacity: 0.45; transform: scale(0.88); }\n }\n\n .tele-item {\n color: var(--ink-1);\n display: inline-flex;\n align-items: center;\n gap: 4px;\n }\n .tele-item strong {\n color: var(--ink-0);\n font-weight: 600;\n }\n\n .decal-controls {\n display: flex;\n align-items: center;\n gap: 5px;\n flex-wrap: wrap;\n }\n\n .mini-btn {\n background: var(--bg-2);\n color: var(--ink-1);\n border: 1px solid var(--border);\n padding: 2.5px 7px;\n font-family: var(--font-mono);\n font-size: 9.5px;\n cursor: pointer;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n transition: all 0.14s ease;\n }\n .mini-btn:hover {\n color: var(--ink-0);\n border-color: var(--accent);\n }\n .mini-btn.active {\n background: var(--decal-bg);\n color: var(--accent);\n border-color: var(--accent);\n font-weight: 700;\n }\n\n /* Desktop Buddies Interactive Track */\n .buddy-rail {\n position: relative;\n height: 30px;\n background: linear-gradient(90deg, var(--bg-0) 0%, var(--bg-2) 50%, var(--bg-0) 100%);\n border-bottom: 1px solid var(--border);\n display: grid;\n grid-template-columns: auto 1fr auto;\n align-items: center;\n gap: 10px;\n padding: 0 14px;\n overflow: hidden;\n user-select: none;\n }\n .buddy-label-left {\n font-family: var(--font-mono);\n font-size: 9.5px;\n color: var(--ink-2);\n white-space: nowrap;\n z-index: 2;\n }\n .buddy-label-left strong {\n color: var(--ink-1);\n }\n .buddy-lane-wrap {\n position: relative;\n height: 100%;\n width: 100%;\n overflow: hidden;\n border-left: 1px dashed var(--border);\n border-right: 1px dashed var(--border);\n }\n #buddy-canvas {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n cursor: pointer;\n }\n .buddy-hud-actions {\n z-index: 2;\n display: flex;\n gap: 6px;\n align-items: center;\n font-family: var(--font-mono);\n }\n .buddy-speech {\n background: var(--bg-0);\n border: 1px solid var(--accent-2);\n color: var(--accent-2);\n padding: 1px 7px;\n font-size: 9.5px;\n border-radius: 2px;\n white-space: nowrap;\n }\n\n /* Hero Section */\n .hero-header {\n padding: 12px 16px 11px;\n border-bottom: 1px solid var(--border);\n display: grid;\n grid-template-columns: 1fr auto;\n gap: 14px;\n align-items: center;\n position: relative;\n }\n @media (max-width: 860px) {\n .hero-header {\n grid-template-columns: 1fr;\n }\n }\n\n .eyebrow {\n font-family: var(--font-mono);\n font-size: 10px;\n color: var(--accent);\n text-transform: uppercase;\n letter-spacing: 0.09em;\n margin-bottom: 3px;\n display: flex;\n align-items: center;\n gap: 8px;\n }\n .eyebrow span.code-tag {\n background: var(--decal-bg);\n border: 1px solid var(--accent);\n padding: 0px 5px;\n font-size: 9.5px;\n }\n\n .hero-title {\n font-family: var(--font-display);\n font-size: clamp(20px, 2.6vw, 29px);\n font-weight: 800;\n letter-spacing: -0.025em;\n line-height: 1.08;\n color: var(--ink-0);\n margin-bottom: 5px;\n }\n .hero-title .hl {\n color: var(--accent);\n text-decoration: underline;\n text-decoration-thickness: 2px;\n text-underline-offset: 4px;\n }\n\n .hero-sub {\n color: var(--ink-1);\n font-size: 12.5px;\n max-width: 790px;\n line-height: 1.42;\n }\n .hero-sub strong {\n color: var(--ink-0);\n }\n\n .hero-stats {\n display: grid;\n grid-template-columns: repeat(4, auto);\n gap: 7px;\n font-family: var(--font-mono);\n }\n @media (max-width: 600px) {\n .hero-stats {\n grid-template-columns: repeat(2, 1fr);\n }\n }\n .stat-card {\n background: var(--bg-0);\n border: 1px solid var(--border);\n padding: 7px 10px;\n min-width: 88px;\n position: relative;\n }\n .stat-card::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 3px;\n height: 100%;\n background: var(--accent);\n }\n .stat-val {\n font-size: 16px;\n font-weight: 800;\n color: var(--ink-0);\n line-height: 1.1;\n }\n .stat-lbl {\n font-size: 9px;\n color: var(--ink-2);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n margin-top: 2px;\n }\n\n /* Navigation Mode Tabs */\n .mode-nav {\n display: flex;\n background: var(--bg-0);\n border-bottom: 1px solid var(--border);\n overflow-x: auto;\n }\n .mode-tab {\n flex: 1;\n min-width: 170px;\n background: transparent;\n border: none;\n border-right: 1px solid var(--border);\n padding: 9px 12px;\n color: var(--ink-1);\n font-family: var(--font-mono);\n font-size: 10.5px;\n text-align: left;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n transition: all 0.14s ease;\n position: relative;\n }\n .mode-tab:last-child {\n border-right: none;\n }\n .mode-tab:hover {\n background: var(--bg-2);\n color: var(--ink-0);\n }\n .mode-tab.active {\n background: var(--bg-1);\n color: var(--ink-0);\n font-weight: 700;\n }\n .mode-tab.active::after {\n content: '';\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 2.5px;\n background: var(--accent);\n }\n .tab-num {\n color: var(--accent);\n font-weight: 700;\n margin-right: 6px;\n }\n .tab-pill {\n font-size: 8.5px;\n padding: 1px 5px;\n background: var(--bg-3);\n color: var(--ink-1);\n border-radius: 2px;\n }\n .mode-tab.active .tab-pill {\n background: var(--decal-bg);\n color: var(--accent);\n }\n\n /* Main Workspace Grid */\n .workspace-deck {\n display: none;\n }\n .workspace-deck.active {\n display: block;\n }\n\n .deck-split {\n display: grid;\n grid-template-columns: 1.06fr 0.94fr;\n }\n @media (max-width: 960px) {\n .deck-split {\n grid-template-columns: 1fr;\n }\n }\n\n .panel-box {\n padding: 12px 14px;\n border-right: 1px solid var(--border);\n position: relative;\n display: flex;\n flex-direction: column;\n }\n .panel-box:last-child {\n border-right: none;\n }\n\n .panel-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 8px;\n padding-bottom: 6px;\n border-bottom: 1px solid var(--border);\n font-family: var(--font-mono);\n font-size: 10.5px;\n }\n .panel-title {\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n color: var(--ink-0);\n display: flex;\n align-items: center;\n gap: 6px;\n }\n .panel-title::before {\n content: '■';\n color: var(--accent);\n font-size: 9px;\n }\n\n /* Interactive Topology Map + Roster Cards */\n .topology-stage {\n position: relative;\n background: var(--bg-0);\n border: 1px solid var(--border);\n height: 176px;\n margin-bottom: 8px;\n overflow: hidden;\n }\n #topology-canvas {\n width: 100%;\n height: 100%;\n display: block;\n cursor: pointer;\n }\n .topo-overlay-controls {\n position: absolute;\n bottom: 6px;\n right: 6px;\n display: flex;\n gap: 5px;\n z-index: 5;\n }\n .topo-legend {\n position: absolute;\n top: 6px;\n left: 8px;\n font-family: var(--font-mono);\n font-size: 9.5px;\n color: var(--ink-2);\n pointer-events: none;\n display: flex;\n gap: 10px;\n }\n\n /* Model Roster Grid (All 6 Visible Above the Fold) */\n .roster-grid {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 6px;\n }\n @media (max-width: 560px) {\n .roster-grid {\n grid-template-columns: 1fr;\n }\n }\n\n .model-card {\n background: var(--bg-0);\n border: 1px solid var(--border);\n padding: 7px 10px;\n cursor: pointer;\n transition: all 0.14s ease;\n position: relative;\n text-align: left;\n }\n .model-card:hover {\n border-color: var(--ink-2);\n }\n .model-card.selected {\n background: var(--bg-2);\n border-color: var(--accent);\n box-shadow: inset 3px 0 0 var(--accent);\n }\n .mc-top {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 2px;\n font-family: var(--font-mono);\n }\n .mc-name {\n font-size: 11.5px;\n font-weight: 800;\n color: var(--ink-0);\n display: flex;\n align-items: center;\n gap: 5px;\n }\n .mc-dot {\n width: 6.5px;\n height: 6.5px;\n border-radius: 50%;\n display: inline-block;\n }\n .mc-badge {\n font-size: 8.5px;\n padding: 0.5px 4px;\n border: 1px solid var(--border-strong);\n color: var(--ink-1);\n text-transform: uppercase;\n }\n .mc-role {\n font-family: var(--font-mono);\n font-size: 9.5px;\n color: var(--accent);\n text-transform: uppercase;\n letter-spacing: 0.03em;\n margin-bottom: 2px;\n }\n .mc-desc {\n font-size: 10.8px;\n color: var(--ink-1);\n line-height: 1.3;\n }\n\n /* Right-Hand Live Capability Workbench */\n .workbench-container {\n flex: 1;\n display: flex;\n flex-direction: column;\n background: var(--bg-0);\n border: 1px solid var(--border);\n padding: 11px;\n position: relative;\n }\n\n .wb-header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: 8px;\n padding-bottom: 8px;\n margin-bottom: 9px;\n border-bottom: 1px dashed var(--border-strong);\n }\n .wb-title {\n font-family: var(--font-display);\n font-size: 15px;\n font-weight: 800;\n color: var(--ink-0);\n }\n .wb-subtitle {\n font-family: var(--font-mono);\n font-size: 10px;\n color: var(--accent);\n margin-top: 1px;\n }\n .wb-tag {\n font-family: var(--font-mono);\n font-size: 9.5px;\n padding: 2px 6px;\n background: var(--decal-bg);\n border: 1px solid var(--accent);\n color: var(--accent);\n white-space: nowrap;\n }\n\n /* Workbench Views */\n .wb-view {\n display: none;\n flex-direction: column;\n gap: 8px;\n flex: 1;\n }\n .wb-view.active {\n display: flex;\n }\n\n /* 4-Quadrant Overview Multi-Monitor */\n .quad-grid {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-template-rows: 1fr 1fr;\n gap: 8px;\n flex: 1;\n }\n .quad-box {\n background: var(--bg-1);\n border: 1px solid var(--border);\n padding: 8px 9px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n cursor: pointer;\n position: relative;\n overflow: hidden;\n transition: border-color 0.14s ease;\n }\n .quad-box:hover {\n border-color: var(--accent);\n }\n .quad-hdr {\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-family: var(--font-mono);\n font-size: 9.5px;\n color: var(--ink-1);\n margin-bottom: 4px;\n }\n .quad-hdr strong {\n color: var(--ink-0);\n }\n\n /* Claviger Triage Workbench */\n .discord-input-row {\n display: flex;\n gap: 6px;\n }\n .discord-input {\n flex: 1;\n background: var(--bg-1);\n border: 1px solid var(--border-strong);\n color: var(--ink-0);\n padding: 6px 9px;\n font-family: var(--font-mono);\n font-size: 11px;\n }\n .discord-input:focus {\n outline: none;\n border-color: var(--accent);\n }\n .preset-chips {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n }\n .chip-btn {\n background: var(--bg-2);\n border: 1px solid var(--border);\n color: var(--ink-1);\n font-family: var(--font-mono);\n font-size: 9.5px;\n padding: 2.5px 6px;\n cursor: pointer;\n transition: all 0.12s;\n }\n .chip-btn:hover {\n border-color: var(--accent);\n color: var(--ink-0);\n }\n .logit-bars {\n display: flex;\n flex-direction: column;\n gap: 5px;\n background: var(--bg-1);\n border: 1px solid var(--border);\n padding: 8px;\n }\n .logit-row {\n display: grid;\n grid-template-columns: 150px 1fr 44px;\n align-items: center;\n gap: 8px;\n font-family: var(--font-mono);\n font-size: 10px;\n }\n .logit-track {\n height: 7px;\n background: var(--bg-3);\n overflow: hidden;\n position: relative;\n }\n .logit-fill {\n height: 100%;\n background: var(--accent);\n transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);\n }\n .code-output {\n font-family: var(--font-mono);\n font-size: 10.2px;\n background: #060708;\n border: 1px solid var(--border);\n padding: 8px 10px;\n color: var(--ink-1);\n line-height: 1.42;\n overflow-x: auto;\n }\n\n /* Fable 5.2 3D Canvas Workbench */\n .canvas-3d-wrap {\n position: relative;\n height: 205px;\n background: #050608;\n border: 1px solid var(--border-strong);\n overflow: hidden;\n }\n #fable-3d-canvas {\n width: 100%;\n height: 100%;\n display: block;\n cursor: grab;\n }\n #fable-3d-canvas:active {\n cursor: grabbing;\n }\n .canvas-3d-hud {\n position: absolute;\n top: 7px;\n left: 8px;\n right: 8px;\n display: flex;\n justify-content: space-between;\n pointer-events: none;\n font-family: var(--font-mono);\n font-size: 9.5px;\n color: var(--ink-1);\n }\n .canvas-3d-controls {\n position: absolute;\n bottom: 7px;\n left: 8px;\n right: 8px;\n display: flex;\n justify-content: space-between;\n gap: 4px;\n flex-wrap: wrap;\n }\n\n /* GPT-6.1-Sol Claim vs Code Auditor */\n .audit-split {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 8px;\n }\n @media (max-width: 580px) {\n .audit-split {\n grid-template-columns: 1fr;\n }\n }\n .audit-col {\n background: var(--bg-1);\n border: 1px solid var(--border);\n padding: 8px;\n font-family: var(--font-mono);\n font-size: 10px;\n }\n .audit-col-title {\n font-size: 9.5px;\n color: var(--ink-2);\n text-transform: uppercase;\n margin-bottom: 6px;\n padding-bottom: 4px;\n border-bottom: 1px solid var(--border);\n }\n .claim-item {\n padding: 5px 7px;\n border: 1px solid var(--border);\n margin-bottom: 5px;\n cursor: pointer;\n background: var(--bg-0);\n transition: all 0.14s;\n }\n .claim-item:hover, .claim-item.active {\n border-color: var(--accent);\n }\n .claim-item.pass {\n border-left: 3px solid var(--ok);\n }\n .claim-item.fail {\n border-left: 3px solid var(--danger);\n background: rgba(255, 42, 85, 0.08);\n }\n\n /* Mode 2: Private Review Page & Step-by-Step Pipeline Replay */\n .review-surface-grid {\n display: grid;\n grid-template-columns: 300px 1fr;\n }\n @media (max-width: 900px) {\n .review-surface-grid {\n grid-template-columns: 1fr;\n }\n }\n .pipeline-steps {\n display: flex;\n flex-direction: column;\n gap: 5px;\n }\n .pipe-step {\n background: var(--bg-0);\n border: 1px solid var(--border);\n padding: 7px 10px;\n font-family: var(--font-mono);\n font-size: 10.5px;\n cursor: pointer;\n position: relative;\n transition: all 0.14s;\n }\n .pipe-step.active {\n border-color: var(--accent);\n background: var(--bg-2);\n box-shadow: inset 3px 0 0 var(--accent);\n }\n .pipe-step.done {\n border-left: 3px solid var(--ok);\n }\n .ps-top {\n display: flex;\n justify-content: space-between;\n color: var(--ink-0);\n font-weight: 700;\n margin-bottom: 2px;\n }\n .ps-sub {\n font-size: 9.5px;\n color: var(--ink-1);\n font-family: var(--font-sans);\n }\n\n .approve-bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 10px;\n padding: 10px 12px;\n background: var(--bg-2);\n border: 1px solid var(--border-strong);\n margin-top: auto;\n }\n .action-btn {\n padding: 7px 13px;\n font-family: var(--font-mono);\n font-size: 10.5px;\n font-weight: 800;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n border: 1px solid transparent;\n cursor: pointer;\n transition: all 0.14s;\n }\n .btn-approve {\n background: var(--ok);\n color: #060807;\n }\n .btn-approve:hover {\n filter: brightness(1.12);\n box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);\n }\n .btn-reject {\n background: transparent;\n border-color: var(--danger);\n color: var(--danger);\n }\n .btn-reject:hover {\n background: rgba(255, 42, 85, 0.12);\n }\n\n /* Mode 3: Scene Convert & Capability Lab */\n .lab-grid {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 12px;\n padding: 12px 14px;\n }\n @media (max-width: 860px) {\n .lab-grid {\n grid-template-columns: 1fr;\n }\n }\n .lab-card {\n background: var(--bg-0);\n border: 1px solid var(--border);\n padding: 12px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n /* Mode 4: Public Projects Matrix */\n .projects-matrix {\n padding: 10px 14px 12px;\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 8px;\n }\n @media (max-width: 900px) {\n .projects-matrix {\n grid-template-columns: repeat(2, 1fr);\n }\n }\n @media (max-width: 580px) {\n .projects-matrix {\n grid-template-columns: 1fr;\n }\n }\n .proj-card {\n background: var(--bg-0);\n border: 1px solid var(--border);\n padding: 10px 11px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n gap: 6px;\n cursor: pointer;\n transition: all 0.14s;\n position: relative;\n }\n .proj-card:hover {\n border-color: var(--accent);\n background: var(--bg-2);\n }\n .proj-url {\n font-family: var(--font-mono);\n font-size: 9.5px;\n color: var(--accent);\n }\n .proj-name {\n font-family: var(--font-display);\n font-size: 14px;\n font-weight: 800;\n color: var(--ink-0);\n }\n .proj-desc {\n font-size: 11px;\n color: var(--ink-1);\n line-height: 1.35;\n }\n .proj-models {\n display: flex;\n flex-wrap: wrap;\n gap: 3px;\n }\n .pm-tag {\n font-family: var(--font-mono);\n font-size: 9px;\n padding: 1px 4.5px;\n background: var(--bg-1);\n border: 1px solid var(--border-strong);\n color: var(--ink-1);\n }\n\n /* Bottom Baldanders Redacted Transcript Stream */\n .baldanders-strip {\n background: #060708;\n border-top: 1px solid var(--border-strong);\n padding: 8px 14px;\n font-family: var(--font-mono);\n font-size: 10.5px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 10px;\n flex-wrap: wrap;\n }\n .redact-stream {\n flex: 1;\n color: var(--ink-1);\n overflow: hidden;\n min-width: 240px;\n }\n .redact-block {\n background: var(--ink-0);\n color: transparent;\n padding: 0 4px;\n border-radius: 1px;\n cursor: pointer;\n transition: all 0.18s ease;\n user-select: none;\n }\n .redact-block:hover,\n .declassified .redact-block,\n [data-theme=\"baldanders\"] .redact-block:hover {\n background: rgba(255, 85, 0, 0.2);\n color: var(--accent-2);\n border-bottom: 1px dashed var(--accent-2);\n }\n\n /* Embed Snippet Drawer */\n .embed-drawer {\n display: none;\n background: var(--bg-0);\n border-top: 1px solid var(--accent);\n padding: 10px 14px;\n font-family: var(--font-mono);\n font-size: 10.5px;\n }\n .embed-drawer.open {\n display: block;\n }\n</style>\n</head>\n<body>\n\n<div class=\"citadel-shell\" id=\"citadel-root\">\n <!-- Corner Registration Marks -->\n <div class=\"reg-mark reg-tl\"></div>\n <div class=\"reg-mark reg-tr\"></div>\n <div class=\"reg-mark reg-bl\"></div>\n <div class=\"reg-mark reg-br\"></div>\n\n <!-- GPT-6-Astra Critique Overlays (Positioned cleanly in margins when toggled ON) -->\n <div class=\"astra-badge-overlay\" style=\"top: 66px; right: 16px;\">\n ASTRA CRITIQUE // CONTRAST 15.8:1 (WCAG AAA) · DECAL DENSITY PASS\n </div>\n <div class=\"astra-badge-overlay\" style=\"top: 192px; right: 16px;\">\n ASTRA // 24PX RHYTHM LOCKED · TRACKING -0.025EM · 0 CLS\n </div>\n <div class=\"astra-badge-overlay\" style=\"bottom: 42px; right: 16px;\">\n ASTRA DATASET // 166 MULTI-TURN SAMPLES LABELLED FOR CLAVIGER-421M\n </div>\n\n <!-- Top Decal Telemetry Bar -->\n <div class=\"top-decal-bar\">\n <div class=\"decal-left\">\n <span class=\"hazard-pill\"><span class=\"status-dot\"></span> CITADEL // LIVE</span>\n <span class=\"tele-item\">OPERATOR: <strong>SEVERIAN</strong></span>\n <span class=\"tele-item\">SESSIONS: <strong>08 CONCURRENT</strong></span>\n <span class=\"tele-item\">GATE: <strong>CLAVIGER (Laya-421M)</strong></span>\n <span class=\"tele-item\">DEPLOYS: <strong>100% HUMAN-SIGNED</strong></span>\n </div>\n <div class=\"decal-controls\">\n <button class=\"mini-btn active\" onclick=\"setTheme('citadel', this)\">DECAL: CITADEL</button>\n <button class=\"mini-btn\" onclick=\"setTheme('bloom', this)\">INTO BLOOM</button>\n <button class=\"mini-btn\" onclick=\"setTheme('hearthwynd', this)\">HEARTHWYND</button>\n <button class=\"mini-btn\" onclick=\"setTheme('baldanders', this)\">BALDANDERS</button>\n <button class=\"mini-btn\" id=\"astra-toggle-btn\" onclick=\"toggleAstraCritique()\">ASTRA REDLINE: OFF</button>\n <button class=\"mini-btn\" id=\"audio-toggle-btn\" onclick=\"toggleAudio()\">SYNTH: OFF</button>\n <button class=\"mini-btn\" onclick=\"toggleEmbedDrawer()\"></> EMBED</button>\n </div>\n </div>\n\n <!-- Interactive Desktop Buddies Track (Clean Dedicated Center Lane) -->\n <div class=\"buddy-rail\" title=\"Click on the center lane to interact with Desktop Buddies!\">\n <div class=\"buddy-label-left\">\n PROJECT // <strong>DESKTOP BUDDIES</strong> (OSS PET MAKER)\n </div>\n <div class=\"buddy-lane-wrap\" id=\"buddy-lane\">\n <canvas id=\"buddy-canvas\"></canvas>\n </div>\n <div class=\"buddy-hud-actions\">\n <span class=\"buddy-speech\" id=\"buddy-speech\">TALOS-01: \"Patrolling 8 Claude Code sessions...\"</span>\n <button class=\"mini-btn\" onclick=\"spawnBuddy()\">+ SPAWN BUDDY</button>\n </div>\n </div>\n\n <!-- Hero Thesis Banner -->\n <header class=\"hero-header\">\n <div>\n <div class=\"eyebrow\">\n <span class=\"code-tag\">FAQ // MODEL STACK</span>\n <span>CITADEL.SEVERIAN.DEV · TALOS · BALDANDERS · FROM-AVALON.COM</span>\n </div>\n <h1 class=\"hero-title\">\n I DON'T USE A MODEL. <span class=\"hl\">I RUN A CITADEL.</span>\n </h1>\n <p class=\"hero-sub\">\n Many concurrent sessions run on my own machines. Each session owns one project; a lead session coordinates them across a <strong>shared to-do ledger</strong>. A <strong>421M open-weights gatekeeper</strong> triages Discord traffic, <strong>five frontier models</strong> build, rebase, design, critique, and audit claims against code—staging their work on <strong>private review pages</strong>. <strong>I approve every deploy and every public post.</strong>\n </p>\n </div>\n <div class=\"hero-stats\">\n <div class=\"stat-card\">\n <div class=\"stat-val\">06</div>\n <div class=\"stat-lbl\">Specialized Models</div>\n </div>\n <div class=\"stat-card\">\n <div class=\"stat-val\">09</div>\n <div class=\"stat-lbl\">Public Shipped Works</div>\n </div>\n <div class=\"stat-card\">\n <div class=\"stat-val\">0.8ms</div>\n <div class=\"stat-lbl\">Claviger-421M Gate</div>\n </div>\n <div class=\"stat-card\">\n <div class=\"stat-val\">100%</div>\n <div class=\"stat-lbl\">Human Gate Signed</div>\n </div>\n </div>\n </header>\n\n <!-- Mode Navigation -->\n <nav class=\"mode-nav\" role=\"tablist\">\n <button class=\"mode-tab active\" onclick=\"switchMode('topology', this)\">\n <span><span class=\"tab-num\">01</span>CITADEL TOPOLOGY & LIVE WORKBENCH</span>\n <span class=\"tab-pill\">6 MODELS</span>\n </button>\n <button class=\"mode-tab\" onclick=\"switchMode('review', this)\">\n <span><span class=\"tab-num\">02</span>PRIVATE REVIEW PAGE SIMULATOR</span>\n <span class=\"tab-pill\">ACT AS SEVERIAN</span>\n </button>\n <button class=\"mode-tab\" onclick=\"switchMode('sandbox', this)\">\n <span><span class=\"tab-num\">03</span>3D PIPELINE & SCENE CONVERT LAB</span>\n <span class=\"tab-pill\">INTERACTIVE</span>\n </button>\n <button class=\"mode-tab\" onclick=\"switchMode('projects', this)\">\n <span><span class=\"tab-num\">04</span>PUBLIC ARTIFACTS & LEDGER (9)</span>\n <span class=\"tab-pill\">ALL PUBLIC</span>\n </button>\n </nav>\n\n <!-- ===================================================================== -->\n <!-- MODE 01: TOPOLOGY & LIVE CAPABILITY WORKBENCH -->\n <!-- ===================================================================== -->\n <section class=\"workspace-deck active\" id=\"mode-topology\">\n <div class=\"deck-split\">\n <!-- Left Column: Live Circuit & 6 Model Roster Cards -->\n <div class=\"panel-box\">\n <div class=\"panel-header\">\n <span class=\"panel-title\">LIVE CITADEL SIGNAL BUS // CLICK ANY MODEL TO LAUNCH ITS SANDBOX</span>\n <span style=\"color:var(--accent-2);\" id=\"bus-status\">BUS: 60FPS LIVE</span>\n </div>\n\n <div class=\"topology-stage\">\n <canvas id=\"topology-canvas\"></canvas>\n <div class=\"topo-legend\">\n <span>● INGRESS: DISCORD</span>\n <span>◆ LEDGER: SHARED TO-DO</span>\n <span>■ GATE: PRIVATE REVIEW PAGE</span>\n </div>\n <div class=\"topo-overlay-controls\">\n <button class=\"mini-btn active\" onclick=\"triggerTaskBurst()\">⚡ DISPATCH TASK BURST</button>\n </div>\n </div>\n\n <div class=\"roster-grid\" id=\"roster-cards\">\n <!-- Opus 5.5 -->\n <div class=\"model-card\" data-model=\"opus\" onclick=\"selectModel('opus', this)\">\n <div class=\"mc-top\">\n <span class=\"mc-name\"><span class=\"mc-dot\" style=\"background:#ff5500\"></span>Opus 5.5</span>\n <span class=\"mc-badge\">CLAUDE CODE · LEAD</span>\n </div>\n <div class=\"mc-role\">Lead Coordinator & Most Project Sessions</div>\n <div class=\"mc-desc\">Coordinates the shared ledger, builds sites, tools & server kits, and stages private review pages.</div>\n </div>\n\n <!-- Claviger Laya-421M -->\n <div class=\"model-card\" data-model=\"claviger\" onclick=\"selectModel('claviger', this)\">\n <div class=\"mc-top\">\n <span class=\"mc-name\"><span class=\"mc-dot\" style=\"background:#b8ff01\"></span>Claviger (Laya-421M)</span>\n <span class=\"mc-badge\">HF OPEN-WEIGHTS</span>\n </div>\n <div class=\"mc-role\">Discord Triage Gate (`finis-est/Laya-421M-Claviger-v0`)</div>\n <div class=\"mc-desc\">Small open-weights model on Hugging Face that triages Discord messages for agents before waking sessions.</div>\n </div>\n\n <!-- Fable 5.2 -->\n <div class=\"model-card\" data-model=\"fable\" onclick=\"selectModel('fable', this)\">\n <div class=\"mc-top\">\n <span class=\"mc-name\"><span class=\"mc-dot\" style=\"background:#b388ff\"></span>Fable 5.2</span>\n <span class=\"mc-badge\">DESIGN + 3D</span>\n </div>\n <div class=\"mc-role\">Design Collaborator, Visual Language & 3D</div>\n <div class=\"mc-desc\">Worked on the decal-pack visual language, community site redesigns, 3D pipeline experiments, and idea reviews.</div>\n </div>\n\n <!-- GPT-6-Astra -->\n <div class=\"model-card\" data-model=\"astra\" onclick=\"selectModel('astra', this)\">\n <div class=\"mc-top\">\n <span class=\"mc-name\"><span class=\"mc-dot\" style=\"background:#00e5ff\"></span>GPT-6-Astra</span>\n <span class=\"mc-badge\">VIA CODEX</span>\n </div>\n <div class=\"mc-role\">Every Design Critique & Test Data Labeler</div>\n <div class=\"mc-desc\">Runs every design critique across review surfaces, plus writes and labels evaluation & training test data.</div>\n </div>\n\n <!-- GPT-6.1-Sol -->\n <div class=\"model-card\" data-model=\"sol\" onclick=\"selectModel('sol', this)\">\n <div class=\"mc-top\">\n <span class=\"mc-name\"><span class=\"mc-dot\" style=\"background:#ffb300\"></span>GPT-6.1-Sol</span>\n <span class=\"mc-badge\">VIA CODEX</span>\n </div>\n <div class=\"mc-role\">Adversarial Claim-vs-Code Verifier</div>\n <div class=\"mc-desc\">Reviews code and deployment kits specifically against the claims they make before Severian signs off.</div>\n </div>\n\n <!-- Sonnet 5.5 -->\n <div class=\"model-card\" data-model=\"sonnet\" onclick=\"selectModel('sonnet', this)\">\n <div class=\"mc-top\">\n <span class=\"mc-name\"><span class=\"mc-dot\" style=\"background:#00e676\"></span>Sonnet 5.5</span>\n <span class=\"mc-badge\">CLAUDE CODE · OPS</span>\n </div>\n <div class=\"mc-role\">Mechanical Chores, Rebases & Test Suites</div>\n <div class=\"mc-desc\">Handles mechanical chores like git rebases and test runs, and writes synthetic test conversations.</div>\n </div>\n </div>\n </div>\n\n <!-- Right Column: Multi-Monitor Overview + 6 Deep-Dive Workbenches -->\n <div class=\"panel-box\">\n <div class=\"panel-header\">\n <span class=\"panel-title\" id=\"wb-panel-heading\">LIVE CAPABILITY WORKBENCH // 4-QUADRANT MISSION MONITOR</span>\n <div style=\"display:flex;gap:5px;align-items:center;\">\n <button class=\"mini-btn active\" id=\"btn-quad-overview\" onclick=\"selectModel('overview', null)\">⊞ 4-UP MONITOR</button>\n <span style=\"color:var(--ink-2);\" id=\"wb-active-indicator\">ALL NODES</span>\n </div>\n </div>\n\n <div class=\"workbench-container\">\n <!-- DEFAULT VIEW: 4-QUADRANT LIVE CAPABILITY MONITOR -->\n <div class=\"wb-view active\" id=\"wb-overview\">\n <div class=\"quad-grid\">\n <!-- Quad 1: Fable 5.2 3D Pipeline Mini-Viewport -->\n <div class=\"quad-box\" onclick=\"selectModel('fable', document.querySelector('.model-card[data-model=fable]'))\">\n <div class=\"quad-hdr\">\n <span><strong style=\"color:#b388ff\">FABLE 5.2</strong> // 3D PIPELINE & DECAL SHADER</span>\n <span class=\"mini-btn\">EXPAND ▸</span>\n </div>\n <div style=\"position:relative;height:135px;background:#050608;border:1px solid var(--border);\">\n <canvas id=\"quad-3d-canvas\" style=\"width:100%;height:100%;display:block;\"></canvas>\n <div style=\"position:absolute;bottom:4px;left:6px;font-family:var(--font-mono);font-size:9px;color:var(--ink-1);\">\n PROCEDURAL MESH · 60FPS WEBGL/2D PIPELINE\n </div>\n </div>\n </div>\n\n <!-- Quad 2: Claviger-421M Live Discord Triage -->\n <div class=\"quad-box\" onclick=\"selectModel('claviger', document.querySelector('.model-card[data-model=claviger]'))\">\n <div class=\"quad-hdr\">\n <span><strong style=\"color:#b8ff01\">CLAVIGER-421M</strong> // DISCORD TRIAGE</span>\n <span class=\"mini-btn\">TEST ▸</span>\n </div>\n <div style=\"font-family:var(--font-mono);font-size:9.5px;color:var(--ink-1);background:var(--bg-0);padding:6px;border:1px solid var(--border);margin-bottom:4px;\">\n <div style=\"color:var(--accent-2);\">hf.co/finis-est/Laya-421M-Claviger-v0</div>\n <div style=\"color:var(--ink-0);margin-top:2px;\">\"Hearthwynd nav overlaps at 375px\"</div>\n </div>\n <div style=\"font-family:var(--font-mono);font-size:9px;display:flex;flex-direction:column;gap:4px;\">\n <div>\n <div style=\"display:flex;justify-content:space-between;\"><span>ROUTE → OPUS SESSION</span><strong style=\"color:#ff5500\">84.2%</strong></div>\n <div class=\"logit-track\"><div class=\"logit-fill\" style=\"width:84%;background:#ff5500\"></div></div>\n </div>\n <div>\n <div style=\"display:flex;justify-content:space-between;\"><span>ROUTE → SONNET TESTS</span><strong style=\"color:#00e676\">11.4%</strong></div>\n <div class=\"logit-track\"><div class=\"logit-fill\" style=\"width:11%;background:#00e676\"></div></div>\n </div>\n <div>\n <div style=\"display:flex;justify-content:space-between;\"><span>DROP → CHATTER</span><strong style=\"color:#76746d\">4.4%</strong></div>\n <div class=\"logit-track\"><div class=\"logit-fill\" style=\"width:4%;background:#76746d\"></div></div>\n </div>\n </div>\n </div>\n\n <!-- Quad 3: Opus 5.5 + Sonnet 5.5 Concurrent Sessions -->\n <div class=\"quad-box\" onclick=\"selectModel('opus', document.querySelector('.model-card[data-model=opus]'))\">\n <div class=\"quad-hdr\">\n <span><strong style=\"color:#ff5500\">OPUS 5.5 + SONNET 5.5</strong> // LEDGER & OPS</span>\n <span class=\"mini-btn\">SESSIONS ▸</span>\n </div>\n <div class=\"code-output\" style=\"font-size:9.5px;padding:6px 8px;flex:1;\">\n <div style=\"color:var(--accent);font-weight:700;\">ACTIVE CLAUDE CODE SESSIONS (8):</div>\n <div>#01 from-avalon.com <span style=\"color:var(--ok)\">[STAGED]</span></div>\n <div>#02 Into Bloom <span style=\"color:var(--ok)\">[240 TESTS PASS]</span></div>\n <div>#03 Hearthwynd <span style=\"color:var(--accent-2)\">[REBASED ON MAIN]</span></div>\n <div>#04 Desktop Buddies <span style=\"color:var(--ok)\">[RIG EXPORTED]</span></div>\n <div>#05 Scene Convert <span style=\"color:var(--accent-3)\">[16-BIT PARSER]</span></div>\n </div>\n </div>\n\n <!-- Quad 4: GPT-6-Astra + GPT-6.1-Sol Codex Verification -->\n <div class=\"quad-box\" onclick=\"selectModel('sol', document.querySelector('.model-card[data-model=sol]'))\">\n <div class=\"quad-hdr\">\n <span><strong style=\"color:#ffb300\">SOL 6.1 + ASTRA 6</strong> // AUDIT & CRITIQUE</span>\n <span class=\"mini-btn\">AUDIT ▸</span>\n </div>\n <div class=\"code-output\" style=\"font-size:9.5px;padding:6px 8px;flex:1;\">\n <div style=\"color:var(--accent-3);font-weight:700;\">[GPT-6-ASTRA]: Contrast 15.8:1 AAA ✓</div>\n <div style=\"color:var(--accent-5);font-weight:700;margin-top:3px;\">[GPT-6.1-SOL CLAIM-VS-CODE AUDIT]:</div>\n <div>✓ Claim: \"Zero wake on noise\" → Verified</div>\n <div style=\"color:var(--danger);\">⚠ Claim: \"All LAN IPs masked\" → Caught IPv6 gap in redactor.ts:19!</div>\n <div style=\"color:var(--ink-2);margin-top:2px;\">Click to inspect & auto-patch drift ▸</div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- WORKBENCH: OPUS 5.5 -->\n <div class=\"wb-view\" id=\"wb-opus\">\n <div class=\"wb-header\">\n <div>\n <div class=\"wb-title\">Opus 5.5 // Lead Coordinator & Project Sessions</div>\n <div class=\"wb-subtitle\">SHARED TO-DO LEDGER + CONCURRENT SESSION ORCHESTRATOR</div>\n </div>\n <span class=\"wb-tag\">CLAUDE CODE</span>\n </div>\n <p style=\"font-size:11.5px;color:var(--ink-1);\">\n Each session owns one project on my machines. Click any active session below to inspect the live task Opus 5.5 is building and staging for private review:\n </p>\n <div class=\"preset-chips\" id=\"opus-session-btns\">\n <button class=\"chip-btn mini-btn active\" onclick=\"selectOpusSession(0, this)\">#01 from-avalon.com</button>\n <button class=\"chip-btn mini-btn\" onclick=\"selectOpusSession(1, this)\">#02 Into Bloom</button>\n <button class=\"chip-btn mini-btn\" onclick=\"selectOpusSession(2, this)\">#03 Hearthwynd</button>\n <button class=\"chip-btn mini-btn\" onclick=\"selectOpusSession(3, this)\">#04 Desktop Buddies</button>\n <button class=\"chip-btn mini-btn\" onclick=\"selectOpusSession(4, this)\">#05 Scene Convert</button>\n <button class=\"chip-btn mini-btn\" onclick=\"selectOpusSession(5, this)\">#06 citadel.severian.dev</button>\n </div>\n <div class=\"code-output\" id=\"opus-terminal\" style=\"flex:1;\"></div>\n <div style=\"display:flex;justify-content:space-between;align-items:center;gap:8px;\">\n <span style=\"font-family:var(--font-mono);font-size:9.5px;color:var(--ink-2);\">PRIVATE REVIEW SURFACE STAGED ON LOCAL LAN</span>\n <button class=\"mini-btn active\" onclick=\"rebalanceLedger()\">↻ COORDINATE & ADVANCE LEDGER</button>\n </div>\n </div>\n\n <!-- WORKBENCH: CLAVIGER (Laya-421M) -->\n <div class=\"wb-view\" id=\"wb-claviger\">\n <div class=\"wb-header\">\n <div>\n <div class=\"wb-title\">Claviger // finis-est/Laya-421M-Claviger-v0</div>\n <div class=\"wb-subtitle\">LIVE DISCORD MESSAGE TRIAGE GATEKEEPER (421M OPEN-WEIGHTS)</div>\n </div>\n <span class=\"wb-tag\">HUGGING FACE · 421M</span>\n </div>\n <p style=\"font-size:11.5px;color:var(--ink-1);\">\n Type any Discord message (or click a sample) to watch Claviger triage it in sub-millisecond time before waking a frontier session:\n </p>\n <div class=\"discord-input-row\">\n <input type=\"text\" id=\"claviger-input\" class=\"discord-input\" value=\"Hearthwynd mobile nav overlaps the decal header at 375px width on iOS Safari\" oninput=\"runClavigerInference()\" />\n <button class=\"mini-btn active\" onclick=\"runClavigerInference()\">TRIAGE</button>\n </div>\n <div class=\"preset-chips\">\n <button class=\"chip-btn\" onclick=\"setClavigerSample('Hearthwynd mobile nav overlaps the decal header at 375px width on iOS Safari')\">Bug Report (Hearthwynd)</button>\n <button class=\"chip-btn\" onclick=\"setClavigerSample('Scene Convert throws NaN when parsing 16-bit PSD depth channels')\">Scene Convert Crash</button>\n <button class=\"chip-btn\" onclick=\"setClavigerSample('Can we add a new glTF normal-map baker to the 3D model pipeline?')\">3D Pipeline Request</button>\n <button class=\"chip-btn\" onclick=\"setClavigerSample('gm everyone!! loving the new Into Bloom seasonal illustrations!')\">Community Chatter (Ignore)</button>\n </div>\n <div class=\"logit-bars\" id=\"claviger-bars\"></div>\n <div class=\"code-output\" id=\"claviger-json\"></div>\n </div>\n\n <!-- WORKBENCH: FABLE 5.2 -->\n <div class=\"wb-view\" id=\"wb-fable\">\n <div class=\"wb-header\">\n <div>\n <div class=\"wb-title\">Fable 5.2 // Decal Design Language & 3D Pipeline</div>\n <div class=\"wb-subtitle\">INTERACTIVE 60FPS PROCEDURAL 3D MESH & SHADER SANDBOX</div>\n </div>\n <span class=\"wb-tag\">3D + VISUAL LANGUAGE</span>\n </div>\n <div class=\"canvas-3d-wrap\">\n <canvas id=\"fable-3d-canvas\"></canvas>\n <div class=\"canvas-3d-hud\">\n <span id=\"mesh-telemetry\">MESH: CITADEL RELIQUARY · 40 TRIS · 60 FPS</span>\n <span>DRAG TO ROTATE 3D</span>\n </div>\n <div class=\"canvas-3d-controls\">\n <div style=\"display:flex;gap:4px;\">\n <button class=\"mini-btn active\" onclick=\"setFableMesh('obelisk', this)\">RELIQUARY</button>\n <button class=\"mini-btn\" onclick=\"setFableMesh('bloom', this)\">AVALON TORUS</button>\n <button class=\"mini-btn\" onclick=\"setFableMesh('buddy', this)\">BUDDY RIG</button>\n <button class=\"mini-btn\" onclick=\"setFableMesh('cage', this)\">SCENE CAGE</button>\n </div>\n <div style=\"display:flex;gap:4px;\">\n <button class=\"mini-btn active\" onclick=\"setFableShader('decal', this)\">DECAL SHADER</button>\n <button class=\"mini-btn\" onclick=\"setFableShader('wire', this)\">WIREFRAME</button>\n <button class=\"mini-btn\" onclick=\"setFableShader('normal', this)\">NORMALS</button>\n </div>\n </div>\n </div>\n <div class=\"code-output\" id=\"fable-notes\">\n [FABLE 5.2 // DESIGN NOTE]: Built visual language from industrial die-cut decal sheets: registration crosses (+), 45° chamfered tags, high-contrast telemetry blocks, and procedural 3D meshes exported straight to WebGL review surfaces.\n </div>\n </div>\n\n <!-- WORKBENCH: GPT-6-ASTRA -->\n <div class=\"wb-view\" id=\"wb-astra\">\n <div class=\"wb-header\">\n <div>\n <div class=\"wb-title\">GPT-6-Astra (via Codex) // Design Critic & Labeler</div>\n <div class=\"wb-subtitle\">EVERY DESIGN CRITIQUE + TEST DATA WRITING & LABELING</div>\n </div>\n <span class=\"wb-tag\">CODEX · CRITIQUE</span>\n </div>\n <p style=\"font-size:11.5px;color:var(--ink-1);\">\n Astra critiques every visual surface before Severian sees it, and labels synthetic test datasets for Claviger & UI regression:\n </p>\n <div style=\"display:flex;gap:6px;flex-wrap:wrap;\">\n <button class=\"mini-btn active\" onclick=\"toggleAstraCritique()\">TOGGLE FULL-PAGE REDLINE OVERLAY</button>\n <button class=\"mini-btn\" onclick=\"runAstraLabelBatch()\">+ LABEL NEW TEST DATA BATCH</button>\n </div>\n <div class=\"code-output\" id=\"astra-critique-box\" style=\"flex:1;\"></div>\n </div>\n\n <!-- WORKBENCH: GPT-6.1-SOL -->\n <div class=\"wb-view\" id=\"wb-sol\">\n <div class=\"wb-header\">\n <div>\n <div class=\"wb-title\">GPT-6.1-Sol (via Codex) // Claim-vs-Code Auditor</div>\n <div class=\"wb-subtitle\">REVIEWS CODE & DEPLOYMENT KITS AGAINST THEIR CLAIMS</div>\n </div>\n <span class=\"wb-tag\">CODEX · VERIFIER</span>\n </div>\n <p style=\"font-size:11.5px;color:var(--ink-1);\">\n Click any deployment claim below to see how GPT-6.1-Sol verifies the actual code & server kit against what the session claimed:\n </p>\n <div class=\"audit-split\" style=\"flex:1;\">\n <div class=\"audit-col\" id=\"sol-claims-list\"></div>\n <div class=\"audit-col\" id=\"sol-code-proof\" style=\"background:#060709;\"></div>\n </div>\n <div style=\"display:flex;justify-content:space-between;align-items:center;\">\n <span style=\"font-family:var(--font-mono);font-size:9.5px;color:var(--accent-5);\" id=\"sol-summary-status\">2 CLAIMS VERIFIED · 1 DRIFT CAUGHT BEFORE DEPLOY</span>\n <button class=\"mini-btn active\" onclick=\"patchSolDrift()\">⚡ AUTO-PATCH DRIFT VIA OPUS 5.5</button>\n </div>\n </div>\n\n <!-- WORKBENCH: SONNET 5.5 -->\n <div class=\"wb-view\" id=\"wb-sonnet\">\n <div class=\"wb-header\">\n <div>\n <div class=\"wb-title\">Sonnet 5.5 // Mechanical Chores, Rebases & Tests</div>\n <div class=\"wb-subtitle\">GIT REBASE ENGINE + SYNTHETIC TEST CONVERSATION WRITER</div>\n </div>\n <span class=\"wb-tag\">CLAUDE CODE · OPS</span>\n </div>\n <p style=\"font-size:11.5px;color:var(--ink-1);\">\n Sonnet 5.5 handles mechanical chores across Citadel: rebasing topic branches, running test suites, and generating multi-turn test conversations:\n </p>\n <div style=\"display:flex;gap:6px;flex-wrap:wrap;\">\n <button class=\"mini-btn active\" onclick=\"runSonnetRebase()\">▶ RUN GIT REBASE & 240 TESTS</button>\n <button class=\"mini-btn\" onclick=\"generateSonnetConvo()\">💬 WRITE SYNTHETIC TEST CONVERSATION</button>\n </div>\n <div class=\"code-output\" id=\"sonnet-output\" style=\"flex:1;\"></div>\n </div>\n </div>\n </div>\n </div>\n </section>\n\n <!-- ===================================================================== -->\n <!-- MODE 02: PRIVATE REVIEW SURFACE SIMULATOR (STEP IN AS SEVERIAN) -->\n <!-- ===================================================================== -->\n <section class=\"workspace-deck\" id=\"mode-review\">\n <div class=\"review-surface-grid\">\n <!-- Left: 6-Stage Multi-Model Trace -->\n <div class=\"panel-box\">\n <div>\n <div class=\"panel-header\">\n <span class=\"panel-title\">TASK LIFECYCLE // 6 MODELS</span>\n <button class=\"mini-btn active\" onclick=\"playFullReviewTrace()\">▶ AUTO-STEP</button>\n </div>\n <div style=\"margin-bottom:8px;\">\n <div style=\"font-family:var(--font-mono);font-size:9.5px;color:var(--ink-2);margin-bottom:4px;\">SELECT REAL CITADEL SCENARIO:</div>\n <div class=\"preset-chips\">\n <button class=\"chip-btn mini-btn active\" onclick=\"loadScenario(0, this)\">Hearthwynd Redesign</button>\n <button class=\"chip-btn mini-btn\" onclick=\"loadScenario(1, this)\">Desktop Buddies Rig</button>\n <button class=\"chip-btn mini-btn\" onclick=\"loadScenario(2, this)\">Scene Convert Kit</button>\n </div>\n </div>\n <div class=\"pipeline-steps\" id=\"review-steps-list\"></div>\n </div>\n </div>\n\n <!-- Right: Staged Private Review Page + Severian Approval Gate -->\n <div class=\"panel-box\">\n <div class=\"panel-header\">\n <span class=\"panel-title\" id=\"rev-page-url\">PRIVATE REVIEW PAGE // http://citadel.local:4410/review/hearthwynd-v4</span>\n <span class=\"hazard-pill\" id=\"rev-gate-badge\">AWAITING SEVERIAN</span>\n </div>\n\n <div id=\"rev-stage-detail\" style=\"flex:1;display:flex;flex-direction:column;gap:10px;margin-bottom:10px;\"></div>\n\n <div class=\"approve-bar\">\n <div>\n <div style=\"font-family:var(--font-mono);font-size:10.5px;font-weight:700;color:var(--ink-0);\">\n HUMAN GATEKEEPER // SEVERIAN'S SIGN-OFF\n </div>\n <div style=\"font-family:var(--font-mono);font-size:9.5px;color:var(--ink-1);\" id=\"approve-status-text\">\n No session can deploy or publish a post without explicit approval here.\n </div>\n </div>\n <div style=\"display:flex;gap:8px;\">\n <button class=\"action-btn btn-reject\" onclick=\"severianDecision('reject')\">✕ REQUEST REVISION</button>\n <button class=\"action-btn btn-approve\" onclick=\"severianDecision('approve')\">✓ APPROVE DEPLOY</button>\n </div>\n </div>\n </div>\n </div>\n </section>\n\n <!-- ===================================================================== -->\n <!-- MODE 03: 3D PIPELINE & SCENE CONVERT INTERACTIVE LAB -->\n <!-- ===================================================================== -->\n <section class=\"workspace-deck\" id=\"mode-sandbox\">\n <div class=\"lab-grid\">\n <!-- Left Lab: Scene Convert Interactive Layer Decomposer -->\n <div class=\"lab-card\">\n <div class=\"panel-header\" style=\"margin-bottom:2px;\">\n <span class=\"panel-title\">SCENE CONVERT // IMAGE-SCENE LAYER CONVERTER</span>\n <span style=\"font-family:var(--font-mono);font-size:9.5px;color:var(--accent);\">OPUS 5.5 + FABLE 5.2</span>\n </div>\n <p style=\"font-size:11.5px;color:var(--ink-1);\">\n Drag the decomposition slider to inspect how <strong>Scene Convert</strong> splits a composite image-scene file into depth planes, lighting maps, and vector decal layers:\n </p>\n <div style=\"position:relative;height:220px;background:#07080a;border:1px solid var(--border-strong);overflow:hidden;\">\n <canvas id=\"scene-convert-canvas\" style=\"width:100%;height:100%;display:block;\"></canvas>\n </div>\n <div style=\"display:flex;align-items:center;gap:12px;font-family:var(--font-mono);font-size:10.5px;\">\n <span>COMPOSITE</span>\n <input type=\"range\" id=\"scene-explode-slider\" min=\"0\" max=\"100\" value=\"55\" style=\"flex:1;accent-color:var(--accent);\" oninput=\"drawSceneConvert()\" />\n <span>EXPLODED SCENE LAYERS (4)</span>\n </div>\n </div>\n\n <!-- Right Lab: Decal-Pack Design Language Specimen Generator -->\n <div class=\"lab-card\">\n <div class=\"panel-header\" style=\"margin-bottom:2px;\">\n <span class=\"panel-title\">DECAL-PACK DESIGN SYSTEM // SPECIMEN GENERATOR</span>\n <span style=\"font-family:var(--font-mono);font-size:9.5px;color:var(--accent-3);\">FABLE 5.2 + GPT-6-ASTRA</span>\n </div>\n <p style=\"font-size:11.5px;color:var(--ink-1);\">\n Fable 5.2 built a cohesive visual language from a decal pack, critiqued on every pass by GPT-6-Astra. Customize a live decal telemetry plate below:\n </p>\n <div style=\"position:relative;height:220px;background:#07080a;border:1px solid var(--border-strong);overflow:hidden;\">\n <canvas id=\"decal-specimen-canvas\" style=\"width:100%;height:100%;display:block;\"></canvas>\n </div>\n <div style=\"display:flex;gap:6px;flex-wrap:wrap;justify-content:space-between;\">\n <div style=\"display:flex;gap:5px;\">\n <button class=\"mini-btn active\" onclick=\"cycleDecalStamp(0, this)\">STAMP: CITADEL-01</button>\n <button class=\"mini-btn\" onclick=\"cycleDecalStamp(1, this)\">STAMP: AVALON-BLOOM</button>\n <button class=\"mini-btn\" onclick=\"cycleDecalStamp(2, this)\">STAMP: CLAVIGER-421M</button>\n </div>\n <button class=\"mini-btn active\" onclick=\"randomizeDecalSeed()\">↻ MUTATE DECAL SEED</button>\n </div>\n </div>\n </div>\n </section>\n\n <!-- ===================================================================== -->\n <!-- MODE 04: ALL 9 PUBLIC PROJECTS & MODEL FINGERPRINTS -->\n <!-- ===================================================================== -->\n <section class=\"workspace-deck\" id=\"mode-projects\">\n <div style=\"padding:10px 14px 0;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;\">\n <div style=\"font-family:var(--font-mono);font-size:10.5px;color:var(--ink-1);\">\n FILTER 9 PUBLIC BUILDS BY MODEL CONTRIBUTION:\n </div>\n <div class=\"preset-chips\" id=\"proj-filter-bar\">\n <button class=\"chip-btn mini-btn active\" onclick=\"filterProjects('all', this)\">ALL (9)</button>\n <button class=\"chip-btn mini-btn\" onclick=\"filterProjects('Opus 5.5', this)\">Opus 5.5</button>\n <button class=\"chip-btn mini-btn\" onclick=\"filterProjects('Sonnet 5.5', this)\">Sonnet 5.5</button>\n <button class=\"chip-btn mini-btn\" onclick=\"filterProjects('Fable 5.2', this)\">Fable 5.2</button>\n <button class=\"chip-btn mini-btn\" onclick=\"filterProjects('GPT-6-Astra', this)\">GPT-6-Astra</button>\n <button class=\"chip-btn mini-btn\" onclick=\"filterProjects('GPT-6.1-Sol', this)\">GPT-6.1-Sol</button>\n <button class=\"chip-btn mini-btn\" onclick=\"filterProjects('Claviger-421M', this)\">Claviger-421M</button>\n </div>\n </div>\n <div class=\"projects-matrix\" id=\"projects-grid\"></div>\n </section>\n\n <!-- Bottom Strip: Baldanders Redacted Agent Transcript Stream -->\n <footer class=\"baldanders-strip\" id=\"baldanders-footer\">\n <div style=\"display:flex;align-items:center;gap:8px;\">\n <span class=\"hazard-pill\" style=\"background:var(--bg-3);color:var(--ink-0);border:1px solid var(--border-strong);\">\n BALDANDERS.SEVERIAN.DEV\n </span>\n <span style=\"color:var(--ink-2);\">REDACTED TRANSCRIPT:</span>\n </div>\n <div class=\"redact-stream\" id=\"redact-log-line\">\n [OPUS-5.5 → SOL-6.1] Staged <span class=\"redact-block\" title=\"Hover to unmask\">10.0.42.18:4410/rev/88</span> for Hearthwynd; Claviger filtered <span class=\"redact-block\" title=\"Hover to unmask\">142 noise pings</span>; Astra verified <span class=\"redact-block\" title=\"Hover to unmask\">15.8:1 AAA contrast</span>. Awaiting Severian sign-off.\n </div>\n <div style=\"display:flex;gap:5px;\">\n <button class=\"mini-btn\" onclick=\"cycleTranscript()\">NEXT LOG ▸</button>\n <button class=\"mini-btn\" id=\"declassify-btn\" onclick=\"toggleDeclassify()\">UNMASK REDACTIONS</button>\n </div>\n </footer>\n\n <!-- Embed Code Drawer -->\n <div class=\"embed-drawer\" id=\"embed-drawer\">\n <div style=\"display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;\">\n <strong style=\"color:var(--accent);\">DROP-IN POST EMBED SNIPPET (SELF-CONTAINED IFRAME):</strong>\n <button class=\"mini-btn active\" onclick=\"copyEmbedSnippet(this)\">COPY SNIPPET</button>\n </div>\n <div class=\"code-output\" id=\"embed-snippet-code\"><iframe src=\"/embeds/citadel-embed.html\" width=\"100%\" height=\"760\" style=\"border:none;border-radius:4px;overflow:hidden;\" loading=\"lazy\" title=\"Severian's Citadel — Live Model Architecture\"></iframe></div>\n </div>\n</div>\n\n<script>\n/* ==========================================================================\n CITADEL INTERACTIVE ENGINE (Zero External Dependencies)\n ========================================================================== */\n\nlet audioEnabled = false;\nlet audioCtx = null;\n\nfunction playTick(freq = 520, duration = 0.035, type = 'triangle') {\n if (!audioEnabled) return;\n try {\n if (!audioCtx) audioCtx = new (window.AudioContext || window.webkitAudioContext)();\n const osc = audioCtx.createOscillator();\n const gain = audioCtx.createGain();\n osc.type = type;\n osc.frequency.setValueAtTime(freq, audioCtx.currentTime);\n gain.gain.setValueAtTime(0.06, audioCtx.currentTime);\n gain.gain.exponentialRampToValueAtTime(0.001, audioCtx.currentTime + duration);\n osc.connect(gain);\n gain.connect(audioCtx.destination);\n osc.start();\n osc.stop(audioCtx.currentTime + duration);\n } catch (e) {}\n}\n\nfunction toggleAudio() {\n audioEnabled = !audioEnabled;\n const btn = document.getElementById('audio-toggle-btn');\n btn.textContent = audioEnabled ? 'SYNTH: ON' : 'SYNTH: OFF';\n btn.classList.toggle('active', audioEnabled);\n if (audioEnabled) playTick(880, 0.06, 'sine');\n}\n\nfunction setTheme(theme, btn) {\n document.documentElement.setAttribute('data-theme', theme);\n document.querySelectorAll('.decal-controls .mini-btn').forEach(b => {\n if (b.textContent.startsWith('DECAL:') || b.textContent.includes('BLOOM') || b.textContent.includes('HEARTHWYND') || b.textContent.includes('BALDANDERS')) {\n b.classList.remove('active');\n }\n });\n if (btn) btn.classList.add('active');\n playTick(640, 0.04);\n drawSceneConvert();\n drawDecalSpecimen();\n}\n\nfunction toggleAstraCritique() {\n const root = document.getElementById('citadel-root');\n const on = root.classList.toggle('astra-critique-on');\n const btn = document.getElementById('astra-toggle-btn');\n btn.textContent = on ? 'ASTRA REDLINE: ON' : 'ASTRA REDLINE: OFF';\n btn.classList.toggle('active', on);\n playTick(on ? 960 : 420, 0.05);\n}\n\nfunction toggleEmbedDrawer() {\n document.getElementById('embed-drawer').classList.toggle('open');\n playTick(500, 0.04);\n}\n\nfunction copyEmbedSnippet(btn) {\n const txt = document.getElementById('embed-snippet-code').textContent;\n if (navigator.clipboard) navigator.clipboard.writeText(txt);\n btn.textContent = 'COPIED ✓';\n setTimeout(() => { btn.textContent = 'COPY SNIPPET'; }, 1600);\n}\n\nfunction switchMode(modeId, btn) {\n document.querySelectorAll('.workspace-deck').forEach(el => el.classList.remove('active'));\n document.getElementById('mode-' + modeId).classList.add('active');\n document.querySelectorAll('.mode-tab').forEach(b => b.classList.remove('active'));\n if (btn) btn.classList.add('active');\n playTick(700, 0.045);\n if (modeId === 'sandbox') {\n setTimeout(() => {\n drawSceneConvert();\n drawDecalSpecimen();\n }, 30);\n }\n}\n\n/* ==========================================================================\n 1. DESKTOP BUDDIES RAIL ENGINE (Dedicated Non-Overlapping Center Track)\n ========================================================================== */\nconst buddyCanvas = document.getElementById('buddy-canvas');\nconst bCtx = buddyCanvas.getContext('2d');\nconst buddies = [\n { name: 'TALOS-01', x: 50, vx: 0.75, color: '#ff5500', hop: 0, quote: 'TALOS-01: \"Coordinating 8 Claude Code sessions via Opus 5.5!\"' },\n { name: 'CLAV-421M', x: 210, vx: -0.6, color: '#b8ff01', hop: 0, quote: 'CLAV-421M: \"Triaged 1,420 Discord messages at 0.8ms latency!\"' }\n];\nconst buddyQuotes = [\n 'TALOS-01: \"Desktop Buddies is open-source! Built with Opus 5.5 + Fable 5.2.\"',\n 'CLAV-421M: \"Holding the keys at the Discord gate—only real tasks wake Opus.\"',\n 'BLOOM-BOT: \"GPT-6-Astra just critiqued my pixel kerning on Into Bloom!\"',\n 'SOL-GUARD: \"GPT-6.1-Sol verified every deployment claim against the AST.\"'\n];\n\nfunction spawnBuddy() {\n const colors = ['#00e5ff', '#b388ff', '#ffb300', '#00e676', '#ff5500'];\n const names = ['BLOOM-02', 'SOL-WATCH', 'ASTRA-EYE', 'HEARTH-IMP'];\n const idx = buddies.length % names.length;\n buddies.push({\n name: names[idx],\n x: 40 + Math.random() * 180,\n vx: (Math.random() > 0.5 ? 1 : -1) * (0.55 + Math.random() * 0.5),\n color: colors[buddies.length % colors.length],\n hop: 7,\n quote: buddyQuotes[buddies.length % buddyQuotes.length]\n });\n document.getElementById('buddy-speech').textContent = buddies[buddies.length - 1].quote;\n playTick(840, 0.06);\n}\n\nbuddyCanvas.addEventListener('click', (e) => {\n const rect = buddyCanvas.getBoundingClientRect();\n const clickX = e.clientX - rect.left;\n buddies.forEach(b => {\n b.hop = 8;\n b.vx = clickX > b.x ? Math.abs(b.vx) + 0.3 : -Math.abs(b.vx) - 0.3;\n });\n document.getElementById('buddy-speech').textContent = buddyQuotes[Math.floor(Math.random() * buddyQuotes.length)];\n playTick(920, 0.05);\n});\n\nfunction renderBuddies() {\n const w = buddyCanvas.clientWidth || 360;\n const h = buddyCanvas.clientHeight || 30;\n if (buddyCanvas.width !== w || buddyCanvas.height !== h) {\n buddyCanvas.width = w;\n buddyCanvas.height = h;\n }\n bCtx.clearRect(0, 0, w, h);\n\n // Subtle rail tick marks\n bCtx.fillStyle = 'rgba(243,240,230,0.12)';\n for (let rx = 16; rx < w - 12; rx += 24) {\n bCtx.fillRect(rx, h - 4, 1, 3);\n }\n\n const t = performance.now() * 0.008;\n buddies.forEach((b, i) => {\n b.x += b.vx;\n if (b.x < 14) { b.x = 14; b.vx = Math.abs(b.vx); }\n if (b.x > w - 14) { b.x = w - 14; b.vx = -Math.abs(b.vx); }\n if (b.hop > 0) b.hop *= 0.88;\n\n const bob = Math.abs(Math.sin(t + i * 1.7)) * 2.5 + b.hop;\n const bx = Math.round(b.x);\n const by = Math.round(h - 12 - bob);\n\n // Shadow\n bCtx.fillStyle = 'rgba(0,0,0,0.45)';\n bCtx.fillRect(bx - 5, h - 3, 12, 2);\n\n // Pixel Construct Body\n bCtx.fillStyle = b.color;\n bCtx.fillRect(bx - 5, by - 7, 12, 9);\n // Antenna\n bCtx.fillRect(bx, by - 10, 2, 3);\n // Visor Eyes\n bCtx.fillStyle = '#090a0c';\n const dir = b.vx >= 0 ? 1 : -1;\n bCtx.fillRect(bx - 3 + dir, by - 5, 2, 2);\n bCtx.fillRect(bx + 2 + dir, by - 5, 2, 2);\n // Feet\n bCtx.fillStyle = '#f3f0e6';\n const step = Math.sin(t * 2 + i) > 0 ? 1 : -1;\n bCtx.fillRect(bx - 3 + step, by + 2, 2, 2);\n bCtx.fillRect(bx + 2 - step, by + 2, 2, 2);\n });\n}\n\n/* ==========================================================================\n 2. CITADEL TOPOLOGY SIGNAL BUS CANVAS\n ========================================================================== */\nconst topoCanvas = document.getElementById('topology-canvas');\nconst tCtx = topoCanvas.getContext('2d');\nlet selectedModelKey = 'overview';\n\nconst topoNodes = [\n { id: 'claviger', label: 'CLAVIGER', sub: 'Laya-421M Gate', x: 0.11, y: 0.50, color: '#b8ff01' },\n { id: 'ledger', label: 'TO-DO LEDGER', sub: 'Shared State', x: 0.29, y: 0.50, color: '#f3f0e6', isHub: true },\n { id: 'opus', label: 'OPUS 5.5', sub: 'Lead + 8 Sessions', x: 0.50, y: 0.50, color: '#ff5500' },\n { id: 'fable', label: 'FABLE 5.2', sub: 'Decal + 3D Pipe', x: 0.50, y: 0.19, color: '#b388ff' },\n { id: 'sonnet', label: 'SONNET 5.5', sub: 'Rebase + Tests', x: 0.50, y: 0.81, color: '#00e676' },\n { id: 'astra', label: 'GPT-6-ASTRA', sub: 'Design Critique', x: 0.72, y: 0.26, color: '#00e5ff' },\n { id: 'sol', label: 'GPT-6.1-SOL', sub: 'Claim vs Code', x: 0.72, y: 0.74, color: '#ffb300' },\n { id: 'gate', label: 'SEVERIAN', sub: 'Review & Sign-Off', x: 0.90, y: 0.50, color: '#ff2a55', isGate: true }\n];\n\nconst topoEdges = [\n ['claviger', 'ledger'],\n ['ledger', 'opus'],\n ['opus', 'fable'],\n ['opus', 'sonnet'],\n ['fable', 'astra'],\n ['opus', 'astra'],\n ['sonnet', 'sol'],\n ['opus', 'sol'],\n ['astra', 'gate'],\n ['sol', 'gate']\n];\n\nconst packets = [];\nfor (let i = 0; i < 18; i++) {\n const edge = topoEdges[i % topoEdges.length];\n packets.push({\n from: edge[0],\n to: edge[1],\n t: Math.random(),\n speed: 0.004 + Math.random() * 0.005\n });\n}\n\nfunction triggerTaskBurst() {\n topoEdges.forEach(edge => {\n for (let k = 0; k < 2; k++) {\n packets.push({\n from: edge[0],\n to: edge[1],\n t: Math.random() * 0.25,\n speed: 0.011 + Math.random() * 0.006,\n burst: true\n });\n }\n });\n document.getElementById('bus-status').textContent = 'BUS: TASK BURST DISPATCHED ⚡';\n playTick(780, 0.07);\n setTimeout(() => {\n document.getElementById('bus-status').textContent = 'BUS: 60FPS LIVE';\n }, 1800);\n}\n\ntopoCanvas.addEventListener('click', (e) => {\n const rect = topoCanvas.getBoundingClientRect();\n const mx = (e.clientX - rect.left) / rect.width;\n const my = (e.clientY - rect.top) / rect.height;\n let closest = null;\n let minDist = 0.09;\n topoNodes.forEach(n => {\n const d = Math.hypot(mx - n.x, my - n.y);\n if (d < minDist) { minDist = d; closest = n; }\n });\n if (closest) {\n if (closest.id === 'gate') {\n switchMode('review', document.querySelectorAll('.mode-tab')[1]);\n return;\n }\n const card = document.querySelector(`.model-card[data-model=\"${closest.id}\"]`);\n if (card) selectModel(closest.id, card);\n }\n});\n\nfunction renderTopology() {\n const w = topoCanvas.clientWidth || 560;\n const h = topoCanvas.clientHeight || 176;\n if (topoCanvas.width !== w || topoCanvas.height !== h) {\n topoCanvas.width = w;\n topoCanvas.height = h;\n }\n tCtx.clearRect(0, 0, w, h);\n\n const nodeMap = {};\n topoNodes.forEach(n => { nodeMap[n.id] = { ...n, px: n.x * w, py: n.y * h }; });\n\n // Draw Edges\n topoEdges.forEach(([a, b]) => {\n const na = nodeMap[a];\n const nb = nodeMap[b];\n const isSelectedEdge = (a === selectedModelKey || b === selectedModelKey);\n tCtx.strokeStyle = isSelectedEdge ? 'rgba(255, 85, 0, 0.6)' : 'rgba(243, 240, 230, 0.14)';\n tCtx.lineWidth = isSelectedEdge ? 2 : 1.2;\n tCtx.beginPath();\n tCtx.moveTo(na.px, na.py);\n tCtx.lineTo(nb.px, nb.py);\n tCtx.stroke();\n });\n\n // Update & Draw Packets\n for (let i = packets.length - 1; i >= 0; i--) {\n const p = packets[i];\n p.t += p.speed;\n if (p.t >= 1) {\n if (p.burst) { packets.splice(i, 1); continue; }\n p.t = 0;\n }\n const na = nodeMap[p.from];\n const nb = nodeMap[p.to];\n const x = na.px + (nb.px - na.px) * p.t;\n const y = na.py + (nb.py - na.py) * p.t;\n tCtx.fillStyle = nb.color;\n tCtx.beginPath();\n tCtx.arc(x, y, p.burst ? 3.4 : 2.2, 0, Math.PI * 2);\n tCtx.fill();\n }\n\n // Draw Nodes\n topoNodes.forEach(n => {\n const pt = nodeMap[n.id];\n const isSel = n.id === selectedModelKey;\n\n tCtx.fillStyle = '#090a0c';\n tCtx.strokeStyle = isSel ? '#f3f0e6' : n.color;\n tCtx.lineWidth = isSel ? 2.4 : 1.4;\n\n const bw = 90;\n const bh = 32;\n tCtx.fillRect(pt.px - bw / 2, pt.py - bh / 2, bw, bh);\n tCtx.strokeRect(pt.px - bw / 2, pt.py - bh / 2, bw, bh);\n\n // Top color accent strip\n tCtx.fillStyle = n.color;\n tCtx.fillRect(pt.px - bw / 2, pt.py - bh / 2, bw, 2.5);\n\n tCtx.fillStyle = '#f3f0e6';\n tCtx.font = '700 9px \"JetBrains Mono\", monospace';\n tCtx.textAlign = 'center';\n tCtx.fillText(n.label, pt.px, pt.py - 1);\n\n tCtx.fillStyle = '#9e9a90';\n tCtx.font = '8px \"JetBrains Mono\", monospace';\n tCtx.fillText(n.sub, pt.px, pt.py + 10);\n });\n}\n\nfunction selectModel(modelKey, cardEl) {\n selectedModelKey = modelKey;\n document.querySelectorAll('.model-card').forEach(c => c.classList.remove('selected'));\n if (cardEl) cardEl.classList.add('selected');\n\n const quadBtn = document.getElementById('btn-quad-overview');\n if (quadBtn) quadBtn.classList.toggle('active', modelKey === 'overview');\n\n document.querySelectorAll('.wb-view').forEach(v => v.classList.remove('active'));\n const target = document.getElementById('wb-' + modelKey);\n if (target) target.classList.add('active');\n\n document.getElementById('wb-active-indicator').textContent =\n modelKey === 'overview' ? 'ALL NODES' : 'NODE: ' + modelKey.toUpperCase();\n document.getElementById('wb-panel-heading').textContent =\n modelKey === 'overview'\n ? 'LIVE CAPABILITY WORKBENCH // 4-QUADRANT MISSION MONITOR'\n : 'LIVE CAPABILITY WORKBENCH // ' + modelKey.toUpperCase() + ' SANDBOX';\n playTick(620, 0.04);\n}\n\n/* ==========================================================================\n 3. WORKBENCH MINIGAMES & REAL-TIME SANDBOXES\n ========================================================================== */\n\n// 3A. OPUS 5.5 SESSIONS\nconst opusSessions = [\n {\n name: 'from-avalon.com',\n branch: 'feat/community-portal-kit',\n ledgerId: 'CIT-104',\n reviewUrl: 'http://citadel.local:4401/review/avalon-hub',\n tasks: [\n '[✓] Built community showcase directory & member crest loader',\n '[✓] Wired links to collab sites Into Bloom & Hearthwynd',\n '[✓] Staged private review surface with Astra + Sol sign-off badges'\n ]\n },\n {\n name: 'Into Bloom (Avalon Collab)',\n branch: 'feat/botanical-decal-grid',\n ledgerId: 'CIT-112',\n reviewUrl: 'http://citadel.local:4402/review/into-bloom',\n tasks: [\n '[✓] Integrated Fable 5.2 botanical shader + typography tokens',\n '[✓] Pre-rendered responsive artwork plates & gallery metadata',\n '[✓] Awaiting Severian approval on private review page'\n ]\n },\n {\n name: 'Hearthwynd (Avalon Collab)',\n branch: 'fix/safari-ember-canvas',\n ledgerId: 'CIT-119',\n reviewUrl: 'http://citadel.local:4403/review/hearthwynd',\n tasks: [\n '[✓] Patched WebGL depth-mask clipping reported via Claviger Discord triage',\n '[✓] Verified 60fps mobile budget & Brotli static server kit',\n '[✓] Ready for Severian deploy sign-off'\n ]\n },\n {\n name: 'Desktop Buddies (OSS Pet Maker)',\n branch: 'feat/custom-sprite-rig-export',\n ledgerId: 'CIT-127',\n reviewUrl: 'http://citadel.local:4404/review/desktop-buddies',\n tasks: [\n '[✓] Built state-machine rig editor (idle, walk, hop, inspect)',\n '[✓] Added zero-dependency sprite sheet bundler',\n '[✓] 164 unit tests green via Sonnet 5.5'\n ]\n },\n {\n name: 'Scene Convert',\n branch: 'feat/16bit-layer-decomposer',\n ledgerId: 'CIT-131',\n reviewUrl: 'http://citadel.local:4405/review/scene-convert',\n tasks: [\n '[✓] Implemented streaming converter for multi-layer image-scene files',\n '[✓] Added depth-map & decal-layer JSON manifest output',\n '[✓] Audited memory bounds with GPT-6.1-Sol'\n ]\n },\n {\n name: 'citadel.severian.dev/projects',\n branch: 'main-sync-ledger',\n ledgerId: 'CIT-140',\n reviewUrl: 'http://citadel.local:4406/review/citadel-tracker',\n tasks: [\n '[✓] Synced shared to-do ledger across all 8 active Claude Code sessions',\n '[✓] Published redacted transcript links to baldanders.severian.dev',\n '[✓] Staged essay draft preview for talos.severian.dev'\n ]\n }\n];\nlet currentOpusIdx = 0;\n\nfunction selectOpusSession(idx, btn) {\n currentOpusIdx = idx;\n document.querySelectorAll('#opus-session-btns .chip-btn').forEach(b => b.classList.remove('active'));\n if (btn) btn.classList.add('active');\n renderOpusTerminal();\n playTick(580, 0.03);\n}\n\nfunction renderOpusTerminal() {\n const s = opusSessions[currentOpusIdx];\n document.getElementById('opus-terminal').innerHTML =\n `<div style=\"color:var(--accent);font-weight:700;\">SESSION #0${currentOpusIdx + 1} // PROJECT: ${s.name.toUpperCase()}</div>` +\n `<div>LEDGER ID: <span style=\"color:var(--ink-0)\">${s.ledgerId}</span> · BRANCH: <span style=\"color:var(--accent-2)\">${s.branch}</span></div>` +\n `<div style=\"margin:6px 0;color:var(--ink-0);\">${s.tasks.join('<br>')}</div>` +\n `<div style=\"color:var(--accent-3);\">PRIVATE REVIEW PAGE → ${s.reviewUrl} [GATE: LOCKED UNTIL SEVERIAN APPROVES]</div>`;\n}\nrenderOpusTerminal();\n\nfunction rebalanceLedger() {\n currentOpusIdx = (currentOpusIdx + 1) % opusSessions.length;\n const btns = document.querySelectorAll('#opus-session-btns .chip-btn');\n selectOpusSession(currentOpusIdx, btns[currentOpusIdx]);\n triggerTaskBurst();\n}\n\n// 3B. CLAVIGER (Laya-421M-Claviger-v0) DISCORD TRIAGE ENGINE\nfunction setClavigerSample(text) {\n document.getElementById('claviger-input').value = text;\n runClavigerInference();\n playTick(750, 0.04);\n}\n\nfunction runClavigerInference() {\n const raw = (document.getElementById('claviger-input').value || '').trim();\n const low = raw.toLowerCase();\n\n let scores = [\n { label: 'OPUS 5.5 (Bug / Build)', p: 0.12, color: '#ff5500', route: 'session:hearthwynd-or-core' },\n { label: 'FABLE 5.2 (3D / Design)', p: 0.10, color: '#b388ff', route: 'session:3d-pipeline-design' },\n { label: 'SONNET 5.5 (Tests / Rebase)', p: 0.08, color: '#00e676', route: 'session:ci-test-harness' },\n { label: 'BALDANDERS (Transcript Log)', p: 0.05, color: '#00e5ff', route: 'archive:baldanders' },\n { label: 'IGNORE (Community Chatter)', p: 0.15, color: '#76746d', route: 'drop:no-agent-wake' }\n ];\n\n if (/(bug|break|overlap|crash|nan|error|fix|safari|convert|16-bit|layer)/.test(low)) {\n scores[0].p += 0.68;\n scores[2].p += 0.14;\n } else if (/(3d|mesh|gltf|shader|normal|decal|design|illustr|bloom|color)/.test(low)) {\n scores[1].p += 0.72;\n scores[0].p += 0.12;\n } else if (/(test|rebase|branch|ci|convo)/.test(low)) {\n scores[2].p += 0.74;\n } else if (/(gm|lol|nice|loving|hello|hey|cool|wow)/.test(low) || raw.length < 12) {\n scores[4].p += 0.78;\n } else {\n scores[0].p += 0.45;\n scores[3].p += 0.25;\n }\n\n const sum = scores.reduce((a, b) => a + b.p, 0);\n scores.forEach(s => { s.p = +(s.p / sum).toFixed(3); });\n scores.sort((a, b) => b.p - a.p);\n\n const barsEl = document.getElementById('claviger-bars');\n barsEl.innerHTML = scores.map(s => `\n <div class=\"logit-row\">\n <span style=\"color:var(--ink-0);\">${s.label}</span>\n <div class=\"logit-track\">\n <div class=\"logit-fill\" style=\"width:${Math.round(s.p * 100)}%;background:${s.color}\"></div>\n </div>\n <span style=\"text-align:right;color:${s.color};font-weight:700;\">${(s.p * 100).toFixed(1)}%</span>\n </div>\n `).join('');\n\n const top = scores[0];\n document.getElementById('claviger-json').innerHTML =\n `<span style=\"color:var(--accent-2);\">// finis-est/Laya-421M-Claviger-v0 · 0.78ms local inference</span><br>` +\n `{ \"verdict\": \"<strong style=\"color:${top.color}\">${top.label}</strong>\", \"confidence\": ${top.p}, \"route\": \"${top.route}\", \"wake_frontier_session\": ${top.route.startsWith('drop') ? 'false (100% frontier tokens saved)' : 'true → appended to Shared To-Do Ledger'} }`;\n}\nrunClavigerInference();\n\n// 3C. FABLE 5.2 INTERACTIVE 3D PIPELINE ENGINE (Renders in both 4-Up Monitor and Full Fable View)\nconst f3dCanvas = document.getElementById('fable-3d-canvas');\nconst fCtx = f3dCanvas.getContext('2d');\nconst q3dCanvas = document.getElementById('quad-3d-canvas');\nconst qCtx = q3dCanvas.getContext('2d');\n\nlet fableMeshType = 'obelisk';\nlet fableShaderType = 'decal';\nlet rotX = 0.42;\nlet rotY = 0.65;\nlet isDragging3D = false;\nlet lastMouseX = 0, lastMouseY = 0;\n\nf3dCanvas.addEventListener('mousedown', e => {\n isDragging3D = true;\n lastMouseX = e.clientX;\n lastMouseY = e.clientY;\n});\nwindow.addEventListener('mouseup', () => { isDragging3D = false; });\nwindow.addEventListener('mousemove', e => {\n if (!isDragging3D) return;\n rotY += (e.clientX - lastMouseX) * 0.012;\n rotX += (e.clientY - lastMouseY) * 0.012;\n lastMouseX = e.clientX;\n lastMouseY = e.clientY;\n});\n\nfunction setFableMesh(type, btn) {\n fableMeshType = type;\n btn.parentElement.querySelectorAll('.mini-btn').forEach(b => b.classList.remove('active'));\n btn.classList.add('active');\n playTick(680, 0.04);\n}\n\nfunction setFableShader(shader, btn) {\n fableShaderType = shader;\n btn.parentElement.querySelectorAll('.mini-btn').forEach(b => b.classList.remove('active'));\n btn.classList.add('active');\n playTick(760, 0.04);\n}\n\nfunction buildMeshGeometry(type, time) {\n const verts = [];\n const faces = [];\n\n if (type === 'obelisk') {\n verts.push(\n [0, -1.35, 0],\n [-0.45, -0.7, -0.45], [0.45, -0.7, -0.45], [0.45, -0.7, 0.45], [-0.45, -0.7, 0.45],\n [-0.7, 1.0, -0.7], [0.7, 1.0, -0.7], [0.7, 1.0, 0.7], [-0.7, 1.0, 0.7],\n [0, 1.3, 0]\n );\n faces.push(\n [0,1,2], [0,2,3], [0,3,4], [0,4,1],\n [1,5,6], [1,6,2], [2,6,7], [2,7,3], [3,7,8], [3,8,4], [4,8,5], [4,5,1],\n [9,6,5], [9,7,6], [9,8,7], [9,5,8]\n );\n const segs = 12;\n const baseIdx = verts.length;\n for (let i = 0; i < segs; i++) {\n const a = (i / segs) * Math.PI * 2 + time * 0.6;\n verts.push([Math.cos(a) * 1.15, -0.1 + Math.sin(a * 2) * 0.08, Math.sin(a) * 1.15]);\n verts.push([Math.cos(a) * 0.92, 0.08 + Math.sin(a * 2) * 0.08, Math.sin(a) * 0.92]);\n }\n for (let i = 0; i < segs; i++) {\n const ni = (i + 1) % segs;\n faces.push([baseIdx + i*2, baseIdx + ni*2, baseIdx + i*2 + 1]);\n faces.push([baseIdx + ni*2, baseIdx + ni*2 + 1, baseIdx + i*2 + 1]);\n }\n } else if (type === 'bloom') {\n const uSeg = 14, vSeg = 8;\n for (let u = 0; u < uSeg; u++) {\n const ua = (u / uSeg) * Math.PI * 2;\n for (let v = 0; v < vSeg; v++) {\n const va = (v / vSeg) * Math.PI * 2;\n const r = 0.38 + 0.08 * Math.sin(ua * 3 + time);\n const R = 0.85;\n const x = (R + r * Math.cos(va)) * Math.cos(ua);\n const y = r * Math.sin(va) * 1.3;\n const z = (R + r * Math.cos(va)) * Math.sin(ua);\n verts.push([x, y, z]);\n }\n }\n for (let u = 0; u < uSeg; u++) {\n const nu = (u + 1) % uSeg;\n for (let v = 0; v < vSeg; v++) {\n const nv = (v + 1) % vSeg;\n const a = u * vSeg + v;\n const b = nu * vSeg + v;\n const c = nu * vSeg + nv;\n const d = u * vSeg + nv;\n faces.push([a, b, c], [a, c, d]);\n }\n }\n } else if (type === 'buddy') {\n const boxes = [\n { cx: 0, cy: -0.25, cz: 0, sx: 0.65, sy: 0.55, sz: 0.55 },\n { cx: 0, cy: -0.95, cz: 0, sx: 0.12, sy: 0.25, sz: 0.12 },\n { cx: -0.35, cy: 0.65, cz: Math.sin(time * 3) * 0.2, sx: 0.2, sy: 0.35, sz: 0.25 },\n { cx: 0.35, cy: 0.65, cz: -Math.sin(time * 3) * 0.2, sx: 0.2, sy: 0.35, sz: 0.25 }\n ];\n boxes.forEach(bx => {\n const bi = verts.length;\n for (let dx of [-1, 1]) for (let dy of [-1, 1]) for (let dz of [-1, 1]) {\n verts.push([bx.cx + dx * bx.sx, bx.cy + dy * bx.sy, bx.cz + dz * bx.sz]);\n }\n const f = [\n [0,1,3,2], [4,6,7,5], [0,4,5,1], [2,3,7,6], [0,2,6,4], [1,5,7,3]\n ];\n f.forEach(q => {\n faces.push([bi+q[0], bi+q[1], bi+q[2]], [bi+q[0], bi+q[2], bi+q[3]]);\n });\n });\n } else {\n [-0.75, 0, 0.75].forEach((zPlane, idx) => {\n const bi = verts.length;\n const w = 1.05, h = 0.75;\n const shift = Math.sin(time + idx) * 0.1;\n verts.push([-w, -h + shift, zPlane], [w, -h + shift, zPlane], [w, h + shift, zPlane], [-w, h + shift, zPlane]);\n faces.push([bi, bi+1, bi+2], [bi, bi+2, bi+3]);\n });\n }\n return { verts, faces };\n}\n\nfunction draw3DSceneOnCanvas(canvas, ctx, scaleFactor = 1) {\n const w = canvas.clientWidth || 300;\n const h = canvas.clientHeight || 160;\n if (canvas.width !== w || canvas.height !== h) {\n canvas.width = w;\n canvas.height = h;\n }\n ctx.clearRect(0, 0, w, h);\n\n const t = performance.now() * 0.0015;\n const { verts, faces } = buildMeshGeometry(fableMeshType, t);\n const cosY = Math.cos(rotY), sinY = Math.sin(rotY);\n const cosX = Math.cos(rotX), sinX = Math.sin(rotX);\n\n // Draw subtle 3D floor grid\n ctx.strokeStyle = 'rgba(179, 136, 255, 0.12)';\n ctx.lineWidth = 1;\n for (let g = -1.5; g <= 1.5; g += 0.5) {\n const pts = [[-1.5, 1.35, g], [1.5, 1.35, g]].map(([x, y, z]) => {\n const x1 = x * cosY - z * sinY;\n const z1 = z * cosY + x * sinY;\n const y2 = y * cosX - z1 * sinX;\n const z2 = z1 * cosX + y * sinX;\n const fov = (230 * scaleFactor) / (3.5 + z2);\n return [w / 2 + x1 * fov, h / 2 + y2 * fov];\n });\n ctx.beginPath();\n ctx.moveTo(pts[0][0], pts[0][1]);\n ctx.lineTo(pts[1][0], pts[1][1]);\n ctx.stroke();\n }\n\n const proj = verts.map(([x, y, z]) => {\n const x1 = x * cosY - z * sinY;\n const z1 = z * cosY + x * sinY;\n const y2 = y * cosX - z1 * sinX;\n const z2 = z1 * cosX + y * sinX;\n const fov = (230 * scaleFactor) / (3.4 + z2);\n return {\n x: w / 2 + x1 * fov,\n y: h / 2 + y2 * fov,\n z: z2,\n wx: x1, wy: y2, wz: z2\n };\n });\n\n const sorted = faces.map((f, idx) => {\n const a = proj[f[0]], b = proj[f[1]], c = proj[f[2]];\n const zAvg = (a.z + b.z + c.z) / 3;\n const ux = b.wx - a.wx, uy = b.wy - a.wy, uz = b.wz - a.wz;\n const vx = c.wx - a.wx, vy = c.wy - a.wy, vz = c.wz - a.wz;\n let nx = uy * vz - uz * vy;\n let ny = uz * vx - ux * vz;\n let nz = ux * vy - uy * vx;\n const len = Math.hypot(nx, ny, nz) || 1;\n nx /= len; ny /= len; nz /= len;\n return { a, b, c, zAvg, nx, ny, nz, idx };\n }).sort((p, q) => q.zAvg - p.zAvg);\n\n sorted.forEach(tri => {\n ctx.beginPath();\n ctx.moveTo(tri.a.x, tri.a.y);\n ctx.lineTo(tri.b.x, tri.b.y);\n ctx.lineTo(tri.c.x, tri.c.y);\n ctx.closePath();\n\n const light = Math.max(0.18, (tri.nx * 0.4 - tri.ny * 0.6 - tri.nz * 0.68));\n if (fableShaderType === 'decal') {\n const isHighlight = (tri.idx % 7 === 0);\n ctx.fillStyle = isHighlight\n ? `rgba(255, 85, 0, ${0.48 + light * 0.5})`\n : `rgba(179, 136, 255, ${0.16 + light * 0.44})`;\n ctx.fill();\n ctx.strokeStyle = 'rgba(243, 240, 230, 0.3)';\n ctx.lineWidth = 0.8;\n ctx.stroke();\n } else if (fableShaderType === 'normal') {\n const r = Math.floor((tri.nx * 0.5 + 0.5) * 255);\n const g = Math.floor((tri.ny * 0.5 + 0.5) * 255);\n const b = Math.floor((-tri.nz * 0.5 + 0.5) * 255);\n ctx.fillStyle = `rgb(${r},${g},${b})`;\n ctx.fill();\n } else {\n ctx.strokeStyle = '#b8ff01';\n ctx.lineWidth = 1;\n ctx.stroke();\n }\n });\n\n return faces.length;\n}\n\nfunction renderFable3D() {\n if (!isDragging3D) rotY += 0.009;\n if (selectedModelKey === 'overview' && q3dCanvas) {\n draw3DSceneOnCanvas(q3dCanvas, qCtx, 0.72);\n } else if (selectedModelKey === 'fable' && f3dCanvas) {\n const triCount = draw3DSceneOnCanvas(f3dCanvas, fCtx, 1.0);\n document.getElementById('mesh-telemetry').textContent =\n `MESH: ${fableMeshType.toUpperCase()} · ${triCount} TRIS · SHADER: ${fableShaderType.toUpperCase()}`;\n }\n}\n\n// 3D. GPT-6-ASTRA CRITIQUE & LABELING WORKBENCH\nlet astraBatchCount = 142;\nfunction renderAstraWorkbench() {\n document.getElementById('astra-critique-box').innerHTML =\n `<div style=\"color:var(--accent-3);font-weight:700;\">[GPT-6-ASTRA // DESIGN CRITIQUE REPORT — HEARTHWYND & CITADEL]</div>` +\n `<div>1. <strong>Typography & Rhythm</strong>: Decal headers use tight -0.025em tracking; body copy set for rapid scanning across review surfaces.</div>` +\n `<div>2. <strong>Contrast Verification</strong>: Primary bone ink (#F3F0E6) on obsidian (#08090B) yields <strong>15.8:1 (WCAG AAA)</strong>.</div>` +\n `<div>3. <strong>Test Data Labeling</strong>: Labelled <strong>${astraBatchCount} multi-turn test samples</strong> today across 5 triage intents & 18 visual regression checkpoints.</div>`;\n}\nfunction runAstraLabelBatch() {\n astraBatchCount += 24;\n renderAstraWorkbench();\n playTick(880, 0.05);\n}\nrenderAstraWorkbench();\n\n// 3E. GPT-6.1-SOL ADVERSARIAL CLAIM-VS-CODE AUDITOR\nconst solAuditItems = [\n {\n claim: 'CLAIM #1: \"Claviger triage never wakes Opus 5.5 on community chatter\"',\n status: 'PASS',\n code: `// server-kit/triage-router.ts:48\\nif (verdict.route.startsWith('drop:')) {\\n metrics.inc('tokens_saved');\\n return res.status(204).end(); // Zero session wake\\n}`\n },\n {\n claim: 'CLAIM #2: \"All internal LAN IPs & tokens are redacted before publishing to baldanders.severian.dev\"',\n status: 'DRIFT',\n code: `// baldanders/redactor.ts:19\\n// SOL AUDIT WARNING: Regex catches IPv4 10.x.x.x\\n// but misses IPv6 link-local fe80:: addresses!\\nconst IP_RE = /\\\\b10\\\\.\\\\d+\\\\.\\\\d+\\\\.\\\\d+(:\\\\d+)?\\\\b/g;`\n },\n {\n claim: 'CLAIM #3: \"Every production deploy requires cryptographic sign-off token from Severian\"',\n status: 'PASS',\n code: `// citadel-gate/deploy.ts:112\\nif (!verifyHumanSignature(req.headers['x-severian-sig'])) {\\n throw new GateLockError('Unapproved deploy blocked');\\n}`\n }\n];\nlet selectedSolIdx = 1;\n\nfunction renderSolAudit() {\n const listEl = document.getElementById('sol-claims-list');\n listEl.innerHTML = `<div class=\"audit-col-title\">CLAIMS IN PR / DEPLOY KIT</div>` +\n solAuditItems.map((item, i) => `\n <div class=\"claim-item ${item.status === 'PASS' ? 'pass' : '[redacted: secret]'} ${i === selectedSolIdx ? 'active' : ''}\" onclick=\"selectSolClaim(${i})\">\n <div style=\"font-weight:700;color:${item.status === 'PASS' ? 'var(--ok)' : 'var(--danger)'}\">\n [${item.status === 'PASS' ? '✓ VERIFIED' : '⚠ CLAIM DRIFT'}]\n </div>\n <div style=\"color:var(--ink-0);margin-top:2px;\">${item.claim}</div>\n </div>\n `).join('');\n\n const cur = solAuditItems[selectedSolIdx];\n document.getElementById('sol-code-proof').innerHTML =\n `<div class=\"audit-col-title\">ACTUAL CODE AST // AUDITED BY GPT-6.1-SOL</div>` +\n `<pre style=\"white-space:pre-wrap;color:var(--ink-0);line-height:1.45;\">${cur.code}</pre>`;\n}\nfunction selectSolClaim(idx) {\n selectedSolIdx = idx;\n renderSolAudit();\n playTick(540, 0.04);\n}\nfunction patchSolDrift() {\n solAuditItems[1].status = 'PASS';\n solAuditItems[1].code = `// baldanders/redactor.ts:19 [PATCHED BY OPUS 5.5]\\n// SOL RE-AUDIT: Both IPv4 LAN and IPv6 fe80:: masked ✓\\nconst IP_RE = /(\\\\b10\\\\.\\\\d+\\\\.\\\\d+\\\\.\\\\d+(:\\\\d+)?\\\\b|fe80:[0-9a-f:]+)/gi;`;\n selectedSolIdx = 1;\n renderSolAudit();\n document.getElementById('sol-summary-status').textContent = '3/3 CLAIMS VERIFIED AGAINST CODE ✓';\n document.getElementById('sol-summary-status').style.color = 'var(--ok)';\n playTick(920, 0.07);\n}\nrenderSolAudit();\n\n// 3F. SONNET 5.5 REBASE & SYNTHETIC TEST CONVERSATION ENGINE\nfunction runSonnetRebase() {\n document.getElementById('sonnet-output').innerHTML =\n `<div style=\"color:var(--ok);font-weight:700;\">$ git rebase --onto main feat/hearthwynd-decal-kit</div>` +\n `<div>Rebasing (1/3) 8f21a0c.. Applied cleanly</div>` +\n `<div>Rebasing (2/3) c490e1b.. Applied cleanly</div>` +\n `<div>Rebasing (3/3) e109d44.. Applied cleanly</div>` +\n `<div style=\"margin-top:6px;color:var(--accent-2);\">Running test suite across 8 Citadel packages... 240/240 PASS (1.42s)</div>`;\n playTick(740, 0.05);\n}\nfunction generateSonnetConvo() {\n document.getElementById('sonnet-output').innerHTML =\n `<div style=\"color:var(--accent-3);font-weight:700;\">[SONNET 5.5 // SYNTHETIC TEST CONVERSATION #409 FOR CLAVIGER EVAL]</div>` +\n `<div><strong>User_A:</strong> \"yo the new Into Bloom header looks sick, btw on Firefox 132 the SVG mask flickers when scrolling fast\"</div>` +\n `<div><strong>Expected Triage Label:</strong> Mixed [Praise + Bug Report] → Must route to <code>session:into-bloom</code> (p=0.94) instead of dropping as chatter.</div>`;\n playTick(680, 0.05);\n}\nrunSonnetRebase();\n\n/* ==========================================================================\n 4. MODE 02: PRIVATE REVIEW SURFACE SIMULATOR\n ========================================================================== */\nconst scenarios = [\n {\n name: 'Hearthwynd Redesign (from-avalon.com Collab)',\n url: 'http://citadel.local:4410/review/hearthwynd-v4',\n diffCode: `// hearthwynd/server-kit/nginx-static.conf [OPUS 5.5 + SOL VERIFIED]\\nlocation /assets/decals/ {\\n brotli_static on;\\n add_header Cache-Control \"public, max-age=31536000, immutable\";\\n}`,\n steps: [\n { model: 'Claviger (Laya-421M)', role: 'Discord Triage', detail: 'Triaged bug & seasonal redesign request in #hearthwynd-dev (0.8ms, p=0.98) and appended item #CIT-119 to the Shared To-Do Ledger.' },\n { model: 'Opus 5.5 (Lead Session)', role: 'Ledger Coordination', detail: 'Claimed #CIT-119 from the shared ledger and dispatched Project Session #03 (hearthwynd) with server kit targets.' },\n { model: 'Fable 5.2', role: 'Visual Language & 3D', detail: 'Crafted ember-slate decal headers and a low-overhead procedural 3D ember particle rig for the hero banner.' },\n { model: 'GPT-6-Astra (Codex)', role: 'Design Critique & Data', detail: 'Critiqued mobile breakpoint rhythm and bumped caption contrast from 4.1:1 to 14.6:1 (AAA). Labelled 12 visual test snapshots.' },\n { model: 'Sonnet 5.5', role: 'Rebase & Test Suite', detail: 'Rebased branch onto main, ran 184 automated integration checks, and generated 10 synthetic browser test conversations.' },\n { model: 'GPT-6.1-Sol (Codex)', role: 'Claim vs Code Audit', detail: 'Audited PR claim \"Zero layout shift & Brotli precompression\" against nginx/server kit AST. All claims verified.' }\n ]\n },\n {\n name: 'Desktop Buddies — Open-Source Pet Maker Rig',\n url: 'http://citadel.local:4410/review/desktop-buddies-rig',\n diffCode: `// desktop-buddies/src/exporter/rig-pack.ts [SOL VERIFIED: ZERO NETWORK]\\nexport function exportSpriteAtlas(frames: Uint8ClampedArray[]): Blob {\\n return new Blob([packDeterministicPNG(frames)], { type: \"image/png\" });\\n}`,\n steps: [\n { model: 'Claviger (Laya-421M)', role: 'Discord Triage', detail: 'Routed community feature request for custom walk-cycle keyframes to the Desktop Buddies ledger queue.' },\n { model: 'Fable 5.2', role: '3D-to-2D Sprite Pipeline', detail: 'Ran 3D pipeline experiment projecting low-poly automaton meshes into crisp pixel-art sprite sheets.' },\n { model: 'Opus 5.5 (Project Session)', role: 'Tool & Kit Build', detail: 'Built the browser-based sprite rig inspector and zero-dependency export bundle.' },\n { model: 'GPT-6-Astra (Codex)', role: 'Design Critique', detail: 'Critiqued timeline scrubber ergonomics and decal badge hierarchy; labelled 20 animation test fixtures.' },\n { model: 'Sonnet 5.5', role: 'Mechanical Ops', detail: 'Rebased across 4 contributors and verified 100% deterministic sprite export hashes.' },\n { model: 'GPT-6.1-Sol (Codex)', role: 'Claim Verification', detail: 'Verified README claim \"Runs 100% offline with zero telemetry calls\" against bundle AST.' }\n ]\n },\n {\n name: 'Scene Convert — Multi-Layer Scene File Converter',\n url: 'http://citadel.local:4410/review/scene-convert-v2',\n diffCode: `// scene-convert/src/parser/depth16.ts [SOL VERIFIED: <128MB HEAP]\\nconst norm = Number.isFinite(raw16) ? (raw16 / 65535.0) : 0.0;\\ndepthPlane[idx] = Math.fround(norm);`,\n steps: [\n { model: 'Claviger (Laya-421M)', role: 'Discord Triage', detail: 'Flagged 16-bit channel NaN report from Discord and attached repro scene metadata to the ledger.' },\n { model: 'Opus 5.5 (Project Session)', role: 'Core Engine Build', detail: 'Implemented streaming 16-bit depth & decal layer parser with zero-copy typed arrays.' },\n { model: 'Fable 5.2', role: 'Scene Preview UI', detail: 'Designed exploded isometric layer preview surface using the decal-pack visual system.' },\n { model: 'GPT-6-Astra (Codex)', role: 'Critique & Test Data', detail: 'Labelled 32 edge-case corrupted scene files for automated regression testing.' },\n { model: 'Sonnet 5.5', role: 'Test Execution', detail: 'Executed full fuzzing harness & rebased release branch.' },\n { model: 'GPT-6.1-Sol (Codex)', role: 'Claim vs Code Audit', detail: 'Verified memory ceiling claim (<128MB heap on 4K scenes) against worker allocation code.' }\n ]\n }\n];\nlet curScenarioIdx = 0;\nlet curStepIdx = 5;\n\nfunction loadScenario(idx, btn) {\n curScenarioIdx = idx;\n curStepIdx = 5;\n if (btn) {\n btn.parentElement.querySelectorAll('.chip-btn').forEach(b => b.classList.remove('active'));\n btn.classList.add('active');\n }\n renderReviewSurface();\n playTick(660, 0.04);\n}\n\nfunction renderReviewSurface() {\n const sc = scenarios[curScenarioIdx];\n document.getElementById('rev-page-url').textContent = 'PRIVATE REVIEW PAGE // ' + sc.url;\n const listEl = document.getElementById('review-steps-list');\n listEl.innerHTML = sc.steps.map((s, i) => `\n <div class=\"pipe-step ${i <= curStepIdx ? 'done' : ''} ${i === curStepIdx ? 'active' : ''}\" onclick=\"selectReviewStep(${i})\">\n <div class=\"ps-top\">\n <span>0${i + 1} // ${s.model}</span>\n <span style=\"color:var(--ok);\">${i <= curStepIdx ? '✓' : '·'}</span>\n </div>\n <div class=\"ps-sub\">${s.role}</div>\n </div>\n `).join('');\n\n const st = sc.steps[curStepIdx];\n document.getElementById('rev-stage-detail').innerHTML = `\n <div style=\"background:var(--bg-0);border:1px solid var(--border);padding:12px;\">\n <div style=\"font-family:var(--font-mono);font-size:10px;color:var(--accent);text-transform:uppercase;\">\n STAGE 0${curStepIdx + 1} OF 06 // ${st.role}\n </div>\n <div style=\"font-family:var(--font-display);font-size:17px;font-weight:800;margin:3px 0 6px;\">\n ${st.model} → ${sc.name}\n </div>\n <p style=\"font-size:12.5px;color:var(--ink-1);line-height:1.45;\">${st.detail}</p>\n </div>\n <div class=\"code-output\" style=\"padding:9px 11px;\">\n <div style=\"color:var(--accent-5);font-weight:700;margin-bottom:3px;\">STAGED ARTIFACT & SERVER KIT DIFF (AUDITED BY GPT-6.1-SOL):</div>\n <pre style=\"white-space:pre-wrap;color:var(--ink-0);\">${sc.diffCode}</pre>\n </div>\n <div style=\"display:grid;grid-template-columns:repeat(3,1fr);gap:8px;font-family:var(--font-mono);font-size:10px;\">\n <div style=\"background:var(--bg-0);border:1px solid var(--border);padding:9px;\">\n <div style=\"color:var(--ink-2);\">ASTRA DESIGN CRITIQUE</div>\n <div style=\"color:var(--ok);font-weight:700;margin-top:2px;\">✓ PASS (AAA CONTRAST)</div>\n </div>\n <div style=\"background:var(--bg-0);border:1px solid var(--border);padding:9px;\">\n <div style=\"color:var(--ink-2);\">SOL CLAIM-VS-CODE AUDIT</div>\n <div style=\"color:var(--ok);font-weight:700;margin-top:2px;\">✓ 100% CLAIMS VERIFIED</div>\n </div>\n <div style=\"background:var(--bg-0);border:1px solid var(--border);padding:9px;\">\n <div style=\"color:var(--ink-2);\">SONNET TEST HARNESS</div>\n <div style=\"color:var(--ok);font-weight:700;margin-top:2px;\">✓ REBASED & GREEN</div>\n </div>\n </div>\n `;\n}\n\nfunction selectReviewStep(i) {\n curStepIdx = i;\n renderReviewSurface();\n playTick(560 + i * 50, 0.035);\n}\n\nfunction playFullReviewTrace() {\n curStepIdx = 0;\n renderReviewSurface();\n const timer = setInterval(() => {\n curStepIdx++;\n if (curStepIdx >= 6) {\n curStepIdx = 5;\n clearInterval(timer);\n return;\n }\n renderReviewSurface();\n playTick(520 + curStepIdx * 70, 0.04);\n }, 420);\n}\n\nfunction severianDecision(action) {\n const badge = document.getElementById('rev-gate-badge');\n const txt = document.getElementById('approve-status-text');\n if (action === 'approve') {\n badge.textContent = '✓ DEPLOY APPROVED BY SEVERIAN';\n badge.style.background = 'var(--ok)';\n txt.innerHTML = `<strong style=\"color:var(--ok);\">Signed & deployed!</strong> Public tracker at <code>citadel.severian.dev/projects</code> updated and redacted transcript pushed to <code>baldanders.severian.dev</code>.`;\n playTick(880, 0.08);\n setTimeout(() => playTick(1174, 0.12), 90);\n } else {\n badge.textContent = '✕ RETURNED TO SHARED LEDGER';\n badge.style.background = 'var(--danger)';\n badge.style.color = '#fff';\n txt.innerHTML = `<strong style=\"color:var(--danger);\">Deploy blocked by Severian.</strong> Revision note dispatched to Opus 5.5 Lead Session; private review page locked.`;\n playTick(310, 0.1, 'sawtooth');\n }\n}\nrenderReviewSurface();\n\n/* ==========================================================================\n 5. MODE 03: SCENE CONVERT & DECAL SPECIMEN CANVASES\n ========================================================================== */\nfunction drawSceneConvert() {\n const c = document.getElementById('scene-convert-canvas');\n if (!c) return;\n const ctx = c.getContext('2d');\n const w = c.clientWidth || 520;\n const h = c.clientHeight || 220;\n c.width = w;\n c.height = h;\n ctx.clearRect(0, 0, w, h);\n\n const split = (parseInt(document.getElementById('scene-explode-slider').value, 10) || 0) / 100;\n const layers = [\n { name: 'L0 // DEPTH SKYBOX', color: '#1b263b', offset: -1.2 },\n { name: 'L1 // TERRAIN MESH', color: '#3dff98', offset: -0.4 },\n { name: 'L2 // CITADEL STRUCTURE', color: '#ff5500', offset: 0.4 },\n { name: 'L3 // DECAL HUD OVERLAY', color: '#b8ff01', offset: 1.2 }\n ];\n\n const cx = w / 2;\n const cy = h / 2;\n\n layers.forEach((ly, idx) => {\n const dx = ly.offset * split * 95;\n const dy = -ly.offset * split * 18;\n const lw = 160;\n const lh = 105;\n\n ctx.save();\n ctx.translate(cx + dx, cy + dy);\n ctx.transform(1, -0.18 * split, 0.35 * split, 1, 0, 0);\n\n ctx.fillStyle = 'rgba(12, 14, 18, 0.86)';\n ctx.strokeStyle = ly.color;\n ctx.lineWidth = 1.6;\n ctx.fillRect(-lw / 2, -lh / 2, lw, lh);\n ctx.strokeRect(-lw / 2, -lh / 2, lw, lh);\n\n ctx.fillStyle = ly.color;\n if (idx === 0) {\n ctx.globalAlpha = 0.25;\n ctx.fillRect(-lw/2 + 8, -lh/2 + 8, lw - 16, lh - 16);\n } else if (idx === 1) {\n ctx.beginPath();\n ctx.moveTo(-lw/2 + 10, lh/2 - 12);\n ctx.lineTo(-20, -10);\n ctx.lineTo(25, 18);\n ctx.lineTo(lw/2 - 10, -22);\n ctx.lineTo(lw/2 - 10, lh/2 - 12);\n ctx.closePath();\n ctx.globalAlpha = 0.4;\n ctx.fill();\n } else if (idx === 2) {\n ctx.fillRect(-18, -32, 36, 64);\n } else {\n ctx.strokeRect(-lw/2 + 14, -lh/2 + 14, lw - 28, lh - 28);\n }\n ctx.globalAlpha = 1;\n ctx.font = '700 9.5px \"JetBrains Mono\", monospace';\n ctx.fillText(ly.name, -lw / 2 + 8, -lh / 2 + 15);\n ctx.restore();\n });\n}\n\nlet decalStampIdx = 0;\nlet decalSeed = 421;\nfunction cycleDecalStamp(idx, btn) {\n decalStampIdx = idx;\n if (btn) {\n btn.parentElement.querySelectorAll('.mini-btn').forEach(b => b.classList.remove('active'));\n btn.classList.add('active');\n }\n drawDecalSpecimen();\n playTick(720, 0.04);\n}\nfunction randomizeDecalSeed() {\n decalSeed = Math.floor(100 + Math.random() * 899);\n drawDecalSpecimen();\n playTick(840, 0.04);\n}\n\nfunction drawDecalSpecimen() {\n const c = document.getElementById('decal-specimen-canvas');\n if (!c) return;\n const ctx = c.getContext('2d');\n const w = c.clientWidth || 520;\n const h = c.clientHeight || 220;\n c.width = w;\n c.height = h;\n ctx.clearRect(0, 0, w, h);\n\n const stamps = [\n { code: `CITADEL-SYS // ${decalSeed}`, title: 'AUTARCH GATEWAY', color: '#ff5500', sub: 'DESIGN LANGUAGE: DIE-CUT DECAL PACK' },\n { code: `AVALON // BLOOM-${decalSeed}`, title: 'INTO BLOOM COLLAB', color: '#3dff98', sub: 'FABLE 5.2 + GPT-6-ASTRA CRITIQUE PASS' },\n { code: `FINIS-EST // LAYA-${decalSeed}`, title: 'CLAVIGER 421M GATE', color: '#b8ff01', sub: 'HUGGING FACE OPEN-WEIGHTS TRIAGE' }\n ];\n const st = stamps[decalStampIdx];\n\n ctx.strokeStyle = st.color;\n ctx.lineWidth = 2;\n ctx.strokeRect(24, 20, w - 48, h - 40);\n\n ctx.save();\n ctx.beginPath();\n ctx.rect(36, 32, 110, 24);\n ctx.clip();\n ctx.fillStyle = st.color;\n for (let x = -30; x < 160; x += 14) {\n ctx.beginPath();\n ctx.moveTo(36 + x, 32);\n ctx.lineTo(36 + x + 7, 32);\n ctx.lineTo(36 + x - 7, 56);\n ctx.lineTo(36 + x - 14, 56);\n ctx.closePath();\n ctx.fill();\n }\n ctx.restore();\n\n ctx.fillStyle = '#f3f0e6';\n ctx.font = '800 11px \"JetBrains Mono\", monospace';\n ctx.fillText(st.code, 158, 48);\n\n ctx.font = '800 23px \"Space Grotesk\", sans-serif';\n ctx.fillStyle = st.color;\n ctx.fillText(st.title, 36, 98);\n\n ctx.font = '600 10.5px \"JetBrains Mono\", monospace';\n ctx.fillStyle = '#b8b4a8';\n ctx.fillText(st.sub, 36, 120);\n\n for (let i = 0; i < 38; i++) {\n const bw = ((i * decalSeed) % 5 === 0) ? 4 : 1.5;\n ctx.fillStyle = (i % 7 === 0) ? st.color : '#f3f0e6';\n ctx.fillRect(36 + i * 7.5, 140, bw, 32);\n }\n}\n\n/* ==========================================================================\n 6. MODE 04: ALL 9 PUBLIC PROJECTS MATRIX\n ========================================================================== */\nconst publicProjects = [\n {\n name: 'from-avalon.com',\n url: 'from-avalon.com',\n desc: 'Primary web home for Avalon, an online creative community, coordinating collaborative seasonal showcases.',\n models: ['Opus 5.5', 'Fable 5.2', 'GPT-6-Astra', 'GPT-6.1-Sol', 'Sonnet 5.5']\n },\n {\n name: 'Into Bloom & Hearthwynd',\n url: 'from-avalon.com // Collab Sites',\n desc: 'Bespoke collaborative community sites for Avalon, featuring custom visual languages, shaders, and editorial layouts.',\n models: ['Opus 5.5', 'Fable 5.2', 'GPT-6-Astra', 'Sonnet 5.5']\n },\n {\n name: 'Desktop Buddies',\n url: 'Open-Source Desktop Pet Maker',\n desc: 'Open-source maker for animated desktop companions (like the live buddies patrolling the top rail of this embed).',\n models: ['Opus 5.5', 'Fable 5.2', 'Sonnet 5.5', 'GPT-6.1-Sol']\n },\n {\n name: 'Scene Convert',\n url: 'Image-Scene File Converter',\n desc: 'High-speed converter and layer decomposer for complex multi-channel image-scene files.',\n models: ['Opus 5.5', 'Fable 5.2', 'Sonnet 5.5', 'GPT-6.1-Sol']\n },\n {\n name: 'Citadel Project Trackers',\n url: 'citadel.severian.dev/projects',\n desc: 'Public window into Citadel’s shared to-do ledger, session status, and shipped milestones.',\n models: ['Opus 5.5', 'Sonnet 5.5', 'GPT-6.1-Sol']\n },\n {\n name: 'Talos Write-Ups',\n url: 'talos.severian.dev',\n desc: 'Long-form essays, architectural postmortems, and notes on running multi-agent setups—every post human-approved.',\n models: ['Opus 5.5', 'GPT-6-Astra', 'GPT-6.1-Sol']\n },\n {\n name: 'Baldanders Transcripts',\n url: 'baldanders.severian.dev',\n desc: 'Public archive of redacted multi-agent session transcripts showing how tasks actually unfold inside Citadel.',\n models: ['Opus 5.5', 'Sonnet 5.5', 'GPT-6.1-Sol']\n },\n {\n name: 'Claviger (Laya-421M)',\n url: 'hf.co/finis-est/Laya-421M-Claviger-v0',\n desc: 'Small 421M open-weights model on Hugging Face that triages incoming Discord messages for agents.',\n models: ['Claviger-421M', 'Sonnet 5.5', 'GPT-6-Astra', 'Opus 5.5']\n },\n {\n name: '3D Pipeline & Decal Language',\n url: 'Citadel Design & 3D Stack',\n desc: 'Experimental 3D model pipeline and the die-cut decal-pack visual system powering Severian’s sites.',\n models: ['Fable 5.2', 'GPT-6-Astra', 'Opus 5.5']\n }\n];\n\nfunction filterProjects(modelFilter, btn) {\n if (btn) {\n document.querySelectorAll('#proj-filter-bar .chip-btn').forEach(b => b.classList.remove('active'));\n btn.classList.add('active');\n }\n const grid = document.getElementById('projects-grid');\n const list = modelFilter === 'all'\n ? publicProjects\n : publicProjects.filter(p => p.models.includes(modelFilter));\n\n grid.innerHTML = list.map(p => `\n <div class=\"proj-card\">\n <div>\n <div class=\"proj-url\">${p.url}</div>\n <div class=\"proj-name\">${p.name}</div>\n <div class=\"proj-desc\" style=\"margin-top:3px;\">${p.desc}</div>\n </div>\n <div class=\"proj-models\">\n ${p.models.map(m => `<span class=\"pm-tag\">${m}</span>`).join('')}\n </div>\n </div>\n `).join('');\n playTick(620, 0.035);\n}\nfilterProjects('all');\n\n/* ==========================================================================\n 7. BALDANDERS REDACTED TRANSCRIPT ROTATOR\n ========================================================================== */\nconst redactedLogs = [\n `[OPUS-5.5 → SOL-6.1] Staged <span class=\"redact-block\">10.0.42.18:4410/rev/88</span> for Hearthwynd; Claviger filtered <span class=\"redact-block\">142 noise pings</span>; Astra verified <span class=\"redact-block\">15.8:1 AAA contrast</span>. Awaiting Severian sign-off.`,\n `[FABLE-5.2 → ASTRA-6] Exported <span class=\"redact-block\">buddy_rig_v4.glb</span> via 3D pipeline; applied decal pack sheet <span class=\"redact-block\">#DC-09-AVALON</span> to Into Bloom header.`,\n `[SONNET-5.5 → OPUS-5.5] Rebased <span class=\"redact-block\">feat/scene-convert-16bit</span> onto main; generated <span class=\"redact-block\">64 synthetic Discord traces</span> for finis-est/Laya-421M-Claviger-v0.`,\n `[SOL-6.1 → GATE] Audited deployment kit against claim <span class=\"redact-block\">\"zero unredacted hostnames\"</span>; caught 1 regex gap before <span class=\"redact-block\">baldanders.severian.dev</span> sync.`\n];\nlet curLogIdx = 0;\n\nfunction cycleTranscript() {\n curLogIdx = (curLogIdx + 1) % redactedLogs.length;\n document.getElementById('redact-log-line').innerHTML = redactedLogs[curLogIdx];\n playTick(590, 0.035);\n}\n\nfunction toggleDeclassify() {\n const f = document.getElementById('baldanders-footer');\n const on = f.classList.toggle('declassified');\n const btn = document.getElementById('declassify-btn');\n btn.textContent = on ? 'MASK REDACTIONS' : 'UNMASK REDACTIONS';\n btn.classList.toggle('active', on);\n playTick(on ? 860 : 440, 0.045);\n}\n\n/* ==========================================================================\n MAIN ANIMATION LOOP\n ========================================================================== */\nfunction animate() {\n renderBuddies();\n renderTopology();\n renderFable3D();\n requestAnimationFrame(animate);\n}\nrequestAnimationFrame(animate);\ndrawSceneConvert();\ndrawDecalSpecimen();\n</script>\n</body>\n</html>\n", "Overwrite": true, "Path": "~/run/citadel-embed.html" }result, 1 line
Created file.