Fifth-batch foundation repair reviews: Astra

An independent Astra reviewer used maximum reasoning effort for these read-only source reviews. The frontend author and this reviewer were separate agents. SDK 409a7176096c06c2dd9b7e491e8dc630951e83b4 stayed unchanged. The original whole-layer review remains historical. These addenda are source review, not compiler execution or solver evidence. Owner qualification and unresolved proof work are recorded in the parallel report.

The owner reproduced the indexed-read, nested-bounds and permission-callee false acceptances before repairing them. The repaired immutable frontend is 6jsb7a72jzazhdgzpil4sh0w75lk8a70; the production compiler and prover binaries retain their prior pins. Fresh frontend qualification is recorded separately in indexing and permission-place.

The later reviews close the initial configuration-directory and indirect-Clone admission findings through the shared admitted environment, complete staged identity checks and exact twelve-helper current-source manifest. They do not prove a general trait call graph. Twenty original-derived files with twenty-five goals remain explicitly unproved and isolated from the admitted consumers. No generated trait goal is counted as closed by these reviews.

The final native-witness review supports source 2e40898c; fresh owner-run Index/Perm qualification and all three native witnesses pass at that identity. It explicitly retains initial compiler provisioning and the compiler's wider runtime closure as trust. Dedicated slice/temporary-array experimental coverage, generic raw-alias helper correctness, actual Wasm/world authority and whole allocator ownership remain outside this review's qualification.

The authored reports below retain their original wording and source identities.

Index and permission repair

Source review supports the index repairs and the subsequent permission repair at d476219c0098a7113517f3c3585378ca18bd1ddb. Fresh binary and regression qualification remains necessary.

  • High severity, confirmed and repaired: the earlier permission rewrite discarded callee evaluation. permission_deref_args recognized FnDef identity but returned only its arguments; both immediate-dereference paths skipped fun. The concrete mutation (*({ *calls += 1; Perm::as_ref })(pointer, { *calls += 1; own })).words[0] executes two increments but normalized like the existing one-increment target. The integration owner confirmed acceptance on dcjp at faa4000b. This was an actual frontend correspondence defect, independent of the ownership trust boundary.

  • Permission fix: d476219c returns the callee alongside the arguments and normalizes it exactly once, before pointer and permission, in both expression and place paths. It preserves the restrictions to the actual permission intrinsics, immediate dereference, and immutable VarRef pointer operands. Computed/mutable pointers and escaping/let-bound references retain their previous paths. No remaining concrete counterexample found in this narrow repair.

  • Index fixes: complete-place normalization followed by Read preserves the mutable-array read timing. Recursive typed IndexCheck statements preserve each bounds check before later index effects. Exact statement/tag comparison prevents the previously accepted hoists; projection comparison uses mapped values. Primitive assignments retain RHS-first evaluation, and overloaded indexing retains ordinary call identity.

  • Composition: I composed all eight pinned patches entirely in memory against upstream 65349025c67e69fcd7479f1f420fa5904f69bc27. Every hunk matched unique exact context, and every patch hash matched the d476219c pin. No files were written.

  • Reviewed controls at faa4000b: the eleven logical functions, seventeen erasure negatives, ten translation-only functions, designated wrong-result logical negative, and native witnesses address the original index defects appropriately. Documentation explicitly supersedes the old green checkpoints and distinguishes native execution from Creusot qualification.

The final permission controls should cover both rewrite paths, positive effectful callees, extra/omitted callee effects, and callee-before-permission order. An assignment trace covering RHS → callee → permission → index would protect composition. Dedicated slice and temporary-array coverage remains absent from the reviewed fixtures; do not describe those as experimentally qualified.

This was read-only source review. Compiler/verifier confirmations above were supplied by the integration owner. The frozen checkout and SDK remained clean.

Admission and provenance repair

