report.md
Implemented a dedicated completion-facing reclamation operation. It returns ReclaimProgress { work_units, pending } after the maintenance scope finalizes, so a deferred child generation is reflected in the result. The operation has no hidden eight-turn prepass. Ordinary business updates retain their existing automatic maintenance.
The public interfaces are Store::reclaim(&mut self, owner: OwnerId, budget: usize) -> Result<ReclaimProgress>, Actor::reclaim(&self, store: &mut Store<M>, budget: usize) -> Result<ReclaimProgress>, and generated Wasm root::reclaim(budget: usize) -> ReclaimProgress. Native application hosts use the Actor returned by root::create/open; no additional native forwarding wrapper was added. ReclaimProgress is reexported from Store and has no Candid dependency. Zero budget reports status without reclamation or durable writes. Wasm still requires update execution, including budget zero.
Bound::reclaim was removed and replaced with Bound::reclaim_step, whose integer counts only turns in the current frame. StoreWrite::reclaim_step retains that infrastructure contract. Neither primitive flushes disposal candidates early. The fresh maintenance scope runs the existing finalization, then reads that owner's existing retirement head. Actor maintenance admits its root once before processing; status reporting does not admit it again. Errors use the existing execution-abort boundary. No persisted field, graph scan, decoder, local rollback protocol, or general collection algorithm was added.
The implementation is in Store storage.rs, binding.rs, the Store reexport, and generated root code. Shop, World, the recursive-folder fixture, and active collection-composition tests now use dedicated maintenance rather than module forwarding methods. The three canister maintenance endpoints return (u32, bool) and retain their finite upper budget limits while accepting zero. The active PocketIC harness decoders and exact recursive Candid expectation were updated together. Prior playground applications and investigation artifacts were not edited; their authors will resume against the frozen SDK separately.
Native validation is complete. All Cargo commands held the common build lock, used the pinned compiler, explicit native host target, at most three jobs, no incremental compilation, and no dev/test debug information.
| Focused validation | Passed | Evidence |
|---|---|---|
| Store bindings + new maintenance regressions | 16 | store-native.log |
| Mixed fields, typed projections, collection composition | 7 | collections-native.log |
| Independent collection composition | 1 | custom-composition.log |
| Shop and World, including their V2/native integration tests | 11 | canisters-native.log |
| Recursive-folder V2 behavior and frozen-contract tests | 14 | recursive-native.log |
| Updated application qualifier binaries | Cargo check passed | apps-harness-check.log |
The total is 49 passing native tests, including eight new reclamation regressions. The original first-pass log is separate; it is not counted twice. Coverage includes new descendant generations, work_units < budget with pending work, exact-budget completion, byte-identical zero-budget status across retained/stable images, reattachment in the original frame, surviving aliases, reopen between generations, independent owners, unchanged ordinary update maintenance, committed rejection-as-data, and a native host restoring both arenas after a later scope traps. Native returned errors are never treated as rollback.
The counted backend measures one 8-byte read and zero writes for warm raw-owner status with either one or 1,024 unrelated retired resources. This measures the status portion, not Actor/root admission or IC instructions. Cold owner lookup uses the existing bounded owner index; it never scans resources. Normal business hot paths gain no status reads or new metadata. The result is transient. Existing finalization remains proportional to touched candidates, and reclamation turns remain cooperative work units rather than an IC instruction allowance.
The IC-runtime peer reviewed the guard/trap and scope design, and the allocator peer independently reviewed post-finalization ordering, zero behavior, and move safety without finding an issue. Canonical convention/whitepaper/API prose is maintained by the root integrator and was checked against these interfaces.
Actual Wasm and PocketIC qualification passed. The final integration source ID is 93e8e12466f1ec91d4397434691ce5668051f4033f50984914ea0bc6c4f158ac; its exact 403-file inventory is pinned in qualified-source-frozen.json. qualification.json binds all 14 freshly prepared Wasms, Candid hashes, source manifests, reports and process receipts. All build/capture commands and native runner compilation held the shared build lock; the two actual PocketIC runs executed after releasing it. Existing caches were reused, and no old archived artifact directory was overwritten.
The ten canonical V1/V2 artifacts passed builder preparation, typed Candid comparison, memory inspection and hash checks. The actual canonical report records 76 successful update calls, 159 successful queries and 65 expected rejections across Quickstart, Shop, Workflow and World, plus the cross-subnet async fixture and its 64 callback-trap cleanups. Shop and World exercised zero-budget maintenance, budget bounds, post-upgrade removal and completion through the new multiple-result Candid endpoints. The standalone report covers feature/export parity, root/child conversion, repeated KEEP, fresh V2 installation, recursive folders, shared document identity, moves, cycle rollback and detachment. Recursive maintenance used budget one until pending=false, then checked (0,false) with budget zero. Both source manifests matched before and after build and were checked again before execution and report publication.
Two qualifier-only issues were corrected during capture. The native callers now decode the tuple endpoints with candid::decode_args: the SDK correctly emits two result arguments (nat32, bool), rather than one tuple record. The exact recursive DID expectation was corrected with the callers; the integrator's harness delta records their hashes. The first standalone attempt stopped under --locked because its isolated lockfile omitted Store's existing optional ic_principal dependency. Ordinary offline Cargo metadata added exactly that edge with no package/version changes; see exact lockfile diff, its receipt, and the preserved failed-attempt log. The successful standalone capture includes the corrected harness and lockfile in both manifests. Already captured canonical compiler inputs were unaffected.
The canonical and standalone qualifiers exited zero in 17.5 and 2.7 seconds respectively. Each owned PocketIC server and its descendants were stopped and reaped; canonical and standalone process receipts contain no remaining owned descendants. The IC peer separately reran 21 cleanup/alias/rollback semantics on the final fixed-size specialization, with each applicable case on both placements; its final current results and report cover exact one-turn budgets, descendant completion, business rejection commits, whole-message trap rollback and query rejection. This lane establishes API and behavior correctness, not IC instruction savings or application throughput. The prior playground application reruns remain the integrator's separate author-resumption task.