Repository navigation
improve(bench): verify Gateway work across CPU affinity - #149702
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
Codex review: blocked before merge. Reviewed September 18, 2026, 12:00 AM ET / 04:00 UTC (Revision 6). ClawSweeper reviewWhat this changesThe PR verifies completed Gateway benchmark turns, separates warmup and measured work, adds optional Linux CPU placement, and handles failed child launches. Merge readiness⛔ Blocked before merge - 1 item remains This remains useful work absent from current main, with no actionable findings. The previous launch-error and documentation findings are resolved; the prior migration blocker does not apply to benchmark IPC and report artifacts. Priority: P2 Review scores
Verification
How this fits togetherThe concurrency benchmark launches an isolated Gateway and mock provider, sends synthetic agent turns, and measures responsiveness and CPU usage. Its verification and accounting determine which completed work appears in the benchmark report. flowchart TD
A[Benchmark options] --> B[Isolated Gateway and mock provider]
B --> C[Optional agent warmup]
C --> D[Measured turns and probes]
D --> E[Verify replies and terminal receipts]
B --> F[Request and CPU observations]
E --> G[Benchmark report]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceTests +474, Other +410. Total +884 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep workload verification, phase accounting, and optional CPU placement in the existing isolated benchmark owner, without application migrations. Do we have a high-confidence way to reproduce the issue? Yes, source inspection establishes the existing status-only success path and missing receipt checks; no current-main runtime reproduction was executed. Is this the best way to solve the issue? Yes, the patch extends the existing benchmark and consumes canonical terminal evidence without adding a competing runtime owner or changing operator state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f5c0aa37ef96. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
Punchcard-Session: brisk-summit-brook-mr
Punchcard-Session: brisk-summit-brook-mr
Punchcard-Session: brisk-summit-brook-mr
a71e4b7 to
3a273a9
Compare
Punchcard-Session: clear-workshop-brook-w2
0b88597 to
30793cb
Compare
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Punchcard-Session: clear-workshop-brook-w2
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
) * improve(bench): verify warmed Gateway work across CPU affinity Punchcard-Session: brisk-summit-brook-mr * fix(bench): bind inference markers through runtime context Punchcard-Session: brisk-summit-brook-mr * fix(bench): clean up failed Gateway launches Punchcard-Session: brisk-summit-brook-mr * test(perf): separate warmup lifecycle evidence from measured turns Punchcard-Session: clear-workshop-brook-w2 * docs(perf): describe agent warmup checkpoints Punchcard-Session: clear-workshop-brook-w2
Related: #149700
What Problem This Solves
The Gateway concurrency benchmark could count status-only turns as successful work, mix background inference into foreground totals, and include warmup lifecycle evidence in measured turns. Failed child launches could also leave the detached mock provider running.
Why This Change Was Made
Verify canonical terminal receipts, expected output, effective model binding, and successful tool execution before counting a turn. Capture bounded request purpose, byte length, and continuation facts before log clipping. Separate setup, same-process warmup, measured load, and post-load accounting. Route failed spawns through the existing teardown owner.
Add opt-in
--agent-warmup-turnsand Linux Gateway-only--gateway-cpus, with actual Gateway/driver/mock placement recorded. Application runtime, configuration, and persistent data-model changes: zero. The optional CPU fields use benchmark child IPC and an explicitly requested report; the prior review's migration checkbox does not apply to application storage or Gateway protocol.Benchmark tooling: +434/-24; tests: +481/-10. The tooling growth owns workload verification, phase accounting, and explicit process placement.
User Impact
Developers can compare verified work across fresh and warmed runtimes and Linux CPU placement. Failed launches report a controlled failure and clean up their children and fixture. This changes benchmark tooling only.
Evidence
30793cb3c7d01b7dfeaf832ddb3e2643f6ae494dwas exercised as its exact six-file overlay on pinned baselined64c442c77723f6536cb9677851906460474880c. Blacksmith Testbox, Node 24.19.0, pnpm 12.3.4, one frozen install. Packaged build passed in 282.085 s; its stamp correctly names the baseline, and overlay hashes match before/after build and contracts.656b34871036115ceb3284ce4531c832506130ee77ad8e8fb57a9787975793b4, 41 verified members. A later separate CPU001 test-type phase reached 600 s, so the aggregate run remains failed. Independent review accepted the completed upper case: final proof restores all 43,634 baseline blobs and the receiver, with no surviving observed child groups. CPU001 types remain unqualified.2a2b7dc96e7fbb433ebb925a233f33c10568010achanges only the documentation: it names all six checkpoints and separates optional same-Gateway agent warmup from measured load. All six tested runtime/test blobs remain identical. Scoped source autoreview, independent review, formatting, and whitespace checks passed; fresh exact-head CI and ClawSweeper review remain required before landing.Earlier AWS C7a affinity measurements did not demonstrate a normal Gateway speedup and had differing background work. They do not establish a shared-vCPU, SMT, quota, Hetzner, or bare-metal comparison; the separate worker-owner result is documented in the linked repair PR.
Reproduce
After
pnpm build, run this tiny Linux fixture with valid host CPU IDs:Add
--tool-eventsand use a separate output file for the tool contract. Controlled foreground comparison and idle-worker attribution remain separate follow-ups.Punchcard-Session: clear-workshop-brook-w2