Repository navigation
feat(bench): add multi-agent Gateway workloads - #149178
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 10:48 AM ET / 14:48 UTC. ClawSweeper reviewWhat this changesAdds a benchmark agent-count flag that distributes synthetic sessions across agents and records model, session-routing, and completed-turn coverage. Merge readiness✅ Ready for maintainer review This remains useful work absent from current main and the latest release. No actionable introduced defect was found, and the maintainer-authored PR is protected from automatic closure. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway concurrency benchmark starts an isolated Gateway with a synthetic model provider, seeds sessions, and measures responsiveness during agent turns. Its reports help developers compare Gateway performance under controlled workloads. flowchart TD
A[Benchmark options] --> B[Isolated Gateway and model provider]
B --> C[Distribute synthetic sessions across agents]
C --> D[Verify models and session inventories]
D --> E[Run turns and concurrent probes]
E --> F[Performance and agent coverage report]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +50, Other +135. Total +185 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep multi-agent workload generation in the existing isolated benchmark, with explicit coverage attribution and unchanged single-agent defaults. Do we have a high-confidence way to reproduce the issue? Not applicable: this adds a benchmark mode rather than repairing a reported bug; source inspection confirms the existing single-agent limitation. Is this the best way to solve the issue? Yes: extending the existing workload generator and shared configuration writer is a focused approach that preserves measurement totals and avoids a competing benchmark implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3c34fe88c1ac. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Related: #149170
What Problem This Solves
The Gateway concurrency benchmark puts every synthetic session on
main. Increasing session and concurrency counts misses work that scales with the number of configured agents, including model publication and session-store routing.Why This Change Was Made
Add a benchmark-only
--agent-countoption, defaulting to one and bounded by the effective session inventory. Distribute the existing session and turn totals deterministically across configured agents, with separate workspaces. Before load-window profiling starts, verify each agent's configured model and complete paginated session inventory. Retain those responses and attribute completed turns and history probes to their requested sessions.User Impact
Developers can measure a multi-agent Gateway workload without increasing the requested session or turn totals. Existing one-agent runs retain their setup and routing; the result gains an
agentCountfield. This changes benchmark tooling only, with no product configuration, state schema, or dependency changes.Evidence
80936b0933a1plus the exact three-file candidate. Source, installed dependency fingerprints, and built outputs remained unchanged. The original failed build was not counted as a pass. Exact-head hosted CI is recorded below; native landing gates remain authoritative.This focused three-file PR is based on main
4d7647fff9db. All three original blobs match the validated80936b0933a1base, and all candidate bytes match the reviewed and exercised files. The intervening catalog batching changes were source-reviewed; fresh exact-head hosted CI has validated the new integration. This is source equivalence, not a new current-main runtime result.Exact-head CI 34983237032 passed on
5a21f92ae708. Fresh scoped P2 and ClawSweeper reviews found no actionable issues.The hosting Testbox workflow linked above currently reports cancelled. Its accepted validation evidence is the retained successful task receipt, all twelve completed commands, native smoke reports, and independent source/install/build-output/lifecycle audit; workflow success is not inferred. The lease was stopped and confirmed completed.