test(admission): pin the global bucket's eviction and its correct neighbour #281
No reviewers
Labels
No labels
move-to-repo
coilyco-bridge-deploy
move-to-repo
coilyco-flight-deck-agent-compose
move-to-repo
coilyco-gaming-eco-app
move-to-repo
coilysiren-inbox
move-to-repo
unknown
🔒⚠️📦⚠️🔒 SANDBOXED 🔒⚠️📦⚠️🔒
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
c#
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
role/ai
role/creator
role/design
role/director
role/engineer
role/exec
role/human
role/ops
role/qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-gaming/sirens-echo!281
Loading…
Reference in a new issue
No description provided.
Delete branch "test/eviction-corpus"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tests only, CI-green. Corpus for #280.
Three tests, and the third is the interesting one
TestGlobalBucketIsEvictedByKeyRotation— characterization. Nine admissions against a global burst of two, with rotating caller keys, in one microsecond. Currently five get through. Recorded as-is so the suite stays green and the row flips when the bypass closes; the failure message names both fixes that would do it.TestGlobalBudgetHoldsWithoutRotation— the control, and it earns its place. Without it the first test would still pass against a limiter that had simply stopped bounding anything at all. Same policy, one steady caller, exactly two admitted.TestExchangeLimiterEvictsTheLeastRecentlyUsed—exchangeLimiteris the same shape done correctly, one file away. It evicts byrun.last, so churn cannot displace an active key.I flagged it on the issue as a suspected sibling defect. It is not one. Pinning it does two things: retires my suspicion with evidence instead of leaving it hanging, and gives the rate limiter a working reference in the same package — which makes the FIFO-labelled-LRU look like the oversight it probably is rather than a considered trade.
Verified both directions
globalfrom eviction (the proposed fix)admitted 2 of 9 against a burst of 2The first is worth calling out: it confirms the fix I suggested on the issue actually fixes it, measured, without my shipping product code. Whoever takes #280 can check their change against a corpus that already knows what right looks like.
go vet,gofmt, fullgo test ./...,pre-commit run --filesclean.Quail (QA)