You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Round C of notes/frontend-simplification-map-2026-07-13.md. Pure reorganization — zero computed-value change.
Problem
Two parallel token systems coexisted (--color-bg-/--color-text- in reference-shell.css/theme-glass.css vs the authoritative --background/--foreground family), so nobody knew which token was authoritative and new code cargo-culted whichever file it saw last.
reference-shell.css: 16 dead tokens deleted (zero consumers), 3 live color-aliases moved into maka-tokens.css, 4 layout-locals kept with their rules (162→147 lines)
theme-glass.css: 2 darwin token overrides relocated to maka-tokens; glass-material rules stay (195→150)
maka-tokens.css gains a token-authority README header (authority order + alias policy) and absorbs the aliases/overrides; superseded hue-80 archaeology condensed (1509→1540)
All four theme scopes migrated (:root / .dark / darwin light / darwin dark); darwin overrides kept unlayered so cascade specificity is exactly preserved
Zero-consumer tokens that are governance-scale members (z-index/control-height/spacing/radius/406) re-pinned, not deleted
Gates
desktop 2397/2397 · ui 125/125 · typecheck · check-dead-css · knip both workspaces 0 · alignment auditor exit 0. CDP before/after light+dark on turn-narrative/module-skills/settings-general/onboarding: 7/8 byte-identical, 1 rasterization-drift confirmed pixel-equivalent. Contracts grepped first and re-pinned (chat-chrome-no-gradient, important-audit, composer-single-source, 406). Implemented by an opus worktree agent; branch based on current main tip so the gated tree is the merge result.
Two parallel token systems coexisted: the --color-bg-*/--color-text-*
family (reference-shell.css + theme-glass.css) vs the authoritative
--background/--foreground family. Nobody knew which was canonical.
Census (machine-generated, var() consumers across all CSS+TSX):
- reference-shell.css: 23 defined -> 16 dead (removed), 3 live color
aliases (--color-bg-container/--color-border-tertiary/
--color-text-quaternary) moved to maka-tokens, 4 live layout-locals
(--agents-layout-bg/--agents-content-area-bg/-gap, --sidebar-width)
kept in-file with their layout rules.
- theme-glass.css: 2 darwin token overrides (--color-bg-container
light+dark, --color-text-quaternary) relocated to maka-tokens; all
glass-material + text/label rules stay.
maka-tokens.css now owns every token definition and carries a
token-authority README (authoritative --background family vs
compatibility --color-* aliases + alias policy). Both themes migrated
(:root + .dark + darwin light/dark). Superseded hue-80 archaeology
condensed (it named the deleted tokens).
Pure reorganization: no computed value changed. The shipped
`--color-bg-container: var(--background)` exception kept as-is.
maka-tokens internal zero-consumer tokens are governance-contract scale
members (z-index/control-height/spacing/radius/406) and were re-pinned,
not deleted.
Gates: desktop 2397/2397, ui 125/125, typecheck 0, check-dead-css
clean, knip desktop+ui 0, auditor exit 0. CDP light+dark captures
(turn-narrative/module-skills/settings-general/first-run) before/after:
7/8 byte-identical, 1 rasterization-drift-only (eyeball identical).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Round C of notes/frontend-simplification-map-2026-07-13.md. Pure reorganization — zero computed-value change.
Problem
Two parallel token systems coexisted (--color-bg-/--color-text- in reference-shell.css/theme-glass.css vs the authoritative --background/--foreground family), so nobody knew which token was authoritative and new code cargo-culted whichever file it saw last.
Change (census-driven, machine-generated consumer counts)
Gates
desktop 2397/2397 · ui 125/125 · typecheck · check-dead-css · knip both workspaces 0 · alignment auditor exit 0. CDP before/after light+dark on turn-narrative/module-skills/settings-general/onboarding: 7/8 byte-identical, 1 rasterization-drift confirmed pixel-equivalent. Contracts grepped first and re-pinned (chat-chrome-no-gradient, important-audit, composer-single-source, 406). Implemented by an opus worktree agent; branch based on current main tip so the gated tree is the merge result.