R10
What to build¶
Finite paired inputs either produce finite supported evidence or an explicit unavailable/rejected result.
Source and evidence¶
Repository scientific/architectural review, snapshot 86c8517, item R10.
Classification: confirmed defect; medium severity.
Input and callback results are checked for finiteness, but intermediate sums, differences, ratios, and final result fields are not. Two scores of 1e308 overflow the default sum even though their arithmetic mean is representable. Separately, finite callback estimates of -1e308 and 1e308 yield an infinite difference, and estimates of 1e-308 and 1e308 yield an infinite relative ratio. The public function returns a normal typed result containing those infinities/NaNs after executing every requested replicate. The result dataclass adds no validation.
The retained resampling probe isolates all three paths, using only two rows and 100 resamples. It reported respectively 8, 3, and 3 non-finite result fields; the difference and ratio cases had finite point estimates because their explicit first-value reducer avoided the default sum. Every input was finite. No network, subprocess, or private dataset is involved.
Publication through AggregateMeasurementComparison does separately check
finiteness, so this observation is an in-process API violation and late rejection,
not proof that those values can be persisted in a comparison document.
Acceptance criteria¶
- [ ] Two 1e308 scores produce a representable finite mean using a stable reducer.
- [ ] Opposite extreme finite estimates and extreme ratios cannot return infinity or NaN in any result field.
- [ ] Point, replicate, interval and corpus-derived values are checked; zero-denominator semantics remain explicit.
- [ ] Independent arithmetic oracles cover representable means and unrepresentable differences/ratios with bounded resamples.
- [ ] 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¶
Validate derived values before returning typed evidence, not only at later serialization. Use stable reduction where mathematically representable; define a safe failure policy for unrepresentable effects rather than silently clipping.
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.