feat(tools/e2e): add limits harness Shipper fan-in axis + instrument proof (#382) - #410
Merged
Minipada merged 1 commit intoAug 20, 2026
Conversation
…proof (#382) Wires #379's ramp controller, #377's saturation probe, #378's load driver, and #380's curve reporter together against #381's two-tier topology: run_limits_shipper_fanin.py drives synthetic connection count to the knee, asserting zero loss via verify_zero_loss.py at every sustainable level, and run_limits_shipper_fanin.sh proves the instrument itself by re-running the same ramp against a deliberately resource-constrained aggregating Shipper and requiring a substantially lower ceiling. Verified against real infrastructure (not just fakes): found and fixed a live-volume-snapshot race against dc_mcap_writer's 15s rotation window that surfaced as a false zero-loss violation, root-caused and documented in the module docstring and progress.txt. Closes #382 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mh8vrBQibc4B5JqJn5f45Z Signed-off-by: David Bensoussan <d.bensoussan@proton.me>
Minipada
force-pushed
the
feature/382-limits-harness-shipper-fan-in-axis-instr
branch
from
August 20, 2026 06:18
58add5e to
9863488
Compare
github-actions
Bot
deleted the
feature/382-limits-harness-shipper-fan-in-axis-instr
branch
August 20, 2026 06:19
5 tasks
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
tools/e2e/scripts/run_limits_shipper_fanin.py, the orchestrator that wires Limits harness: measure where the pipeline saturates, on four axes #323's four already-shipped deep modules together for real:ramp_controller.find_knee()drives synthetic connection count (viaload_driver.py) against Limits harness: two-tier topology composer (aggregating Shipper stack) #381's two-tier topology's aggregating Shipper,saturation_probe.evaluate()judges each level from a window of ack-latency/unacked-window-depth/disk-buffer observations, andcurve_reporterturns the result into a stable report plus the PRD's required closing sentence. None of the four modules are modified.verify_zero_loss.py("the existing verifier," reused unmodified) against a snapshot of the ledger-checked real stack's still-running output. A violation hard-fails the whole ramp immediately.tools/e2e/scripts/run_limits_shipper_fanin.sh, a sibling scenario script (own topology bring-up, own gates) reusing Limits harness: two-tier topology composer (aggregating Shipper stack) #381's topology files verbatim. It runs the ramp twice — unconstrained (the flagship number), then against a deliberately CPU/memory-constrained aggregating Shipper — and hard-fails unless the constrained ceiling is substantially lower (<= 0.5xby default), proving the harness detects an induced limit per the PRD.Verified against real infrastructure
Ran the full scenario against a real
dc-e2eimage on real podman infrastructure multiple times (not just unit-level reasoning against fakes):verify_zero_loss_at_level()reads raceddc_mcap_writer's 15s rotation window (entrypoint.sh --max-duration-secs 15), surfacing as a false "ZERO-LOSS VERIFICATION FAILED" for Records that were actually safe on disk but not yet in a finished, readable.mcapfile. Fixed the retry to cover any failure shape (not just parse crashes) with an 18s pause, and re-verified the fix against the same live containers that had failed under the original logic.Full details in
progress.txt's#382entry.Closes #382
Test plan
prek run --all-files --skip build-docpasses (ruff, shellcheck, codespell, clang-format, etc.)python3 -m py_compile/ CLI--helpsmoke test on the orchestratordc-e2eimage + real podman containers (Postgres/RustFS/aggregating Shipper/real DC stack), including a run that correctly failed the instrument-proof gate and a run that found a real saturation knee with real zero-loss assertionsci.yaml, same as every other narrow scenario script in this harness🤖 Generated with Claude Code
https://claude.ai/code/session_01Mh8vrBQibc4B5JqJn5f45Z