On this page
Proof
Decapod separates AI coding agent claims from proof-backed completion using exact-commit validation gates, epistemic custody, and deterministic checks.
A completion claim only reports what an agent believes. Proof-backed completion establishes that the required gates actually ran against identified repository state, produced verifiable evidence, and permitted the governed publication transition.
Proof design and verification are different acts
The agent is responsible for implementing the request and articulating how its implementation can be falsified. Original intent, accepted subsequent prompts, the Constitution, and applicable project policy determine the expectations. In its governed execution loop, the agent may revise its implementation and proposed checks as it receives actionable feedback.
The validation layer executes the required gates outside the agent's self-assessment. A result is admissible only when the configured requirements have been exercised against the identified repository state and their evidence is present and current. Validation may be invoked repeatedly; each verdict still belongs to the exact candidate and conditions it measured.
The agent can author a test and run it, but cannot turn a test description, a green-looking message, or its own conclusion into proof. Missing or weak proof obligations remain a governance concern even when individual authorized actions appear harmless.
See Closed-loop metacognitive governance.
Validation is a governed decision
decapod validate evaluates the required, applicable repository contract. That can include rule authority and scope, plan/intent readiness, Constitution and project overrides, source history, worktree custody, actual build/test/security execution, validation epoch integrity, and evidence freshness for the exact candidate. A green unit-test suite is one possible input to this broader determination.
Rules use independent dimensions: authority (constitutional, project, task, non-waivable kernel), lifecycle phase (pre-execution, during execution, validation, publication), severity (advisory through critical), and verdict (pass, fail, unverifiable, stale). Remediation describes the supported action and whether autonomous repair or human authorization is required. The kernel does not turn an unresolved question or an unknown proof into a successful result.
The approved plan is an execution-contract state. Recorded human questions, contradictions, unknown requirements, and unresolved human spec decisions remain blockers at preparation, execution, validation, and publication. Passing a test cannot waive those obligations.
Verification Gates
A "Gate" is a discrete check that must pass for a task to be considered valid. Common gates include:
- Compliance Gates: Checked by
decapod validate(see CLI Reference). - Quality Gates: Unit tests, linting, and type-checking.
- Security Gates: Secret scanning and dependency audits.
- Human Gates: Explicit approval for high-risk changes.
The Evidence Ledger
When an agent completes validated work, Decapod binds validation receipts and evidence references to governed repository state (see Artifacts Reference). Agent testimony alone does not satisfy that boundary.
This creates epistemic custody: a reviewable chain from accepted intent and assumptions to the checks that ran and the repository state they measured.
Failure and recovery
A failed gate means the proof requirement is unsatisfied; it does not mean the task is complete. If the result provides a supported recovery path, the agent should:
- inspect the validation result;
- identify the violated invariant;
- perform the sanctioned remediation;
- update the relevant artifact;
- re-run validation; and
- continue toward publication.
Decapod does not assume every failure is recoverable. Decision gates, contradictions, unsupported remediation, and unavailable proof remain blockers for human review.
Determinism
Decapod strives for deterministic proof. A proof is valid only if it can be re-run or re-verified by another agent or a human at a later date. This ensures that the repository's integrity is not dependent on a single agent's transient state.