Skip to content

lane card: per-lane status card for fast re-orientation across architect and builder terminals #1672

Open

Description

@amrmelsayed

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:

  1. Identity: lane id, protocol, issue number + title (status.yaml + forge).
  2. 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.
  3. Artifact state: PR, CI rollup, review decision, branch, last-commit age. The lane is judged by what it produced, not by terminal signal.
  4. 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.
  5. Recent beats: the last ~3 thread entry headings with ages.
  6. 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 (the gh 40s stamp), 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 both codev/ and codev-skeleton/.
  • Computed-never-authored is absolute for the ball owner. WAITING ON YOU derives 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 review while 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

v1 cut, in order

  1. Now: line convention in builder thread entries (protocol one-liner, both trees).
  2. State-computation SSOT (absorbing Agent attention states (working / needs-input / idle / dead) from harness lifecycle hooks instead of PTY-silence inference #1595's model) + LaneCard type + Tower assembly endpoint.
  3. afx card + attach-time banner + afx status --cards (validates the data model cheaply, covers tmux/ssh).
  4. VS Code compact strip in the vscode: contextual bottom panel that adapts to active editor (mode resolver + Attention fallback) #1049 panel.

Scope and siblings

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

  1. added
    area/cross-cutting
    on Sep 10, 2026
  2. amrmelsayed commented on Sep 10, 2026

    @amrmelsayed
    CollaboratorAuthor

    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 by blockedSince; that is precisely this issue's WAITING ON YOU state 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's HELD state (held mailbox messages, cf. #1450) is part of the signal it should sort on.

    Division of labor:

  3. amrmelsayed commented on Sep 10, 2026

    @amrmelsayed
    CollaboratorAuthor

    Integration notes from the contract seat (reviewed with the design canvas):

    1. 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. The gh 40s freshness 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.

    2. 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.

    3. "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.

    4. 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 status evolution. 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.

  4. amrmelsayed commented on Sep 28, 2026

    @amrmelsayed
    CollaboratorAuthor

    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).

  5. added a commit that references this issue on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cross-cutting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions