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.

Wayfinder: emdash → Orca feature transfer (spec suite) #1

Closed

Description

@64ix

Destination

A suite of specs — one per feature, each separate and testable — covering the transfer of the personal fork's features from 64ix/emdash to 64ix/orca: workflow board, task model, GitHub inbound, stage authority, sync multi-machine, fork release, portable fixes. The map is done when every feature has a spec ready to hand to /implement-spec; it does not implement the features itself.

Notes

  • Domain: personal fork of Orca (64ix/orca); source of features is the emdash fork (64ix/emdash, local clone at ~/dev/perso/emdash, branch fork-main, ~139 fork commits).
  • Source material: docs/portage-emdash-audit.md (repo root) — the audit of every emdash feature vs Orca capabilities, with file paths on both sides. Also docs/agents/issue-tracker.md for tracker operations.
  • Baseline decisions (already made, not tickets):
    • Scope: the whole migration — everything from the emdash fork gets tracked here.
    • Pipeline: idea → exploring → spec → implementing → review → shipped + triage + unstaged. exploring covers wayfinder/grilling of an idea; spec is when the spec is written but not implemented yet.
    • GitHub is the issue source (user works with gh; issues stay on GitHub, PR-linked).
    • Stage authority is hybrid: agent declares working stages, GitHub PR facts (open → review, merged → shipped) are incontestable, shipped is human-or-fact only.
    • ACP chat UI is out of scope (TUI agents preferred, e.g. opencode).
    • Task model direction: one task = one root worktree, optional parallel child worktrees spawned from the task (not final — ticket).
  • Skills: /grilling + /domain-modeling for every decision ticket; /prototype for UI-shape tickets; /research for fact-finding; specs ultimately go through /to-spec or are written by /implement-spec.
  • Language: tickets and specs in English (repo language); conversation with the human is in French.
  • Concurrent sessions may work tickets in parallel; claim (assign to yourself) before starting.

