This repository was archived by the owner on Sep 2, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 2, 2026. It is now read-only.
[Spec] Task detail panel #27
Copy link
Copy link
Closed
Labels
ready-for-agentready-for-agent
Description
Part of the wayfinder map. Decisions: #10, #6, #5.
Problem Statement
A card on the board hides everything the user needs to act: which agents are working on the feature, what they last did, why the stage is locked, which PR is linked. All of it exists in Orca today, scattered across cards, tabs, and the AI Vault.
Solution
A board-attached inspector: a fixed-width panel that opens when a card is clicked, and closes when the card disappears. It gathers, in one place:
- Vitals: branch, agent state, diff stats.
- Conversations: one row per agent session of the worktree — live panes and AI Vault transcripts united (provider icon, editable title, live state; focus, resume, dismiss).
- Stage selector with the authority explanation: the current stage, why it is held there, locked options explained.
- PR row: link/unlink only.
User Stories
- As a user, I want to click a card and see its details in a side panel, so that I don't leave the board to inspect a feature.
- As a user, I want the panel to close when the card disappears (archived, removed, faded), so that it never points at a ghost.
- As a user, I want vitals (branch, agent state, diff stats) at the top, so that I know the feature's health instantly.
- As a user, I want one row per agent session of the worktree — live panes and vault transcripts together — so that I see every conversation that touched this feature.
- As a user, I want to rename a session row, so that titles stay meaningful.
- As a user, I want to focus a live session's tab from the panel, so that I can jump to the ongoing work.
- As a user, I want to resume a vault transcript into the worktree, so that an old conversation can continue.
- As a user, I want to dismiss or delete a session row, so that dead sessions don't clutter the list.
- As a user, I want the stage selector to show why the current stage is held, so that a locked
reviewis not a mystery. - As a user, I want locked options to explain themselves, so that I understand what fact governs them.
- As a user, I want
shippedpresented as human-or-fact in the selector, so that the gate reads clearly. - As a user, I want to link and unlink a PR from the panel, so that PR management doesn't require another surface.
Implementation Decisions
- Board-attached panel (not the right sidebar, which stays bound to the terminal's active worktree); ephemeral lifecycle tied to card presence.
- Conversations = union of live agent entries (working/waiting/done, per pane) and AI Vault transcripts matched by worktree path; rows reuse the existing agent-row and vault-row patterns.
- Stage selector consumes the authority guard (spec 3): it renders the governing fact's explanation and locks blocked options;
shippedreads as human-or-fact. - PR row = link/unlink via existing flows. No assign/unassign — Orca's model has no Assigned PR (most-recent-activity-wins, spec 2).
- Vitals sourced from existing worktree + PR data.
Testing Decisions
- Test external behavior: panel opens on selection, closes on card disappearance; rows show live + vault sessions with correct states; stage selector explanations for each governing fact; PR link/unlink calls.
- Seams: the panel view-model (rows + selector state), the stage-selector action (guard delegate), the PR link/unlink action.
- Prior art: AiVaultPanel row tests; dashboard agent-row tests; the board DnD gating tests for the selector gating.
Out of Scope
- The board's DnD and rendering (spec 4).
- Stage derivation and authority logic (specs 2, 3) — the panel only displays and delegates.
- Right-sidebar changes (stays terminal-bound).
Further Notes
- The panel is the human-only gate's UI: the shipped gate and fact explanations live here and on the board drops.
Metadata
Metadata
Assignees
Labels
ready-for-agentready-for-agent
Activity
fix(feature-board): drop dead useTranslation call in stage selector (#27
refactor(feature-board): extract shared useWorktreeStageDerivation ho…
refactor(feature-board): rebuild stage picker on DropdownMenu primiti…
fix(feature-board): replace title-attr hover labels with shadcn Toolt…
fix(feature-board): stop painting vault conversations with a fabricat…
fix(feature-board): route PR-row linking by provider and drop the met…
Merge pull request #65 from 64ix/spec/27-task-detail-panel