build(runtime): source-only package graph for the native geometry runtime (#7955)

Closed
LO
1mo ago
+506-66

What

Slice 8 (top) of the stack replacing draft PR #8124. Squashes 50e11ed7d0,
9db1b6e39d, aaf4c4dfaf and 0b20034155:

  • scripts/lib/release-crate-deps.mjs detects target-specific versioned
    crate edges and keeps target dependency declarations independent;
    release-crates-order uses it.
  • ifc-lite-geometry-runtime becomes a publishable source-only crate
    (README, include list without SDK/worker binaries) and joins the
    crates.io release list. The Rust API-surface snapshot is regenerated; the
    only change is the new ifc-lite-geometry-runtime entry. CRATE_FLOOR in
    check-rust-api-surface.mjs and check-rust-semver.mjs rises from 8 to 9
    with the list, so their drop-one-crate vacuity tests fire again.
  • The processing module-size row for data_model/rows/mod.rs is tightened to
    its measured count.

Review fixes included in this restack

Uses the workspace runtime dependency and teaches version synchronization to update it. Keeps the runtime crate in release order and explicitly marks its initial crates.io bootstrap pending. Normal semver checks report that pending bootstrap; release mode refuses it. Before release, publish the crate once, configure its Trusted Publisher, and remove the bootstrap entry.

Place in the stack

Slice 8 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)
  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) (this PR)

Validation

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

  • Rust checks pass on pc-wsl at 81c44b1f4d: default and retained-runtime workspace tests (14,142 passed, 0 failed, 92 ignored across both runs), and strict Clippy for default and retained-native. Job 53f5f44f-2acb-4492-92b2-21d765975fac.
  • Overall PC validation is not green: the scripts catch-all failed; module-size passed. 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.

Refs #7955

šŸ¤– Generated with Claude Code