Skip to content

LBA REQ 014

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

LBA-REQ-014: Cross-plane benchmark comparison

Status

Proven

Area

Analysis / storage (extends LBA-REQ-009 storage, LBA-REQ-004 viewer, LBA-REQ-010 analysis)

Statement

The system shall let each plane (LINUX, WIN) produce a deterministic benchmark run from the SAME mprr short-packet input, store it on a plane-local big drive, and compare the two planes' runs of a shared benchmarkId -- reporting numeric metric deltas AND content-digest agreement, so the next agent can repeat the comparison and get the same verdict.

Rationale

Acceptance Criteria

  • The absorbed mprr short-ring core (ingestShortPackets) deterministically projects a short-packet stream to a viewer-renderable [{ t, v }] series + a benchmark summary (blocks, boundary-variation, admission), byte-identical for identical input on BOTH planes (the deterministic cross-plane anchor).
  • The shipped viewer renders that series; the deterministic screenshot harness captures it twice and asserts BYTE-IDENTICAL per plane (repeatability), recording seriesHash + pngSha256.
  • The benchmark store registers each plane's run (ring-buffer capture BY REFERENCE) under a shared benchmarkId, and crossPlaneCompare reports numeric deltas + a digests section: the deterministic seriesHash MUST match across planes; the per-plane pngSha256 is a visual witness; a single-plane compare fails closed.
  • The comparison is re-runnable and deterministic (mprr core + projection + store are dependency-free): gated by verify-mprr-ring (9/9), verify-benchmark-store (6/6), and local gates #27/#28.

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

Keep the mprr core + projection deterministic and dependency-free -- the cross-plane anchor rests on a byte-identical seriesHash. Treat a cross-OS screenshot pixel difference as an expected witness, not a failure. Proven 2026-07-31: a REAL second-plane (WIN) Node run (win32/x64, Node v22.15.0, on actor-win11-decouple over WinRM) independently produced the identical seriesHash 7ad1c75d..., and crossPlaneCompare confirms the match with all metric deltas 0 (cross-plane-comparison-receipt.json, gate cross-plane-comparison-proven-green). The prior identical-to-LINUX WIN pngSha256 was a synthetic placeholder and has been removed; the per-plane WIN screenshot visual witness remains a maintainer step (browser, non-CI).

TestID

T-014

CodeRef

experiments/mprr-ring/mprrRing.mjs; experiments/mprr-ring/mprrViewerSeries.mjs; experiments/mprr-ring/verify-mprr-ring.mjs; experiments/mprr-ring/fixtures/short-packet-run.json; experiments/benchmark-store/benchmarkStore.mjs; experiments/benchmark-store/register-mprr-run.mjs; experiments/benchmark-store/verify-benchmark-store.mjs; playwright/screenshot.mjs; playwright/screenshot-receipt-LINUX.json; scripts/stage-media.mjs; src/extension.ts; experiments/benchmark-store/run-LINUX.json; experiments/benchmark-store/run-WIN.json; experiments/benchmark-store/cross-plane-comparison-receipt.json; experiments/mprr-capture-ring/workload-cross-plane.selftest.mjs; experiments/mprr-capture-ring/verify-cross-plane-trend.mjs; experiments/mprr-capture-ring/verify-trend.mjs

RTM Status

Proven

Clone this wiki locally