feat(processing): read-only retained coverage census example (#7955)

Closed
LO
1mo ago
+1683-0

What

Slice 4 of the stack replacing draft PR #8124 (310c93c0f0..60925a7c52).

Adds the retained_census example to ifc-lite-processing: a read-only
corpus diagnostic that counts which products the retained path would cover,
with a complete visual denominator, IFCZIP entry reading, and an
authenticated STEP prefix plus canonical report names. It is local tooling:
excluded from the packaged crate and touching no library code (zip is a
dev-dependency only).

Review fixes included in this restack

Adds census example tests to CI, bounds IFCZIP inflation, and reports unreadable archives per fixture. Deletes the three unused census mutation patches; the current revert-oracle tool cannot target example tests.

Place in the stack

Slice 4 of 8 replacing the oversized draft #8124 (kept open as a draft umbrella). Review and merge bottom-up; each PR's base is the previous slice.

  1. #8143 stack/7955-1-construction-contracts (base main): feat(geometry): private retained construction contracts and receipt/resource authority (#7955)
  2. #8144 stack/7955-2-contract-validators (base stack/7955-1-construction-contracts): feat: private retained contract validators, wire format and generated contracts (#7955)
  3. #8145 stack/7955-3-failure-origins (base stack/7955-2-contract-validators): feat(geometry): typed retained failure origins for structure, mapping, Boolean and frames (#7955)
  4. #8146 stack/7955-4-coverage-census (base stack/7955-3-failure-origins): feat(processing): read-only retained coverage census example (#7955) (this PR)
  5. #8147 stack/7955-5-source-inspection (base stack/7955-4-coverage-census): feat(retained): bounded source inspection through the private controller (#7955)
  6. #8148 stack/7955-6-native-diagnostic (base stack/7955-5-source-inspection): feat(processing): private native retained diagnostic driver and numerical oracles (#7955)
  7. #8149 stack/7955-7-wasm-inspection (base stack/7955-6-native-diagnostic): feat(wasm): development-only source inspection build isolated from shipped APIs (#7955)
  8. #8150 stack/7955-8-package-graph (base stack/7955-7-wasm-inspection): build(runtime): source-only package graph for the native geometry runtime (#7955)

Validation

Current head: ab4f0ccd4b900666b89ba114f706310b87fe14a0; stack base: main 568a078ef5. Updated after the 2026-10-26 restack.

  • Rust checks pass on pc-wsl at ec73140d1e: default and retained-runtime workspace tests (14,098 passed, 0 failed, 92 ignored across both runs), and strict Clippy for default and retained-runtime. Job 06abbe1f-132d-46a3-8dd8-7cbdfd84ef2c.
  • Overall PC validation is not green: the scripts catch-all failed; module-size also failed against the host’s stale origin/main. The handoff attributes the catch-all failures to PC environment/setup (including deployment tests, missing built packages and AI-eval inputs); these failures are not counted as passes. Other named source gates and retained-contract checks passed.
  • The validated/running source differs from this head only in .github/actions/setup-revert-oracle/action.yml and oracle patch files. A direct Git comparison confirms no Rust source differs. These earlier-commit runs do not execute the final oracle patches or qualify the changed setup action.

The PC validation command set uses RUSTUP_TOOLCHAIN=nightly-2025-11-15: fixture setup; cargo test --workspace --locked --no-fail-fast, repeated with --features ifc-lite-processing/retained-runtime; cargo clippy --workspace --all-targets -- -D warnings, repeated with retained-runtime (slices 2–5) or retained-native (slices 6–8); named source/contract gates; and the workflow's scripts test catch-all. It is not root pnpm test, typecheck, browser, or real SDK worker qualification.

Remaining acceptance evidence:

  • Default WASM SHA/size, three-model mesh fingerprints, and native instruction ratchets have not been rerun for slices 2–8 after restack. Previous figures apply to older heads and are intentionally omitted here.
  • Oracle patches were checked for reverse application only. Their production-observation runs remain pending until each slice is retargeted to main; test.yml is filtered to that base.
  • Slice 1 #8143 has all required hosted checks green at 370a2667f2, including all 32 oracle shards and the bundle ratchet. That fixes the formerly inherited bundle/85-minute timeout blockers, but does not establish this slice's own oracle or identity/performance results.
  • Fresh merge-gating review remains required on the final diff; a CodeRabbit status saying review was skipped is not a review verdict.
  • Current-head PR review signal fails because the main-only test lanes are absent on this stacked base and CodeRabbit skipped the review. Retargeting and review are still pending.

Refs #7955

🤖 Generated with Claude Code