Skip to content

LBA REQ 084

github-actions[bot] edited this page Nov 19, 2026 · 2 revisions

LBA-REQ-084: The stress-discounted cross-plane comparison (discount a result captured on a stressed actor)

Status

Proven

Area

Analysis / cross-plane comparison (ADR-0065 -- the stress-discounted comparison, roadmap Phase 4)

Statement

The system shall assign each benchmark measurement a stress-quality weight from the mesh-stress calibration and discount a measurement captured on a stressed actor, so a fail-closed gate proves a cross-plane comparison down-weights results captured under contention.

Rationale

cross-plane comparison is built out (launch parity LBA-REQ-072, VI Analyzer parity LBA-REQ-081, the benchmark grid LBA-REQ-050, the observatory LBA-REQ-054), but every comparison treats each actor's result at face value. The roadmap Phase 4 is explicit that this is not enough at scale: the mesh-stress-signature calibration must let a run DISCOUNT a result captured on a stressed actor (a contended actor's timing is inflated). The calibration exists (LBA-REQ-032 -- a monotone/separable/repeatable ladder + independent per-actor stress recovery); what was missing is the governed step that turns it into a per-measurement discount.

Acceptance Criteria

  • stressDiscountedComparison.mjs trusts the committed ladder (mesh-stress-live-ladder@1) as the calibration authority only when its invariants hold (monotone + separable + repeatable), and takes the committed concurrent-actors capture (mesh-concurrent-actors@1, allActorsRecovered) as the measurements whose stress was independently recovered.
  • Each measurement is assigned a stress-quality weight -- a linear confidence from the recovered level (idle 1.0, light 0.75, medium 0.5, heavy 0.25, saturate 0.0) -- and flagged discounted at or above heavy. This is a confidence weight, NOT a fabricated millisecond correction.
  • Discounting is applied iff the calibration is trustworthy, every actor was recovered, at least one stressed measurement is discounted, and at least one clean measurement is kept at full confidence. validateComparison re-derives the comparison byte-stably from the two committed mesh-stress receipts and fails closed on an invalid calibration, an unrecovered actor, a weight/flag that does not match the rule, a miscounted coverage statistic, or a tampered digest.
  • The gate stress-discounted-comparison proves offline: the selftest (7/7); the committed comparison re-derives from the ladder + concurrent captures; the idle actor is kept at full confidence and the saturate actor is discounted to zero weight; and a clean/discounted split exists.

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

the verifier + selftest + committed comparison live under experiments/mesh-stress-signature/ (stressDiscountedComparison.mjs / .selftest.mjs / stress-discounted-comparison-receipt.json), grounded in the committed fixtures/mesh-live-ladder-receipt.json + fixtures/mesh-concurrent-actors-receipt.json; gate stress-discounted-comparison in verify-local-gates. Folding the discount weight into the benchmark grid / observatory is a follow-on. Authored under the singular-requirement directive (one shall).

TestID

T-084

CodeRef

experiments/mesh-stress-signature/stressDiscountedComparison.mjs; experiments/mesh-stress-signature/stressDiscountedComparison.selftest.mjs; experiments/mesh-stress-signature/stress-discounted-comparison-receipt.json; experiments/mesh-stress-signature/fixtures/mesh-live-ladder-receipt.json; experiments/mesh-stress-signature/fixtures/mesh-concurrent-actors-receipt.json; experiments/verify-local-gates.mjs

RTM Status

Proven

Clone this wiki locally