Repository navigation
ADR 0001
github-actions[bot] edited this page Nov 19, 2026
·
2 revisions
- Status: Proposed
- Owner: WIN
- Traces to: LBA-REQ-003 (and the viewer contract in LBA-REQ-004/005)
- Standards baseline:
repo-standards-reviewv0.2.19
The agentic actor drives a benchmark run and the viewer renders it. These are different lanes (and will run on different VMs), so they need a stable contract. The viewer's core feature — scrub a time cursor and see the picture captured at that time (LBA-REQ-004/005) — only works if metrics and pictures share one run clock and pictures are resolvable by time in sub-linear time.
Define a single schema-versioned run-result as the actor↔viewer contract.
-
Envelope:
{ schema: "labview-benchmark-actor/run-result@1", runId, startedAt, clock, metrics, frames }. -
Run clock:
clockdeclares the unit ("ms") and origin ("run-start"); every sample and frame carries atthat is run-relative on this clock. There is exactly one clock per run. -
Metrics:
metricsis a list of named series, each an ordered array of{ t, v }sorted ascending byt. Multiple series may share the chart. -
Frames (pictures):
framesis an ordered array of{ index, t, ref, w, h }sorted ascending byt, whererefresolves the captured image in the same VM's local mprr review-capture store (ADR-0005) — a local store pointer, optionally carrying a content hash for in-VM dedup/integrity. Because images never cross VMs (cleanroom),refis always same-VM and is never a cross-VM fetch handle.indexis its ordinal; frames are not required to be evenly spaced. -
Resolution rule: the frame for a selected time
Tis the last frame witht <= T(nearest-at-or-before). With frames sorted byt, this is an O(log n) binary search. IfT < frames[0].t, there is no frame (viewer shows the explicit no-frame state). -
Versioning: the
schemastring is the version gate; a viewer refuses a major it does not understand rather than mis-rendering. -
Reproducibility: two runs on the same golden VM + inputs produce
equivalently-shaped results; numeric variance is bounded and the bound is
recorded in the run result (
clock/metadata), satisfying LBA-REQ-003.3.
- + Viewer and actor evolve independently behind one versioned contract.
- + Cursor→picture is deterministic and O(log n) (enables smooth scrubbing, LBA-REQ-004.3 / LBA-REQ-005).
-
+ Content-addressed
reflets frames be stored/transported separately from the metric envelope (large images off the hot path). - − Requires the actor to stamp every sample/frame on the run clock at capture time; a late/monotonic-clock bug would desync metrics and pictures (mitigated by a schema validation test, T-003).
-
Resolved (ADR-0005): the whole run result — metrics and frames — stays
VM-local in mprr's ring buffer (cleanroom);
refis a local pointer resolved on the same VM. Nothing from the run result crosses the bus (not bytes, not metadata); the bus is inter-actor communication only. Completed runs are concentrated to the operator's host out-of-band for the ollama comparison layer (ADR-0006, LBA-REQ-010).
Generated from docs/architecture/adr/ADR-0001-run-result-schema.md on develop. Edit the source in the repository, not this page.