feat(geometry): typed retained failure origins for structure, mapping, Boolean and frames (#7955)

Closed
LO
1mo ago
+3461-900

What

Slice 3 of the stack replacing draft PR #8124. Squashes B1/B2a
(1365e5048a..3190e3d88b) and the Boolean/frame origin work
(7fc7f0baa0..0b353d3294):

  • B1: private retained failure origins survive consumed completion, with a
    compact structural error carrier and observers for structural action,
    reporting, handle lifetime, first-overwrite and storage charge/release.
  • B2a: mapped-input refusal origins for cached occurrences, direct type-map
    entries and late origin failures.
  • Boolean source refusal origins (operator, predicate, Core reporting) and
    frame/identity refusal facts (composition action, value reporting).

CI dispatches each independent mutation oracle only when its observer file
is new relative to main. All of it is private retained code (test or
retained-runtime only).

The S1-S3 oracle inputs that these refactors move are replaced by
context-adjusted copies (retained-origin-a1t, retained-mapping-origin-b2a,
retained-frame-origin-b2c); the 44 superseded originals are deleted here and
remain on wip/geometry-platform-integration. RetainedContextError drops the
shared Source postfix and with it slice 1's lint allow.

Fix-ups that landed later on the integration branch are folded in here so
this slice is green on its own: the strict-Clippy fix in the frame-owner
retry witness (e25b1655ab), the shared initial oracle-dispatch helper
scripts/lib/revert-oracle-initial-dispatch.sh whose fixture executes it
instead of asserting on workflow text (d5a8bee655, B2 observers only here),
and the proof of feature-gated Rust oracle module ownership (98c5d610b0).

Review fixes included in this restack

Deletes the unused REVIEW.txt evidence artifact and removes stale workflow comments. The moved H2a2 oracle patches have refreshed context.

Place in the stack

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

Validation

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

  • Rust checks pass on pc-wsl at ae179bd559: 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 7bc57bbb-8d63-487d-b8c5-d49daf2764c0.
  • 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.

Refs #7955

🤖 Generated with Claude Code