app: shell never applies the brand tokens — 270 var(--oc-*) reads, zero definitions #237
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#237
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Found during #183 Phase A (A1, first real launch of the production shell). Same QA thread as #230–#233 and the wire-contract ticket.
What happened
The operator app renders with almost no styling — layout only, no colours, no brand — looking nothing like the wireframe contract. The content is all there; the visual layer isn't.
Root cause: the app's component styles consume the theming seam's custom properties (
--oc-accent,--oc-background,--oc-status-*, …) roughly 270 times, but nothing ever defines them. The seam's design (DDR 0007 / ADR 0094) is that the compiled brand kit'stokens.cssdeclares them on:root, and the shared ui-kit exports the application function for exactly this — but the operator app never consumes it (the ui-kit wrap was deferred by ADR 0108's first-packaging scope). Everyvar(--oc-*)falls back to browser defaults, so the shell looks unstyled everywhere, including before founding even starts.What I expected
The shell wears a coherent default kit from first paint (the seam already falls back to a default preset + letter-mark so the preview is "live from the operator's first keystroke" — the same default can dress the shell), and wears the community's compiled kit once one exists. The wireframes are the contract for what these screens look like.
Steps to reproduce
var(--oc-*)resolves to nothing; compare any screen against its wireframe.Additional context
tokens.csslocally through the real theming seam (the S3 preview op returns it), and the ui-kit has both the token-application function and the Quasar brand-var mapping ready. What's missing is the shell calling it — at boot with the default kit, and on brand-kit changes thereafter.Triage
Category: bug · State: ready-for-agent
Verification: confirmed by inspection —
packages/ui-kit/src/brandTokens.tsexportsapplyBrandTokens, anddashboard/consumes it across many components (grep shows dozens of hits underdashboard/src/components/**), but the operator app (app/src,app/src-electron) never calls it — the onlytokens.cssreferences underapp/srcare for compiling the artifact during founding preview (FoundingBrandKit.vue,founding.ts), never applying it to the shell's own:root. Matches the reported symptom (270 unstyledvar(--oc-*)reads). No existing implementation, no prior.out-of-scope/rejection.Agent Brief
Category: bug
Summary: The operator app shell never applies the theming seam's brand tokens — every
var(--oc-*)custom property falls back to browser defaults, so the shell renders unstyled from first paint.Current behavior:
The app's component styles consume the theming seam's custom properties (
--oc-accent,--oc-background,--oc-status-*, and others — roughly 270 reads) but nothing in the operator app defines them on:root. The seam's design (DDR 0007 / ADR 0094) is that the compiled brand kit'stokens.cssdeclares them, and the shared ui-kit (packages/ui-kit) already exportsapplyBrandTokensfor exactly this purpose — the dashboard package consumes it, but the operator app's shell never calls it (deferred as part of ADR 0108's first-packaging scope, along with the full Quasar wrap). The result: the shell looks completely unstyled on every screen, including before founding starts, well below wireframe fidelity.Desired behavior:
The shell applies a coherent default brand kit from first paint (the theming seam already falls back to a default preset + letter-mark so a preview is "live from the operator's first keystroke" — the same default should dress the shell chrome), and applies the community's compiled kit once founding produces one, with the shell re-applying tokens on brand-kit changes thereafter.
Key interfaces:
applyBrandTokens(packages/ui-kit/src/brandTokens.ts) — the shell should call this at boot with the default preset, and again whenever a compiledtokens.css/brand kit becomes available (e.g. after founding's S3 preview, or on later brand-kit changes).applyBrandTokens's own contract or to the theming seam's compilation path should be needed.Acceptance criteria:
var(--oc-*)falls back to a browser default.Out of scope:
Landed in
9d338bcon main.Root cause was a consumption gap: the app read the theming seam's
--oc-*custom properties ~270 times but never applied a compiledtokens.css, so everyvar(--oc-*)fell back to a browser default. Fixed as pure consumption wiring (no change to the seam compile path orapplyBrandTokens's contract):DEFAULT_BRAND_TOKENS— the seam's compiled default preset (forest), echoed frombrandkit.Compilewith the same disciplinePRESET_SWATCHESkeeps for the preset accents.bootPackagedAppapplies it before mount (both real renderer entries —renderer/production.tsandrenderer/dev.ts— boot through it), so Welcome and every pre-founding screen wears a coherent kit from first paint; dispose clears the vars (AC1).FoundingWizardwatches its compiled preview and re-applies the community's portaltokens.cssonto:rootlive on the S3 first render and every brand edit, no relaunch (AC2).The wireframe colour/token usage now resolves on every screen (AC3). All app (385), ui-kit (75) and dashboard (704) tests pass, and the app/ui-kit/dashboard typechecks are clean (AC4). The go-gated
boot.test.tsremains skipped here (no Go toolchain in the sandbox), unaffected by this change.Kept TS-only (guarded by seam-echo + comment, repo precedent) so the change stays within the app/ui-kit surface; the full Quasar wrap stays ADR 0108's deferred follow-up, out of scope.
Follow-up landed in
ea7e8ba(manual session), layered on the swarm's9d338bc:foundbridge gains abrand-tokensop (Orchestrator.BrandTokens): the seam compiles the open draft's kit — or the default kit (default preset + letter-mark) when none is open — and returns the portaltokens.css. Boot dresses the shell from it (dressShell,app/src/lib/shellBrand.ts), correcting the staticDEFAULT_BRAND_TOKENSfirst paint with the seam's live compile — a relaunch mid-founding now wears the draft's chosen colours from boot, and the ui-kit's echoed default can't drift silently from the seam.Seam proof includes a boot test over the REAL production helper (
boot.test.tspolls--oc-accent→#2f7d4fon:root) and a deterministic EPIPE-race repro (stdioBridge.test.ts). 406 app tests + all Go packages green.