Repository navigation
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 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: d9a59d471c
ℹ️ 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".
d9a59d4 to
f51610f
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f51610fee0
ℹ️ 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: needs changes before merge. What this changesThis PR adds a paced Gateway memory soak with periodic resource samples and survivor-only allocation profiling. Example: Run eight viewers and four concurrent turns for 60 minutes after five minutes of warmup.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this useful, maintainer-authored PR open: two measurement defects need focused repairs before merge. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherThe repository benchmark launches an isolated Gateway, sends synthetic model responses through real agent and WebSocket paths, and collects resource samples and V8 profiles through private child-process IPC. flowchart LR
A[Benchmark CLI] --> B[Isolated Gateway]
C[Synthetic model server] --> B
B --> D[Read tool and streamed turns]
B --> E[WebSocket viewers]
A --> F[Private profiling IPC]
F --> B
F --> G[Memory samples and profiles]
Technical reviewBest possible solution: Keep the existing benchmark and IPC owners, enable the promised plugin workload, and start the traffic clock after baseline sampling. Do we have a high-confidence way to reproduce the issue? Both findings follow directly from the generated fixture, plugin activation precedence, and deadline calculations; runtime reproduction was not attempted under the read-only review. Is this the best way to solve the issue? Extending the existing driver and profiler is appropriately scoped; the added native sampler regression protects a distinct failure without introducing another launcher or production owner. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 954a610f5d0f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests +33, Docs +39, Other +167. Total +239 across 5 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 19, 2026, 2:03 PM ET / 18:03 UTC. |
f51610f to
9e4eed2
Compare
|
CI on The exact tested merge is |
* test(perf): add steady Gateway memory-retention soak * fix(perf): align soak baseline with synchronized start * fix(perf): exclude baseline collection from soak duration
What Problem This Solves
Retained-memory investigations need sustained Gateway traffic and survivor-only allocation profiles; the existing benchmark captures finite bursts and allocation churn.
User Impact
No production behavior changes. Developers can run a paced Gateway soak with real tool execution, streamed replies, WebSocket viewers, periodic memory samples, and a final retained-allocation profile.
Why This Change Was Made
Extend the existing driver and private benchmark IPC instead of adding a second Gateway launcher. Keep allocation-churn sampling as the default. The new
memory-soakscenario records natural-GC heap/external/ArrayBuffer samples separately from settled endpoints, bounds intentional transcript growth with recorded session resets, and captures only allocations surviving the final profiling window. Optional snapshots are taken after profiling stops.Evidence
test/scripts/gateway-bench-profile.test.ts: 8 tests pass. The retained-only regression fails against the old sampler: discarded allocation bytes are 92,388,232 instead of zero; with the change they are zero while held allocations remain observable.pnpm tsgo:scriptspasses using the repository typechecker. Changed-file oxfmt, lint, andgit diff --checkpass. Lint uses the supportedOPENCLAW_OXLINT_SKIP_PREPARE=1mode to avoid local artifact builds.Final-head CI 39299720322 completed on
9e4eed27f2a9cbb548b76ed2898a0c4dd4b2ddbc. The only substantive failure is inherited formatting insrc/agents/tools/nodes-tool-media.ts; its aggregate CI gate is consequently red. The file is byte-identical on the tested mergee04d10e5and actual CI base74a8a5af(blob3753432b85d185a11a72de58191f8c0e7ac9375e). The single-file oxfmt check fails on the same unchanged base content in an isolated Linux sandbox. All docs content checks, types, lint, architecture, security, and test jobs passed; CI specifically ran all eight Gateway profiling tests successfully. No CI rerun was requested.The acceptance rule is completed streaming/tool turns and consistent viewer delivery, with separate natural-GC timelines and settled heap/external/ArrayBuffer endpoints. Before/after performance decisions use concurrent identical fixtures, separate ports/state, an exclusive measurement lock, and swapped sixteen-core CPU allocations. The documented workload is five minutes of warmup plus sixty minutes of paced traffic and a final ten-minute survivor profile.
Production runtime LOC delta: zero. The added benchmark controls and one existing-test extension implement the measurement contract; no new cache, production export, configuration option, or retention policy is introduced.