Fifth-batch foundation review: Claude Fable 5.1
Reviewer: Claude Fable 5.1, maximum effort; actual CLI modelUsage key claude-fable-5-1. 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 reviews
preserve the renewed whole-layer review and final source addendum.
Read-only audit of factory c018e9da12b7da3fd40e4851c5fb9c62e6ca8c40 with SDK 409a7176096c06c2dd9b7e491e8dc630951e83b4 in worktree playground/verification-20261105-05/claude-final5, plus the pinned upstream Creusot source. I ran no solver, test, install or agent, and wrote nothing. This is source review, not evidence for the pending replay. No plan file was created because the deliverable is this review.
Verdict and scope
I found no concrete implementation counterexample in the lowest layer and no proof, contract or acceptance unsoundness in the fifth-batch producers. The claim/initialization/resource contracts compose as stated, the trusted-leaf inventory matches the audited list, and the scope notes stay at or below what the proofs say. What I did find is a small number of precision gaps, one of them in the new erasure frontend, listed below with fixes.
Paths I checked by hand and consider sound as written:
- Claim handoff. The zero-request event, the Store clean flags and the byte postcondition agree with the production branch at
page_pool.rs:342-348: clear[p·PB, min(end,committed)·PB), growth supplies the rest.zero_payloadcannot touch page zero becauseconfig_well_formedforcesreserved_pages ≥ 1(validation.rs:20), and its end bound follows fromgrow_pages. The clean flags are preconditions of the trusted bridges, so a consumer that forgets to callhandoff_payloadbefore application writes gets an unprovablephysical_bound, not a false theorem. That is the right failure mode. - Resource origin and nonduplication. Authority starts at
Perm::from_mut(image)and is split withsplit_at_mut(resource_admission.rs:81-95); the payload view length is(pages-1)·PBandclean_payloadmaps pagepto bytes[(p-1)·PB, p·PB)consistently with the zero law (provider.rs:104-108,provider.rs:349-355). The shared root loan stays live across initialize, claim and install and is checked unchanged (resource_admission.rs:116-151). Theoverlap/duplicatecompile-fail controls andreceiver_count_is_requiredcover duplication and count binding. - Prophecy frames.
end_control,backing_endand^(^self).payload == ^self.payloadare carried through every mutator and loop invariant, so the final owner rejoin is real, not a ghost sequence. - Target width. With
POOL_MAX_PAGES = 65279on wasm32 (profile.rs:69-71), everyclaimbyte product andRun::addressfitsu32; the platform harness asserts this (positive.rs:74-76). The high-word header acceptance divergence is real, benign and correctly labelled. - Single Wasm grower. The only
memory.growcall in the SDK crates isensure_memory(wasm.rs:398); the raw startup guard only readsmemory.size(cdk-rsx-wasm/src/lib.rs:703-761).
Findings
Frontend, low severity, medium-high confidence: the index patch's rvalue arm snapshots the base before the index operand; rustc defers the base read. The patch normalizes an rvalue
Indexby evaluatinglhsto a value, then the index (creusot-erasure-index.patch:49-55). For a mutable local base this emitsread(a)first (erasure.rs:799-802), while rustc'slower_index_expressionevaluates the index into a temp and reads the base place afterwards. Consequence: the checker equatesa[{ a[0] = 5; 0 }]withlet t = a; t[{ a[0] = 5; 0 }], because the immutableletaliases to the same read value (erasure.rs:1220-1228). Those two programs return different values. No current consumer is affected: the buddy shadows index with pure expressions under a Perm (buddy.rs:101-103,coalesce.rs:68), and the assignment-order fixtures cover RHS and receiver order but not an index that mutates the base. Trust boundary: verifier frontend. Fix: route rvalueIndexthrougha_normal_form_placeplusAnfOp::read, matching the place arm atcreusot-erasure-index.patch:89-95, so a mutable-variable base stays a deferred place. Add a fixture pair: identical snapshot forms accepted, snapshot-versus-deferred rejected. Qualification: new immutable pin, rerun index, perm-place, frontend and closure suites, then every consumer.Perm-place question, informational: the restriction is adequate for checked consumers; state the trusted-helper caveat and add one control. The patch only reduces
PermAsRef/PermAsMutdirectly under*when the pointer operand is aVarRefbound asVarValue::Value, meaning an immutable binding or parameter (creusot-erasure-perm-place.patch:29-45,erasure.rs:686-689,erasure.rs:1274-1282). The executed artifact is the source, so introducing the reference changes nothing at runtime; it only changes the verified model, where the reference is exclusive for the statement. In checked code an index, RHS or permission expression cannot write the pointee: the only permission for that ward is already reborrowed into theas_mutargument, so a second use fails borrow checking, and two owned permissions for one ward are excluded bydisjoint_lemma(perm.rs:149-155). The remaining hole is a#[trusted]helper that writes through a raw alias from one of those positions; that is ordinary TCB, but the published scope atperm-place-frontend.mdshould say so. Cheap control: a shadow whose index helper takesghost!(&mut **own)must fail with E0499 at the designated line, in the style ofresource_admission.py:35-50.Acceptance, low, high confidence: two new model controls are not on any automated path.
payload-bound-modelanddirty-handoffexist only as explicit--controlruns (creusot.py:40-45); thecontrolsaction runs the four erasure controls plussemantic(creusot.py:459-465), the bridge runs four model controls (equality_bridge.py:269-273), andresource_admission.py allruns its five. The note says they passed atf6808c90and need replay (initialization-handoff.md:122-127). Fix: add both to thecontrolsloop and a unit test asserting everyMODEL_CONTROLSkey is covered. Qualification: run them on the frozen source as part of the final replay.Acceptance, low, high confidence: proof scope and goal enumeration stop at
page_pool/proof. Translation enumerates and proves only that subtree (creusot.py:345-349,creusot.py:380-385). Any non-trusted item outside it would be neither enumerated nor proved. Today none exists: staging marks every production function and constant trusted (creusot.py:270-273) and the erasure-target modules are trusted. Fix: after translation, print the theory of every.comaunder the crate root and refuse any goal outside the proof root.Trust-boundary precision, low: the native witness is proved against the generic trusted laws, and the shadows qualify those laws only by review.
initialize_proofandclaim_proofcallobserved_pages,grow_pages,zero_payload(provider.rs:228-360), not the checked BorrowedBacking shadows (resource_admission.rs:17-35,borrowed_zero.rs:6-19). The notes say this plainly (page-authority.md:93-95). Two consequences worth recording: the fresh-growth zero clause (provider.rs:267-273) has no concrete instance anywhere, sincefixed_growthnever grows and the platform Kani suite checks counts only; and a unitWasmBackingcannot be admitted throughResourceBackingat all, becausephysical_boundtiespage_countto a pure function of the receiver and a successful growth would make the trusted postcondition contradictory, which is unsound rather than merely unproved. Smallest checked step: one#[check(ghost)]lemma per primitive proving that the shadow's ensures imply the law's conclusions for this receiver. That turns "qualified by review" into a proved statement without touching the generic leaves.Documentation precision, low: the per-cell coalescing contract cannot be instantiated for all cells by one call.
release_metadata_prooftakescell: Ghost<usize>(coalesce.rs:37-38); the theorem is universally quantified, but a program caller gets one instance per call, so the comment atcoalesce.rs:97-99andallocator-refinement.md:102-104overstate what arelease_spanshadow could consume. The Kani harness is the quantified form. Fix: quantify the per-cell conservation inside requires/ensures when composing; the existing proof is the right lemma.Hygiene, low, medium confidence.
validate_binariesadmits a localwhy3.confwithtimelimit/memlimitkeys and does not record it (creusot.py:135-139). The stagedwhy3find.jsonlikely governs budgets, but the override should be hashed intoinputs.jsonor forbidden.
Claims I checked for overreach and found accurate: README and page-authority counts are labelled as component results pending merged replay; resources.md:5-13 and parallel.md:550-559 separate the 6f45aa71 claim result from the union; the wasm32 table at targets-config.md:60-66 calls the difference acceptance, not safety. No note promotes a bounded or model result into a whole-allocator theorem.
Frontier and next split
WasmBacking limit. The notes are right, and stronger than stated: a receiver-only resource_pages for a unit type is not just insufficient, it would make the trusted growth law unsatisfiable. The minimal interface that avoids a constructor by fiat is to make PhysicalState.pages the sole carrier for Wasm and bind observed_pages to memory.size under an exclusivity premise that tools discharge rather than assume: a source gate that memory_grow appears only in ensure_memory, and an artifact gate in the rewriter, which already counts MemoryGrow operators (rewrite.rs:160-172), requiring exactly one in the shipped module. Payload needs a separate ghost sequence with per-run permissions, because RuntimeAllocator::alloc can run inside a Store byte loan and claim free pages while that loan is live. The production entry already satisfies the exposed-page premise, since ensure_memory(INITIAL_MEMORY) precedes Pool::initialize (wasm.rs:107-114); native empty provisioning with relocation stays outside the pinned law.
Prioritized bottom-up split:
- Finding 3 and 4 gate repairs, then the frozen-source replay including both model controls.
- Finding 5 lemmas for BorrowedBacking, then a native witness with a separate live mutable payload loan over a Store run across a Runtime claim and release.
- Wasm world token with the two single-grower gates and a
memory.sizebridge atensure_pool. - Buddy: requantify finding 6, then a
release_spanshadow composing the coalescing fragment, counter prefix and bins with aPageSourceleaf; keep the Verus history model separate until a packed-word embedding lemma is checked. - Finding 1 frontend repair and fixtures, scheduled with the next immutable pin build.
- Slab free-chain generalization, stable lease and the wasm32 validator parity decision remain as previously documented.