Skip to content

chore(contracts): burn down no-test debt 433 -> 390 (#7032) - #7033

Merged
noahgift merged 1 commit into
mainfrom
chore/no-test-debt-burn-1
Nov 13, 2026
Merged

noahgift merged 1 commit into
mainfrom
chore/no-test-debt-burn-1

Conversation

@noahgift

@noahgift noahgift commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

GATE CONTENT: edits the no-test debt list; needs a non-author sign-off bound to the final commit.

What

No-test debt list crates/aprender-contracts/src/schema/no_test_debt.txt: 433 -> 390 (43 removed). debt_cap and its table are unchanged.

All 43 go by route (b) dead: an auto-generated work contract under contracts/work/ whose ticket is closed, and no file in the tree references it. Each one is deleted with git rm, and its debt line is dropped. No route (a) tests were added in this step.

Generated files were regenerated by their own tools, with no hand edits:

  • contracts/contracts.nt: pv extract contracts removed 6 triples per deleted contract (258 lines).
  • contracts/witness/811c…d850.json: pv-sat contracts (1 line).
  • README.md contract count, 2032 -> 1989: scripts/readme_sync.sh --write.

How deadness was proven

  • Ticket state. For a GH-n ticket, ONE GraphQL query with aliases (1 GitHub call) returned the paiml/aprender issue as CLOSED/COMPLETED. For PMAT-n and other ids, the status came from docs/roadmaps/roadmap.yaml, the pmat work ticket database, and must be completed or cancelled.
  • File references. I ran git grep -n -F '<id>.yaml' over the whole tree. The only hits outside the file itself and the debt list are in contracts/contracts.nt, the generated RDF index, which is regenerated here. I also checked code/CI for any contracts/work path use and found none (git grep -E '"work/|contracts/work' over *.rs, *.sh, Makefile, *.yml).
  • Ticket-id mentions. Bare ticket-id mentions elsewhere in contracts/ are listed per row for transparency. They are prose citations or pmat: ticket fields naming the ticket, not the work-contract file.
  • Rejected as not provable (2). work/GH-339.yaml and work/BEAT-OLLAMA-DECODE-CI-001.yaml both have completed tickets, but their basenames are cited in docs/audits/pp-066-s0-ledger.md and evidence/pp-066/s0/S0-18-lint-tail.txt. They stay.
  • Not provable (261). The other 261 work/ entries have a ticket that is planned or inprogress, or no ticket record (PMAT-705, baseline-v1). They stay.

Evidence

# path route ticket + state git grep -n -F '<basename>' hits outside the file and the list (origin/main) ticket-id mentions elsewhere in contracts/ (prose / pmat: ticket field, not a file reference)
1 contracts/work/GH-597.yaml dead GitHub issue 597 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
2 contracts/work/GH-602.yaml dead GitHub issue 602 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
3 contracts/work/GH-603.yaml dead GitHub issue 603 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
4 contracts/work/GH-619.yaml dead GitHub issue 619 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
5 contracts/work/GH-621.yaml dead GitHub issue 621 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
6 contracts/work/GH-622.yaml dead GitHub issue 622 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
7 contracts/work/GH-623.yaml dead GitHub issue 623 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
8 contracts/work/GH-624.yaml dead GitHub issue 624 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
9 contracts/work/GH-663.yaml dead GitHub issue 663 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
10 contracts/work/GH-664.yaml dead GitHub issue 664 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
11 contracts/work/GH-665.yaml dead GitHub issue 665 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) contracts/aprender/apr-serve-v1.yaml
12 contracts/work/GH-666.yaml dead GitHub issue 666 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
13 contracts/work/GH-667.yaml dead GitHub issue 667 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) contracts/aprender/apr-cli-v1.yaml
14 contracts/work/GH-668.yaml dead GitHub issue 668 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
15 contracts/work/GH-669.yaml dead GitHub issue 669 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
16 contracts/work/GH-670.yaml dead GitHub issue 670 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) contracts/aprender/apr-serve-v1.yaml
17 contracts/work/GH-671.yaml dead GitHub issue 671 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) contracts/aprender/apr-serve-v1.yaml
18 contracts/work/GH-672.yaml dead GitHub issue 672 CLOSED (COMPLETED) contracts/contracts.nt only (generated; regenerated by pv extract contracts) contracts/aprender/apr-serve-v1.yaml
19 contracts/work/PMAT-328.yaml dead roadmap.yaml PMAT-328 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
20 contracts/work/PMAT-330.yaml dead roadmap.yaml PMAT-330 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
21 contracts/work/PMAT-331.yaml dead roadmap.yaml PMAT-331 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
22 contracts/work/PMAT-342.yaml dead roadmap.yaml PMAT-342 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
23 contracts/work/PMAT-480.yaml dead roadmap.yaml PMAT-480 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) contracts/entrenar/per-operation-training-profiling-v1.yaml contracts/entrenar/training-step-profiling-v1.yaml contracts/probar/training-step-scorecard-v1.yaml
24 contracts/work/PMAT-481.yaml dead roadmap.yaml PMAT-481 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) contracts/apr-cli-commands-v1.yaml contracts/trueno/nf4-backward-tensor-core-gemm-v1.yaml
25 contracts/work/PMAT-482.yaml dead roadmap.yaml PMAT-482 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
26 contracts/work/PMAT-483.yaml dead roadmap.yaml PMAT-483 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) contracts/entrenar/fused-backward-gemm-v1.yaml contracts/entrenar/per-operation-training-profiling-v1.yaml contracts/probar/training-step-scorecard-v1.yaml contracts/train-step-profiler-json-report-v1.yaml
27 contracts/work/PMAT-484.yaml dead roadmap.yaml PMAT-484 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) contracts/entrenar/fused-backward-gemm-v1.yaml contracts/trueno/nf4-backward-tensor-core-gemm-v1.yaml
28 contracts/work/PMAT-485.yaml dead roadmap.yaml PMAT-485 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) contracts/entrenar/per-operation-training-profiling-v1.yaml contracts/probar/training-step-scorecard-v1.yaml
29 contracts/work/PMAT-486.yaml dead roadmap.yaml PMAT-486 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) contracts/entrenar/attention-backward-v1.yaml contracts/entrenar/cuda-graph-training-step-v1.yaml
30 contracts/work/PMAT-487.yaml dead roadmap.yaml PMAT-487 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) contracts/entrenar/parity-profiling-system-v1.yaml contracts/qwen3-moe-forward-v1.yaml
31 contracts/work/PMAT-488.yaml dead roadmap.yaml PMAT-488 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) contracts/entrenar/cuda-graph-training-step-v1.yaml
32 contracts/work/PMAT-489.yaml dead roadmap.yaml PMAT-489 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
33 contracts/work/PMAT-490.yaml dead roadmap.yaml PMAT-490 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
34 contracts/work/PMAT-491.yaml dead roadmap.yaml PMAT-491 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
35 contracts/work/PMAT-493.yaml dead roadmap.yaml PMAT-493 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
36 contracts/work/PMAT-495.yaml dead roadmap.yaml PMAT-495 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) contracts/aprender/binding.yaml
37 contracts/work/PMAT-496.yaml dead roadmap.yaml PMAT-496 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
38 contracts/work/PMAT-681.yaml dead roadmap.yaml PMAT-681 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) contracts/corpus-merge-v3-v1.yaml
39 contracts/work/PMAT-692.yaml dead roadmap.yaml PMAT-692 status: completed; linked PR 1915 MERGED contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
40 contracts/work/PMAT-693.yaml dead roadmap.yaml PMAT-693 status: completed; linked issue 1893 CLOSED contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
41 contracts/work/PMAT-697.yaml dead roadmap.yaml PMAT-697 status: completed; linked PR 1925 MERGED contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
42 contracts/work/PMAT-737.yaml dead roadmap.yaml PMAT-737 status: completed contracts/contracts.nt only (generated; regenerated by pv extract contracts) none
43 contracts/work/PMAT-739.yaml dead roadmap.yaml PMAT-739 status: cancelled contracts/contracts.nt only (generated; regenerated by pv extract contracts) none

