Top spec: claude-code-parity-apr-poc.md
Four invariants (FALSIFY-CCPA-009..012) online from M0+ as required GitHub Actions status checks on the companion repo's main branch. See falsification-conditions.md for full gate registry.
The companion repo claude-code-parity-apr is source of truth for enforcement: implementation, fixtures, CI, coverage, pmat-comply config, and the running-binary that consumes the contract. The contract TEXT lives in aprender/contracts/ per the monorepo single-source-of-truth policy (feedback_monorepo_single_source_of_truth.md); the companion repo pins it by commit hash and gates every PR against it.
Four invariants, online from M0 (before any actual parity work), enforced as required GitHub Actions status checks on the companion repo's main:
- Mechanism: GitHub branch protection on
mainrequires status checkci/gate(matches aprender's policy inCLAUDE.md§ "CRITICAL GIT WORKFLOW RULES"). Direct pushes tomainblocked. - Falsifiable claim:
gh api repos/paiml/claude-code-parity-apr/branches/main/protection \| jq '.required_status_checks.contexts | index("ci/gate") != null'returnstrue. - Failure mode caught: a bypassed merge that ships a red build.
- Mechanism: CI step
pmat comply check --strictruns on every PR; exit code 0 with zero violations is required. - Falsifiable claim:
pmat comply check --json | jq '.total_violations == 0 and .compliance_pct == 100.0'returnstrue. - Why 100 %: the POC is small (~5 Rust crates) and greenfield. There is no legacy excuse.
- Academic basis: prior-art compliance auditing literature (cf. arXiv:2102.05351 on coverage-completeness invariants).
- Mechanism: CI step
cargo llvm-cov --workspace --fail-under-lines 100 --fail-uncovered-lines 0. (Branch coverage tracked but not gated until M6.) - Falsifiable claim:
cargo llvm-cov report --json | jq '.data[0].totals.lines.percent == 100.0'returnstrue. - Tarpaulin policy:
cargo tarpaulinis forbidden per aprender CLAUDE.md ("slow, unreliable, causes hangs"); onlycargo llvm-cov. - Academic basis: coverage-guided test-adequacy literature; specifically the test-adequacy/MC-DC line of work (arXiv:2102.05351 and earlier).
- Mechanism: pre-commit hook (
.git/hooks/pre-commitinstalled bymake hooks) AND CI step both runpv validate contracts/claude-code-parity-apr-v1.yaml. Exit 0 required. - Falsifiable claim: in CI logs, the line
pv validate contracts/claude-code-parity-apr-v1.yamlis followed by exit code 0 within the same job. - Bash workarounds rejected per
feedback_pv_not_bash_for_contracts.mdand CLAUDE.md § "Contract Validation: DOGFOOD pv, NEVER bash" — ifpvrejects the contract, fix the contract or extendaprender-contracts/src/schema/, never bypass with shell.