Repository navigation
Description
Parent
#1217 — repo-owned development control plane.
Consumes canonical slice identity from #1216. Precedes readiness/frontier projection.
Problem
GitHub open/closed state cannot establish whether a roadmap dependency is satisfied. A closed issue may be merged, duplicate, superseded, rejected, blocked externally, or closed without implementation. A green PR may still lack required exact-head proof or parent reconciliation.
The controller needs one typed terminal record that says what actually happened and whether downstream slices may rely on it.
Outcome
Define a versioned append-only SliceTerminalHandoff / deliberately equivalent contract:
slice_id / canonical issue
terminal disposition
exact starting base commit/tree
final candidate head/tree
PR and merge commit/tree, when applicable
changed authority / behavior claim
focused proof and required-check receipts
review findings and dispositions
artifact/verifier receipt digests
external mutations attempted and authority refs
invalidated prior evidence
branch/worktree/runtime cleanup state
remaining limitations / non-claims
newly unblocked or still-blocked slices
created/verified actor and source identity
Terminal dispositions should distinguish at least:
merged
closed_no_change
accepted_evidence
rejected
superseded
duplicate
blocked_external
not_planned
invalidated
Each disposition defines whether and how it may satisfy dependencies.
Scope
- Define pure types, canonical serialization/digest, validation, append-only transition rules and reason tokens.
- Bind every handoff to the canonical roadmap(graph): add a canonical PR-slice ledger and reject duplicate dangling or premature implementation issues #1216 slice/issue identity and exact repository/main state.
- Define
DependencySatisfactionas an explicit derived outcome, not a property ofclosed. - Require exact PR/merge/proof identities for
merged. - Require source evidence and successor identity for
duplicate/superseded. - Require actor/action/object/evidence-needed fields for
blocked_external. - Permit later invalidation events without rewriting the original handoff.
- Add human-readable rendering suitable for issue comments and machine-readable JSON/NDJSON.
- Keep GitHub posting and readiness computation out of this PR.
Acceptance
-
mergedcannot validate without exact base/head/PR/merge/proof/review/cleanup identities required by the slice. -
closed_no_changemust state the inspected current state and why no code change is required. -
duplicate/supersededidentifies one canonical successor and does not satisfy unrelated dependencies. -
blocked_externalnames the actor, exact privileged/external action, object and evidence required. -
invalidatedpreserves the original terminal receipt and names the moved input/authority. - Issue closure alone never serializes dependency satisfaction.
- Same logical handoff serializes/digests deterministically.
- Forged/mixed repository, slice, issue, SHA, PR, merge or receipt identities fail.
- Human Markdown and machine artifact remain semantically equivalent.
- No GitHub write or branch/worktree mutation occurs.
Proof
- Complete disposition/dependency-satisfaction truth table.
- Valid merged/no-change/evidence/rejected/superseded/blocked/invalidation goldens.
- Missing merge/proof/review/cleanup, wrong issue/slice/SHA/PR and successor-cycle negatives.
- Canonical ordering/digest and Markdown↔JSON parity tests.
- Schema/version migration fixture.
- fmt/check/test/Clippy/policy/docs/diff hygiene.
Non-goals
- No ready-frontier projection; sibling issue owns it.
- No GitHub observer, claim lease, context packet, PR manager or merge action.
- No product TaskLedger reuse: this is repository-development transaction truth.
- No automatic issue closure/commenting.
Rollback
Retain the schema and render handoffs manually if automated consumption is disabled. Never fall back to treating a closed issue or merged PR as a complete dependency receipt.
Activity