Verification (framework16, fresh clone, rc captured directly, never through a pipe)

check rc result
cargo fmt --all -- --check 0
cargo test -p aprender-contracts --lib 0 2377 passed, 0 failed (incl. corpus_no_test_debt_within_release_cap and the stale-line check); list count 390
cargo test -p aprender-core --test readme_contract 0 17 passed
scripts/contracts_gate.sh (pv built from this tree) 0 8 of 8 steps RAN, 0 FAILED (lint, shapes, consistency, census, regen, readme, provenance, diff)
pv lint contracts/work/ 0 Result: PASS
pv lint contracts/ --gate {ont-consistency,refines,bindings} 0 / 0 / 0
scripts/guard_tree.sh --no-cargo HEAD vs origin/main baseline 0 vs 0 205 checks, 0 failed on both; failure sets are identical (empty)

A first run of the contracts lib test failed on lint_passes_on_real_contracts (ont-consistency WitnessStale). That was fixed by regenerating the pv-sat witness, which is included in this PR.

ont-delta: none the contract set shrinks by 43 auto-generated kind: schema work contracts (contracts/work/); no kernel/model/CLI contract changed; contracts.nt drops their 258 triples; README count 2032 -> 1989.
keep-open: #5291 umbrella no-test debt epic; this is step 1 of several

