Repository navigation
Description
Part of #1425.
Status
Audit continuation 1fbdb4b6233c6ca61e27a1278696fc34568faf1d: incomplete; draft; no independent review or readiness. The status-indicator C3 correction is test-logic/acceptance, not a mechanical move. Previous light wrong-tone/accent mutants and new missing-word, dark wrong-tone, standalone tooltip/role and aria-hidden mutants failed their named assertions; exact production restored. Carry prior proofs: 12/27 title-probed, strict 0/0; seven byte-identical relocated action tests excluded. No product UI or assets changed after 6d2f. At ac168, full frozen renders passed 37/37 and, after mutations restored, shell/views/layout/leases/actions/search/workers/long-lists passed 122/122. Only the two website descriptions changed subsequently; website install/build/OpenAPI passed (44 operations/12 tags). Both correction-range stale sweeps returned zero. Website stale status-square/hover wording was corrected against actual visible status words; slot squares and the distinct LogRow remain. Commit and unsuppressed push hooks passed; 15 complexity advisories. Prior ac168 hosted Static (five CSS format files), Fallow (15 health findings), and Quality failed; new-head CI is running, not diagnosed or waived.
Tests disposition: T3 Slots, T4 paths and T10 visual primitives have named-seam/probe evidence; T1 shell has remaining title/reference claims; T2 holder needs full-label search evidence; T5 controls has remaining split titles; T6 render comparator/screenshot titles remain partially probed; T7 reference/viewport/contrast incomplete; T8 must reconcile the specified long-lists extension; T9 both-theme views title needs probe. Done when: 1 incomplete; 2 render passed but current shared-reference inventory incomplete; 3 current per-container/scroll/collision and axe-incomplete computed contrast incomplete; 4 docs and build complete; 5 API/discovery/data implemented but independent review and reviewed-SHA pin remain the next gate. No hardware.
Remaining title claims: lease drawer release; single-host lease drawer/Inbox; fixed perceptual matching/exact state; named stable signed-in captures; shell/header/card keyboard; every shell control keyboard; collapse names/persistence; Overview containment/axe; both-theme retired-token controls; Fleet worker data; worker row navigation/header/tab; single-host Fleet/worker actions; Fleet and Inbox action geometry; lease close border/height; lease toolbar alignment. Prior partial proofs retained. Finish actual 1440/1280/390 both-theme card/table-card/drawer/feed/sign-in/SVG collision and scroll checks; compute actual distinct axis/Activity/lease-line contrast combinations and classify essential versus decorative border-strong uses. Do not infer proof from zero-panel samples or the older pre-CSS capture matrix.
Reference pair: approved overview, actual dark shell, actual light shell; sidebar x12–212/y12–888, header x224–1440/y12–65, card header x224–600 at different layout heights. Collapse is the authorized addition, account/avatar/count are data; later Overview composition is not certified. Original nine reference PNGs unchanged. Existing groupBy assumption remains; no new assumption.
Incremental audit checkpoint 9de34d43f1f72e12bf366168e75c83d85152429e (previous 3685f98be4acb9022c5de0348bb3d3c01a09d440, merge-base a4e5e7da8ec858ff866a9f2acd0c2270e58cf37d, base 1c5d7209fe1bdef75f453e2c57336c376e07c5af): incomplete; not independently reviewed or ready. No tracked changes or push in this continuation. Full frozen pnpm test:console --project=chromium e2e/console/renders.spec.ts passed 37/37 at this exact head; seven affected unit files passed 42/42. Chromium shell, views, layout, leases, actions, search, workers and long-lists ran together: 121/122 passed. workers.spec.ts:1362 failed on connected-in-list light: dot rgb(20,111,53) versus expected legacy status palette rgb(21,128,61). Current CI Console (4/4) has the same named failure. status.css now gives pill dots the pill foreground while the test reads only the separate --status-* tokens; other non-pill dots retain those tokens. This is a concrete affected-test/CI repair item, not an asserted flake or license to weaken tone/accent coverage. Prior worker-bar and device-rotate base/current passes remain non-reproduction only. Current hosted CodeQL, Fallow, Static, Quality and Console (4/4) fail; Console (2/4) was pending when queried. Parent owns the current CI repair batch; no obsolete CI log is classified here.
Test classification: previous 9/29 AST declarations includes seven byte-identical relocated action tests; helper and split parity is recorded in prior handoffs. Those seven are mechanical moves, not new behavioral claims; they ran in this 121/122 run, while their unchanged assertions are retained rather than re-probed to inflate the count. The other 22 prior declarations remain genuinely new/changed; correction range adds four changed existing layout/lease tests, for 11/26 conservatively title-probed. Nine earlier proven titles remain valid after testing the new ReactNode clauses; the two additional complete title proofs are first-safe worker action (findLast mutant, two genuine safe actions) and shell geometry/scroll C1 (201px width, static sidebar, bottom clipping mutants). New ReactNode-only removals for GroupHeader child/count and Banner title/detail each failed the corresponding named assertion; source restored and visuals unit passed. Keyboard activation, render HTML-geometry, worker-slash and chip typography mutation proofs remain partial claim-level evidence, not extra fully probed titles. In views, layout, leases and workers the added CSS/fixture/assertion changes, the two split action tests, shell, render and other unprobed title clauses need their own named probes. Strict production areas were untouched: covered 0/0. Stale-refs.sh over the explicit correction range with current #1426/#1425 bodies returned no hits; semantic sweep identified the status-test mismatch above and removed-slot comments are already fixed. No claim that all replacement/semantic checks are complete.
Tests 1–10: (1) shell keyboard and theme have passing current runs and partial probes, remaining title/reference audit open; (2) holder unit and real LeaseTable passed with prior title probes, full-label compatibility review remains; (3) slots browser passed, old count/threshold/fraction mutants retained; (4) paths unit passed with worker-slash mutant and literal fixture, existing title proof retained; (5) actions/search/worker browser cases passed except the unrelated status test, first-safe ordering mutant proved, split/other changed-title audit remains; (6) 37/37 current frozen renders pass, comparator has prior and HTML-geometry partial mutant proofs, full titles remain unprobed; (7) current reference/bounds/contrast acceptance incomplete, below; (8) DataTable unit and existing paging/URL Chromium cases passed, prior grouping/selection/width mutants retained; required long-lists extension versus unchanged existing tests still needs reconciliation; (9) retired-token search rg -n -- "--chip|--field" ui/src returned no matches and existing views passed; new shared styling assertions need audit; (10) shared visuals unit passed with ReactNode mutants above and earlier literal/availability probes.
Done when 1 remains open: one affected Chromium failure and remaining changed-title probes. 2: full render invocation now passes, but complete final-code shell/header/card and shared-control comparison remains open; paired foundation evidence is the genuine approved render 1, current dark shell, and current light shell; C1 changed no UI. Sidebar crop x12..212/y12..888; header x224..1440/y12..65; card header x224..600 at differing vertical positions. Collapse control is the approved exception; account/session/avatar/inbox figures are DATA; old Overview composition belongs to the later page stage. Foundation does not certify eight redesigned pages or require eight published final pairs now. Original nine reference PNGs match approved tree, and current captures remain ignored. 3: prior 78 both-theme/viewport axe captures predate shared CSS conversion and cannot certify final UI; final shell/views automated checks passed but incomplete SVG axes, Activity HTML, lease-line contrast and non-panel/card/drawer/feed visible/scrolled collision checks still need current-code evidence. Decorative versus essential border-strong usages and minimum corrections are not yet fully verified; older provisional classifications and three sampled ratios are not a blanket exception. 4: shared navigation/account/identity/slots docs and two genuine referenced assets were built with website/OpenAPI at 6d2f206, unchanged since; this docs line is satisfied. 5: published DS APIs, discovered case modules and ready/stale DATA are implemented/captured; independent review and pinning the reviewed SHA are the next workflow gate, not a missing implementation or a reason to block the other checkboxes.
Detailed prior proofs and unresolved per-title/visual matrix remain in the scratch audit, isolated-probes, acceptance, visual-matrix and fix ledgers; this checkpoint supersedes stale claims that C1, shared CSS conversion, website assets or website build are absent. Existing groupBy assumption remains; no new assumption. No hardware, page implementation, review, watch, readiness or merge.
C1 fix ledger at 9de34d43f1f72e12bf366168e75c83d85152429e (previous 6d2f20656751ad62e508f8b2a3b78d6df98cadb7): test-logic/acceptance fix, not mechanical; foundation remains incomplete. The former html.scrollbarGutter === stable assertion failed locally with auto on Overview; prototype d.mjs has no such root setting. The approved clarification instead requires reference geometry, containment and usable scrolling, without a global gutter or a no-layout-shift claim. The same test now checks Overview, Fleet and the actual worker at 1440x900 and 1440x500: sidebar (12,12,200,876/476), main x=212 width=1228, header x=224 y=12 width=1204, and document width=1440. Reference grid and padding are in docs/internal/console-redesign/prototype/d.mjs:5-6,18-19; the 900px sidebar box also matches the retained shell test. It wheels to the lower real content, verifies full viewport intersection (including Fleet pager) and sticky navigation, then wheels back to the heading. Fleet uses the existing full-response seam with 30 copies of a real worker, asserting displayed worker-0025 and the Next pager; Overview and worker use the actual fixture. In a recorded 500px run the scroll offsets were 434, 1023 and 64; last-content top/bottom were 435.70/453.83, 395.75/413.88 and 435.77/486.61; sidebar y was 12, 12 and 11.61 (the last is rounded to the nearest CSS pixel at the document end). These are captured observations, not fixed scroll-offset requirements.
Proof: changing the shared sidebar from 200px to 201px failed the named navigation-width assertion; changing sticky to static failed the scrolled-navigation y assertion (expected 12, observed -422); clipping the main bottom by 100px failed the last-content viewport assertion (ratio 0). All three deliberate mutations were restored and the case passed. The first experimental test scrolled before Overview figures finished and failed on a late-moving target; it now waits for the real Wait p95 figure, not a timed delay. No production UI or screenshot asset changed. At final head pnpm test:console --project=chromium e2e/console/layout.spec.ts e2e/console/leases.spec.ts passed 24/24 (4 layout, 20 leases). Incremental stale-refs over 6d2f2065..9de34d43f1f72e12bf366168e75c83d85152429e with #1426/#1425 bodies produced no hits; affected test title and rule-10 assertions checked, with the three probes above. Commit hooks and unsuppressed push hooks passed; Fallow emitted 15 complexity advisories including the changed test, no dead-code gate findings. Fixed matcher and references unchanged. This is not a full audit, visual/contrast acceptance, independent review or readiness claim; all prior open checks and the grouping assumption remain unchanged. Current-head hosted CI is not classified here.
Checkpoint 6d2f20656751ad62e508f8b2a3b78d6df98cadb7 pushed to draft #1435: shared-control reference conversion is in progress, not accepted or reviewed. Both commit and push hooks passed. Shell/views Chromium passed 25/25 before the final targeted pill-width correction, with the affected cases subsequently passing; layout/leases passed 23/24, with the scrollbar-gutter assertion still failing. Fleet 1440 and 390 captures and both-theme public shell images were refreshed; website build/OpenAPI passed. Keyboard, worker first-safe-action and HTML geometry confirmed mutants went red and passed after restoration. Remaining: resolve the scrollbar claim against reference, finish visual/collision and computed contrast evidence, remaining shared-size/state checks, test/audit gaps and independent review. No page implementation or merge. Full per-ID evidence is in the implementer handoff.
Scope
Delivery priority approved by the maintainer on 2026-11-08: freeze the working render harness; stop comparator experiments and new defensive harness requirements. Commit/push its current safe checkpoint and record concrete acceptance gaps. Next finish actual shared UI foundation (remaining primitives, worker/account visuals and retired tokens) and required shell visual/accessibility acceptance using this harness. Close required checks during that implementation/audit, rather than starting more standalone harness-polishing runs. After foundation audit and independent review, deliver Overview and Fleet first, up to two page tasks in parallel; verify each page with the harness while converting it. Keep all approved final reference requirements and the complete-stack merge gate.
Deliver stage 0 of the approved console plan: Foundation and render harness. This is a reviewable slice of the single feature stack, not permission to merge a partial console into main. The parent Shared values owns every cross-stage value/interface. No issue is claimed or ready until independent spec checking finishes.
In short
The operator gets foundation and render harness in the approved visual style, with existing identity, session and action semantics. The parent defines render, holder and view-only behavior; quantities below are CSS pixels for layout and milliseconds for request waits unless explicitly stated otherwise.
flowchart LR
O[Operator] --> P["Stage 0 page or shared UI — changed"]
P --> S[Existing state hooks]
S --> M[Pure view models]
P --> D[Shared design components]
S --> A[Existing API and live connection]
If this goes wrong, the operator sees a missing control, a misleading value or content that cannot be read at the selected window size.
Technical spec
Facts
Commit a4e5e7d. Source Facts use this main-reachable commit; the approved design/reference authority remains 3b8c44d, whose source blobs are identical.
| # | Fact | Source |
|---|---|---|
| F1 | The shell builds navigation and account state outside the DS. | ui/src/app/shell.tsx:20-85 |
| F2 | The DS barrel already exports ListRow; a second ListRow export would collide. | ui/src/ds/index.ts:14 |
| F3 | The table API has paging and rowTo but no group-row API. | ui/src/ds/table.tsx:32-57 |
| F4 | The requester resolver emits tool-prefixed ids; free-form ids are accepted separately. | src/agent-identity/index.ts:21-37 |
| F5 | Requester validation allows printable ids up to the bound after gateway prefix removal. | src/contract/lease-schemas.ts:12-29 |
| F6 | The baseline schema has savedAt, optional sizeBytes and staleReason, but no building state. | src/contract/device-schemas.ts:119-133 |
| F7 | The lane has full-response stubs to avoid ETag 304 bodies. | e2e/console/stub-answers.ts:6-13 |
| F8 | Playwright has named Chromium, Firefox and WebKit projects and a bounded test timeout. | playwright.config.ts:8-22 |
| F9 | Read-resource mapping distinguishes loading, refusal, unsupported and retained data. | ui/src/state/resource.ts:22-46 |
| F10 | API requests use a 10000ms default timeout, counted from request setup. | ui/src/data/api.ts:1-10 |
| F11 | Leases already exports LeaseTable; its Holder column renders a link from row.holder and row.to. | ui/src/screens/leases/index.tsx:71-76,94-112 |
| F12 | Existing static tests render LeaseTable through inConsole with plain rows and paging. | ui/src/screens/leases/leases.test.tsx:1-8,17-29,69-80 |
| F13 | leaseRows receives raw requesterId and currently publishes the resolved holder label without a separate raw requester field. Worker builders already have a state re-export for static screen fixtures. | ui/src/model/leases.ts:112-154; ui/src/state/workers.ts:55-57 |
Modules touched
Scrollbar acceptance clarification: the new shared shell is verified by actual reference-aligned navigation/content geometry, containment and usable scrolling, not a mandatory html.scrollbar-gutter CSS value absent from the prototype. Update the existing layout.spec.ts scrollbar test to assert those literal rendered contracts across its real routes and scroll states; if geometry or scrollability fails, fix the shared layout code. Do not skip the test, relax reference dimensions, or add a global gutter merely to satisfy the obsolete property sentinel. Existing navigation/actions/scroll access remain supported. (decided in delivery, pending the maintainer)
Stage-specific shell documentation assets: foundation may add website/public/console-shell-dark.png and console-shell-light.png, real fixture-driven screenshots actually referenced by its owned navigation/account wording. This narrowly permits these two new shell illustrations before stage 7, not rewriting existing page images or committing ignored current/prototype outputs or evidence-only assets. Use their pinned committed URLs with the unchanged original reference for PR paired evidence, scope/crop/difference notes and retained viewport/axe records. Stage 7 refreshes them at the integrated final UI or removes them if superseded. No release/storage setup or extra screenshot tooling project. (decided in delivery, pending the maintainer)
Foundation acceptance cleanup: the nine approved files under docs/internal/console-redesign/renders/ are intentional committed PNG binaries. Extend only their exact binary classification in src/source-hygiene.test.ts, keeping original bytes and the NUL scan for all other source/docs. Resolve Fallow by checking actual callers/imports: unused unpromised AgentKind/Group type re-exports may be removed without removing required components/props; the required state/navigation.ts facade may be declared explicitly as a public entry until page consumers integrate; genuinely used pixelmatch/pngjs test-only imports may use the existing narrowly reasoned dependency exception pattern if the push confirms false positives. No blanket suppression/severity reduction. Stage 7 removes any temporary navigation entry after real imports exist. (decided in delivery, pending the maintainer)
Preserved-collapse reference amendment: keep the existing desktop collapse/expand action, labels, persistence and mobile-menu behavior, but move its control from sidebar-foot to the wordmark/header row. Use a compact accessible control that fits expanded/collapsed widths; do not displace the account box or cause overflow. This retained header control is the only additional shell-reference exception; record it in paired stage-0/stage-7 images while preserving all other shell geometry, original PNGs and accessibility. Test collapse/expand and account-bottom geometry through existing shell.spec.ts. Unused new primitive APIs use public static-props/token verification before forks; their real page-consumer captures belong to the owning page stages. Do not create a showcase route or fake a production capture. (decided in delivery, pending the maintainer)
Capture raster stability rule: compare only captures of the same seeded case/viewport, both repeated captures within a settled context and captures across independent fresh daemon/browser contexts. Visible fixture data, computed presentation styles, geometry and all paint inputs associated with visible SVGs (markup, definitions, clip references and matrices) must match exactly; consistently normalize framework-generated identity references only, never paint semantics. Require matching dimensions and unchanged alpha. Same-source capture stability uses the fixed public pixelmatch 7.1.0 matcher with threshold 0.1 and includeAA=false; allow zero matcher-flagged differing pixels. This replaces the delivery-only custom 32-pixel/one-RGB-level residual rule. No location/region masks, skipped cases or retry-until-green. A single matcher-flagged pixel still fails; exact visible-state and SVG guards reject their changes independently of the image matcher. Do not tune these fixed parameters in response to later failures. Preserve both raw captures plus raw/recognised-edge/residual counts and channel deltas in evidence. Verify the chosen detector version's public API/source; do not vendor tool internals. This permits bounded raster noise only in fresh-run stability checks, not a new exception to approved reference tokens, typography, geometry or paired-image acceptance. Test identical images, recognised AA edges, known below/above-threshold flat non-AA changes and single matcher-flagged pixel rejection, alpha/dimension changes, and deliberate real SVG path/clip and visible UI/data/style/geometry mutations; the latter must fail independently of the raster budget. (decided in delivery, pending the maintainer)
Render bootstrap and acceptance ownership: foundation seeds all eight reference datasets, but captures only currently implemented equivalents: Overview, Fleet, worker page, existing device Screen drawer, Leases list, existing selected lease drawer, ready/stale Baselines table and Activity, plus no-render pages. Use existing signed-in routes; do not implement the new streaming page, selected inspector or Baselines ready pill in stage 0. Name/document each baseline-to-reference mapping and initialize separate discovered page-case modules before forks. Each stage 1–6 later changes only its owned case module to capture its approved page state. Foundation proves stable named captures, fixture data, empty/long/refused cases and its own shell/header/card crop, viewports and evaluated both-theme contrast; old layouts need only remain usable. Stages 3/4 own new inspector/streaming geometry. Foundation verifies/document ready/stale fixture data substitution, while stage 5 owns identical replacement row/pill geometry plus Ready-filter/Prepare-baseline-link/omitted-menu acceptance; stage 7 verifies all eight final states. No final reference requirement is waived and original PNGs remain unchanged. (decided in delivery, pending the maintainer)
Shared-primitive documentation exception: foundation mechanically corrects existing factual descriptions of any shared primitive its current changes make false, before page branches fork, including worker/console.mdx:112 and gateway/fleet-console.mdx:28 slot claims. Slots show squares through ten; above ten use a meter, printed leased/total fraction and accessible state counts. Unknown or unavailable load remains unavailable, never fabricated zero. These edits may occur inside later stages' reserved page sections, but only change the false shared-primitive description; do not rewrite page structure, layout, actions, workflows or future-stage instructions. Later page owners inherit the corrections from the reviewed baseline and retain all other section ownership. Run the website build/OpenAPI check with these edits. (decided in delivery, pending the maintainer)
Holder-cell scope exception: foundation owns only the existing Leases table Holder cell in ui/src/screens/leases/index.tsx:71-76, its cell-local styling in leases.css and static tests in leases.test.tsx, plus additive presentation fields in model/leases.ts and state/leases.ts. Keep row.holder as the existing complete resolved label for search/action labels; retain the complete requesterId separately as holderTitle, use shortHolder(row.holder) as display, and derive agent kind only from requesterId. Pure model row builders compose holder helpers; state exposes/passes the plain presentation values; the screen composes AgentChip and the existing Link with title=holderTitle. Preserve every existing row/link/action/filter/paging/selection/inspector contract and the existing table columns/structure; no page-stage layout or behavior redesign is authorized. Foundation owns these hunks before forks; stage 3 adapts its later Leases redesign from the reviewed baseline. Use the already exported LeaseTable with inConsole/renderToStaticMarkup and rows derived through the real leaseRows builder; re-export that builder through state like the existing worker builders, not a new test-only component. Extend the existing static lease-table test seam and preserve all other assertions. Update only shared holder-identity wording in website docs now. (decided in delivery, pending the maintainer)
WCAG-AA colour amendment: where an approved dark-reference text/background or essential indicator pair fails AA, change only the minimum foreground/stroke colour needed to pass (4.5:1 for normal text, 3:1 for essential non-text indicators). Preserve geometry, typography, background fills and original PNGs. Record the affected selector/token, reference/current colours, measured before/after ratios and paired images as an explicit non-DATA reference exception; this is not permission for unrelated visual differences. In particular, sidebar group labels at #6f6f79 on #141416 measure 3.702:1 and must use an accessible foreground while retaining their 10.5px shape. Foundation fixes shared colours and aligns PLAN, DESIGN and ui/AGENTS.md Look authority before page branches fork; page stages verify their own pairs and stage 7 verifies the integrated head. Both-theme axe must actually evaluate contrast, with no violations suppressed. (decided in delivery, pending the maintainer)
Foundation mechanically moves the existing Fleet worker-action cases from e2e/console/actions.spec.ts into e2e/console/workers.spec.ts before page branches fork, preserving their titles, assertions and action semantics. It splits the combined lease/worker case at that point without dropping either half. Stage 2 owns subsequent worker-layout locator adaptation and coverage in workers.spec.ts; it leaves actions.spec.ts untouched. Stage 3 owns only the remaining lease-inspector assertions in actions.spec.ts. No parallel page owner edits the same test hunks. (decided in delivery, pending the maintainer)
Searches: rg -n 'Page|Panel|Slots|ListRow|devicePath|fleetAddress|holder|--chip|--field' ui/src e2e/console src/contract returned 649 matching lines at the Facts commit. Opened the source surrounding the Facts rows and the stage's model/state/screen entry points. Scope is the explicit file ownership below, not a repository-wide redesign.
ui/src/dswebsite/public/console-shell-dark.pngandconsole-shell-light.png (dedicated, actually used shared-shell documentation illustrations only)src/source-hygiene.test.ts (exact approved-render binary classification only).fallowrc.json (narrow declared facade/test-dependency treatment only)ui/AGENTS.md (Look authority amendment only)docs/internal/DESIGN.mdanddocs/internal/console-redesign/PLAN.md (record the posted reference exceptions)e2e/console/workers.spec.ts (foundation shared-slot browser coverage and mechanical migration of unchanged Fleet worker-action cases before page branches fork; no worker-page redesign)ui/src/ds/table.test.tsx (new)ui/src/screens/sign-in.css,ui/src/screens/inbox/inbox.css,ui/src/screens/overview/overview.css,ui/src/screens/fleet/screen-panel.css(mechanical retired-token substitution only)ui/src/app/shell.tsxui/src/model/holder.ts (new)ui/src/model/leases.ts (additive holder identity/presentation only)ui/src/state/leases.ts (holder presentation and sanctioned builder re-export only)ui/src/screens/leases/index.tsx,leases.cssand `leases.test.tsx (existing Holder cell and static coverage only; explicit exception below)ui/src/model/paths.tsui/src/state/workers.tse2e/console/renders.spec.ts (new)e2e/console/render-fixtures.ts (new)e2e/console/capture-comparison.ts (raw PNG comparison, content-based AA classification and exact visible/SVG paint-input guards only)package.jsonandpnpm-lock.yaml (properly pinned test-only image-comparator dependency if needed; no unrelated upgrades)e2e/console/render-cases/ (initial separate baseline page-case modules; each page stage owns its module after foundation review)website/src/content/docs/docs/worker/console.mdx,website/src/content/docs/docs/gateway/fleet-console.mdxand other described website pages, only shared wording and mechanical factual corrections under the explicit documentation exception below.
Changed callers follow screen → state → model/data and screen → ds. The In short diagram shows those arrows. The task adds no daemon module or new module factory. DS exports are React components with plain props; new hooks reuse the existing providers.
Apply every stage-0 primitive and token requirement in PLAN.md. Preserve existing callable props and exports until stage 7 removes unused compatibility APIs. Remove --chip and --field only after replacing all consumers with the appropriate new token; derive accessible light values now, refine them in stage 7. Do not add a theme preference or change system theme selection. Foundation also owns the mechanical --chip/--field substitutions in sign-in.css:15, inbox/inbox.css:39,120, overview/overview.css:51 and fleet/screen-panel.css:22,45; apart from the explicit Holder-cell integration above, no other screen layout or behavior edits precede its page stage. Verify no retired-token consumers remain with rg -n -- "--chip|--field" ui/src; the existing pages must still render. (decided in delivery, pending the maintainer)
Publish these shared interfaces through ds/index.ts before page branches fork: Pill({children, tone, plain?}), AgentChip({kind, title?}) where kind is claude-code/codex/cursor/pi/unknown; Ring({percent?, label, size?, tone?}) with the value printed beside/inside and unavailable rendered as a dash; LogRow, FeedRow, GroupHeader and Banner accept plain values or ReactNode slots, no daemon types. Reuse/extend existing ListRow instead of exporting a second name (F2). Table grouping uses an optional groupBy(row) returning {id,label}; a full-width group heading precedes its rows without counting as a data row. Add optional selectedId and footer?: "count" | "pager" (default "pager"). selectedId applies aria-selected and the accent bar only to that data row. Count mode prints the data-row range/count without pager controls while still applying supplied paging; omitted paging shows all data rows. Apply grouping to the paged data rows, repeat a heading when a group crosses a page boundary, and never include headings in page size, range or totals. Callers supply labels with full matching-collection counts/sizes; groupBy does not recalculate labels from the page slice. Keep existing rowTo, menu and paging callers working (F3). Verify through public DataTable props using the renderToStaticMarkup component seam in ui/src/ds/menu.test.tsx:1-20, in new ui/src/ds/table.test.tsx, plus existing e2e/console/long-lists.spec.ts for paging interaction. (decided in delivery, pending the maintainer)
Add shortHolder(id): unchanged through 34 JavaScript string code units, otherwise first 25 + U+2026 + last 6; preserve the full id in title at call sites. agentKind(id) matches only exact leading claude-code:, codex:, cursor:, pi:; never infer a tool from labels or slash-separated mock names. Pure model row builders compose the holder helpers; state hooks expose/pass the complete title, shortened display and kind; DS receives only those plain values. Do not import model from DS or screens.
To avoid shared routing edits, own model/paths.ts and its tests here: retain devicePath for the existing drawer, add streamPath(workerId,deviceId) returning /fleet//devices// (trailing slash supports ids containing a dot), and extend FleetAddress with optional streaming: true for exactly that route. Parse each opaque id separately; malformed escapes keep literal text; missing segments and extra segments are not streams. Existing drawer addresses keep their interpretation. Re-export streamPath via a new state/navigation.ts so screens never import model. Stage 4 alone adds the rendering dispatch; foundation creates no Watch links.
Create a shared worker visual primitive with plain props for name/title/link, pill, platform slots, leased/limit fraction and CPU/MEM/DISK values. Stage 1 and stage 2 consume it independently. Do not move business health rules into DS. Keep WorkersTable available to Overview until both page stages have integrated; stage 7 removes it if unused.
The harness uses the lane's daemon, real sign-in and response headers with answer/fetchFull, never an independent static mock app. Freeze browser time and stub response timestamps consistently, await fonts and settled data, fix locale/timezone, disable animations, and write named PNGs under current/. Parameterize cases by page and viewport so agents can run only their pages with --grep, while the full named renders.spec.ts invocation remains valid. Seed all reference datasets and capture current supported equivalents plus pages without renders under the explicit render-bootstrap ownership above; capture the final redesigned states only in their owning page stages. Seed eight workers including .local, twenty slots, disconnected, drained and 91% disk; fourteen leases including all holder forms; nine baselines including stale; an hour of replay events. Baselines amendment: use only supported ready/stale statuses. Foundation substitutes supported ready data for the fictitious building row and documents the DATA substitution in fixture/current-page evidence. Stage 5 must give the replacement the identical reference row/pill geometry and capture the final Baselines state; stage 0 does not build that ready pill. Stage 5 uses All / Stale / Ready and an equally styled Prepare baseline link to https://callstackincubator.github.io/simlock/docs/worker/baselines, replacing Building and Build baseline; foundation records this target without adding these page controls. The URL follows website/astro.config.mjs:20-29,117 and website/src/site/content.ts:8-16; preparation content already exists at website/src/content/docs/docs/worker/baselines.mdx. baseline.save requires a held lease and ends it (src/contract/operations.ts:711-725; src/http/admin-declarations.ts:158-174), so this presentation adds no save workflow or progress wire field. Keep original render files unchanged; PLAN and DESIGN record the filter/link amendment and the stage-5 PR records these explicit visual differences. (decided in delivery, pending the maintainer)
Foundation owns render-fixtures.ts and the harness's shared setup. Initialize separate baseline page-case modules under e2e/console/render-cases/; stages 1–6 update only their own module after foundation review, and the harness discovers cases without concurrent edits to one registry. Provide browser assertions for page/card bounds and both-theme axe, reusable by later page cases. Stage 0 verifies sidebar/header/card against the corresponding portion of render 1; old page layouts need only remain usable until their stage.
Contract and event changes
None. Search: rg -n 'baselineEntrySchema|requesterIdSchema|stream|baseline.save' src/contract src/http and the stage symbol search above. No daemon wire shape, operation, input socket or business event is added. Reuse existing route paths and validation; no protocol bump. The parent Baselines amendment uses only ready/stale list data and a documentation link; no baseline-saving workflow or progress field is added.
Other code on the same state
Searches: rg -n 'inFlight|simlock.sidebar|useRouteQuery|NavigationProvider' ui/src e2e/console returned 67 matching lines at the Facts commit. Existing readers/writers are the route-query cache and live invalidation in state/live.tsx and state/queries.ts, session/API connection classification, state/actions.ts per-item in-flight guard, state/router.ts navigation and shared recent feed in state/events.ts. New presentation consumes these owners, never replaces their persistence, timers or duplicate-write rules.
| Component or parallel stage | Interaction and winner |
|---|---|
| Live events and polling | Query/cache remains authoritative; server facts update the view, never fixture or screenshot values in production. Renewal changes use the existing renewal path. |
| Row, inspector, Inbox and search actions | One state/actions runner shares the item key; the first active action wins, later clicks stay disabled until completion. No screen sends its own write. |
| Browser history, page selection and disappearance | URL and latest loaded server identity decide selection; missing subject renders the existing missing/refused state, with no stale action target. |
| Shared recent feed and Activity | Existing recent feed owns drawer/inspector subscriptions; Activity owns its own feed, and stage 6 changes only its hook body. Navigation releases the consumer. |
| Stages 0–7 | Parent Shared values is the ownership contract. Stage 0 APIs are frozen at reviewed baseline; stages 1–6 use disjoint page files/hunks/cases/docs sections; stage 7 integrates serially. A necessary shared API change goes back to the foundation owner and is merged forward before consumers continue. |
| External device/settings drafts and Screens PR | Parent Shared values and Tasks schedule redesign first on the current committed baseline. Redesign owns overlapping DevicesTab/actions, Warm pool and DeviceDrawer hunks throughout this feature; external drafts adapt afterward through normal merge-forward resolution. Stage 4 rechecks actual Screens PR merge-base/head and preserves compatible capture APIs; foundation changes only its owned shell docs. No external task is a prerequisite, claimed, edited or imported. |
Failure modes
| Call | Outcome | What happens | Limit, counted from |
|---|---|---|---|
| Existing route query → API | ok, 200/304 | Render mapped data; 304 retains cached identity. Visual/functional Tests below cover the changed presentation. | Existing default 10000ms from request setup; no new wait |
| Same | error reply / malformed reply | Existing LoadView refusal/unsupported or cached data plus refusal is rendered; no success counts fabricated. Visual Tests include refused/unavailable data. | Same request bound |
| Same | absent worker/device/lease | Existing missing-subject view; clear actionable selection and avoid stale target. Functional cases below cover missing identity where applicable; shared foundation behavior is exercised by existing workers/leases specs. | After bounded request settles, no additional wait |
| Same | network unavailable / throws / no answer | Preserve cache and connection/session handling; do not show connection loss as a page-specific business failure. Existing queries/live/session tests own transport classification; this task adds no transport branch. | Existing API timeout from request setup |
| Existing action runner | ok / refused / no answer / concurrent click | Keep confirm, cancel, daemon message and shared in-flight behavior. Existing actions.spec.ts owns unchanged runner behavior; changed presentation cases below extend that seam, not duplicate it. | Existing action timeoutMs or API default from send; task adds no write |
Presentation/filter/selection state is tab-local; a reload rebuilds from URL and server data. Two tabs read independently and share no new mutable store. The daemon resolves conflicting writes; UI uses the existing runner. A process restart creates no new durable partial state. Existing session/connection tests cover unchanged restart behavior; page Tests exercise remount and selection where changed.
Rules in play
- coding rule 1, “body is the spec”: implement this stage and parent shared decisions, apply the recorded pending-maintainer delivery decisions.
- delivery rules 7/14/15, “checked before it is ready” and “one stack”: independent spec/review gates, reviewed foundation baseline and merge-forward integration, no early main merge.
- documentation rule 9, “same change”: update the owned website section and every other page describing the changed behavior.
- ui/AGENTS.md Layers, “A screen never fetches”: state hooks expose view models; DS receives plain values, no screen-to-screen imports in final code.
- ADR 0011 §§1–5, “No inline script and no <style> element”: bundle assets, retain CSP provider and existing session.
- ADR 0037 §§3–5, “One list of actions per kind of item”: reuse runner, model availability, confirmation, errors and toast semantics.
- ADR 0044 §§1–3, “One query cache”: consume existing keys, clock and feed; no new independent polling.
- ADR 0045 §§1,3–6, “route names a worker and a device”: keep identity/lifetime and existing policy, view-only console.
Tests
Seam: signed-in console browser, model pure exports where explicitly named; extend e2e/console/shell.spec.ts, e2e/console/actions.spec.ts, e2e/console/search.spec.ts, ui/src/model/paths.test.ts and model the screenshots on e2e/console/views.spec.ts. Do not duplicate unchanged transport or action-runner tests. Copy these parent Behaviours rows, one test per line with cases in a table.
-
An operator opens the console and sees the floating shell, page header and card with keyboard navigation: cases dark and light, zero and nonzero Inbox count, connected and reconnecting, signed-in token and proxy session, preserved desktop collapse/expand in the header and account-bottom geometry; extend shell.spec.ts.
-
An operator reads a holder and sees its complete identity through the title and a tool chip only for a known prefix: cases empty, 34 and 35 code units, claude-code:, codex:, cursor:, pi:, mcp:48213, token label, slash label and 256-character free-form; drive holder.ts unit exports and the existing LeaseTable/inConsole static seam with rows derived via the real leaseRows builder; assert complete requester-id title, helper-shortened resolved display, known-prefix-only chip, and unchanged lease link plus full search/action label identity.
-
An operator reads slots and sees accessible state counts, squares through ten and a meter with a printed fraction above ten: cases zero, ten, twenty, absent, quarantined and unknown load. Extend workers.spec.ts at the signed-in browser seam for the changed shared Slots primitive only; preserve existing worker-page structure and use the existing fake-driver/full-response fixtures.
-
An operator follows a device address and retains both opaque ids: cases existing drawer, new streaming path, slashes, dots, percent characters, malformed escape, missing or extra segments; drive paths.ts exports.
-
An operator uses shared controls without losing focus or duplicate actions: cases keyboard menu, confirmed and cancelled danger action, double click, dialog close, palette result changes and toast announcement; extend actions.spec.ts, workers.spec.ts and search.spec.ts where the changed primitive affects them; foundation also mechanically migrates unchanged Fleet worker-action cases to workers.spec.ts before page branches fork, preserving every assertion.
-
A reviewer opens the render harness and receives stable named screenshots from signed-in fixture pages: cases current supported equivalents of all eight reference datasets and pages without renders, repeated capture, empty data, long ids, and a refused route; nine baselines use ready/stale only and the ready replacement data is documented. Test baseline-to-reference mappings explicitly: existing device Screen drawer, selected lease drawer and ready/stale table, not unimplemented page states. Final inspector/streaming geometry belongs to stages 3/4 and identical Baselines row/pill geometry to stage 5, all verified at stage 7. Repeated and fresh-context capture equality use the same bounded raster stability rule above, with exact visible state/styles/geometry and cases identical, fixed perceptual/AA matching, below/above-threshold non-AA and single flagged-pixel rejection, alpha change and deliberate real SVG path/clip/visible mutation; approved-reference comparison remains unchanged.
-
A reviewer inspects stage 0 pages and sees the approved shape with no overflow or accessibility violations: cases 1-overview.png (shell/header/card crop), 1440×900, 1280×800, 390×844, dark and light; compare each dark reference and current PNG, run both-theme axe and list data differences and only the explicit Baselines/Fleet, preserved-collapse header-control and evidence-backed WCAG-AA colour amendments recorded in PLAN.
-
An operator uses DataTable through public groupBy, selectedId and footer props and sees correct data rows: cases a group spanning two pages, a repeated heading at the boundary, headings excluded from page size and totals, selected row aria-selected/accent only on its matching id, count-only range with supplied paging, omitted props preserving the existing pager and rowTo/menu output; render successive public-props inputs in ui/src/ds/table.test.tsx using the existing menu.test.tsx static component seam and extend e2e/console/long-lists.spec.ts for existing paging controls and URL state.
-
An operator opens existing pages after retired-token substitution and sees usable shared controls: cases sign-in, Inbox, Overview and device ScreenPanel in both themes, no unresolved --chip or --field consumers, and no screen layout or action changes before the page stages; extend e2e/console/views.spec.ts and the render harness.
-
An operator reads the shared visual primitives and sees the supplied labels, values and unavailable states without invented business facts: cases Pill status/plain, Ring zero/value/unavailable, LogRow/FeedRow/GroupHeader/Banner plain values or ReactNode slots, and shared worker name/full title/link, supplied pill, platform slots, leased/limit fraction and known/unknown CPU/MEM/DISK. Drive the public ds/index.ts exports through renderToStaticMarkup in the existing DS unit-test seams; preserve existing ListRow/table/caller compatibility and keep daemon types/business health rules outside DS.
Done when
- Every Tests line is covered at its named seam; relevant model/unit tests and touched Chromium page specs pass. The browser lane uses faked drivers, not native hardware.
- Capture this stage's pages through
pnpm test:console --project=chromium e2e/console/renders.spec.ts(page-specific --grep permitted). Compare current PNGs to 1-overview.png (shell/header/card crop); inspect every non-data difference, fix/rerun until none remain except the explicit Baselines/Fleet, preserved-collapse header-control and evidence-backed WCAG-AA colour amendments recorded in PLAN. The PR includes paired images for each reference page and lists remaining data differences; no-render pages include current images. Do not commit generated current/ or prototype/screens/. - Check the same pages at 1440×900, 1280×800 and 390×844: no horizontal page scroll, card escape or text collision. Axe in both light and dark has no WCAG AA violations and actually evaluates color contrast. Per-page verification is required in this stage, not deferred to stage 7.
- Update website pages describing this stage in the same change. Ownership: Shared navigation/account and holder-identity wording, plus mechanical factual corrections under the shared-primitive documentation exception; do not rewrite individual page structures or workflows. Run
pnpm --dir website install && pnpm --dir website build && node website/scripts/check-openapi.mjswhen the website changes. - The reviewed foundation exposes all shared APIs/case discovery and current pages still render; pin its reviewed SHA as the page baseline, retain the PR open in the stack. The ready DATA substitution is verified/captured in existing-table fixture evidence and documented; identical replacement row/pill geometry and page filter/link/menu acceptance belong to stage 5.
Out of scope
Other stages' owned files/hunks; new device management, warm-target editing, Settings or multi-device Screens behavior; backend/protocol/native capture changes; new input sockets. Apply the parent delivery decisions and document the explicit Baselines amendment; preserve every other reference requirement.
Depends on
Written by an agent.
Activity
github-actions commentedon Nov 7, 2026
Back to
task:draft:.agents/scripts/spec-lint.mjsfound blocking lines. Fix them in the body, then settask:readyagain.V3RON commentedon Nov 7, 2026
Handoff
Done
Shell cycle committed/pushed on task/1426 at dc4350d; draft PR #1435. Chromium shell: 13/13 passed, including both-theme contrast axe. Website build/OpenAPI and hooks passed.
Not done
Eight of nine foundation spec lines remain: helpers, slots, paths, controls, deterministic harness, visual/viewport acceptance, table props and token substitution. No audit/review; CI pending at handoff. No page build started.
Findings
Diagnostic screenshots use live/loading data. Proxy shutdown leaves its fixture stream open; reconnect tests use offline/return-to-tab. Final observed label is task:draft; reconcile before reclaiming. Detailed handoff: docs/internal/console-redesign/HANDOFF.md on feat/console-ui-redesign.
Blocked on
nothing — stopped at maintainer request. Resume remaining cycles on the existing branch.
Written by an agent.
V3RON commentedon Nov 7, 2026
Spec updated: reconciled source citations, test ownership/cases and explicit reference exceptions; targeted checks precede readiness.
Written by an agent.
test: operator follows a device address and retains both opaque ids (#…
76 remaining items
chore(console): skip frozen prototype in health analysis (#1426)
refactor(console): split the render harness into named helpers (#1426)
refactor(console): split the capture comparison into helpers (#1426)
refactor(console): split the render fixture responses into helpers (#…
refactor(console): split the layout check into named helpers (#1426)
refactor(console): split the shell checks into named helpers (#1426)
fix(console): quiet row menu trigger and reference search field (#1426)
refactor(console): split the expected worker row into helpers (#1426)
test(console): pin the quiet row menu trigger on the leases page (#1426)
refactor(console): split the fixture override and the shared-controls…
test(console): a table with no menu marks its selected row too (#1426)
test(console): the render harness runs on demand, not in CI (#1426)
test(console): remove the render harness; captures are a review aid, …
feat(console): establish redesign foundation (#1435)