R14
What to build¶
Only requested slices are resampled and their combined work stays within the declared family limit.
Source and evidence¶
Repository scientific/architectural review, snapshot 86c8517, item R14.
Classification: confirmed defect; medium severity.
The family preflight sums only requested slice sizes and omits the factor of two for baseline/candidate score visits used by the core preflight. It then invokes pointwise inference for every declared slice, including unrequested members. Each interval independently passes the same budget; cumulative work can exceed it.
The retained slice family work probe declares two two-case slices, requests only one, and uses 1,000 resamples with a 4,000-score-visit budget. A wrapper delegates to the real resampler and counts visits by the core's own accounting formula. The function returns COMPLETE with one requested slice, after 8,000 actual score visits. The initial 2,000-budget probe was rejected by the stricter per-interval preflight; raising it to exactly one interval's cost isolates the missing shared budget rather than bypassing the core validation.
Acceptance criteria¶
- [ ] With two declared two-case slices and one requested member, a 4000-visit budget executes only that requested interval.
- [ ] Multiple individually affordable intervals whose combined two-vector cost exceeds budget reject before any resampling.
- [ ] Accounting uses the same baseline/candidate factor and retention model as core preflight.
- [ ] Corrected confidence, exact requested revisions and completeness behavior remain unchanged.
- [ ] Preserve Consumer-owned meaning, payload-free evidence, disabled optional-import isolation, safe diagnostics and the non-relaxable Safety Floor.
- [ ] Run the narrowest observable contract, then applicable committed Make gates. Record every command and outcome; update specifications/compatibility evidence for changed public or wire contracts. Run native Collector verification for changed Collector assets and build for packaging changes.
Design guidance¶
Filter requested membership first and preflight cumulative work with a shared accounting helper. Do not reset the full family allowance per interval.
Keep prefactoring narrow and verifiable in this slice. Reuse established owners and structural interfaces; introduce a pattern only when it clarifies a real responsibility or variation point. Do not add consumer vocabulary or private payloads to platform code or evidence. Mocked/local results must not claim hosted, production, accelerator or release qualification.
Blocked by¶
None (can start immediately). Shared-area coordination is useful, but no other review fix is a genuine prerequisite for this slice.
Verification scope¶
Convert the described counterexample or investigation oracle into an observable test at the lowest suitable public boundary. Prefer bounded operation-count or deterministic interleaving evidence to flaky timing assertions; timing guarantees need a declared tolerance and independently owned cleanup. This ticket authorizes remediation/research, not publication or deployment.