0729dea0 closes the reported goal-enumeration and control-dispatch gaps, but its configuration and derived-helper claims need the two follow-up repairs discussed below. This is source review, not renewed proof qualification.

  • Derived-helper admission remains incomplete in 0729dea0. Besides the known dynamic Debug constructors, the name-prefix filter misses cloned_Result_ref_Run_…, cloned_Run, and from_elem_Run. These standard operations invoke Clone indirectly; the pinned standard contracts include corresponding result guarantees. I found no evidence that current consumers use these helpers, and no false current theorem. The gate nevertheless does not enforce its broad stated prohibition.

    The proposed exact twelve-helper allowlist is appropriate for the current translation. Its members perform structural branching, moves, fallback selection, or the identity From<PoolError> conversion. They require no local Clone/PartialEq/Debug law. Keep exact names, the dynamic-constructor rejection, and the documented pinned-source scope: upstream helper names encode only selected type arguments, so this is a finite reviewed boundary, not a general call-graph analysis. Actual translation controls should reject cloned/from_elem while accepting the reviewed structural helpers.

  • Configuration admission checks the wrong directory for two callers. effective_why3_configuration() always examines INSTALL/config/creusot/why3.conf, while frontend and closure runners override XDG_CONFIG_HOME with their cache directories. Their actual user-config files therefore escape this check. The closure runner also lacks the post-run binary recheck present in the frontend runner. Parameterize admission using the execution environment or use the admitted configuration directory consistently.

    This establishes an identity-checking gap, not demonstrated solver-budget drift: upstream proof execution explicitly supplies the fixed WHY3CONFIG; its IDE path separately consumes the user configuration.

The remaining reviewed changes support their scoped claims:

  • Whole-crate enumeration prints every Coma file and requires the exact twenty excluded files and twenty-five goal identities. Unexpected outside files—including goal-free files—and changed classifications reject. Those obligations remain explicitly unproved.
  • Checked report admission compares complete independently enumerated goal sets, including imported obligations. The whole translated crate and supplied imports are content-rechecked.
  • Both normal creusot.py run and controls dispatch all registered model controls. Individual controls remain available.
  • 3b4f9b04 retains producer-generated metadata/staging hashes, independently reconstructs both compiled files, requires complete suite-specific source maps and identities, and revalidates reports plus diagnostics. I found no additional concrete provenance defect in that repair.

The reviewed checkout remained clean at dd1a4c71; all later source was inspected through git show. No compiler, verifier, installer, or file mutation was performed.

Fixture population repair

Source review of 145e04876f31fe6110e86ad3040b2cec494ea080 is complete. The fixture-population finding is closed at source level; I found no new material issue in this delta.

  • creusot_frontend.py:58 validates the declared module names, exact marker count and adjacency, and selected role. It rejects duplicate declarations, pre-enabled markers, and unknown roles. Logical staging returns the authored source unchanged; dedicated staging changes exactly one module attribute.
  • The three Index, five permission, and one for-loop translation modules are disabled during logical qualification. Every Index17/Perm25 erasure rejection, the permission E0499 control, and both for-loop translation mutations still enable the module containing their intended checked function.
  • Role selection occurs after mutation construction and before staging and hashing. Shared targets, function bodies, contracts, erasure attributes, compiler flags, patches, and binary pins are unchanged.
  • Whole-crate inventory remains strict. The generated Clone_Tag producer still requires proof. Translation fixtures have not become trusted functions or unproved inventory exceptions.

This preserves the earlier source repairs: indexed reads occur after index effects; nested bounds checks precede later index effects; assignment ordering remains intact; immediate permission dereferences evaluate the callee exactly once before pointer and permission arguments. The previously confirmed permission callee-effect defect is therefore closed by the reviewed repair.

The admission boundary remains deliberately narrow: the twelve allowed helper names describe the current pinned translation, not a generic callgraph theorem. The original derived implementations’ twenty files and twenty-five goals remain explicitly unproved. Qualified equality wrappers retain their separately declared trust assumptions.

I inspected commits read-only and executed no compiler, verifier, or tests. My checkout remains clean at dd1a4c71; SDK remains clean at 409a7176. This report supports the source changes only; acceptance still requires the fresh qualification results being collected by root.

Automated native witnesses