Closes #7032

🤖 Generated with Claude Code

Delete 43 provably dead auto-generated work contracts (contracts/work/*.yaml)
and drop their no-test debt lines. Each one's ticket is closed (GitHub
issue CLOSED/COMPLETED) or completed/cancelled in docs/roadmaps/roadmap.yaml,
and no file in the tree references the contract file other than the
generated contracts/contracts.nt. Regenerated contracts.nt (pv extract),
the pv-sat consistency witness, and README contract count (readme_sync.sh).
debt_cap is unchanged.

Pmat-Ticket: #7032
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@noahgift noahgift added the fix-set GHC-001 cap-exempt fix label Nov 13, 2026
@noahgift

Copy link
Copy Markdown
Member Author

Review at head a804089 (gate content: the no-test debt list). degraded: same-family (author Opus 5.5; lanes Sonnet 5.5 and Fable 5.2).

PASS x2.

  • debt_cap and the test file untouched. Diff is +3/-893: 43 deleted contracts/work/*.yaml, 43 removed list lines, 0 added; one to one.
  • Sampled 13 ids (Version string shows (unknown) instead of git hash #597/603/621/664/667/671 closed completed; PMAT-328/483/487/495/681/697 completed, PMAT-739 cancelled in the roadmap). Six deleted files read: auto-generated work receipts, no equations, obligations or bindings.
  • At the head, no file in the tree names any of the 43 deleted basenames (git grep -l -F per basename: 0 hits).
  • README contract count regenerated 2032 -> 1989.
    Not measured by the reviewers: the generators were not re-run; 30 ids not sampled individually (covered by the reference scan only).

@github-actions

Copy link
Copy Markdown

§13.11 rung 1 — quorum shadow verdict

S13-SHADOW pr=7033 head=a804089070617f1c3acb52b57041922fb4ccf763 verdict=REFUSE class=Q1 arm_rc=1

Shadow mode: this records a verdict and merges nothing. A refusal
to arm is not a block (§13 adds zero rows to §7) — the pull request is
exactly as green as it was.

@noahgift
noahgift enabled auto-merge (squash) November 13, 2026 18:58
@noahgift
noahgift merged commit 2828161 into main Nov 13, 2026
29 of 33 checks passed
@noahgift
noahgift deleted the chore/no-test-debt-burn-1 branch November 13, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix-set GHC-001 cap-exempt fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

contracts: burn down no-test debt 433 -> <=401 (step 1)

1 participant