Repository navigation
SCA-2013: test(batch): guard fresh latency against backlog floods - #25244
Merged
Git-on-my-level merged 7 commits intoNov 14, 2026
Merged
Conversation
Co-authored-by: multica-agent <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Co-authored-by: multica-agent <[email protected]>
Co-authored-by: multica-agent <[email protected]>
Git-on-my-level
deleted the
agent/m5-mbp-opencode-kimi-k3-1/43e7d6c7f4e7
branch
November 14, 2026 08:08
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
Implements SCA-2013 (fresh-first step 2/5), test-only.
backlog_flood_fresh_latency: 60 steady fresh owners and a 7,920-row, already-transcribed flood across 30 owners (22x steady hourly volume), including 396 Parakeet and 7,524 provider catch-up rows.heldandunmeteredrelease with same-seed, same-scheduler no-flood baselines, under both fix(batch): projection reaches newly committed owners first; backlog owners yield #25213 queue settings (FIRST_TURN=15and0). Models eight owner drains, 15/120-second turns, predecessor-ordered projection, and half-page recent discovery.release='gated'explicitly for step 4.5c0bd5a48031. The simulator transactional fresh query now filters borrowed rows before copying the chosen row; copying hundreds of held backlog payloads per probe made the imported adapter too slow for this flood. Query selection, ordering, and golden values are unchanged.Why a scenario-specific projection model?
The existing real-
Projectordrain harness cannot drive provider admission,OrderedMerge, andServing.reconciletogether. The new model supplies only those scheduling seams over real merge/serving output; it does not change production code or owner ordering.Incident / current-main distinction
The 2026-11-13 FIFO counterfactual reproduces the incident: seed 1 flood p90 is 423.5s versus 200.0s baseline (2.118x). With #25213's split queue enabled, seed 1 p90 is 1.044x baseline. The test runs both full-scale shapes rather than weakening the 2x incident assertion. Unmetered CLI still exits 1 under both release/order guards; held exits 0.
Verification
At head
b66ca1f5d3312a9373375242a586dffd226386c4, after main integration:cd backend && python -m pytest tests/unit/test_pipeline_sim_backlog_flood.py tests/unit/test_pipeline_sim*.py -q— 138 passed in 79.13s; flood file 35.84s in the loaded suite.python -m pytest -m integration tests/integration/test_store_conformance.py -k "sim and (fresh or transaction)" -q— 7 passed, 236 deselected. This checks the sim backend only, with no emulator or database service.--jsonrepeated twice — exit 0,GATE_PASS, byte-for-byte identical output.--json— exit 1,GATE_FAIL owner_backlog_depthunder the default split queue; the test also pins FIFO p90 >2x baseline.The first integrated suite was stopped after 191.52s while the imported adapter was copying backlog rows. The bounded adapter change above removed that cost; no thresholds, workflow, or golden updates were made.
No production writes, deploys, flags, queue actions, live content, or credentials were used.