Close an Epic only after re-running its checks at HEAD.

Epic Definition-of-Done (Final-Opus trust-nothing re-run)

Intent — An Epic-close gate mandating a "trust nothing" Final-Opus review that re-runs every owned pin test and lint at HEAD, rather than trusting phase markers or prior claims, so an Epic cannot close on stale or rotted assertions.

SummaryClose an Epic only after re-running its checks at HEAD.
TargetAgent · Governance-doc mechanisms
Formquality-gate
EnforcementHard (deterministic) · blocking close — reachability/patch-id checks must pass, or a logged --override is required

Motivation — the failure it kills

An Epic spanning many dispatches accumulates claims (phase markers, "lints pass," pin-test counts), and those claims rot as sibling Epic sweeps churn the substrate underneath them. Close on the stale claims and you ship an Epic whose defenses no longer actually hold (empirically: 7/7 back-catalogue Epics self-marked DONE had quality-of-defense gaps). The failure is a premature/false close, and it recurs at every Epic boundary.

Why it's not just "trust the phase markers" (or "the agent said it's done")

Phase markers and self-reports are exactly what rots: a sibling sweep can break your lint while your marker still reads green, and a self-marked-DONE is not verification. The DoD mandates re-running every owned pin test and lint at HEAD and comparing against the claims, plus scanning the Epic's design docs for dropped follow-up tags and doc rot. The gate trusts nothing recorded; it re-derives the verdict from the substrate as it stands now. It is the audit counterpart to the rule index: the index's lints keep its form honest; this re-run keeps an Epic's claims honest.

Mechanism

An Epic-close tool enforces that every cited commit is reachable from main by ancestry or patch-id; a missing one requires a logged override carrying a reason. On a clean close it rewrites the status and closed-date fields atomically, moves the file into the closed tree, and regenerates the index. The Definition-of-Done itself carries a fixed set of mandatory criteria: among them the Final-Opus re-run of owned pins/lints at HEAD, docs + index updates, the tag routing-audit, and the filing of any design-doc follow-up.

Prerequisites

Consequences & costs

Known uses

Related mechanisms