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_payload cannot touch page zero because config_well_formed forces reserved_pages ≥ 1 (validation.rs:20), and its end bound follows from grow_pages. The clean flags are preconditions of the trusted bridges, so a consumer that forgets to call handoff_payload before application writes gets an unprovable physical_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 with split_at_mut (resource_admission.rs:81-95); the payload view length is (pages-1)·PB and clean_payload maps page p to 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). The overlap/duplicate compile-fail controls and receiver_count_is_required cover duplication and count binding.
  • Prophecy frames. end_control, backing_end and ^(^self).payload == ^self.payload are carried through every mutator and loop invariant, so the final owner rejoin is real, not a ghost sequence.
  • Target width. With POOL_MAX_PAGES = 65279 on wasm32 (profile.rs:69-71), every claim byte product and Run::address fits u32; 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.grow call in the SDK crates is ensure_memory (wasm.rs:398); the raw startup guard only reads memory.size (cdk-rsx-wasm/src/lib.rs:703-761).

Findings

  1. 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 Index by evaluating lhs to a value, then the index (creusot-erasure-index.patch:49-55). For a mutable local base this emits read(a) first (erasure.rs:799-802), while rustc's lower_index_expression evaluates the index into a temp and reads the base place afterwards. Consequence: the checker equates a[{ a[0] = 5; 0 }] with let t = a; t[{ a[0] = 5; 0 }], because the immutable let aliases 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 rvalue Index through a_normal_form_place plus AnfOp::read, matching the place arm at creusot-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.

  2. 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/PermAsMut directly under * when the pointer operand is a VarRef bound as VarValue::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 the as_mut argument, so a second use fails borrow checking, and two owned permissions for one ward are excluded by disjoint_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 at perm-place-frontend.md should say so. Cheap control: a shadow whose index helper takes ghost!(&mut **own) must fail with E0499 at the designated line, in the style of resource_admission.py:35-50.

  3. Acceptance, low, high confidence: two new model controls are not on any automated path. payload-bound-model and dirty-handoff exist only as explicit --control runs (creusot.py:40-45); the controls action runs the four erasure controls plus semantic (creusot.py:459-465), the bridge runs four model controls (equality_bridge.py:269-273), and resource_admission.py all runs its five. The note says they passed at f6808c90 and need replay (initialization-handoff.md:122-127). Fix: add both to the controls loop and a unit test asserting every MODEL_CONTROLS key is covered. Qualification: run them on the frozen source as part of the final replay.

  4. 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 .coma under the crate root and refuse any goal outside the proof root.

  5. Trust-boundary precision, low: the native witness is proved against the generic trusted laws, and the shadows qualify those laws only by review. initialize_proof and claim_proof call observed_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, since fixed_growth never grows and the platform Kani suite checks counts only; and a unit WasmBacking cannot be admitted through ResourceBacking at all, because physical_bound ties page_count to 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.

  6. Documentation precision, low: the per-cell coalescing contract cannot be instantiated for all cells by one call. release_metadata_proof takes cell: Ghost<usize> (coalesce.rs:37-38); the theorem is universally quantified, but a program caller gets one instance per call, so the comment at coalesce.rs:97-99 and allocator-refinement.md:102-104 overstate what a release_span shadow 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.

  7. Hygiene, low, medium confidence. validate_binaries admits a local why3.conf with timelimit/memlimit keys and does not record it (creusot.py:135-139). The staged why3find.json likely governs budgets, but the override should be hashed into inputs.json or 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:

  1. Finding 3 and 4 gate repairs, then the frozen-source replay including both model controls.
  2. 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.
  3. Wasm world token with the two single-grower gates and a memory.size bridge at ensure_pool.
  4. Buddy: requantify finding 6, then a release_span shadow composing the coalescing fragment, counter prefix and bins with a PageSource leaf; keep the Verus history model separate until a packed-word embedding lemma is checked.
  5. Finding 1 frontend repair and fixtures, scheduled with the next immutable pin build.
  6. Slab free-chain generalization, stable lease and the wasm32 validator parity decision remain as previously documented.