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] GitHub inbound ghost cards #25

Closed

Description

@64ix

Part of the wayfinder map. Decisions: #8, #2.

Blocked by: #24.

Problem Statement

Open issues are invisible until someone opens the Tasks page and remembers to "Use" one. The board needs its inbound door: grabbable candidates derived at runtime, with no new storage except what the user dismisses.

Solution

Ghost cards, computed on demand:

  • Candidates: all open issues of the base remote, excluding worktree-linked issues, issues referenced from a linked spec/task body, [Spec]/wayfinder:map artifacts, and dismissed ids.
  • Grab = the existing "Use issue" flow → worktree created at idea with the issue linked; fact derivation then moves it ([Spec] → spec, open PR → review, merged PR → shipped).
  • Orphan [Spec] issues surface as ghosts in the spec column.
  • Capture/triage labels render as badges on ghost cards and gate nothing.
  • Dismissed ids persist per repo; candidates are never stored.

User Stories

  1. As a user, I want open issues to appear as ghost cards on the board, so that inbound work is visible.
  2. As a user, I want issues already linked to a worktree excluded, so that the board never shows duplicates.
  3. As a user, I want issues referenced by an in-flight spec/task excluded, so that covered work doesn't resurface.
  4. As a user, I want [Spec] and wayfinder artifacts excluded from the idea candidates, so that process artifacts don't pollute inbound.
  5. As a user, I want to dismiss a ghost card, so that irrelevant issues stop appearing (remembered per repo).
  6. As a user, I want to un-dismiss when I change my mind, so that dismissal is reversible.
  7. As a user, I want to grab a ghost card and get a worktree at idea with the issue linked, so that starting work is one gesture.
  8. As a user, I want a grabbed [Spec] to land at spec automatically, so that specced features start at the right stage.
  9. As a user, I want orphan [Spec] issues to appear as ghosts in the spec column, so that unworked specs stay visible.
  10. As a user, I want capture labels (ready-for-agent, ready-for-human, needs-triage) shown as badges on ghosts, so that I can judge readiness at a glance.
  11. As a user, I want candidates computed at runtime, never stored, so that the board always reflects the current repo state.
  12. As an operator, I want issues read from the base remote only, so that the board stays fork-local.

Implementation Decisions

  • Candidate computation: pure derivation from the repo's open issues + linked-worktree attachments + referenced-issue exclusion (parse #refs from linked spec/task bodies) + dismissed ids + shape classification.
  • Base remote only: issue candidates AND PR facts resolve against the fork's base remote — no upstream consumption (deviates from Orca's upstream-first default for the board only).
  • Grab rides the existing "Use issue" flow (composer → worktree creation with linkedIssue); the stage is always idea at creation — no duplicated stage logic.
  • Dismissed ids: per-repo list in UI state (spec 1); candidates never persisted.
  • Refresh: reuse the existing SWR machinery (work-items cache, gh CLI cache), refresh on board open + visibility change; no new poller. Rate limits: existing guard.

Testing Decisions

  • Test the candidate derivation exhaustively: exclusion rules (linked, referenced, artifacts, dismissed), base-remote scoping, grab outcomes.
  • Seams: the pure candidate-derivation function, the grab action (reuses Use-issue), the dismissal store.
  • Prior art: TaskPage work-item fetch tests; worktree attachment finder tests.

Out of Scope

  • Board rendering of ghosts (spec 4).
  • Authority (spec 3) and derivation (spec 2) — grab delegates to them.
  • Non-GitHub sources (future source abstraction, spec 2's seam).

Further Notes

  • The referenced-issue exclusion is the fix for the emdash annoyance where spec-linked tickets resurfaced as candidates.

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