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] Board state storage & two-board model #21
Copy link
Copy link
Closed
Labels
ready-for-agentready-for-agent
Description
Part of the wayfinder map. Decisions: #2, #3, #19.
Blocked by: none.
Problem Statement
Orca has a single manual kanban (workspace status) for organizing workspaces. The workflow feature adds a second pipeline (feature stages) for delivery tracking. The two must coexist without a data-model collision: a workspace belongs to either board but not both, stages persist across app restarts and folder renames, and column/card ordering must survive without a fractional-rank system.
Solution
Two exclusive boards over one data model:
workflowStage(fixed set:idea,exploring,spec,implementing,review,shipped,triage) persists on worktrees and folder workspaces;null= "no stage" = unstaged.- The manual
workspaceStatusfield stays untouched — kept in data even while staged. - The classic kanban drawer shows only unstaged workspaces; the feature board shows only staged ones.
- Card order = per-column ordered lists of workspace ids per project; dismissed ghost-issue ids per repo.
User Stories
- As a user, I want each worktree to carry a workflow stage, so that the feature board knows where it is in the pipeline.
- As a user, I want workspaces without a stage to stay on the classic board (manual status), so that simple work and features stay separate.
- As a user, I want a staged worktree to disappear from the classic drawer, so that the two boards never show the same workspace twice.
- As a user, I want my manual status kept in data while a worktree is staged, so that removing it from the feature board restores its previous organization.
- As a user, I want folder workspaces to carry a stage too, so that non-git folders can participate on the feature board in a manual regime.
- As a user, I want stages to survive app restarts.
- As a user, I want stages to survive folder renames of the workspace.
- As a user, I want card order within a column preserved per project, so that my manual arrangement is stable.
- As a user, I want dismissed ghost-issue ids remembered per repo, so that I don't see dismissed candidates again.
- As a user, I want stage values restricted to the fixed set, so that garbage never lands in the pipeline.
- As a user, I want an unknown or invalid persisted stage to degrade safely to "no stage", so that old or corrupted data never breaks the board.
- As a user, I want archiving to reuse the existing archive flag, so that there is one hiding mechanism, not two.
- As a user, I want a fresh start with no data migration, so that the new fields begin empty and clean.
- As an agent (via RPC/CLI), I want to read and write the stage of any workspace, so that stage declarations work on local, SSH, and remote workspaces alike.
- As a user with multiple machines, I want the stored stage/order fields to be plain per-key values, so that the future sync layer can ship them as-is.
Implementation Decisions
workflowStage: fixed string set;null= unstaged. No custom stage ids.- Storage on worktree meta and folder workspaces, persisted in the app data file; survives renames via the existing rekey machinery (identity rekey + prior-id records cover the new field).
workspaceStatusuntouched: kept in data while staged; the classic drawer hides staged workspaces at view time — exclusivity is a display rule, not a field mutation.- Column order: per-project ordered lists of workspace ids in the UI state; stale ids filtered at read; no fractional ranks.
- Dismissed ghost ids: per-repo list in UI state.
- Archive: reuse the existing archived flag (no new field).
- Fresh start: no data migration — the user does not use Orca yet and emdash data is not imported.
- Stage default for new workspaces:
null(unstaged).
Testing Decisions
- Test external behavior only — what is persisted and what each surface shows — not internal shapes.
- Seams: the persistence layer (write/read/rekey survival), the workspace list projection (effective stage value and the unstaged default), the classic-drawer exclusivity filter (staged workspaces hidden).
- Prior art: existing persistence tests for workspace status and meta; the one-shot migration tests; the drawer visibility tests.
Out of Scope
- Stage derivation from GitHub facts (spec 2).
- Authority gates and who may set stages (spec 3).
- Feature board view UI (spec 4); ghost cards (spec 5); shipped fade/archive sink (spec 6); task detail panel (spec 7); sidebar stage groups (spec 8); multi-machine sync (spec 9).
- Global Board (ruled out of scope).
Further Notes
- Product name: "Feature board"; canonical terms: stage, card, feature, ghost card.
- Keep stored values plain and per-key so the sync layer (spec 9) can do last-write-wins on them.
- The stage/derivation engine (spec 2) must not hard-couple to GitHub — keep a source seam.
Metadata
Metadata
Assignees
Labels
ready-for-agentready-for-agent
Activity
Merge pull request #56 from 64ix/spec/21-board-state