Sixth-batch foundation source review: Astra
The initial-snapshot review below is historical. The final source follow-up records the later proof scopes, confirmed representation discrepancy and finding-resolution status separately.
Independent source review of factory
fbe880bca20a05e2d968a98035c3a49f48c9ebff, SDK
409a7176096c06c2dd9b7e491e8dc630951e83b4, on 5 November 2026. Both
checkouts were clean when inspection began. The review used the isolated
astra-review worktree and changed only this report. No compiler, prover,
installer, raw Kani launcher, or shared tool state was invoked or changed.
The seven merged increments have appropriately narrow source contracts. I found no concrete false theorem, vacuous positive, or unchecked replacement algorithm in those increments. Two qualification-gate defects need repair before making the strongest receipt-integrity and exact-diagnostic claims. Neither finding is an SDK defect or evidence that a recorded solver result is false.
This is source review with pure Python admission tests. It does not independently reproduce solver acceptance, supersede earlier qualifications, or qualify the three still-active workstreams.
Findings
F1 — Medium: several runners do not authenticate their recorded receipt
Locations in the reviewed snapshot:
verification/tools/wasm_authority.py:75:verify_inputschecks source and staged content, clean SDK status and installed tools, but neitherinputs.jsonnor the recorded factory/SDK HEADs.runwrites those identities at line 96.verification/tools/native_provider_growth.py:116: the receipt is written, then both rechecks delegate toprovider_resource.verify_inputsatverification/tools/provider_resource.py:155. That helper does not inspect the receipt or recorded HEADs either.verification/tools/stable_leases.py:81andverification/tools/stable_io.py:99: these runners correctly recheck both clean checkout identities, but never compare the original receipt bytes at consumption. Their staged-file hash checks also accept a replacement symlink resolving to identical bytes.
The effect is provenance drift: a damaged or overwritten receipt can claim a different source, configuration, or scope while the run still reports success. For the first two runners, moving to a clean commit that preserves their listed source bytes also escapes the recorded-HEAD check. The source hashes still protect the listed compiled contents; this is not a demonstrated change to those contents or to a theorem's truth.
I reproduced receipt acceptance in pure Python using actual source paths and
the runners' actual staging, not an empty fake source inventory. After
wasm_authority.stage or native_provider_growth.stage, I wrote a receipt with
factory="wrong", sdk="wrong" and scope="unbounded physical proof".
Both input rechecks returned normally with current source/staging hashes.
Only installed-tool validation was mocked; no verifier was present or run.
Receipt removal likewise is not referenced by these recheck bodies. The stable
runner omissions follow directly from their complete post-process check blocks.
Minimal repair: retain the exact original receipt bytes or digest, require a
regular nonsymlink receipt and staged files, and compare captured factory/SDK
HEADs plus the applicable clean-status policy at consumption. Add changed,
missing and symlinked receipt tests, identical-byte staged-symlink tests, and
clean HEAD-movement tests. The existing
allocation_facade.verify_inputs at verification/tools/allocation_facade.py:54
already supplies the relevant pattern. Avoid introducing runtime ownership
state to repair a host-side receipt gate.
F2 — Medium: unrelated fatal diagnostics can accompany an admitted negative
verification/tools/native_provider_growth.py:147 accepts its semantic control
after checking exit code one and the complete report population. It never reads
that control's diagnostic log. Thus the designated single-open-leaf report can
coexist with an unrelated compiler/prover failure or panic without rejection.
Its source note's statement that unrelated compiler failure cannot qualify the
control is stronger than this gate.
The shared Kani path has the same class of omission:
verification/tools/kani.py:222 rejects the known missing-argument backend
warning only. validate_run at line 236 does not reject independent fatal
errors or panics. Complete assertion/cover inventories and the exact failed
assertion still matter, but they do not validate the absence of a second failure
in the diagnostic channel.
Pure reproducer for the shared gate: construct the existing
test_wasm_authority.WasmAuthority().report('wasm-authority-stale-negative'),
write it as result.json, and write the following synthetic run.log:
error[E999]: unrelated compiler error
thread panicked at backend.rs:1
With the suite's existing expected-harness/negative registrations and exit code
one, kani.validate_run accepts it. This is an admission-test witness, not a
claim that Kani actually emitted this combination in a recorded proof run.
The native-growth report validator also accepts the complete existing synthetic
negative fixture; its caller supplies no additional semantic-log check.
Minimal repair: give native growth an exact expected-main-goal and expected-root-
errors check, as already done by buddy_acquire.require_negative_diagnostics at
verification/tools/buddy_acquire.py:77. Add central Kani rejection of fatal
compiler/backend/crash diagnostics while retaining normal warnings and the
expected assertion-failure presentation. Test each unrelated diagnostic beside
an otherwise complete positive and designated-negative report. Preserve all
existing inventory, reachability and single-failure requirements.
Source contracts reviewed
The identities below are the component qualification identities recorded in their authored notes. Counts remain owner-reported solver observations; this review supplies source inspection only.
| Increment | Source reviewed and retained scope |
|---|---|
Native provider, 83754b54 |
The complete VecBacking::grow_to shadow is byte-compared and strictly erasure-linked. The explicit multiplication-overflow/already-initialized precondition makes allocating library calls unreachable. Existing dirty bytes and the ultimate Vec loan are framed. Successful growth, provisioning, relocation and live payload transport are still open. |
Stable leases, c6b89d40 |
Complete actual acquisition/capacity/adapter bodies execute in four finite scalar traces. The two-handle interference cases deliberately violate the unsafe exclusive-domain premise and correctly expose post-growth diagnostics. They do not construct a lease or establish valid concurrent use. |
Wasm observations, 31441eff |
The actual wrappers are staged in two native profile contexts. One initialized mutable scalar model is carried through bootstrap, interleaved growth and a redundant request; state is not reset between steps. The model has neither physical byte permissions nor a nonduplicable world authority. |
Slab allocation, 269b8a6b |
The pinned contiguous fragment preserves slot selection, header update, unlink and returned pointer. Both policies, classes 0 and 15, bump/reuse paths, and concrete three-cell chain clients are present. Other heap coordinates are frames, not a globally valid arbitrary heap. Full free-chain validity and issued span ownership remain caller obligations. |
Buddy acquisition, ca370268 |
The actual split loop and counter increment are preserved. split_coverage_all fixes both eight-word snapshots before its checked ghost induction. Its universal conclusion concerns every cell of one transition. Genuine header permissions and useful seven-split/no-split clients are present. Selection, initial removal, bins, payload ownership and returned-pointer construction are excluded. |
Stable I/O, 9d8bd66f |
Complete actual range/acquisition/adapter bodies use separately generated real native objects and actual native copying in the System API model. Queries compare bytes before/after the same call. Object/write scope remains at most u32::MAX; reads are additionally bounded to 255 bytes. Rejected calls cannot reach the panic imports. Research roundtrip/copy roles remain explicitly unqualified. |
Allocation facade, 112bb458 |
Complete actual resize paths execute on a real aligned native page supplied as a pre-existing live direct run. Fixed Layouts cover failed replacement, equal direct geometry and invalid new Layout. The refusing provider observes the real allocation attempt; no-call branches are checked with panic callbacks. The old 37-byte extent is framed pointwise. Initial issue history, successful movement/copy/release, variable Layouts and zeroed allocation remain open. |
The acquisition import chain refreshes the existing numeric, bitmap and
per-cell native producers and checks exact producer staging, source maps,
reports, diagnostics and tool/compiler identities. The checked free_count
shadow links the shared ordinary oracle to the logical cell count. The new
universal lifting does not quietly turn the cross-verifier imports into a shared
proof kernel. Its five new reports are a subset of its nineteen-report pipeline;
the fourteen reused producers are not additional distinct coverage.
The selected Kani manifest entries include the semantic assertions in the relevant helpers and primitive models. Rejection-only I/O imports remain panic bodies whose nonexecution is checked; they are not broad trusted Memory stubs. Source-pinned manifest selection remains a reviewed finite helper inventory, not a general call-graph theorem. Compiler-generated safety checks remain outside that independent source inventory, as already documented.
Existing foundation and pending work
The core page-pool proof, frontend pins, report enumerator, equality bridge,
shared Kani validator and source-inventory reader are byte-unchanged from
c9e82b9d through this review's fbe880bc. The earlier full 180-report,
657-goal, 2,613-leaf result retains its 29d92b04 identity. A new source review
or equal printed theories do not constitute a new solver run. Twenty
original-derived files/twenty-five goals remain explicitly unproved.
The existing metadata permission covers only bytes [512,65536). Root and
payload frames use separate loans; virtual zero padding is not a claim about
root contents. Fixed borrowed-image admission is useful but does not admit
built-in Vec/Wasm providers. Generic raw operations, pinned growth and fresh
growth zeroing remain named physical trust leaves. The new no-growth Vec result
does not discharge allocating-growth assumptions. Clean-page bookkeeping must
still be forgotten before arbitrary external payload writes.
Buddy release, slab release and retained regions were not merged in this
snapshot and are not qualified by this report. The owner reports a live Kani
representation discrepancy in a minimal actual link_slab client: typed
slab/typed heap passes, byte slab/typed hinted heap fails the selected-bin
effect, and byte slab/byte-owned heap passes. The owner also reports correct
native behavior under both production and Kani Rust compilers and 38,808 native
class-zero release cases. I did not execute or inspect those pending outputs.
Keep the discrepant cases outside admitted theorems until their cause and direction are known. In particular, require the opposite false “head unchanged” property to fail; a passing wrong property would be more serious than a conservative failed right property. A source-prefix/checked-branch/exact-tail approach still needs the same initialized owner, unchanged calls/effects, explicit branch premises and its own reachable controls. Native success alone does not qualify the verifier's memory representation.
Next obligations should connect existing contracts rather than merely grow counts: bind selected buddy metadata to one owned physical run; compose complete acquire/release and bin transitions; establish slab chain/cardinality/live-token invariants; and admit actual provider growth/relocation or a Wasm world resource. Stable consumers need one constructed lifetime-exclusive domain shared through the real Hylix/Minima composition. Successful resize must consume the old owner exactly once after preserving the copy prefix. No runtime proof checks, journals or additional persistent state are required by this review.
Review validation
All 53 focused pure Python tests passed across test_native_provider_growth,
test_stable_leases, test_wasm_authority, test_slab_allocation,
test_buddy_acquire, test_stable_io and test_allocation_facade. Additional
temporary synthetic probes established F1/F2. Test staging used temporary
directories removed on exit. These tests validate source/admission code, not
Rust execution or solver acceptance. Final combined-source qualification and
any repairs remain the integration owner's separate work.
Final source follow-up
The follow-up reviewed all ten merged workstreams and the later UNLINK and
facade refinements at factory d4166846613c7fc1623e1455ea62e583d029629e, then
the integrated host repairs at 572ffabe9ab07482c248019e7856aa4974a241d8.
Documentation-only integration through
b6246f888bbfd47902794997a5d064dea1cd2a20 retains those code identities. SDK
source remains clean at 409a7176096c06c2dd9b7e491e8dc630951e83b4.
The final audited host code is
b4c8df2b6d1b4e3cf0267574dd928359f82d945e, including the additional diagnostic
repairs below. Only this authored review was edited in the review worktree.
These later inspections do not change the initial snapshot or retrospectively
qualify its then-pending workstreams.
I found no additional concrete SDK algorithm defect, substituted executable body, or vacuous positive in the reviewed admitted fragments. The confirmed LINK false-property acceptance below is an explicit verifier-correspondence boundary, not a theorem admitted by these pipelines. Source inspection and pure host tests do not establish compiler/verifier soundness or independently reproduce the owners' solver qualifications.
Later proof and composition scopes
Buddy release. The checked release_live_count_proof links to the exact
two-statement production prefix. It observes the previous bin and decrements
the same positive counter, framing the rest of the owned header. The universal
merge and insertion helpers receive fixed before/after snapshots; their ghost
induction does not re-execute mutations for different cells. The coalescing
loop therefore exports conservation over all 256 cells of one transition.
release_nonfinal_client composes prefix and coalescing on the same genuine
Perm<PageHeader>, with incoming count greater than one. The owning count-two
and count-one clients make the nonfinal and zero-count observations reachable.
This client is explicitly not an erasure shadow of complete release_span.
The singleton-bin result is forwarded from the existing conditional shape
contract; it is not inferred from coverage alone. Header permission, free/pending
nonoverlap, summary/geometry and counter premises remain visible. Initial live
allocation authority, intervening production branches, global rebin/unlink and
physical page return remain open. Qualification recorded at
541b9d21aaf4d2f089bc3077c9b2fd0c03dd8425 concerns the 20-report allocator
and overlapping 25-report acquisition pipelines, not 45 distinct proofs. The
native numeric/bitmap bridges retain their named cross-verifier trust boundary.
Actual nonfinal slab release. The extractor pins the complete small-release
body and exact contiguous prefix and else tail. The fixture uses one initialized
byte-backed Slab and byte-backed Heap, executes the actual prefix, establishes
the nonfinal branch on that same state, and then executes the exact tail with
actual link_slab. It does not reconstruct the heap between calls or assume a
replacement link effect. Classes 0 and 15, both policies, real local neighbors,
payload bytes and other named heap/header coordinates remain the explicit
scope. The caller supplies valid local free-chain/list and liveness premises;
these are not an arbitrary heap or a constructed allocator history. The owner
records four harnesses/32 covers at
25d6b24b8f954cd6a6d426a550ec49b4b41c1597.
Conditional final dispatch. BoundaryHeap is a distinct model receiver
with the exact selected helpers and final tail. Its release_span is an
observation-only recorder, not actual SDK release. It captures the header,
neighbors, selected head and page bins at call entry. Assertions after return
consume those captured pre-call values only. They cannot export a post-release
frame, continued span liveness or physical transfer. The class-zero list cases
and class-76 one-slot witness use real local objects, but the four-harness/
14-cover model still needs an actual release contract and receiver/resource
connection before composition. Its frozen qualification identity is the same
25d6b24b above.
Retained regions. Staging includes the complete actual region module and
actual error type. The full-domain scalar extent theorem is distinct from
the byte clients' real 32-byte objects and empty cases. The sparse private
test authority grants only [0,8) and [16,24); actual range/callback checks
reject the intervening hole, and disjoint mutations preserve the live shared
hole view. Native callback escape and shared/overlapping-loan rejections use
the actual Memory contracts with exact source locations. They are compiler
controls, not a formal Rust lifetime theorem. The original seven-harness/
20-cover checkpoint retains identity
860d2392be2b717c5860accc02b844d1382e205b; physical authority for the real
runtime engines is not supplied by the sparse test owner.
Allocation facade refinement. The former inert ownership flags are removed.
The failed-growth negative now asserts zero against the callback count captured
after actual resize and its actual refusing provider call. Thus the control
tests a real effect, while panic callbacks retain the no-call obligations on
the fast/invalid paths. Alignment is explicitly a fixture premise; native
integer-address checks are sanity checks under that premise. The fixed Layouts,
pre-existing aligned page fixture and old-byte frames remain unchanged. The
six positives/two exact negatives retain their fresh owner qualification at
ed07c17b27f2d507b9cef411e70a6bee48ee83b6. This does not admit successful
resize movement or derive provider issue history from the fixture.
Confirmed LINK discrepancy and independent UNLINK controls
The six-case comparison now performs the opposite-property experiment requested in the initial report. With byte-backed Slab and typed HintedHeap, pinned Kani rejects the actual new-head property and accepts the false retained-old-head property. Typed/typed and byte/byte owner pairs have the expected opposite results. The owner records that both native compilers execute the correct properties and panic on every corresponding false property. This is stronger than a conservative rejection of a correct assertion. Root cause, compiler memory-model correspondence and general verifier soundness remain unresolved; no SDK defect follows from this diagnostic alone.
The comparison retains ordinary safety and reachability checks, requires its
exact six-case population and three designated failures, always reports
EXPERIMENTAL_UNQUALIFIED, and exports no producer ticket. Its results must
remain excluded from theorem counts and downstream imports. The native compiler
attribution was corrected in documentation commit 9fa33bdf: the enforced
Kani compiler is Rust 1.100.0-nightly (8925ea358 2026-08-20), not Rust 1.93.
This attribution correction changes neither the diagnostic outcome nor a tool
pin.
The UNLINK addition at 2d5fe4ad77a3d8194b87a48fa964a5d34e2f0445 supplies
nine true wrappers and nine independent false wrappers for actual unlink,
the exact partial-allocation fragment, and one complete ordinary allocation's
existing-partial branch. Their shared constructor observes one initialized
prestate and operation; it contains no successful-head assertion or assumption
that could make the opposite wrapper unreachable. The false wrappers assert
only the retained-head error after their own matching operation. Real owned
neighbors, local geometry, no-call provider callbacks and post-operation covers
keep these controls meaningful. All nine false results remain required by
default dispatch. This is operation-specific evidence for UNLINK in those
fixtures; it neither qualifies LINK nor establishes general byte/typed memory
equivalence. The original ten positives and these nine positives overlap their
producer scopes and cannot be promoted to whole-allocator correctness.
Host findings and follow-up diagnostic audit
F1 is source-repaired in the integrated receipt gates. The standard-library-only
run_receipt.Receipt retains exact original metadata bytes and captured clean
factory/SDK identities, rejects receipt/staging symlinks including intermediate
directories, and rechecks before consumption. Every migrated runner captures
the helper among its source inputs. The earlier source, tool, inventory and
staging checks remain active. R1 source db1d4677 also makes clean factory
capture/recheck mandatory for the five affected allocator/slab runners and
seals the buddy metadata. These checks are not an adversarial concurrent
filesystem theorem.
The initial native-semantic and Kani F2 witnesses are source-repaired by the
integrated 7fb7c8c05bc062ba7579828473d7b14e9cb5a1cb diagnostic gates. Known
fatal compiler/backend/crash lines and direct or Cargo-wrapped JSON compiler
errors are rejected, with ANSI normalization. Expected symbolic property
reports and ordinary warnings remain admitted. Native semantic controls retain
exact exit one, designated main goal and the two root errors alongside complete
reports and the single open leaf.
The follow-up found the same medium-severity admission defect in older compile
controls. At 572ffabe, both
verification/tools/provider_resource.py:169 (validate_compile_control) and
verification/tools/creusot_frontend.py:109 (require_rejection) accepted this
complete expected failure plus an independent panic:
error: failed #[erasure] check for native::proof::<impl native::VecBacking<'_>>::pages_proof
mismatched statement
error: could not compile `page-pool-creusot` due to 1 previous error
thread 'rustc' panicked at backend.rs:1
Appending LLVM ERROR: unrelated crash was also accepted. These were pure
admission witnesses, not observed failures of a recorded compiler control.
Source 93233e11d11e4daf4b65e64f090a34c5542cc177 adds a shared fatal screen
after the caller has checked its exact allowed ordinary errors, and requires
integer exit one for the repaired erasure/frontend controls. Its source is
already included in each affected capture; no proof contract or SDK body changes.
A complete remaining-caller audit also found the logical variant: the actual
paired count-model fixture, consumed at verification/tools/creusot.py:359,
still admitted its complete two-report/three-goal population with a panic
appended to the expected goal/root errors. The allocator/acquisition logical
helper at verification/tools/allocator_refinement.py:143 similarly admitted
an appended LLVM error.
Core semantic/model, resource root/count and shared index logical controls used
the same incomplete diagnostic pattern. These findings are the same F2
admission issue, not additional counterexamples to the logical statements.
Source c0fe75d1be7c8e85155512d9fe0deceb1659d14f closes those logical paths
with creusot.require_logical_rejection: integer exit one, exactly the caller's
main goal, exactly the two expected root errors, then the fatal screen. The
native semantic and frontend wrong-tag consumers share that gate. Closure/index
compile controls now require exit one. The target-configuration compiler
control preserves its exact expected evaluation error and one-error summary
before applying the already-captured Kani diagnostic screen. Integration
b4c8df2b delegates the allocator helper to the same logical gate, covering its
acquisition consumer too. The source-capture inventories already include the
changed shared modules. Complete report, imported-goal and single-open-leaf
checks are preserved.
The repair owner reports seven fresh compiler-only controls and 141 focused
tests at 93233e11, with fourteen actual compiler diagnostic contexts accepted
and 308 appended-fatal variants rejected. At c0fe75d1, it reports 150 focused
tests and classifier-only reconsumption of five retained actual native/resource
logical logs, accepting all five and rejecting 55 fatal variants. Reconsuming
diagnostics is not a fresh solver run or permission to relabel the older sealed
receipts. The final source audit finds no remaining concrete defect in these
audited negative-control consumers. F1 and the initial/follow-up F2 witnesses
are source-repaired; the compiler/verifier and host trust boundaries remain.
Follow-up validation and remaining obligations
The reviewer ran 59 focused pure Python tests for the later allocator,
acquisition, slab, representation, retained-region, facade and clean-runner
changes, and 91 focused host-gate tests at 572ffabe; both groups passed.
They overlap existing suites and are not counts of distinct proof obligations.
The first host-test attempt lacked the empty ignored verification/tmp
directory in this source-only worktree. After creating only that directory,
all 91 tests passed; it was removed after temporary fixtures were cleaned up.
No compiler, prover, tool installation or native binary ran in this review.
At final source b4c8df2b, 49 selected pure tests pass across compile
diagnostics, pure model-control fixtures, index, target configuration, allocator
and acquisition. An initial 56-test selection also included seven closure/model
fixtures that require the pinned installation for binary/configuration checks;
those refused the intentionally source-only environment before any compiler or
prover invocation. They were excluded from the 49-test pure selection and are
not claimed as independent passes. No installation was created to run them.
Final documentation checks pass 1,540 local links in 238 Markdown files;
research indexes and the report diff's whitespace checks pass. The temporary
directory is removed, and the report is the only authored change.
The integration owner's frozen full pipeline is separately recorded at
f4c23a0af699f1dd6878d9fbcfcce6a0cc596cb9: 180 reports, 657 goals and
2,615 closed leaves, all eleven core and seven resource controls, and the
recorded native/Kani component matrices. The owner also records identical raw
hashes for all 32 staged inputs and 200 complete printed Why3 theories versus
its baseline. Later classifier replay and the owner's 426 combined tests at
572ffabe do not relabel those sealed f4 receipts as fresh results under a
new HEAD. The historical 29d92b04 result remains 2,613 leaves. Twenty
original-derived files/twenty-five goals are still explicitly unproved.
The next substantive obligations remain physical and compositional: connect the selected buddy header to one owned run and complete the global-bin/page return paths; construct slab chain/cardinality/live-owner invariants across complete histories; admit successful provider growth/relocation or a Wasm world resource; and compose real stable-memory domains and successful resize ownership transfer. Finite native objects, native64 arithmetic, scalar Wasm models and compiler controls retain their distinct scopes. No runtime proof checks, rollback journals or persistent bookkeeping are called for by this review.