Repository navigation
test: make allocation shuffle check exercise tie-breaking - #991
Gajesh2007 wants to merge 4 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 671e324c81
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Please review current head |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Consolidated into #1056 for review and merge after #1094, #1095 and #1096. #1056 contains this branch's exact head ( |
The allocation determinism test's 5% account cap limited four accounts to 5M total from a 25M pool. Every candidate could receive its capped grant, so input order never affected payouts and removing the production
ProviderKeytiebreaker still passed.The existing fixture disables that independent cap and requires full use of the pool. Account names sort in reverse provider-key order, and exact expected grants require
a=18M, b=7M, c=d=0. The same payouts must survive an input shuffle, so the fixture distinguishes the intended provider-key tiebreaker from both input order and account order. Dedicated per-account and cross-run cap tests remain unchanged, as does production code.flowchart LR subgraph Before B1[AllocateDraws with 25M pool and 5 percent account cap] --> B2[Four accounts consume only 5M] B2 --> B3[Shuffle returns identical capped payouts] B3 --> B4[Missing ProviderKey tiebreaker passes] end subgraph After A1[Same fixture with account cap disabled] --> A2[Demand exceeds the 25M pool] A2 --> A3[Opposing account order and exact ProviderKey grants] A3 --> A4[Require identical payouts after shuffle and full pool use] A4 --> A5[Wrong tied ranking fails] endTemporary Go overlays changed the actual allocator's final tie comparison:
AccountIDinstead ofProviderKeyd=18Minstead ofa=18M, 0.277sUnmodified controls pass before and after. All six existing allocator/ranking tests pass with
-racein 1.299s, zero failures or skips, usingGOTOOLCHAIN=go1.25.0. This includes both account-cap fixtures. No permanent mutation tests were added.gofmt,git diff --check, andmake docs-check(278 pages) pass; all commits are signed.Independent source review is clean at
b4a6160fba46fd8c196ca20332c676256cfe0a07, including the exact-grant refinement. Fresh Codex review is clean at head64ff175bc1b3b3579d5ac354b5b8642f54ed5798, with an actual thumbs-up and no unresolved threads. Evidence is in/private/tmp/allocation-determinism-oracle-20260912/; this is a CPU-only assertion change with no database or model runtime involved.The separate Threat Model Review CI job is blocked before review by an Anthropic HTTP 401 authentication error (invalid configured API key). This is recorded as a CI credential failure; no threat-model verdict was produced.