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.

Task model: root worktree + parallel children #5

Closed

Description

@64ix

Part of #1

Question

The task model direction (baseline): one task = one root worktree (keeps Orca's current model: linkedIssue/linkedPR/stage live on the worktree), plus optional child worktrees spawned from the task for parallel work (review pass, fix, side exploration) — each child its own branch and checkout, inheriting the task's context (issue, PR, stage).

Decisions inside:

  • Where the parent link lives (taskId on Worktree vs the existing workspace-lineage machinery).
  • What the board shows: cards = root worktrees, children as badges/sub-entries.
  • Which facts the stage derivation reads: root PR only, or any child PR (which one counts for shipped)?
  • The spawn UX: board card action + sidebar entry + CLI (orca worktree create --task)? Different agent per child?
  • The shared task context: spec/notes — GitHub issue body/comments vs a spec field on the worktree vs a file.
  • Migration of existing worktrees that carry linkedIssue but no task link.

Shape first (prototype), then decide.

Activity

  1. added
    wayfinder:prototype
    on Aug 12, 2026
  2. self-assigned this
    on Aug 16, 2026
  3. 64ix commented on Aug 16, 2026

    @64ix
    OwnerAuthor

    Answer

    Task model = the existing workspace lineage, plus board semantics. No new storage primitives.

    • No new taskId field. A task is the lineage tree rooted at the feature's main worktree: root = main worktree; children = worktrees spawned for parallel work on the same feature (review pass, fix, exploration). Each child is a normal worktree — own branch, checkout, and agent session. Orca's existing parent/child lineage machinery is the parent link.
    • Shared task context = the linked GitHub issue (spec issue body + comments); children inherit the link. No extra storage.
    • Board cards = root worktrees only. Children render as clean sub-entries under the card, each with its PR state.
    • Stage derivation reads PR facts from the whole tree (root + children), most-recent-activity wins: any open PR → review (a regression fix resurfaces a shipped card); all merged → shipped; a closed PR → triage; no PR facts → the declared stage (idea/implementing) or spec from an open spec issue. Never back to implementing from a PR fact.
    • Spawn UX: board card action + sidebar context entry + CLI (extend the existing --parent-worktree machinery with the task context).
    • Exit: removing a feature from the board takes the whole group — children follow the root, never orphaned.
    • Migration: none needed (fresh start — user does not use Orca yet).

    Prototype (throwaway, uncommitted): docs/prototypes/task-model-prototype.html — rendered the board + children + derivation policies for the grilling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

wayfinder:prototype

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions