Skip to content
This repository was archived by the owner on Sep 2, 2026. It is now read-only.
This repository was archived by the owner on Sep 2, 2026. It is now read-only.

[Spec] Board state storage & two-board model #21

Closed

Description

@64ix

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 workspaceStatus field 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

  1. As a user, I want each worktree to carry a workflow stage, so that the feature board knows where it is in the pipeline.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. As a user, I want stages to survive app restarts.
  7. As a user, I want stages to survive folder renames of the workspace.
  8. As a user, I want card order within a column preserved per project, so that my manual arrangement is stable.
  9. As a user, I want dismissed ghost-issue ids remembered per repo, so that I don't see dismissed candidates again.
  10. As a user, I want stage values restricted to the fixed set, so that garbage never lands in the pipeline.
  11. 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.
  12. As a user, I want archiving to reuse the existing archive flag, so that there is one hiding mechanism, not two.
  13. As a user, I want a fresh start with no data migration, so that the new fields begin empty and clean.
  14. 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.
  15. 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).
  • workspaceStatus untouched: 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.

Activity

  1. added a commit that references this issue on Aug 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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions