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

Pure stage derivation engine & fact-source interface #33

Closed

Description

@64ix

Parent

#22

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).

Activity

  1. added a commit that references this issue on Aug 23, 2026
  2. 64ix commented on Aug 24, 2026

    @64ix
    OwnerAuthor

    Delivered by #57

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