This repository was archived by the owner on Sep 2, 2026. It is now read-only.
Pure stage derivation engine & fact-source interface #33
Copy link
Copy link
Closed
Labels
ready-for-agentready-for-agent
Description
Parent
What to build
One pure derivation engine: given the task tree, per-worktree PR/issue facts, and the declared stage, compute the effective stage. Facts span root + children, most-recent activity wins: any open PR → review; all merged → shipped; a closed PR → triage; an open spec issue → spec (only from idea/exploring/unstaged — never out of implementing); otherwise the declared stage applies. A merged PR ships once: after a human de-ship, that same merge is consumed and only new facts re-drive. Folder workspaces are never fact-moved. Facts arrive through a neutral source interface so GitHub is one implementation, not an assumption.
Acceptance criteria
- Precedence chains covered: open > merged > closed > spec-issue > declared
- A new PR on an already-shipped feature brings the card back to
review - A de-shipped card stays de-shipped for the same merge; only new facts move it again
- An open spec issue never regresses a card out of
implementing - The engine never derives
implementing - Folder workspaces skip derivation entirely
- Inputs are serializable; tests use one mock fact source
Blocked by
- Stage storage (stage values must exist to be overridden/fallback).
Metadata
Metadata
Assignees
Labels
ready-for-agentready-for-agent
Activity
Merge ticket #33: pure stage derivation engine
64ix commentedon Aug 24, 2026
Delivered by #57