Skip to content

afx park: owner-set attention flag on a builder lane (dim + chip in every row surface; hard events break through) #1729

Open

Description

@amrmelsayed

Problem

Scanning the Agents sidebar (or afx status) means re-reading every lane, including ones the owner already knows are waiting on something external — feedback requested, blocked on a third party, deliberately deprioritized. There is no way to record "I don't need to watch this until I say otherwise" where the row itself shows it, so the owner re-derives the same "skip that one" decision on every scan and attention surfaces keep counting lanes that need no attention.

Design: an attention axis, not a status

afx park sets an owner-set attention flag on a builder lane. It is orthogonal to protocol state: porch phases, builder status, gates, and delivery are untouched. Parking changes only what demands the owner's eyes.

Model (per builder row, all nullable):

  • parked_reason — short free text. Suggested vocabulary: on-hold, waiting-feedback, low-priority; the framework does not privilege values (teams own their semantics). Singular, not a tag set: one attention state per lane, set or cleared.
  • parked_note — optional free text ("asked omar for logs").
  • parked_at — timestamp, for the age display.
  • parked_until — optional date: snooze semantics. On expiry the flag renders as expired (owner re-decides) rather than silently vanishing.

The rule that makes it safe — hard events break through. Parking suppresses soft attention only (activity, phase-change bells, idle nags, attention-view rollups). A parked lane that requests a gate, has escalated held mail, or goes blocked MUST still surface, rendered as parked-but-demanding (e.g. ⏸ parked ⚡ gate waiting), without clearing the flag. A parked lane's gate request rotting silently is the #1717 lost-approval failure; this rule is a requirement, not a preference.

Human-set only. Builders and architects do not park themselves; an agent sets a flag only on the owner's explicit word (the #1720 self-reporting lesson: a lane is the worst judge of whether it deserves attention). Enforced by documentation and review, not runtime identity checks, in v1.

Set paths (all write through one Tower endpoint)

  1. CLI (canonical):
    afx park 0366 waiting-feedback --note "asked omar for logs"
    afx park 0366 on-hold --until 2026-09-26
    afx unpark 0366            # alias: afx park 0366 --clear
    afx park                   # no args: list parked lanes across the workspace
  2. Sidebar right-click on a builder row: "Park lane…" → quick-pick (recently used values first, free text allowed) → optional note. Parked rows offer "Unpark" / "Edit note".
  3. Clicking the row's park chip: Clear / Edit note / Change until.
  4. Command palette: "Codev: Park Builder…". (Dashboard row action same as sidebar; Stream Deck park-focused-lane key is v2, not gating.)

Rendering

  • Sidebar: parked rows DIM, sort to the bottom of their group, carry a chip ⏸ waiting-feedback (2d). Group headers split the count: MAIN (5, 2 parked).
  • afx status: a PARKED column (reason + age).
  • Dashboard: same chip treatment; attention rollups and the VS Code Attention view EXCLUDE parked lanes (subject to the break-through rule).

Implementation tap-ins (verified against source)

  • Resolution: reuse the single address resolver exactly as afx interrupt does — import detectWorkspaceRoot / detectCurrentBuilderId / architectSenderId from send.ts ("there is exactly one address resolver" is documented doctrine in interrupt.ts). interrupt.ts is the template for the command shape (~40 lines, lazy-imported module, TowerClient call).
  • Write: one new Tower endpoint mutating the three/four columns on the builders row — never a direct DB write, same discipline as every other state change.
  • Broadcast: after the write, the same TowerClient.refreshOverview() SSE nudge cleanup uses, so the chip appears the moment the command returns.
  • Columns are agent-neutral names on the builders table; DB migrates automatically on first start as usual.

Naming

park/unpark chosen deliberately over flag (collides with the extension's flag-for-review gestures — same surface, opposite meaning) and tag (implies an accumulating set; this is a singular state).

Related

Activity

  1. added
    area/cross-cutting
    on Sep 23, 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