Skip to content

Self-improving AI Employees for everyone

docs: record fidelity-pass end state + handoff bundle retirement

trohitg30887143e7bd
diff --git a/CLAUDE.md b/CLAUDE.md
index 910e6571..0f12b7c2 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -963,12 +963,13 @@ if (SOCIAL_CATEGORIES.includes(categoryKey.toLowerCase())) {
```
### Console Panel
-The Console Panel provides a resizable bottom panel with three sections: Chat (AI conversation), Console (node execution logs), and Terminal (planned).
+The Console Panel provides a resizable bottom panel with three sections: Chat (AI conversation), Console (node execution logs), and Terminal (server logs). **Hybrid layout (design-handoff)**: split view (default) docks Chat as a resizable pane beside the Console/Terminal tabs so chat and logs stay simultaneously visible during agent runs; tab mode makes Chat the first of three tabs. Toggled via the Columns2 button in the tab row; persisted in `consolePrefs.splitView` (default `true` — existing users see no change). One shared `chatSection` JSX serves both layouts so the per-theme `chat-msg*` decoration co-classes survive.
#### Features
-- **Resizable**: Drag handle at top to resize, persisted to localStorage
-- **Three Tabs**: Chat, Console, Terminal (placeholder)
-- **Chat Section**: Send messages to Chat Trigger nodes, view conversation history
+- **Resizable**: Drag handle at top to resize (vertical) + chat-pane divider (horizontal, split view), persisted to localStorage
+- **Hybrid Chat placement**: docked split pane (default) or first tab — `consolePrefs.splitView`
+- **Tabs**: Chat (tab mode only) / Console / Terminal
+- **Chat Section**: Send messages to Chat Trigger nodes, view conversation history; `chatFocusRequest` switches to the Chat tab before focusing when in tab mode
- **Console Section**: View and filter node execution logs
#### Node Selector Dropdowns
diff --git a/docs-internal/design-system/HANDOFF.md b/docs-internal/design-system/HANDOFF.md
index cbeefd4a..ce505691 100644
--- a/docs-internal/design-system/HANDOFF.md
+++ b/docs-internal/design-system/HANDOFF.md
@@ -2,13 +2,19 @@
> **Merged copy (2026-08)** — this is the handoff brief from the external
> `design_handoff_theme_system/` bundle, merged into
-> `docs-internal/design-system/` as the canonical location. Path mapping:
-> the bundle's `themes/` is byte-identical to the live
-> [`client/src/themes/`](../../client/src/themes/) (which is authoritative);
-> its `tokens/` / `components/` / `guidelines/` / `ui_kits/` are this
-> directory's same-named folders; its `_source_docs/` are this directory's
-> root files; `reference-mockup/` lives here at
-> [`reference-mockup/`](./reference-mockup/).
+> `docs-internal/design-system/` as the canonical location. The external
+> bundle was verified fully migrated (every directory diffed against its
+> in-repo counterpart) and **removed from disk on 2026-08-14**; a
+> `.gitignore` entry guards against a re-drop. Path mapping of what it
+> contained: its `themes/` was byte-identical to the live
+> [`client/src/themes/`](../../client/src/themes/) (which is authoritative
+> and has since moved ahead via the fidelity pass); its `tokens/` /
+> `components/` / `guidelines/` / `ui_kits/` are this directory's
+> same-named folders; its `_source_docs/` are this directory's root files;
+> `reference-mockup/` lives here at
+> [`reference-mockup/`](./reference-mockup/); its `assets/diagrams/` were
+> stripped exports of the richer sources already in
+> [`assets/diagrams/`](./assets/diagrams/).
>
> **Product amendments** (decisions recorded after the fidelity pass —
> where this brief and the product deliberately differ, the amendment
diff --git a/docs-internal/design-system/IMPLEMENTATION.md b/docs-internal/design-system/IMPLEMENTATION.md
index 1cc7f1a9..9938c53a 100644
--- a/docs-internal/design-system/IMPLEMENTATION.md
+++ b/docs-internal/design-system/IMPLEMENTATION.md
@@ -136,7 +136,7 @@ Layout contract: fixed 48px toolbar + 24px status bar top/bottom; 280px sidebar
## 5. Theming beyond light/dark
-The real app ships **12 themes** (light, dark + 10 "skins": Renaissance, Greek, Edo, Steampunk, Atomic, Cyber, Wasteland, Rot, Plague, Surveillance). Only light/dark are encoded as live token scopes here. The architecture, per-theme token tables, and porting recipe are in `guidelines/THEMES.md`; verbatim source for all 13 theme CSS files is in `reference/themes/`. To add a skin: copy its token block into a `[data-theme="X"]` scope, map its accents onto the action/node role triplets, and load its fonts. **Readability rule:** decorative display faces (blackletter, Major Mono, etc.) are documentation specimens only — UI copy always uses a readable body font.
+The real app ships **12 themes** (light, dark + 10 "skins": Renaissance, Greek, Edo, Steampunk, Atomic, Cyber, Wasteland, Rot, Plague, Surveillance). Only light/dark are encoded as live token scopes here. The architecture, per-theme token tables, and porting recipe are in `guidelines/THEMES.md`; the authoritative theme CSS lives in `client/src/themes/` (the `reference/themes/` snapshots were retired — see its README). To add a skin: copy its token block into a `[data-theme="X"]` scope, map its accents onto the action/node role triplets, and load its fonts. **Readability rule:** decorative display faces (blackletter, Major Mono, etc.) are documentation specimens only — UI copy always uses a readable body font; the product ships Space Mono (Cyber) and Cinzel (Plague) as display faces per the HANDOFF.md legibility substitutions.
Visual verification pages (open in a browser): `guidelines/theme-comparison-full.html` (full screen ×12), `guidelines/panels-all-themes.html` (every panel — chrome + overlays — ×12), `guidelines/theme-matrix.html` (token matrix), `guidelines/animations-all-themes.html` (live motion ×12).
@@ -160,10 +160,12 @@ Second person, possessive ("your own AI assistant"). Terse declarative fragments
## 7. File map
- `styles.css` — global entry (import this). `tokens/` — the seven token files including `animations.css` (ship as-is).
-- `components/<group>/` — 38 components (`.jsx` + `.d.ts` + `.prompt.md`) + one `*.card.html` specimen per group.
+- `components/<group>/` — 34 components (`.jsx` + `.d.ts` + `.prompt.md`; SettingsRow ships inside SettingsSection.jsx) + one `*.card.html` specimen per group.
- `ui_kits/opencompany/` — interactive full-app recreation (`index.html` + JSX) incl. Settings / Credentials / Node-Config panels.
- `guidelines/` — foundation specimen cards, `THEMES.md`, `ANIMATIONS.md`, and the theme/panel/animation comparison pages.
-- `reference/themes/` — verbatim repo theme CSS (porting reference; not shipped to consumers).
+- `reference/themes/` — pointer README only; the snapshots went stale (pre-hex-migration) and were retired in favor of the live `client/src/themes/`.
+- `HANDOFF.md` — the merged design-handoff brief (glow ladder + traps, step-edge contract, toolbar layout traps, canvas-layer asymmetries) with recorded product amendments.
+- `reference-mockup/` — the 17-panel × 12-theme fidelity target (`Panel Theme Matrix.dc.html`, open in a browser).
- `assets/` — product screenshot + official architecture diagrams (SVG).
- `readme.md` — design guide (voice, visual foundations, iconography). `SKILL.md` — Agent-Skill entry point.
diff --git a/docs-internal/design-system/readme.md b/docs-internal/design-system/readme.md
index 7496040d..22633f82 100644
--- a/docs-internal/design-system/readme.md
+++ b/docs-internal/design-system/readme.md
@@ -65,7 +65,9 @@ The app ships 12 visual themes (light, dark, Renaissance, Cyber, Edo, Steampunk
- `styles.css` — global entry; imports everything in `tokens/`.
- `tokens/` — `colors.css`, `typography.css`, `spacing.css`, `motion.css`, `animations.css`, `fonts.css`, `base.css`.
- `guidelines/` — foundation specimen cards (Design System tab), plus `THEMES.md` (deep analysis of the app's 12-theme architecture) and `theme-matrix.html` (visual comparison of all 12 themes).
-- `reference/themes/` — verbatim copies of all 13 theme CSS files from the repo (`base, light, dark + 10 skins`) for porting.
+- `reference/themes/` — pointer README only; the snapshots went stale and were retired in favor of the authoritative `client/src/themes/`.
+- `HANDOFF.md` — merged design-handoff brief + recorded product amendments (read alongside `IMPLEMENTATION.md`).
+- `reference-mockup/` — 17-panel × 12-theme fidelity target (`Panel Theme Matrix.dc.html`, open in a browser).
- `assets/` — `product-canvas-screenshot.png`, `diagrams/*.svg` (official README diagrams).
- `components/buttons/` — ActionButton (6 intents), Button (shadcn variants).
- `components/forms/` — Input, Select, RadioGroup, Textarea, Switch, Checkbox, Slider, ApiKeyInput.
@@ -81,5 +83,5 @@ The app ships 12 visual themes (light, dark, Renaissance, Cyber, Edo, Steampunk
- **Fonts substituted:** Geist served from Google Fonts instead of the app's bundled `@fontsource-variable/geist` (same typeface, different delivery). Drop real `.woff2` files into `tokens/` + add `@font-face` if pixel-exact metrics matter.
- **No official logo found in the repo** (favicon is the Vite placeholder; README hero is a GitHub user-attachment). The wordmark card sets "OpenCompany" in Geist 600 as a stand-in — replace with the real mark when available.
- opencompany.sh marketing site isn't in the repo; no marketing UI kit was invented.
-- The app's 10 themed skins are analyzed in `guidelines/THEMES.md` (token contract, per-theme matrix, porting recipe) with sources in `reference/themes/` — but only light/dark are encoded as live token scopes here. Ask to port a skin (e.g. Cyber) into `tokens/` if you want it usable.
+- The app's 10 themed skins are analyzed in `guidelines/THEMES.md` (token contract, per-theme matrix, porting recipe) with the authoritative sources in `client/src/themes/` — but only light/dark are encoded as live token scopes here. Ask to port a skin (e.g. Cyber) into `tokens/` if you want it usable.
- **Motion** is documented in `guidelines/ANIMATIONS.md` and encoded in `tokens/animations.css` (per-theme `--dur`/`--ease`/`--motion-style` scopes + signature keyframes for all 12 themes). Live demo: `guidelines/animations-all-themes.html`.
diff --git a/docs-internal/theme_system.md b/docs-internal/theme_system.md
index 2e708503..8b3dc1e8 100644
--- a/docs-internal/theme_system.md
+++ b/docs-internal/theme_system.md
@@ -84,7 +84,7 @@ Surface hierarchy across themes; every theme assigns these in its `:root[data-th
| Tailwind utility | CSS var | Purpose |
|---|---|---|
-| `font-display` | `--font-display` | Headings, panel titles, action labels (Cinzel under Ren, Major Mono under Cyber) |
+| `font-display` | `--font-display` | Headings, panel titles, action labels (Cinzel under Ren, Space Mono under Cyber) |
| `font-body` | `--font-body` | Paragraph + UI copy |
| `font-mono` | `--font-mono` | Code, console, JSON, status bar, kbd |
@@ -159,10 +159,10 @@ Result by theme (display font / tracking / case):
- **Edo** — Shippori Mincho / 0.06em / `none`
- **Steampunk** — IM Fell English SC / 0.10em / `uppercase`
- **Atomic** — Bevan / 0.06em / `uppercase`
-- **Cyber** — Major Mono Display / 0.18em / `uppercase`
+- **Cyber** — Space Mono / 0.18em / `uppercase` (design-handoff legibility substitution for Major Mono Display, which renders lowercase as sparse fragments at UI sizes)
- **Wasteland** — Special Elite / 0.10em / `uppercase`
- **Rot** — Pirata One / 0.04em / `none`
-- **Plague** — UnifrakturCook / 0.06em / `uppercase`
+- **Plague** — Cinzel / 0.06em / `uppercase` (substitution for UnifrakturCook — blackletter under uppercase + tracking is unparseable at UI sizes)
- **Surveillance** — Anonymous Pro / 0.10em / `uppercase`
## Adding a new theme
@@ -249,7 +249,7 @@ the surrounding chrome. Every other surface uses Tailwind + tokens. New themes c
- **Sound throttling** (W19) — `type` and `hover` events throttled to a 30 ms last-fire window inside the engine to prevent OscillatorNode flooding. See [Throttling](#throttling).
- **Migrated chrome**: TopToolbar, WorkflowSidebar, ComponentPalette + ComponentItem + CollapsibleSection, ConsolePanel chrome, SettingsPanel, Modal, ParameterPanel modal title, AIResultModal title, OutputDisplayPanel title, InputSection title
- **New shell components**: StatusBar (fixed-bottom system line with WS connection / workflow / theme / clock), CommandPalette (`⌘K`), CommandPaletteHost (canonical command list with Workflow / Run / Open / View / Theme groups)
-- **Google Fonts** — deferred-load `<link>` covers all 12 themes' typefaces (Cinzel, Cormorant Garamond, IM Fell English / SC, JetBrains Mono, Major Mono Display, VT323, Shippori Mincho, Sawarabi Mincho, Special Elite, Bevan, Lato, Pirata One, EB Garamond, UnifrakturCook, Anonymous Pro, IBM Plex Mono, Courier Prime, Space Mono)
+- **Google Fonts** — deferred-load `<link>` covers all 12 themes' typefaces (Cinzel, Cormorant Garamond, IM Fell English / SC, JetBrains Mono, VT323, Shippori Mincho, Sawarabi Mincho, Special Elite, Bevan, Lato, Pirata One, EB Garamond, Anonymous Pro, IBM Plex Mono, Courier Prime, Space Mono). Major Mono Display + UnifrakturCook were trimmed from the URL when the legibility substitutions landed (Cyber → Space Mono, Plague → Cinzel).
- **Sound contract** — [client/src/lib/sound.ts](../client/src/lib/sound.ts) ports the upstream WebAudio engine with all 10 packs (`parchment`, `marble`, `ink`, `clockwork`, `vibraphone`, `terminal`, `scrap`, `crypt`, `bell`, `telex`). [client/src/hooks/useSound.ts](../client/src/hooks/useSound.ts) reads `--sound-pack` from `:root` on theme change and mirrors the `soundEnabled` Zustand slice into `Sounds.setEnabled()`. Settings panel ships the toggle (Audio section). Persists to `localStorage['opencompany-sound']`; **default ON** (browsers gesture-gate WebAudio without a separate permission API — the AudioContext starts suspended and resumes on the user's first pointerdown / keydown / touchstart via `Sounds.unlock()`, registered as a one-shot capture-phase listener in `useSoundSync()`).
- **Canvas overlay packs** — [client/src/hooks/useAppTheme.ts](../client/src/hooks/useAppTheme.ts) extended from 2-way (`{light, dark}`) to 10-way: a `THEME_OVERRIDES` map applies a small overlay (primary, focus, focusRing, action colours, edge palette) on top of `lightColors` / `darkColors`. Existing call sites continue to read `theme.colors.X` and `theme.isDarkMode` unchanged; canvas selection rings, action buttons, and edge strokes pick up the active theme's accents under any of the 10 themes.
@@ -522,3 +522,4 @@ cd client && npx eslint <files>
| `design_handoff_machinaos_themes/` (external design handoff, not in repo) | Reference HTML mocks + token spec |
| `design_handoff_machinaos_themes/app/icons.js` (external) | Upstream icon source (ported by Wave 23) |
| `design_handoff_machinaos_themes/MIGRATION_PLAYBOOK.md` (external) | Upstream recipe — all originally-deferred items now landed (W14–W25) |
+| `design_handoff_theme_system/` (external, 2026-08 — **fully migrated, removed from disk**) | Second handoff drop: its `themes/` CSS was byte-identical to live, `tokens/`/`components/`/`guidelines/` matched the vendored bundle; the new content (handoff brief + 17-panel × 12-theme mockup) was merged as [design-system/HANDOFF.md](./design-system/HANDOFF.md) + [design-system/reference-mockup/](./design-system/reference-mockup/), and the fidelity-pass contracts it specified (step edges, outcome glow, toolbar pinning, font substitutions, reduced-motion coverage) are implemented |