feat(wasm): development-only source inspection build isolated from shipped APIs (#7955)

Closed
LO
1mo ago
+1638-30

What

Slice 7 of the stack replacing draft PR #8124 (47d0c62837..853625b36f, as
merged in 5f8eb57a4d; the Rust fix-ups duplicated from slice 5 are already
there and drop out).

Adds the development-inspection feature to ifc-lite-wasm and a separate
build output (.retained-dev/wasm/, gitignored) from scripts/build-wasm.sh.
Neither shipped engine exports it: the API-surface, packed-workflow and
member-surface checks prove the exclusion. The opt-in inspection deadline
uses a fail-closed JS monotonic clock on wasm32 only (optional
wasm-bindgen edge on ifc-lite-geometry); native keeps std::time::Instant.
Includes the source-capture enablement, alias preservation, byte-entry
deadline and the build-wasm.sh fix that keeps retained declaration tracking
during regeneration.

Two gate failures the integration branch carried are fixed here: the new
architecture page is declared in mkdocs not_in_nav (internal engineering
doc; the real-tree nav check #4912 rejected it as omitted), and
check-packed-workflows.mjs loads the development-exclusion helper only after
its required-fixture refusal, because that helper pulls in the TypeScript
compiler and the PR #7648 fixture runs a bare copy of the command.

Review fixes included in this restack

Moves the development inspection WASM/Node check after the committed WASM declaration sync check. Limits the zero-growth clock assertion to the large source case.

Place in the stack

Slice 7 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)
  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) (this PR)
  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: f42069fe0cb05528266e0e2c979bbdb03f8b399d; stack base: main 568a078ef5. Updated after the 2026-10-26 restack.

  • Not validated after restack. The slice-7 run was never submitted. Older validation is not evidence for this head.

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.

Refs #7955

šŸ¤– Generated with Claude Code