Repository navigation
fix(#2358): Dashboard List columns share ONE sizing context, and a labelled agent stops hiding its slug - #2519
Conversation
… and Grid flows Requirements-first per CLAUDE.md Rule 1: FR-3/FR-4 in §1.3.1 already mandate the behaviour this bug fix restores, so no new FR is added — only the §9.9 Key Features line is corrected (the badge set moves, and the lg header/rows become one grid). - feature-flows/dashboard-list-view.md: lg row anatomy in the Components block; D12 (one sizing context via subgrid — insets as item margins, not padding on a subgrid item; definite placement in BOTH axes for the meter and the secondary line, since sparse auto-placement opens an implicit third row), D13 (label leads, slug follows on the line that already exists — plus the intended md density change now the md tags row is always rendered), D14 (badge policy + the fixed secondary-line order that keeps it from becoming a junk drawer). Testing section rewritten: the "No frontend unit-test infra exists" line was stale — vitest runs 73 spec files today. - feature-flows/dashboard-grid-view.md: an Identity zone section — why the slug rides .t-repo rather than a third line (fixed 384x216 cell, space-between rhythm), and why .t-slug needs its own ellipsis, select-all and nodrag. - feature-flows.md: dated index row. - architecture.md: one sentence on each of the List and Grid blocks. Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…module's first specs
Two pure helpers, written test-first, so the two decidable rules behind the
List/Grid fix live where a spec can reach them — vitest pins
`environment: 'node'` with no mount harness, so a rule inline in an SFC is a
rule no test can see.
- `agentName.js::agentNameParts(agent)` → `{primary, secondary}`, composed from
the existing `agentDisplayName` / `hasDistinctLabel` rather than re-deriving
the rule. `secondary` is either null or EXACTLY `agent.name` — never the
label (it is the string a reader pastes into a URL or an MCP key lookup, so a
presentation name appearing there would be worse than showing nothing), and
null when the primary already is the slug, so a surface reserves no phantom
second line. This is what lets call sites stop writing `display_label ||`.
- `agentRuntime.js` — `isDefaultRuntime` / `showsRuntimeBadgeInList`. The id
set mirrors `RuntimeBadge.vue`'s own `isClaude` (`claude-code` AND `claude`):
narrower, and a `runtime: "claude"` row would wear a Claude pill on a
homogeneous Claude fleet, which is the noise the rule removes. Anchored to
the platform default, not fleet majority — a majority rule flips badges as
agents come and go.
- `agentNameTooltip`'s docstring no longer claims to be the slug's only home on
list rows and tiles: a `title` is invisible on touch, unreachable by keyboard
and impossible to copy from. It stays as a belt for a truncated label.
`tests/unit/agentName.spec.js` is the FIRST test over that module — it had
none, on all four exports, despite resolving every agent name the product
renders.
Refs #2358
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…ntext The columns were ragged because the header and each row were INDEPENDENT CSS grids that happened to share a copy of the same template string. Each resolved its own `auto` tracks against its own content and the `1fr` name track absorbed the difference, so a row reading `14/16` put Controls / Success / Exec-Sched at a different x than a row reading `0`, and neither lined up with the header. Two more drifts rode along: the header spacers were not the widths of the cells they sat above (`w-3`/`w-6` vs `w-2.5`/`w-4`), and the row grid was 10px narrower than the header because the CapacityMeter sat OUTSIDE it as a flex sibling — different right edges, therefore a different `1fr`, therefore misalignment even with identical content. The template is now declared once on the list container; the header and every row are `lg:grid-cols-subgrid lg:col-span-full` items of it, and the meter joins as track 10 so the two share a right edge. Fixing the spacer widths alone could not have worked: they are `auto` tracks, so with two grids the content decides. Three properties keep it true, each pinned by a source-level guard in `agentName.spec.js` (vitest is node-env, so this is not reachable as behaviour, and the Playwright specs that would reach it are `ui`-gated): - **No horizontal padding on any subgrid item.** A subgrid item's own padding is laid out INSIDE its first and last tracks (CSS Grid L2 §7.1), so insets are ordinary item margins instead — `lg:ml-8` on the checkbox, `lg:mr-4` on the meter, identical on the header and every row. Alignment then rests on plain L1 margin sizing, not on a spec corner. - **Definite placement in BOTH axes** for the two items that are not on row 1. With sparse auto-placement the secondary line's definite column bumps the cursor to row 2 and the meter's 2-row span lands in rows 2–3 — an implicit third row hanging below every line. `lg:row-start-1` after `lg:row-span-2` is what yields `grid-row: 1 / span 2` (Tailwind emits gridRow before gridRowStart; verified against the installed 3.4.19). - **One `contents` wrapper** for the eleven lg cells, so a single breakpoint switch stands in for eleven `hidden lg:…` classes and no extra box sits between the row and its tracks. The row div is still the visual box, so background, radius, hover, the system `border-l` and the half-out avatar's positioning parent are all unchanged. Hooks for the alignment e2e: `data-testid="list-header"` and `data-col="name|status|controls|success|stats"` on both the header cells and the row cells. Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…breakpoints A labelled row rendered the label ALONE with the slug on a `title`. That shows one agent under two naming conventions in one list, with nothing connecting "Delivery Operations Manager" to the `delivery-ops` that every URL, MCP key, container and volume is keyed on — and a `title` is invisible on touch, unreachable by keyboard and impossible to copy from (§1.3.1 FR-4 says the slug stays visible AND copyable). The slug now renders as real `<code>` text on the line each layout ALREADY always renders — the lg secondary line, the md tags row, the base meta line — so a labelled row is exactly as tall as an unlabelled one and nothing reserves a phantom second line. It is `select-all`, because a double-click under plain text selection takes one hyphenated segment rather than the slug, and it is never inside the router-link: it is a copy target, not a nav target. All three sites resolve through `agentNameParts()`; the markup no longer resolves a name any other way (`agentDisplayName` stays imported for the name filter and the toasts, which are prose). Badge policy, so the name cell is worth reading: - The name cell keeps EXCEPTION markers only — SYSTEM, GHOST, Shared. - The #471 pressure badge (on essentially every row of a shared-subscription fleet) moves to the lg secondary line, first in it: a problem signal escalates to the front, as on the grid tile. Predicate untouched. - The runtime badge renders only for a NON-DEFAULT runtime, and never at base. Relocating a pill that is identical on every row is not a reduction: on a homogeneous fleet it now disappears entirely, and on a mixed fleet it marks the exceptions. - The secondary line has a fixed order (slug · pressure · runtime · tags · +N) and a shrink policy — the slug is the only shrinkable item, so the identity ellipsizes instead of the chips being crushed. That order is what keeps the line from becoming the drawer every future badge lands in. md/base row-to-row parity — there is no header there, so parity between rows is all a reader has: a toggle a row may not use is now RESERVED (`invisible` keeps the box and takes no clicks) instead of dropped, which had been shifting the success bar, meter and task counts on exactly the system and shared rows; the md CapacityMeter is always rendered for the same reason; and the md tags row is always rendered, which both hosts the slug and removes a latent jitter where a tagged md row was ~30px taller than an untagged one. Tagless md rows therefore grow by that line — an intended density trade, release-noted in the flow doc. Reservation widths come from the toggles themselves, not hand-written rems, so they cannot drift. Raw-color ratchet (measured): AgentListPanel raw_nongray 28 → 28, hardcoded_colors 3 → 3 (both flat — the hard bar), raw_gray 155 → 159, which is the two meta-ink pairs the lg and md secondary-line containers need so the slug `<code>` inherits ladder-correct ink rather than carrying its own. Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Same defect as the List row, same surface class (§1.3.1 FR-3 names dashboard cards and grid tiles together): a labelled tile rendered the label alone with the slug on a `title`, so switching Dashboard modes showed the same agent under two naming conventions. The slug leads `.t-repo` — the meta line the tile ALREADY always renders — rather than taking a line of its own. `.gtile` is a fixed 384x216 cell laid out with `space-between`, so a third identity line present only on labelled tiles would compress their zone rhythm and squeeze the charts on exactly those tiles, making the fleet look inconsistent tile to tile. Three details are load-bearing rather than decorative: - `.t-slug` carries its OWN `text-overflow: ellipsis` — `.t-repo span` targets `span`, so a `code` inherits none of it — plus `flex: none; max-width: 55%`, so a long slug ellipsizes instead of painting over the repo text. - Its own `color: var(--gv-muted)` rather than inheriting: `.t-repo.local` ghosts the whole line for an agent with no repo, and the identity is not decoration. No new `--gv-*` var — this is the ink the repo text beside it already uses. - `user-select: all` against `.gtile`'s `user-select: none`, and `nodrag` because `FleetGrid.onTilePointerDown` starts a drag unless the target is inside `.nodrag`. Without both the slug could be neither selected nor copied and a click on it would drag the tile. By design it does NOT navigate — it is a copy affordance; navigation stays on `.t-name` and the Details button. Raw-color counts unchanged at 0 / 0 / 3. Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Four cases on the List and one on the Grid tile, plus one shared fixture helper. - **Column alignment (lg, 1280 then 1440):** for each `data-col`, every visible row cell's `boundingBox().x` equals the header cell's within 1px. On CI's one-agent fleet this proves HEADER parity; row-to-row alignment across varying `Exec / Sched` content is structural (one subgrid, one set of tracks) and is checked by eye on a real fleet at review. The resize re-run is a layout-stability check, not a varying-content one — the header comment says so, because a spec that overstates what it covers is how a gap survives. - **The meter is in grid rows 1-2:** it starts at or above the name line and ends at or above the secondary line's bottom. Without definite placement in both axes, sparse auto-placement puts it in rows 2-3, hanging an implicit third row under every row in the list — a defect the unit guard catches in source and this catches in pixels. - **Both names, and the slug is real:** the visible name link reads the label, `[data-testid="agent-slug-lg"]` reads the slug, its computed `user-select` is not `none`, and it is not inside an `<a>` (FR-4 wants copyable, and a `title` is none of those things). The system row still says SYSTEM. - **md/base parity:** the slug renders at both, and a row is the same height labelled and unlabelled — measured by labelling the fixture, clearing it, and comparing, rather than asserting a constant. Any runtime badge still visible must sit below the name line. - **Grid tile:** the slug appears on `.t-repo` for a labelled tile and not at all for an unlabelled one, with `user-select: all` and inside `.nodrag`. Appended as its own describe block at the END of the file, imports included, so the change is purely additive and rebases cleanly. `e2e/helpers/agent-label.js` is shared rather than copied into both specs, for the reason `agent-probe.js` states about itself: a fixture pattern re-derived per spec drifts, and the half that drifts here leaves a live agent wearing a test label. It reads the PRIOR label and restores exactly that (including null), restores in `afterEach` because a `finally` in a timed-out body is not reliably run, and throws loudly on any non-2xx rather than letting a caller assert against an unchanged surface. Both blocks are `serial` — `fullyParallel: true` means a sibling worker would otherwise see the borrowed label. `AgentHeader.vue` hides the label pencil for system agents, so a stranded label on `trinity-system` has no UI undo; that hazard is now in `e2e/README.md` beside the probe contract. Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…stale `/sync-feature-flows` over `origin/dev..HEAD`. Mapping the four changed source files against every flow that names them turned up two whose claims no longer matched the code: - `autonomy-toggle-component.md` documented `invisible` as the "column-preserving" pattern for the List panel — a property only the lg layout actually honoured. md and base used `v-if`, so the toggle was removed rather than reserved. - `dashboard-list-view.md`'s system-row Run guard said the toggle is "hidden" without saying which kind of hidden, which is the whole difference between a column that holds and one that shifts. Checked and left alone: `subscription-usage-tracking.md` (says the badge feeds the List row, never where in the row it sits — still true after the demotion), `parallel-capacity.md` and `agent-tags.md` (name the panel as a consumer, do not describe the row's rendering conditions), `agents-page-ui-improvements.md` (explicitly Superseded — a historical record, not a live claim). Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`schedules-toggle-scroll.spec.js` explains why it addresses the row by `data-agent` + `href` rather than link text, and cited `AgentListPanel` rendering `agentDisplayName(agent)`. That call is gone from the panel's markup — the structural guard in `agentName.spec.js` now asserts it is absent — so the note pointed at a function a reader would not find. The house rule it states is unchanged and still correct: the rendered name is the owner-settable label, so a text locator would break the moment anyone labels the agent. Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Whitespace only (`git diff -w` is empty). Collapsing the three lg wrapper divs into one `lg:contents` wrapper left the secondary line and the CapacityMeter two spaces shallower than the nine cells they sit beside, which made the wrapper's child list unreadable — and that list is the thing a reviewer has to count to see that eleven items land in ten tracks the way the placement classes say they do. Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The reservation was imported from the md rule ("Reserved, not dropped — see
the md note") but the geometry it was written for does not exist at base. The
trailing group there is `flex-shrink-0` behind a `flex-1` name, so it is
already flush to the row's right edge on every row: measured at 390px, the
chevron sits at the same x whether the Run toggle is present, absent or
reserved. The reservation therefore aligned nothing — and cost the one row
that has no toggle the toggle's ~94px (its `min-w-[3.25rem]` label plus the
`w-9` switch plus the gap), taking the system row's name from 221px to 119px
and turning a labelled `trinity-system` from fitting to truncated at the
narrowest supported width. That is precisely what AC #6 forbids: "whatever
remains does not push the name into truncation at common viewport widths".
md keeps its reservation, for the reason base never had: there the three
toggles sit BEFORE the `flex-1` success bar, so a dropped toggle really does
pull a column — the bar starts ~298px further left on system and shared rows.
Both numbers are measured, not reasoned: the flex structures were reproduced
in a browser and the boxes read off.
The two flow docs said "hidden means RESERVED at every breakpoint" and named
the capacity meter and task counts among what moved at md. Neither was true —
the meter and stats sit after the `flex-1` and never moved, and `base` has no
AutonomyToggle at all. Both corrected with the measured numbers.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Two contracts the change relies on were written down and left unguarded, and both fail silently. Each new guard was proven by mutating the source and watching it red. The lg row is arithmetic: ten tracks, nine children that auto-place across row 1, two placed by hand. None of those numbers appears in a class string, so the file's existing source-regex guards cannot see them — a twelfth child added to the `lg:contents` wrapper leaves all 32 of them green while the new cell auto-places into row 2 column 1, in the row's left gutter, widening track 1 for the header and every row with it. The shape is now read from the template AST via `vue/compiler-sfc` (the parser Vite already runs on this file, reached through the declared `vue` dependency), which also makes the guard immune to re-indentation — the previous commit on this branch was a re-indent. Three properties, one per failure: the header has one cell per declared track (an eleventh silently opens a second header row); the wrapper holds eleven items of which exactly two are placed by hand; and no auto-placed cell carries `v-if`/`v-for`/`v-else` — auto-placement is positional, so a conditional cell 5 shifts cells 6-9 one track left on that row only, which is the per-row misalignment this issue exists to remove. Reserve with `invisible`, as the system row's Run toggle does, never with `v-if`. `DEFAULT_RUNTIME_IDS` mirrored `RuntimeBadge.vue`'s `isClaudeRuntime` by hand-written assertion, which cannot notice the day the original moves. `RuntimeBadge.vue` is shared and deliberately not edited here, and the predicate is a `computed` with nothing to import, so the set is now DERIVED from its source. Divergence is silent both ways and neither way is cosmetic: a new Claude id the set lacks puts a sunburst pill back on every row of an all-Claude fleet, and an id the badge drops takes the badge off the one runtime it exists to mark. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Two spec files now borrow whatever `pickLabelFixture` returns, and
`mode: 'serial'` orders tests only WITHIN a file. `playwright.config.js` pins
`workers: 1` on CI but leaves it at the default locally — which is exactly
where both files are run together, since the verify step names them on one
command line. Two workers, one agent: the second worker's "prior label" read
can land after the first worker's borrow, and it then faithfully restores the
FIXTURE label as though it were the operator's own. That is a permanent
mislabel on a live agent, produced by a run that reports green, and on
`trinity-system` the operator cannot even reach for the pencil to undo it.
`FIXTURE_LABEL` moves into the shared helper as the one label these helpers
ever write, and `readLabel` REFUSES to return it. The late worker throws before
it writes anything, its `afterEach` has nothing to restore, and the worker that
actually holds the borrow still puts the agent back. The same refusal catches a
run killed mid-borrow: the next run finds the sentinel and says so — with the
exact PUT to clear it — instead of adopting a test artefact as the value to
restore forever. `--workers=1` for a clean single pass is documented in both
spec headers and the e2e README.
The string is self-identifying ("Trinity e2e fixture - safe to clear") rather
than the plausible-looking "Platform Orchestrator" for the same reason: if it
is ever seen on a live agent, whoever finds it must be able to tell at a glance
that it is safe to clear.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`AgentTile.vue` kept importing `agentDisplayName` after its only use moved to `agentNameParts`. There is no linter in this package, so an unused import is not caught anywhere and reads to the next person as a second name-resolution path in a file whose whole point is that there is one. `dashboard-list-view.md` drew the header and row as carrying `lg:px-0`. They carry no horizontal padding class at all, and the structural guard rejects the whole `lg:p[xlr]-` family — so a reader who made the markup match the diagram would red the test that exists to keep the insets as margins. Corrected, and the reason stated beside it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`.t-slug` declared a fifth spelling of a font stack that appears four times in `FleetGrid.vue`, inside whose cascade the tile renders. The two differ where it shows: the canvas stack names `Consolas`, this one did not, so on Windows the slug would fall through to the browser's generic `monospace` while the mono text beside it on the same tile did not. Cosmetic, but it is the same defect class as hand-rolling a primitive — one surface, two recipes. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
vybe
left a comment
There was a problem hiding this comment.
Validated via /validate-pr. Frontend only — no backend files, no new endpoint, no migration, so the packaging invariants (§4.8/§4.9) are N/A. CI fully green: e2e, build, journey-smoke, gitleaks, all six pytest seeds, schema-parity, verify-non-root.
Security scan clean. The five ISSUE-shaped hits my IP regex flagged (2.647.64.699, 267.18.578.688, …) are bezier coordinates inside the inline GitHub logo <path d="…"> — not addresses. No keys, emails, host paths, symlinks or mode flips.
The fix is structural, not cosmetic. The header and each row being independent CSS grids sharing a copied template string is the actual defect — every auto track resolved against its own row's content, so the 1fr name track absorbed the difference and no two rows agreed on where Controls/Success/Exec-Sched sat. Declaring the template once on the container and making header, rows and the CapacityMeter subgrid items of it is the right shape, and the note that fixing the spacer widths alone could not have worked (they are auto tracks; with two grids the content decides) is the part that shows the diagnosis went to the cause rather than the symptom. Both load-bearing details are correctly identified — insets as item margins rather than padding (a subgrid item's padding lays out inside its first/last tracks, CSS Grid L2 §7.1), and definite placement in both axes, with sparse auto-placement proven to drop the meter into rows 2–3.
FR-4 is a genuine accessibility fix, not a tweak. A title is invisible on touch, unreachable by keyboard and impossible to copy — so an agent under two naming conventions had nothing connecting the label to the slug every URL, MCP key, container and volume is keyed on. Rendering it as selectable <code> on the line each layout already always renders keeps a labelled row exactly as tall as an unlabelled one, and routing all four call sites (three List layouts + the Grid tile) through one agentNameParts() in the single utils/agentName.js resolver — guarded at zero display_label || chains — is what stops it drifting back.
Two things I specifically checked and liked:
- The plan decision was reversed on measurement, not preference. Reserving the Run toggle's box at base aligned nothing (chevron at x=326 present, absent or reserved) and cost the system row ~94px of name width (221→119px), truncating a labelled
trinity-systemat 390px — which AC #6 forbids. Keeping the md reservation, where the toggles genuinely do sit before theflex-1bar (x=360 vs x=62, a 298px shift), is the correct asymmetry. - The eleven-item
lg:contentscontract was a comment, not a test — a 12th child left all 32 tests green, and no source-regex guard could have seen it since none of the numbers appears in a class string. Reading the shape from the template AST viavue/compiler-sfcfixes that and is immune to re-indentation, and all three properties are mutation-proven. The conditional-cell rule earns its place: auto-placement is positional, so a conditional cell 5 shifts 6–9 one track left on that row only — exactly the per-row misalignment being removed.
The PR also corrects its own premise rather than leaving it (a 12th child lands at row 2 column 1, not a third row; the third opens at the 15th), verified against the real track list.
Fixes #2358 carries a closing keyword, so the issue auto-promotes on merge. Approving.
Fixes #2358
Dashboard List columns didn't line up, and a labelled agent hid the slug that every URL, MCP key, container and volume is keyed on. Frontend only — no backend change, no new endpoint, no migration, no per-row fetch.
The three defects
1. Columns were ragged — the header and each row were independent CSS grids.
They shared a copy of one template string, so every
autotrack resolved against its own row's content and the1frname track absorbed the difference: a row reading14/16put Controls / Success / Exec-Sched at a different x than a row reading0, and neither matched the header. Two drifts rode along — the header spacers weren't the widths of the cells above them (w-3/w-6vsw-2.5/w-4), and the row grid was 10px narrower than the header because theCapacityMetersat outside it as a flex sibling.The template is now declared once on the list container; the header and every row are
lg:grid-cols-subgrid lg:col-span-fullitems of it, and the meter joins as track 10 so the two share a right edge. Fixing the spacer widths alone could not have worked — they areautotracks, so with two grids the content decides. Two properties are load-bearing:CapacityMeterinto rows 2–3, hanging an implicit third row under every line.2. A labelled agent hid its slug (FR-4). The row rendered the label alone with the slug on a
title— one agent under two naming conventions, with nothing connecting "Delivery Operations Manager" todelivery-ops, and atitleis invisible on touch, unreachable by keyboard and impossible to copy. The slug now renders as real selectable<code>(select-all, never inside the router-link — it is a copy target, not a nav target) on the line each layout already always renders, so a labelled row is exactly as tall as an unlabelled one. Fixed at all three List layouts and the Grid tile, all resolving through one new pure helperagentNameParts()in the single resolverutils/agentName.js(guarded: zerodisplay_label ||chains at the call sites).3. The name cell's badge set is reduced — a real reduction, not a relocation. The cell keeps exception markers only (SYSTEM / GHOST / Shared). The #471 pressure badge moves to the lg secondary line, first in it. The runtime badge now renders only for a non-default runtime, and never at base — so on an all-Claude fleet it is absent entirely, and on a mixed fleet it marks the exceptions. Relocating a pill that is identical on every row would not have been a reduction; that rule is why the small
utils/agentRuntime.jswas added.A plan decision reversed on measurement
The plan called for reserving the Run toggle's box at the base breakpoint too. Reverted. Measured in a browser at 390px, the chevron sits at x=326 with the toggle present, absent or reserved — the trailing group is
flex-shrink-0behind aflex-1 min-w-0name, so it is already flush right on every row. The reservation aligned nothing, and it cost the system row the toggle's ~94px: name width 221px → 119px, turning a labelledtrinity-systemfrom fitting to truncated at the narrowest common viewport. That is exactly what the issue's own AC #6 forbids.The md reservation was kept, for the reason base never had: there the toggles sit before the
flex-1success bar, so a dropped toggle really does pull a column — measured x=360 with vs x=62 without, a 298px shift.A guard that did not exist
The eleven-item
lg:contentsrow contract was a comment, not a test: adding a 12th child left all 32 tests green. None of the numbers appears in a class string, so the file's source-regex guards structurally could not see them. The shape is now read from the template AST viavue/compiler-sfc, which also makes it immune to re-indentation. Three properties, each mutation-proven by editing the source and watching it red:expected [ …(12) ] to have a length of 11 but got 12v-ifon an auto-placed cellthe div cell must not be conditional or repeatedPlus: the header has exactly one cell per declared track. The conditional-cell guard matters because auto-placement is positional — a conditional cell 5 shifts cells 6–9 one track left on that row only, which is precisely the per-row misalignment this issue removes. Reserve with
invisible, neverv-if.Correcting the premise while we're here: a 12th child does not open a third row — it lands at row 2, column 1 (in the row's left gutter, widening track 1 for the header and every row with it). The third row opens at the 15th. Verified against the actual template
[auto auto auto 1fr 46px 22rem 180px auto auto auto]: the nine auto cells fill r1c1–c9; the secondary line occupies r2 c4–c9 and the meter r1–r2 c10, so children 13 and 14 take r2c2 and r2c3, and the 15th finds c4–c10 all occupied.A live-data hazard closed (
/cso --diff)After this branch two spec files borrow the same agent's
display_label, andplaywright.config.jspinsworkers: 1only on CI (process.env.CI ? 1 : undefined) — while locally both files are named on one command line. Two workers, one agent: the late worker's "prior label" read can land after the first worker's borrow, and itsafterEachthen faithfully restores the fixture label as though it were the operator's own. That is a permanent mislabel on a live agent produced by a run that reports green — and ontrinity-systemthe label pencil is hidden, so there is no UI undo.Closed with a self-identifying sentinel in the shared helper:
readLabelrefuses to return it — the late worker throws before writing anything, so itsafterEachhas nothing to restore while the worker actually holding the borrow still puts the agent back. The same refusal catches a run killed mid-borrow: the next run names the agent and the exact recovery,PUT /api/agents/<agent>/label {"label": null}, instead of adopting a test artefact as the value to restore forever. The string is deliberately self-describing rather than plausible-looking, so anyone who finds it on a live agent can tell at a glance that it is safe to clear.Raw-colour ratchet — with the caveat
AgentListPanel.vueAgentTile.vueThe two hard counters are flat.
raw_gray+4 is twotext-gray-500 dark:text-gray-400meta-ink pairs on the new lg/md secondary-line containers — the idiom this file already uses, so the slug<code>inherits ladder-correct ink instead of carrying its own.The +4 is permissible only because
AgentListPanel.vuehas no entry inraw-color-baseline.json— verified by construction, not by assumption: the baseline was generated 2026-07-31 at5b289996, andgit cat-file -e 5b289996:src/frontend/src/components/AgentListPanel.vuefails, i.e. the file reacheddevafterwards.AgentTile.vuedoes have an entry (0 / 0 / 3) and is measured unchanged against it at both HEAD andorigin/dev.No baseline file was regenerated in this PR.
Also worth recording: the ratchet is currently inert as documented — the baseline's keys are
src/frontend/src/components/X.vuewhile the documented command (node src/frontend/scripts/scan-raw-colors.mjs src/frontend) emitscomponents/X.vue. A repo-wide observation, not this PR's to fix.Requirements
§1.3.1 FR-4 is unchanged — byte-identical to
origin/dev, confirmed by direct comparison of the block. FR-3/FR-4 already mandate this behaviour, so no new FR is added. The only change torequirements/core-agent.mdis the single §9.9 Key Features line (one hunk,@@ -969 +969 @@), which cites FR-4 rather than editing it.An intended trade
md tagless rows grow by ~30px: the md tags row is now always rendered, which both hosts the slug and removes a latent jitter where a tagged md row was ~30px taller than an untagged one. Documented in the flow doc as a density trade.
Verification actually performed
npx vitest run tests/unit/agentName.spec.js(crux)npx vitest run tests/unit/agentRuntime.spec.jsnpm run check:tokensnpm run buildgrid-template-columns:subgrid×2 ·display:contents×2 ·user-select:all×4/verify-local --skip-agentCaveat, stated plainly:
/verify-localdoes not run vitest. Its green means the images build, the stack boots and there is no backend regression — it did not exercise this lane's frontend code. The frontend evidence is the vitest + build + token rows above.The full unit suite was deliberately not re-run here: three other lanes are shipping concurrently on this host and overlapping full-suite runs have already manufactured phantom reds.
Human pre-merge steps — this is why the PR is a draft
1. The Playwright label specs were deliberately not executed. They mutate a real agent's
display_labelon the live fleet; that is the operator's call, not an agent's.If a run is killed mid-borrow, the next run names the agent and the exact
PUTto clear it.2. The visual check the committed tests cannot perform. AC1's "verified against a fleet with widely varying Exec/Sched" needs a real fleet — CI has one agent, so the specs prove header parity while row-to-row alignment across varying content is structural.
0,1/2andN/M.stats,success,name,status.trinity-systemhave equaloffsetHeight— the lg parity case no test covers.link.scrollWidth <= link.clientWidthon every labelled name at 1280 and 1440 (1024 is a known pre-existing squeeze).slug · owner/repo, and clicking the slug selects without dragging.Follow-ups (listed, not filed)
skills/AssignedAgents.vue,portal/PortalSidebar.vue,stores/skillsLibrary.js,ReplayTimeline.vuestill usedisplay_label || namechains.lg:sticky lg:top-0on the header is now a one-liner.Rebase note
docs/memory/architecture.mdL301 is a single very long line — measured 7,875 characters / 7,935 bytes (the handoff brief said 8,739; the measured figure is the one to trust). It is the Grid block; List is L303. If another lane also edits it, the conflict is whole-line and must be resolved by re-applying this lane's own sentence onto the winning version — never "take one side".feature-flows.md's index row at the top is add/add with every lane: keep all rows, date-descending.🤖 Generated with Claude Code