Decisions so far

  • Fork release pipeline — port only: verify-native-abi (dlopen packaged .node via packaged Electron binary), verify-fork-feed (assert embedded app-update.yml), fork electron-builder config (publish → 64ix/orca, verifyUpdateCodeSignature: false), build-fork.sh pattern (dedicated keychain + self-signed identity). Skip: rebuild-native --project-root, prepare/finalize sequence, node_modules BFS (all covered by Orca's existing pipeline).
  • Portable fixes: which apply to Orca — no porting required: fix(updater): handle benign network errors and deduplicate error statuses stablyai/orca#146 different (worktree-branch lookup, no body matching), Include the linked GitHub issue/PR number in derived workspace names #83 present (windows-batch-spawn.ts), Feature-board project picker: clicking a project while "All projects" is active should isolate it #75 present (MarkdownPreview default-deny), fix: align shortcut labels and remove shift-enter terminal intercept stablyai/orca#144 different (hand-rolled pointer drag), fix: Windows terminal blank/unresponsive stablyai/orca#139 protected (getWorkspaceSession defaults).
  • Boni: usage gauge, skills catalog, context usage — usage gauge in sidebar: GO (UI placement only, data exists, ~1-2 days); installable skills catalog: GO (real discoverability gap, "Available" badge un-wired); context usage donut: NO-GO (needs ACP, out of scope).
  • Board state storage — declared stage: WorktreeMeta.workflowStage (orca-data.json; survives renames via moveKey rekey + priorWorktreeIds); card order: per-column ordered list of worktree ids in ui, keyed per project (no fractional rank); Hidden Tasks dropped → reuse isArchived as a collapsed "Archived" sink on the board, restore 1-click (req for Board view: columns, DnD, filters #7); ghost cards kept as quick grab (candidates derived at runtime, grab = Use → idea; only dismissed issue ids persisted, in ui per repo); emdash markers/inbox replaced by capture/triage labels (→ GitHub inbound: ghost cards, link suggestions, issue grabbing #8).
  • workspaceStatus vs workflowStage — two exclusive boards: classic kanban (manual workspaceStatus, existing drawer unchanged, shows only worktrees without a stage) + feature pipeline board (idea→exploring→spec→implementing→review→shipped + triage, no unstaged column). Entry: create-in-idea, stage selector at worktree creation, adopt an unstaged worktree into idea; exit: "remove from board" clears the stage. workspaceStatus kept in data while staged (nothing lost on exit). No renames (in-review vs review live on distinct surfaces). Fresh start: no emdash data import, no Orca-side migration. Linear status sync untouched, classic board only.
  • Shipped Fade window — fade = auto-archive: configurable delay (settings, default 14 days), counted from entry into shipped (any path); at the deadline the card is auto-archived into the board's Archived sink (Board state storage #2 — collapsed, expandable, restore 1-click), stage stays shipped. Restore re-arms the delay. Manual archive anytime; manual worktree delete stays the existing separate Orca action. No per-column disclosure caption.
  • Task model: root worktree + parallel children — no new taskId: a task = the existing workspace lineage tree (root worktree + child worktrees, each its own branch/agent). Shared context = linked GitHub issue (children inherit the link). Cards = root worktrees only, children as sub-entries with PR state. Stage derivation reads PR facts from the whole tree, most-recent wins: open PR → review (regression resurfaces a shipped card), all merged → shipped, closed → triage, else declared stage/spec. Spawn from board card + sidebar + CLI. Exit takes the whole group (children follow). No migration needed.
  • Stage authority: agent declaration channel — channel = Orca's first in-app MCP server (Nimbalyst architecture: embedded HTTP server, per-launch token, auto-approved tools, deferred load) with tools to declare stage / link issue / read board; CLI parity orca worktree set --stage on existing RPC (same validation, SSH-safe). Boundary: agent declares idea/exploring/spec/implementing/review + triage exit; shipped refused fail-closed with steering message (human-or-fact only). Human (UI) can place any stage incl. de-ship; the merged PR that shipped a card does not re-push it after a human de-ship, only new facts re-drive. Facts always beat declarations; open spec issue → spec only from idea/exploring/unstaged. Board DnD gates against governing facts.
  • Board view: columns, DnD, filters — dedicated top-level view (sidebar "Board" + project picker); 7 fixed always-visible columns; card = full anatomy (name, repo, branch, agent dot, PR chip, children sub-entries); "+" on every column = manual adoption (dialog links issue/PR → stage declared or fact-derived); ghost cards quick-grab in idea; awaiting-input floats to lane top with amber treatment; search + filters (stage/agent state/PR state/needs-attention); Archived sink collapsed at board end, restore 1-click; DnD = reuse drawer's pointer-based machinery (no new dnd-kit); fact-governed drops blocked with explanation.
  • GitHub inbound: ghost cards, link suggestions, issue grabbing — ghost candidates = all open issues of the base remote only, excluding: worktree-linked, referenced-from-linked-spec/task bodies (emdash bug), [Spec]/wayfinder:map artifacts, dismissed (ids in ui per repo); capture labels as badges (gate nothing). Orphan [Spec]s surface as ghosts in the spec column. Grab = always idea via existing Use-issue flow, facts derive the rest. NO upstream consumption at all (issues + PR facts, fork-local). No emdash marker/link-suggestion machinery. Cadence = existing SWR (60 s TTL + gh 120 s cache, refresh on open/visibility), no new poller.
  • Sidebar stage groups — sidebar gains a workflow-stage group-by mode (board column order) as a 4th display mode, existing modes stay; "Sans stage" top section for unstaged worktrees; children stay nested under their root (no stage of their own); staged worktrees get a small stage badge in ALL grouping modes; drops onto a stage group declare the stage (authority-gated like the board); awaiting-input = amber row indicator only, no sidebar elevation.
  • Task Detail Panel — board-attached fixed-width inspector, opens on card click, ephemeral (closes when the card disappears). Vitals + conversations + stage selector + PR row. Conversations = union of live agent panes + AI Vault transcripts per worktree (provider icon, editable title, live state, focus/resume/dismiss). Stage selector explains why an option is locked (fact governance); shipped reads as human-or-fact. PR row = link/unlink only — emdash's assign/unassign dropped (no Assigned PR in Orca's model, Task model: root worktree + parallel children #5). Right sidebar stays terminal-bound, not reused.
  • Multi-machine sync architecture — board + worktree state only (worktreeMeta incl. stage/links/orders, board ui keys); terminal sessions/settings stay machine-local. Relay = self-hosted Cloudflare Worker + D1 (emdash pattern), opaque E2E-encrypted rows (reuse Orca's e2ee crypto), NOT upstream Orca Cloud. Sync = key/value LWW layer over orca-data.json (server-versioned, tombstones; rekey primitives stay the identity mechanism). LWW conflicts, no dialogs. Offline queue + push on reconnect. Pairing = existing QR/orca://pair flow + devices screen with revocation. Protocol capability-negotiated per remote-wire-compatibility.
  • Board naming in the UI — sidebar entry "Board", view title "Feature board" (distinct from the "Workspace board" drawer); canonical UI terms: stage / card / feature / ghost card; sidebar group-by mode "By stage"; stage ids unchanged.
  • Boni graduation: usage gauge + skills catalog — both graduate as specs: sidebar usage gauge = mini-spec (one-pager, data exists); installable skills catalog = full spec (wires the "Available" badge). Donut stays NO-GO.
  • Board × remote workspaces — full participation: remote-host worktrees on the feature board, stage read/write via existing runtime RPC (host-authoritative), PR facts derived client-side from GitHub, agent state via runtime status, adoption/spawn via existing RPC paths. Multi-machine sync architecture #12 sync does not cover remote hosts — live read/write, no local copy.
  • Board × folder workspaces — folders DO participate in a manual regime: hand-driven stage transitions (declared stages, human-placed shipped OK), no fact derivation (no PRs); folder marker on cards; same exclusivity rules as worktrees.
  • Spec ordering and validation — 11 specs, one per feature, dependency-ordered (storage → derivation → authority/MCP → board → inbound/fade/detail/sidebar/sync → boni), each declaring its "Blocked by" specs explicitly; a big feature may be split into child tickets by /implement-spec but keeps one spec for review. Validation: Success Criteria per spec + per-PR tests + manual QA checklist. The derivation spec carries the non-GitHub source-abstraction seam.

Not yet specified

  • Non-GitHub issue trackers: the user anticipates the issue tracker may not always be GitHub — the stage/derivation engine must be built behind a source abstraction with seams (no hard GitHub coupling), without building other trackers now.

Out of scope

  • ACP chat UI (Spec Board × remote workspaces #18/fix(opencode): enable YOLO permission mode via OPENCODE_CONFIG_CONTENT #90 emdash): agents stay TUI (opencode first). Explicitly ruled out in baseline.
  • Global Board (closed ticket): cross-project board view — ruled out; the per-project board + sidebar workflow-stage groups cover the overview. Revisit only if multi-project work becomes the norm.
  • Auto-cleanup of unused worktrees: parked by the user ("on verra plus tard") — beyond the spec-suite destination. Revisit only if the destination is redrawn.

Tickets

Activity

  1. 64ix commented on Aug 21, 2026

    @64ix
    OwnerAuthor

    Destination reached — map complete

    All 20 decision tickets resolved; the spec suite is published and ready for /implement-spec:

    Order Spec
    1 #21 [Spec] Board state storage & two-board model
    2 #22 [Spec] Stage derivation engine (carries the non-GitHub source seam)
    3 #23 [Spec] Stage authority & in-app MCP server
    4 #24 [Spec] Feature board view
    5 #25 [Spec] GitHub inbound ghost cards
    6 #26 [Spec] Shipped fade & auto-archive
    7 #27 [Spec] Task detail panel
    8 #28 [Spec] Sidebar stage groups
    9 #29 [Spec] Multi-machine sync
    10 #30 [Spec] Sidebar usage gauge
    11 #31 [Spec] Installable skills catalog

    Each spec declares its "Blocked by" specs explicitly, carries Success Criteria, and is labeled ready-for-agent. The remaining fog item (non-GitHub issue trackers) is captured as a seam requirement inside spec #22.

    Out of scope, recorded: ACP chat UI, Global Board, context-usage donut, auto-cleanup of unused worktrees.

    Artifacts in the repo: CONTEXT.md (glossary) and two throwaway prototypes under docs/prototypes/ (uncommitted).

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

    wayfinder:map

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions