Startup admission — batch 9
B9-7 connects actual root-macro admission, actual canonical emitted startup wrappers and a finite installed lifecycle. These are separately qualified components; together they do not establish a formal Wasm/IC semantics theorem. No SDK/runtime implementation changed. The runtime-fix counter remains 2.
Approved native/Kani/wrapper factory:
0f51b0d41dc85ebed61f0c580d06371ba5f26a47. Approved installed-IC factory:
827398e0606b5e54435cf910426374ed77bc19e0. Both use SDK
16bbcc1f2f4a312631cad3ce74c6b2f044d09cd3. Later changes concern host
generation, loader isolation, owned state and diagnostics; the SDK, application
fixture, admission harness, native Rust and controlled-Wasm fixture bytes are unchanged.
The integration owner independently reconsumed and approved every final
component's original artifacts. Those audits ran no new proof or execution.
Formal admission component
The generator invokes the
complete actual SDK root expander and selects its emitted admission function
and thread_local! gate declaration. The
Kani caller checks arbitrary
i32 modes and arbitrary 32-byte saved digests, including a prior successful
admission. The returned decision and stored gate agree exactly: install accepts;
upgrade accepts the current or declared predecessor; other inputs reject and
replace any prior true gate with false.
The context supplies fixed, distinct current/predecessor digest values
[0x11; 32] and [0x22; 32], with exactly one predecessor. This is a named
instantiation of the actual emitted body, not a generic catalog/hash theorem.
Digest generation, collision resistance, arbitrary predecessor lists and
complete generated lifecycle semantics remain outside that formal export.
The positive has three source-inventoried authored assertions and five reachable
covers. An unknown-digest false claim and a changed gate assignment each fail
exactly one designated assertion, with ordinary safety/unwind checks retained.
Native and actual emitted-program checks
The native caller compiles actual
generated root lifecycle code against the full SDK. It checks initial callback
gating, current/predecessor/install admission, rejection after prior acceptance,
the installed-app publication guard, callback error and later successful reuse.
Its reopen callback constructs a fresh Store::default() and V2 app. This
native result does not establish retained-image reopening or V1-to-V2 migration;
the native publication function also excludes its Wasm-only saved-digest write.
The emitter fixture invokes
actual cdk_rsx_wasm::transform. Node executes the resulting Wasm32 and Wasm64
programs, using explicitly controlled admission/lifecycle callees. Fourteen
exact cases check install/upgrade, rejection before the lifecycle, ordinary
callee failure before fixture publication, bootstrap/clean refusal, clean-marker
consumption, and observed hot-control/BSS words and initialized-data replay.
These controlled callees do not implement actual retained Store restoration.
Four executable controls mutate the emitted upgrade body: invert the acceptance comparison or move the original lifecycle call before admission, separately for each target width. Each fails its designated semantic assertion. The controls use the pinned Wasm parser/encoder and validate the changed module; token order alone is not accepted as evidence. Actual execution of these finite programs does not prove the parser, encoder, VM, arbitrary histories or full static frames.
Installed Wasm64 bridge
Five fresh canonical builds use the existing
root-authoring fixture:
V1, V2, changed policy, undeclared predecessor and failure after converted app
save. The actual local PocketIC lifecycle checks populated same-artifact KEEP,
declared owner conversion with child values retained, rejected policy/source
changes, late callback error with old state restored, published-target downgrade
refusal, and subsequent writable V2 KEEP. It also checks constructor limits.
This is finite actual Wasm64 execution of retained Store::reopen, conversion
and IC rollback; no corresponding full-application Wasm32 result is inferred.
The runner binds each canonical manifest and its exact feature command; each manifest authenticates 622 distinct input/output hashes and byte counts. It also binds the four generated generic Wire host files to the actual sealed Wasm tool, SDK generator and Node. Node hooks and ambient external-server selection are removed. PocketIC runs through one exact child-only launcher with a separately identified real binary, root-provisioned ELF/loader closure and copied immutable libunwind. Compiler/Node/Kani environments keep that loader override absent. Version and actual create/tearDown preflights precede the five canonical builds.
The actual server uses a fresh owned short /tmp root, with its path, UID and
mode recorded. This avoids PocketIC Unix-socket pathname limits in deep
worktrees and does not select another user's state. Compiler, verifier,
libraries, Node, PocketIC and host execution remain explicit trust boundaries.
The IC owns rollback; no local journal or multi-message migration was added.
Approved artifacts
All IDs below are retained ignored outputs under this worktree's
verification/tmp/, except the stated IC host result under tests/tmp/.
| Component | Original output | Actual result |
|---|---|---|
Native and formal admission at 0f51b0d4 |
startup-admission-20261106T153650Z-all-8ae75d61 |
Native compile/run 0; Kani positive 0; semantic/body controls 1 each at their designated assertions. The later IC setup failure leaves the outer all exit 1. |
Emitted wrappers at 0f51b0d4 |
startup-admission-20261106T154823Z-wrappers-4ce7d4e1 |
Outer 0; exact 14 cases; four designated control exits 1. |
Installed IC at 827398e0 |
startup-admission-20261106T162202Z-ic-3ba23f08 |
Outer 0; five build exits 0; Wire generation 0; host 0; exact five named checks and five refusals. |
| IC host result | tests/tmp/startup-admission-19172d06 |
Result SHA256 f263d44fb090ef1afe2a3e2f5ecba03484ad4513d042344caab93b339b07f62e. |
The native original record SHA256 is
48788a81d4a8a01196fec45def800e1289546efef25e3e32d385985519046903.
The three Kani record SHAs, in positive/semantic/body order, are
b8cc73052fb2ae52a163822279f9ea1e533c1de910b3b0926f86207bd34455fd,
8d022c363e892c31379727c4b8ca67e60631f09ff1c4d363d5b8b7b55c35c60e,
and 301c91b768050412ad0fbc27895dd517fb9a541281927efba60eef6047344ccc.
The wrapper top-record SHA is
605994dab11e9f93ede80569f5374c327de67ca4b0db12915c47b2cdfe178aea.
The final IC top-record SHA is
fd457720579c0bd388c13cabede1849482c837ad7c36e03f13f1ad30c3973897;
its fresh native-record SHA is
cc2e67b3a9cdc35a8cda04f84814018c836e5aba1ef7965d4577ce17a5032b63.
Root approval includes complete source/stage/tool/compiler/Cargo and 2,510
native dependency-file bindings, the wrapper's 42 artifacts, and the IC's 166
artifacts, canonical manifests, source-unchanged declarations, exact cases,
generated host inputs and runtime closure. The smoke command's Node path equals
the admitted IC Node; its immutable binary SHA is
fa212ff7a43ae43fd69ff0bbb40a5dea37a26f952e4af79cb4b0ff60b5d3a2b5.
These populations have different scopes and are not coverage percentages.
Earlier attempts and cleanup custody
No earlier attempt is relabelled as a final producer.
| Historical source/output | Boundary retained |
|---|---|
881b941e, 151702Z-frontend-577b54ad |
Actual native construction and small admission frontend succeeded; provisional result preceded final inventory/control admission. |
60d19241, 152534Z-wrappers-cd146de8 |
Fixture WAT memory64 export syntax rejected before execution. |
7eabcaba, 152635Z-all-892392ee |
Gate body control was refused because rejection covers followed its deliberately failing assertion; covers were moved before that assertion. |
371c1a04, 152754Z-all-c6a0e5cf |
Canonical builder could not find its expected private SDK Rustup access. |
0f51b0d4, 153650Z-all-8ae75d61 |
Full workspace offline metadata needed the unrelated Candid/binrw closure; earlier native/Kani components were independently admitted. |
0f51b0d4, 154115Z-ic-802db669 |
Five builds succeeded; generic Wire host runtime was absent before server execution. |
1538cc73, 155315Z-ic-e7a3e916 |
Five builds and Wire host generation succeeded; PocketIC lacked its runtime libunwind selection. |
038a6ffd, 160701Z-ic-395ae8b1 |
Version preflight and builds succeeded; initial instance creation failed because the deep state path exceeded Unix-socket limits. |
4010bf0b, 161722Z-smoke-8b231b59 |
Diagnostic stderr confirmed that pathname failure. Only its owned server/client were stopped; client child exit was intentionally -15. |
827398e0, 162028Z-short-smoke-28d16745 |
Short-state diagnostic create/tearDown succeeded; no application/proof claim. |
The retained external roots are /tmp/rsx-smoke-8zhx1lvm and
/tmp/rsx-pic-q2f5rdxs. Diagnostic server PID 2081540 and final pre-build smoke
PID 2087842 both exited 0. Failed long-path smoke server PID 2078555 was stopped
and absent before its waiting client PID 2078544 was intentionally terminated.
The earlier failed full-session server PID 2068317 was cleaned up by the common
session helper; its exit code was not exported. The final lifecycle's server
PID was not exported by that helper. Its host exited 0 after awaited shutdown.
A final argv/environment process audit found no live process referring to
either short root. Both roots remain for integration-owner cleanup; no foreign
state was removed. Jobs ended and the lane lease is free.
All 11 focused tool tests pass. No proof or execution was rerun for this Markdown-only closure. A new complete cohort can be run with the preprovisioned private compiler, offline dependencies, host runtime packet and owned caches:
CARGO_BUILD_JOBS=2 RUSTUP_AUTO_INSTALL=0 python3 -B verification/tools/startup_admission.py all --pocket-ic /home/devbox/.local/bin/pocket-ic
python3 -B tests/verification/run.py test_startup_admission
This note preserves the separately approved historical producers above. Generated evidence remains ignored and retained for review. No push or cleanup accompanies this closure.