Repository navigation
Description
Amended 2026-09-10: folded in main's four integration notes (see main's comment below) — data plane, state SSOT with #1595, computed-never-authored hardening, placement confirmations.
Problem
Working a fleet means hopping between many terminals: architects and builders, in the IDE, the dashboard, and plain tmux. On every hop the human pays a re-orientation tax: which issue is this lane on, where did it get to, whose move is it, what just happened. Today that answer lives in scrollback archaeology, an issue-tab context switch, or knowing to run porch status / cat codev/state/<id>_thread.md. The information all exists; nothing fuses it.
Concept: the Lane Card
A per-lane status card that answers four questions in five seconds, rendered wherever the user is:
┌─ bugfix-1586 · BUGFIX · #1586 tower: cloud-proxied requests 401'd ────┐
│ ● WAITING ON YOU pr gate 2h PR #1588 CI 7/7 review req'd │
│ Now: pushed fail-closed fix; CMAP done; awaiting gate + merge (2h) │
│ 3h fixed composer false-CLEAN · 5h mailbox redesign · 6h merged main │
│ builder/bugfix-1586 · commit 2h · thread 2h · gh 40s · 0 held │
└─ [issue] [PR] [thread] [porch] ───────────────────────────────────────┘
Six zones:
- Identity: lane id, protocol, issue number + title (status.yaml + forge).
- Ball owner: whose court is it in. Computed, never authored. States with precedence (first match wins):
WAITING ON YOU(a gate requested and unapproved, or review requested from the user) →HELD(messages held in the lane's mailbox) →EXTERNAL(CI pending, consult lanes in flight) →AGENT WORKING(phase active + recent output/commits/thread writes) →STALLED?(phase says working, nothing produced beyond a threshold). Secondary conditions render as small badges next to the chip. - Artifact state: PR, CI rollup, review decision, branch, last-commit age. The lane is judged by what it produced, not by terminal signal.
- Now line: the single authored field. Each builder thread entry carries a one-sentence
Now:line; the card shows the latest one with its age and marks it self-reported. - Recent beats: the last ~3 thread entry headings with ages.
- Freshness + links: per-source data age, held-message count, deep links (issue, PR, thread file, porch status).
Guardrails (non-negotiable)
- Read-only fusion. The card introduces no new state store and is never a second place agents report to. Every fact keeps its existing single source of truth: status.yaml (phase/gates), the forge (PR/CI/review), the worktree's git (branch/commit age), Tower's global.db (held messages, terminal activity), the thread file (
Now:line). - Forge data rides the OverviewCache — the card adds nothing that spawns
gh. Fix #1645: stop the overview cache from burning the GitHub GraphQL quota #1652 ended an incident where per-poll forge fetches burned 1,420 GraphQL points in five minutes; its negative-caching discipline (and the tower: collapse the four per-workspace overview forge calls into one GraphQL query #1647/tower: scope overview invalidation to forge-visible events, so the TTLs govern spend #1650 follow-ups) is the card's only forge path. Surface staleness (thegh 40sstamp), never poll harder. Everything else the card fuses is local and cheap. - One authored field only. The
Now:line is a convention added to the existing thread-entry writes at porch task boundaries: no new file, no new write moment. Protocol/template wording for it must land in bothcodev/andcodev-skeleton/. - Computed-never-authored is absolute for the ball owner.
WAITING ON YOUderives from porch gate rows and forge review-request state, never from agent self-report (the porch: a completed project's status.yaml on main never records its own merge (post-merge stamp orphans by construction) #1446 stale-phase class and the gate-discipline scars are why).STALLED?derives from produced artifacts (commits, thread writes, PR state), never terminal activity — a busy-looking composer proves nothing. - Every field carries source + age. Self-reported vs derived is always visible.
- Disagreement is rendered, not hidden. When porch phase and the artifact disagree (the known stale-phase class, e.g. porch says
reviewwhile the PR merged 2h ago), the card shows both rather than picking one. - The card endpoint is a keyed route, never on the public allowlist. Reviewing that means walking the header-less entry points, not just the API surface.
Architecture
- One state SSOT, shared with Agent attention states (working / needs-input / idle / dead) from harness lifecycle hooks instead of PTY-silence inference #1595. The ball-owner precedence chain is a superset of Agent attention states (working / needs-input / idle / dead) from harness lifecycle hooks instead of PTY-silence inference #1595's agent attention states (working / needs-input / idle / dead from harness lifecycle hooks) and overlaps vscode: held-mail drill-in — clickable held indicator with inspect + dismiss (revisits Spec 1313 Decision 8) #1594's held indicator. This issue absorbs Agent attention states (working / needs-input / idle / dead) from harness lifecycle hooks instead of PTY-silence inference #1595: the state computation lives in exactly one place — sdk-side, near where vscode: Tower sidebar — cross-workspace navigation hub (machine-wide attention, switch, activate on demand) #1566 puts
compareAttention— and the card, the sidebar attention view, and any dashboard surface are renderers of it. Two independently-computed "whose move is it" answers will disagree within a week. Tower remains the fusion and serving layer; the precedence logic is the shared module it calls. LaneCardtype in@cluesmith/codev-types(wire contract only; no implementation or policy there).- Assembly in Tower: one endpoint, e.g.
GET /workspace/:ws/lane/:id/card, fusing the sources with file-watch on status.yaml + thread files, and forge data via the OverviewCache as above. - Renderers consume the same JSON:
- CLI:
afx card [id](ANSI), the same block printed onafx attach, and a fleet twinafx status --cards(one row per lane: id · ball chip · now line · age; your-court lanes sort first, then held, then by age within groups). The fleet view is the naturalafx statusevolution. - VS Code: a compact strip as the header of the contextual bottom panel's builder view (vscode: contextual bottom panel that adapts to active editor (mode resolver + Attention fallback) #1049) — the panel already follows terminal focus; the strip re-resolves with it, full card on click. The panel's Attention fallback (wired by Contextual panel: wire the Attention fallback body from OverviewCache (participating feature of #1049, skeleton fast-follow) #1553) is the natural host; the card is its per-lane refinement. No new panel, no duplicate affordance.
- Dashboard/cloud: follow-up (drill-in of each builder row in the existing Work panel).
- CLI:
v1 cut, in order
Now:line convention in builder thread entries (protocol one-liner, both trees).- State-computation SSOT (absorbing Agent attention states (working / needs-input / idle / dead) from harness lifecycle hooks instead of PTY-silence inference #1595's model) +
LaneCardtype + Tower assembly endpoint. afx card+ attach-time banner +afx status --cards(validates the data model cheaply, covers tmux/ssh).- VS Code compact strip in the vscode: contextual bottom panel that adapts to active editor (mode resolver + Attention fallback) #1049 panel.
Scope and siblings
- With Agent attention states (working / needs-input / idle / dead) from harness lifecycle hooks instead of PTY-silence inference #1595 absorbed and vscode: held-mail drill-in — clickable held indicator with inspect + dismiss (revisits Spec 1313 Decision 8) #1594's indicator half touched, this is SPIR-shaped (new cross-surface feature with an architectural decision).
- Process caution from the Dashboard: make the held-mail counter clickable, showing the held messages (from → to) #1510/vscode: held-mail drill-in — clickable held indicator with inspect + dismiss (revisits Spec 1313 Decision 8) #1594 overlap history: where this delivers a sibling issue's scope (Agent attention states (working / needs-input / idle / dead) from harness lifecycle hooks instead of PTY-silence inference #1595 wholly, vscode: held-mail drill-in — clickable held indicator with inspect + dismiss (revisits Spec 1313 Decision 8) #1594's indicator partially), re-scope the sibling at spec time, not after two builds.
Out of scope (file separately when wanted)
- Architect cards (architect state files already carry the right "current state" shape to render).
- A structured "builder needs a human answer" flag feeding the ball-owner chip (today such questions only exist in scrollback).
- Dashboard/cloud drill-in renderer.
Refs: #1049 (contextual panel, the VS Code surface), Spec 1313 (mailbox — source of the HELD state), #1446 (stale-phase class the disagreement rule exists for), #1595 (attention states — absorbed), #1594 (held indicator overlap), #1652/#1647/#1650 (forge-quota discipline), #1566 (compareAttention home), #800/#968/#979 (triage family — see cross-reference comment).
Activity
amrmelsayed commentedon Sep 10, 2026
Cross-reference: how this relates to the triage family (#800 focus mode, #968/#979 idle-state), so whichever lands first builds toward the other.
The seam: the ball-owner computation should have exactly one home — the Tower LaneCard assembly specified here. #800's focus queue is currently defined client-side as
builders.filter(blocked)ordered byblockedSince; that is precisely this issue'sWAITING ON YOUstate ordered by the card's age field. Once the LaneCard endpoint exists, #800's queue should be restated as "lanes whose card says WAITING ON YOU" rather than a second derivation, so the focus queue,afx status --cards, the VS Code strip, and any dashboard view can never disagree about who is blocked. This also upgrades #800's notion of "blocked" for free: it pre-dates the Spec 1313 mailbox, and the card'sHELDstate (held mailbox messages, cf. #1450) is part of the signal it should sort on.Division of labor:
AGENT WORKING,EXTERNAL,STALLED?— where silent failures hide).WAITING ON YOUslice. Its per-builder step (open PTY + gate artifact + action pick) is also the natural consumer of the compact card strip as a context header, closing the "get up to speed before deciding" gap.STALLED?rows are a natural feed for vscode: idle-state action queue — surface small grooming / curation tasks when the triage queue is empty #968's small-task queue.amrmelsayed commentedon Sep 10, 2026
Integration notes from the contract seat (reviewed with the design canvas):
Data plane: ride OverviewCache, add nothing that spawns
gh. The card's identity/CI/PR zones imply forge data per lane. Fix #1645: stop the overview cache from burning the GitHub GraphQL quota #1652 just ended an incident where per-poll forge fetches burned 1,420 GraphQL points in five minutes; its negative-caching discipline (and the tower: collapse the four per-workspace overview forge calls into one GraphQL query #1647/tower: scope overview invalidation to forge-visible events, so the TTLs govern spend #1650 follow-ups) must be the card's only forge path. Thegh 40sfreshness stamp in the mock is the right instinct — surface staleness, never poll harder. Everything else the card fuses (status.yaml, mailbox held rows, thread mtimes, commits) is local and cheap.Ball-owner IS the Agent attention states (working / needs-input / idle / dead) from harness lifecycle hooks instead of PTY-silence inference #1595 attention-state model — build one, not two. The computed precedence chain here (WAITING ON YOU → HELD → EXTERNAL → AGENT WORKING → STALLED?) is a superset of Agent attention states (working / needs-input / idle / dead) from harness lifecycle hooks instead of PTY-silence inference #1595 (agent attention states, SPIR candidate) and overlaps the vscode: held-mail drill-in — clickable held indicator with inspect + dismiss (revisits Spec 1313 Decision 8) #1594 held drill-in's indicator. Recommend: one state-computation SSOT (sdk-side, near where vscode: Tower sidebar — cross-workspace navigation hub (machine-wide attention, switch, activate on demand) #1566 is putting compareAttention) with the card, the sidebar attention view, and any dashboard surface as renderers. Two independently-computed "whose move is it" answers will disagree within a week.
"Computed, never authored" is load-bearing — keep it absolute. WAITING ON YOU must derive from porch gate rows and forge review-request state, never from agent self-report (the porch: a completed project's status.yaml on main never records its own merge (post-merge stamp orphans by construction) #1446 stale-phase class and the gate-discipline scars are exactly why). Same for STALLED?: compute from produced artifacts (commits, thread writes, PR state), not terminal activity — a busy-looking composer proves nothing, which this workspace has learned repeatedly.
Placement fits existing homes. VS Code: the vscode: contextual bottom panel that adapts to active editor (mode resolver + Attention fallback) #1049 contextual panel's Attention fallback is the natural host (the Contextual panel: wire the Attention fallback body from OverviewCache (participating feature of #1049, skeleton fast-follow) #1553 wiring already renders workspace state there — the card is its per-lane refinement). CLI: the fleet view is the natural
afx statusevolution. One caution from the Dashboard: make the held-mail counter clickable, showing the held messages (from → to) #1510/vscode: held-mail drill-in — clickable held indicator with inspect + dismiss (revisits Spec 1313 Decision 8) #1594 overlap history: when a surface substantially delivers a sibling issue's scope, re-scope the sibling at spec time, not after two builds.Scope note: with #1595 absorbed and #1594's indicator half touched, this is SPIR-shaped (new cross-surface feature, one architectural decision in the state SSOT) rather than a per-surface pair of AIRs.
amrmelsayed commentedon Sep 28, 2026
Routing (2026-09-29, owner-directed): handed to the vscode architect to own and spawn. Rulings at handover: spawn #1672 alone; #1674 is a companion, not a prerequisite (follows as its own lane); the #1595 absorption stands as a hard constraint; data plane rides OverviewCache only. Sequence consciously against #1729 (shared per-lane row surfaces).
[Spec 1672] Align to owner ruling: #1595 ships first, #1672 consumes …