Skip to content

chore(theater): delete 186 orphan contract-scaffold modules (PMAT-THEATER-TRIAGE-001)#2302

Merged
noahgift merged 1 commit into
mainfrom
agent/rank16-theater-triage
Jul 5, 2026
Merged

chore(theater): delete 186 orphan contract-scaffold modules (PMAT-THEATER-TRIAGE-001)#2302
noahgift merged 1 commit into
mainfrom
agent/rank16-theater-triage

Conversation

@noahgift

@noahgift noahgift commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Fable rank-16 — kill the theater

crates/aprender-core/src/format/ holds 189 numbered *_NNN_NNN.rs "contract-falsification" modules from an abandoned PARTIAL-discharge scaffolding campaign (#1644 "batch 5" et al). 186 are orphans — never referenced by mod/include!/#[path], no automod, build.rs doesn't wire them, and 0 refs from contracts/, tests/, examples/, docs/, or the enforced pmat gates. They are never compiled → their 5,172 #[test]s never run, inflating the advertised test count with pure theater — exactly what the Fable review's rank-16 targets.

Proven build-neutral

cargo check -p aprender --lib exits 0 after deletion — they were never part of the build.

False-positives caught by using cargo as the oracle

An initial over-broad glob swept in 3 files that ARE live (qa_002_006, pub_cli_002_004, aprfi_001_003, declared in format/mod.rs). cargo check flagged them (E0583); they're kept. Only the 186 truly-dead files are deleted.

Diligence

referenced by count
mod/include!/#[path] (whole crate) 0
contracts/ YAML 0
tests/ · examples/ · benches/ 0
docs/ · book/ 0
enforced pmat gates (.pmat-gates.toml, pmat.toml) 0
pmat semantic index (.pmat/*.idx, gitignored cache) 378 → re-sync with pmat embed sync

Non-format orphans (test-lib / serve-cli, ~96 files) are triaged separately — some may warrant wiring-in rather than deletion.

🤖 Generated with Claude Code

…/ (PMAT-THEATER-TRIAGE-001)

The Fable review's rank-16 target. crates/aprender-core/src/format/ holds 189 numbered
`*_NNN_NNN.rs` "contract-falsification" modules from an abandoned PARTIAL-discharge
scaffolding campaign (#1644 "batch 5" et al). 186 of them are ORPHANS: NO `mod`/`include!`/
`#[path]` reference anywhere, no automod, build.rs doesn't wire them, 0 refs from
contracts//tests//examples//docs/ or the enforced pmat gates (.pmat-gates.toml/pmat.toml).
They are NEVER COMPILED — their ~5,200 `#[test]`s never run, inflating the advertised test
count with pure theater.

Proven build-neutral: `cargo check -p aprender --lib` exits 0 after deletion (they were
never part of the build). The 3 numbered files that ARE live (`qa_002_006`, `pub_cli_002_004`,
`aprfi_001_003`, declared in format/mod.rs) are KEPT — caught by using cargo as the oracle
after an initial over-broad glob swept them in.

The only side effect is a stale pmat semantic index (.pmat/*.idx, gitignored) → re-sync with
`pmat embed sync`. Non-format orphans (test-lib/serve-cli, ~96 files) are triaged separately.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@noahgift noahgift enabled auto-merge July 5, 2026 21:24
@noahgift noahgift added this pull request to the merge queue Jul 5, 2026
Merged via the queue into main with commit 400f1ca Jul 5, 2026
12 checks passed
@noahgift noahgift deleted the agent/rank16-theater-triage branch July 5, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant