feat: viz-plane ingestion contract + benchmark suite (I1–I7) - #31
Merged
Conversation
The third stage of the family observability chain (telemetry S1 -> messaging M9 -> viz), held to the same measured-claims discipline. Reference bar: hebi-charts-class low-overhead ingestion — the robot must not be able to tell it is being watched. docs/ingestion_contract.md: normative requirements I1-I7 (bounded per-sample cost, alloc-free steady state, producer-never-blocks with counted overflow, render-rate independence, observer invisibility per the M10-A4 shape, bounded memory, measured claims), budget table pinned from first run, conformance table, remediation list. tests/benchmarks/ingestion + scripts/bench_ingestion.sh: percentile harness (xmMessaging methodology), alloc-gated measured sections, hardware-context JSON, smoke ctest. Zero src/ changes — public API only. First numbers (i7-8700, xvfb/llvmpipe): ring write p50 21.6ns/p99 43.8ns; stream push p50 10.3ns; 100kHz paced ingest invariant across headless/60fps/stalled-render (producer-never-blocks proven); 60s 100kHz soak RSS growth 0. Conformance: I1/I4/I6 conform; I3 partial (drops are silent+uncounted — principal gap); I2 partial (no slot pre-sizing for heap payloads); I5 pending hardware-GL rerun (llvmpipe steals cores, confounds the A/B); I7 pending CI gate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Defines and measures the viz-plane ingestion contract — the third stage of the XMotion observability chain (telemetry S1 → messaging M9 → viz), held to the same measured-claims discipline. Reference bar: hebi-charts-class low-overhead ingestion — the robot must not be able to tell it is being watched.
docs/ingestion_contract.md— normative requirements I1–I7: bounded per-sample cost, alloc-free steady state, producer-never-blocks with counted overflow, render-rate independence, observer invisibility, bounded memory, measured claims. Includes the ingestion-path map (RingBuffer/BufferRegistry → RtLinePlotWidget; DataStream/DoubleBuffer → SceneManager, with file:line refs), a budget table pinned from the first run, and a conformance table.tests/benchmarks/ingestion/+scripts/bench_ingestion.sh— percentile harness (p50/p99/p99.9/max), alloc-gated measured sections, hardware-context JSON, smoke ctest. Zerosrc/changes — the suite drives public API only.First numbers (i7-8700, xvfb/llvmpipe)
Ring write p50 21.6 ns / p99 43.8 ns · stream push p50 10.3 ns · 100 kHz paced ingest invariant across headless / 60 fps / stalled render (producer-never-blocks proven) · 60 s @ 100 kHz soak: RSS growth 0.
Conformance verdict
Remediation list (ordered)
./scripts/bench_ingestion.sh)Test plan