Fifth-batch foundation review: Astra
Reviewer: Astra, maximum reasoning effort. Reviewed factory
c018e9da12b7da3fd40e4851c5fb9c62e6ca8c40, SDK
409a7176096c06c2dd9b7e491e8dc630951e83b4. This independent read-only source
review is not solver evidence. Findings and line numbers below refer to that
frozen source; file links navigate current files. Subsequent owner reproductions,
repairs and fresh qualifications are recorded in the parallel report.
The original authored review follows. The independent repair addenda
preserve subsequent source reviews and their exact boundaries.
Reviewed factory c018e9da12b7da3fd40e4851c5fb9c62e6ca8c40 and SDK 409a7176096c06c2dd9b7e491e8dc630951e83b4 in astra-final5. This was read-only source review: no edits, tests, builds, solver runs or nested agents. I do not certify the pending final replay.
Three findings need resolution before accepting the broader qualification:
High severity; high confidence in the source analysis: builtin indexed reads capture the array value too early. The index patch, line 52 normalizes the base as a value before evaluating the index. Rust evaluates the base as a place and reads its element after index effects.
These safe, in-bounds bodies differ:
a[{ a[0] = 1; 0 }]let saved = a; saved[{ a[0] = 1; 0 }]With initial
[99], the integration owner independently confirmed results1and99using the pinned native compiler. I did not run that control. The upstream normalizer emits a read for mutableaand substitutes immutablesaved, so the patch appears to normalize both bodies identically. End-to-end strict-erasure acceptance remains pending owner reproduction.This threatens the source-linkage boundary even without unsafe code or Perm aliases. The smallest correct repair is to retain place evaluation and perform the element read after the index; conservatively rejecting effectful indexed reads is an interim alternative. Qualification needs this strict-erasure negative, a reachable logical consumer, and retained pure/nested/overloaded-index controls. Current allocator consumers use scalar indices, so this does not demonstrate an allocator malfunction.
Medium severity; high confidence in the source analysis: nested indexed places omit intermediate bounds-check ordering. Place normalization, lines 90–94 accumulates projections without an operation marking each bounds check. For
words: [[u64; 1]; 1], compare:words[row][{ *calls += 1; 0 }] = 7;with computing that column expression before the assignment. At
row == 1, the integration owner’s native control observedcalls == 0versuscalls == 1. The normalizer appears to lose this distinction; strict-erasure acceptance is still pending.Preserve each indexing check before subsequent projection effects, or reject these effectful nested forms. Add a strict negative tied to the native observation. This has lower immediate proof impact because current checked consumers establish valid indices; it nevertheless limits any claim of general erasure equivalence.
Medium severity; confirmed source-level acceptance gap: equality/count producers lack complete metadata and compiled-input binding. equality_bridge.py:230 reads unsealed
inputs.json, accepts its source map by subset comparison—so{}passes—and checks only that stagedpage_pool.rsstarts with production bytes. It does not authenticate the generated proof tail ormain.rs. The existing test fixture:112 actually supplies production-only staging and an empty source map.Separately, kani.py:333 creates the compiled
main.rs, but post-run validation:396 does not recheck it. Thus complete source provenance is not established even when report/log identities are correct. This does not show that the fresh proofs were falsified.Reconstruct the exact expected metadata/source inventory and both compiled files; check them before and after execution, seal their identities, and revalidate at consumption. global_bins.py:121 already provides the stronger pattern. Apply it consistently across common-runner consumers. Required negatives include empty/missing/extra source maps, changed metadata, changed proof tails, and changed
main.rs, followed by fresh producer/consumer qualification.
The immediate-Perm question did not yield a concrete current-consumer defect. The patch:29 restricts the pointer to an immutable binding and preserves ordinary permission-argument effects, but does not itself analyze aliasing effects in subsequent indices. The current set-free accesses:97 and coalescing read:68 use scalar indices and exclusive whole-header permissions. A checked helper needing that same permission while the mutable reference remains live should encounter the ghost borrow discipline. The effectful fixture:94 has requires(false) and changes a separate cursor; it does not qualify pointee aliasing. Add an alias-helper rejection/control or explicitly narrow the published scope. Treat this as a qualification frontier, not an established soundness bug.
The remaining foundation claims appear appropriately conditional:
- Physical authority: resource_admission.rs:81 starts from an actual exclusive image, splits root/metadata/payload permissions, constructs the actual payload slice, and later rejoins the original loan. Root preservation is supported by its separate resource; virtual zero padding in the word model is not mistaken for real root contents. Generic raw-memory leaves and pinned growth remain explicit TCB.
- Provider frontier: the native witness is fixed and quiescent; its growth body:28 never expands. It does not admit relocating Vec growth, empty provisioning or arbitrary live payload loans. SDK WasmBacking:34 (source unavailable) is a unit value observing external memory. Receiver-only
resource_pagescannot express its changing world; a unique VM resource or ghost carrier tied to actual observations is necessary. - Allocator frontier: the complete coalescing/free-insertion fragment is materially stronger than a single-step model, but its contract:17 still takes per-cell partition premises. Whole acquire/release, unique live-span capabilities, page generations, provider return, and bin search completeness remain unproved. Global-bin histories remain conditional on actual heap admission. Slab coverage remains local links and restricted ordinary-Heap slot states, not arbitrary chains or complete release.
- Stable/target frontier: stable scalar bounds cover their full admitted domains, while the byte proof uses the explicit 16-byte/8-byte primitive model. It does not establish actual stable authority, arbitrary-length I/O, VM zero-growth or Wasm provenance. Target/config checks distinguish real builds and targeted execution from native scalar models; I found no additional material overclaim there.
- Other acceptance gates: I found no additional concrete omission in the independent Creusot goal inventory, imported-goal checks, registered Kani obligation inventory, or reviewed Verus admission. Native-to-deductive correspondence remains explicit cross-verifier trust, not shared-kernel theorem exchange.
Prioritize the next bottom-up split as follows: first repair and requalify source-linkage/provenance gates; then construct actual provider/world authority and growth/loan transport; then compose whole buddy acquire/release with live identities and complete bin representation; then complete slab ownership and release; then extend stable authority and byte-range proofs. A clean replay alone cannot discharge the identified frontend semantics and admission gaps.