Skip to content

Codev panel: architect-context render target — area-scoped backlog + owned builders when an architect terminal is active (participates in #1049's surface) #1548

Open

Description

@amrmelsayed

Requirement (owner, 2026-08-24)

When an architect terminal is opened / becomes active, the Codev panel should display that architect's working context: the backlog items in its area(s) and the builders assigned to it, so the user lands with proper context instead of a generic view.

Relationship to #1049 (governing surface — do not build as a sibling tab)

The contextual-panel spec (#1049, spec at owner gate) exists to prevent sibling panel tabs: one panel surface, content keyed by active context, with a defined render-target precedence (builder-terminal → builder-diff → artifact-path → attention). This feature is a new participating render target for that surface — architect-terminal context → architect dashboard — the same rescope treatment #813/#814/#815 received. It is therefore held behind #1049's surface landing; if the owner prefers, it can instead be folded into #1049's spec as an additional target before that spec is approved (the spec is still pre-approval, so amendment is cheap now and expensive later).

Design note for the precedence order: an architect terminal and a builder terminal are disjoint contexts, so this target extends the precedence list rather than competing within it; the #1049 exit-path question (no VS Code event fires when focus leaves a terminal) applies identically here and whatever proxy 1049 lands on is inherited.

Data sources — one exists, one is missing

  1. Builders assigned to an architect: exists. spawnedByArchitect is on the wire and already drives builder grouping (builder-grouping.ts) and the architect axis in the Agents view. The panel target reuses it directly.
  2. Backlog by architect: the architect→area mapping does not exist anywhere machine-readable. Seat/area ownership (e.g. a "vscode" architect owning area/vscode) is workspace convention in prose, and framework code must not privilege specific label values — teams define their own label semantics. So the mapping must be explicit user configuration, e.g. a block in workspace config: architects: { vscode: { areas: ["area/vscode"] }, streamdeck: { areas: ["area/streamdeck"] } }. Open sub-questions for the spec: config layer (committed project config seems right — it is team-shared, non-executing data, unlike activityHooks); behavior for an architect with no mapping (show builders only, with a hint, rather than an empty backlog asserting "nothing"); whether main defaults to unmapped-areas / everything.
  3. Name-based matching (architect named "vscode" ↔ area/vscode) may be offered as a convenience default only if it is presented as a fallback the config overrides — never as the mechanism, per the framework-neutrality rule.

Activation trigger

"Architect terminal active" detection can reuse whatever context-detection #1049 lands for builder terminals (terminal focus + the architect terminal naming/cache the extension already maintains). The #1497 lesson applies: key the context off the terminal's verified identity, not off a label.

Acceptance sketch

Focus an architect terminal → panel shows: (a) that architect's live builders with phase/gate state (the existing row vocabulary), (b) open backlog issues carrying its configured areas, most-recent first. Focus a different architect → content follows. No new sidebar or panel tabs.

Activity

  1. added
    area/vscode
    on Aug 23, 2026
  2. amrmelsayed commented on Aug 23, 2026

    @amrmelsayed
    CollaboratorAuthor

    Sequencing ruling (main, after owner challenge): #1049 stays frozen as specced — it is the Builder Inspector, its seven render targets and precedence order are builder-shaped, and widening it to architect contexts would reopen its identity, naming, and precedence design pre-approval. This issue is therefore a follow-on that generalizes the surface, not a 1049 amendment: it reuses 1049's machinery (single-panel surface, context detection, render-target pattern, the exit-path proxy 1049 proves out) and adds the architect context family plus the architect→area config mapping on top. The 'fold into #1049' option in the body is withdrawn.

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/vscode

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions