R36
What to build¶
Declaring slices does not break safe failed-report construction.
Source and evidence¶
Repository scientific/architectural review, snapshot 86c8517, item R36.
Classification: confirmed defect; medium severity.
The LifecyclePhaseError branch increments overall failed cases but omits matching slice failure
counts. Slice reduction retains the full eligible count, and SliceResult rejects the resulting
non-conserving accounting. With default continue-on-error behavior, a reset failure should become safe
failed evidence; adding an otherwise valid slice instead makes evaluation raise a validation exception.
This prevents consumers from retaining the intended failed report and violates failure isolation.
Retained reproduction: the reviewed implementation runs one case, one trial, no warmups,
an explicit dataset identity and a seeded lifecycle adapter whose reset fails. Without a slice it
returns status=failed, failed_executions=1. With an all-cases slice it raises
ValueError: slice execution counts do not reconcile. Both runs use the same candidate and reset.
The probe exited 0 on the configured Python 3.14.7 environment, and its Ruff check passed.
Acceptance criteria¶
- [ ] One-case reset failure returns failed evidence both with no slice and with an all-cases slice.
- [ ] Overlapping slices each reconcile eligible=successful+failed for affected cases and trials.
- [ ] Successful peers, warmup/reset classification and default continue-on-error behavior retain their contracts.
- [ ] Failure reports serialize and remain non-passing under assessment without retaining private exception text.
- [ ] 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¶
Route lifecycle failures through the same slice-accounting owner as ordinary invocation failures. Preserve each scope's denominator rather than weakening SliceResult validation.
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.