N1 is closed at source level in 2e40898c. I found no new concrete soundness or admission defect.

  • Index requires its native witness; permission qualification requires both callee-order and pointer-capture witnesses. Each invocation compiles and executes them before Creusot cases.
  • Admission requires successful compilation/execution, exact stdout sentinels, and unchanged source, checkout, compiler, staged executable, and four output-stream identities. The native record is revalidated after translation and proof. Caught-panic stderr is retained appropriately.
  • All three sentinels follow the intended assertions. These establish finite native observations, not Perm ownership or compiler correctness.
  • a9fc1fa8 correctly anchors the permission location check after its E0499 diagnostic. 6020b7b6 requires the exact rejected dependency set at the designated witness; it does not expand the helper allowlist.

The bootstrap boundary remains important: the existing resolver—including EQUALITY_PRODUCTION_RUSTC—selects an initially trusted compiler. Its exact version is checked and its initial path/hash are recorded for drift detection; neither an independently approved compiler hash nor the sysroot/linker/library closure is authenticated. The documentation’s recording-and-rechecking claims fit that scope.

Core proof admission, frontend patches, pins, and proof sources remain unchanged from 6020b7b6. I inspected source and synthetic-test coverage only; I ran no compiler, verifier, or tests. Both frozen checkouts remain clean. Fresh execution results and final qualification acceptance remain root’s separate evidence.

Final initializer and scope delta

The independent maximum-effort reviewer also inspected the final core source 29d92b044390500f385f6a8516052210d1f7217e. This addendum covers only the frozen page snapshot, checked sequence-assembly helper and explicit scope dispatcher; it retains the earlier whole-layer and repair reviews. The focused owner proof passes seven reports/43 goals/412 leaves at this source. The complete core and controls are separate acceptance work.

No concrete issue found in 29d92b044390500f385f6a8516052210d1f7217e versus 6020b7b6, reviewing only the three requested commits.

  • header_format_written is a checked ghost lemma, with no new assumption or trusted attribute. Its ten sequence updates match the header predicate; indices 64, 65, and 72–79 are distinct and within the required 8192-word sequence.
  • The helper does not depend on initialize_proof. The caller still must prove the accumulated writes match physical memory and that the frozen page count remains unchanged.
  • Focused initializer admission requires exactly seven namespace reports, including both the new helper and actual initialize_proof. Default qualification retains the whole proof inventory and all eleven controls.
  • Runtime writes, existing contracts, solver budgets, tool pins, trust declarations, and original-goal classification are unchanged.

Reviewed factory 29d92b04, SDK 409a7176, and upstream 65349025; inspected checkouts were clean. No edits, tests, compiler, or prover execution performed. This is a source-review conclusion; the owner’s pending proof run remains separate evidence.

Final open-only control support at a7bcc7d6

The final host-only control repair is source a7bcc7d609ad4cdc908f9c513850bb041027dd04, with unchanged SDK and tool pins. Both actual paired controls qualify there: each has exactly two inventoried reports/two goals, one closed existing ceiling-producer leaf and one designated open negative-anchor leaf. No global validator or proof source was weakened. The owner also freshly translated the default proof and required all 32 staged hashes and complete printed goal sets to match the 29d92b04 positive baseline. This review is source-only and does not supply those execution results.

No concrete issue found in the control-only delta a7bcc7d609ad4cdc908f9c513850bb041027dd04 versus c07e73de.

  • Only count/equality controls gain the existing ceiling producer, selected in the same prove invocation. Its unchanged body and contract use scalar arithmetic, independent of either mutated model or false anchor.
  • Admission requires exactly two reports with complete inventoried goal sets. Only the designated negative main may have one open leaf; every support/imported goal must close, with positive closed-leaf count.
  • Exact exit-code and diagnostic checks reject unrelated failures. No synthetic positive result, new assumption, proof-source change, or global-validator relaxation was introduced.
  • Default positive qualification, other controls, budgets, trust boundaries, and existing source/staging/tool identity checks remain unchanged.

Reviewed factory a7bcc7d6 and SDK 409a7176, both clean at inspection. No edits, tests, compiler, or prover execution performed. Actual qualification remains the owner’s separate evidence.