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. |
|
|
Codex review: needs maintainer review before merge. What this changesThis PR adds dependency-builder retirement sub-stage timings and a verification-call count to slow chat-send diagnostics. Example: The synthetic regression spends 19,000 ms killing a builder, 500 ms waiting, and 200 ms verifying termination.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR adds useful retirement attribution through existing owners, with no concrete correctness or security findings. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherSandbox dependency preparation retires its disposable builder before publishing template files; request-scoped observers carry retirement measurements into Gateway slow-send logs. flowchart LR
A[Chat send] --> B[Sandbox preparation]
B --> C[Dependency builder retirement]
C --> D[Container engine]
C --> E[Request diagnostics observer]
E --> F[Slow send log]
Technical reviewBest possible solution: Retain the focused instrumentation at the existing retirement and reporting owners while preserving termination and housekeeping behavior. Do we have a high-confidence way to reproduce the issue? Current-main source confirms that retirement lacks these sub-stage measurements; the PR reports a parent-failing regression, but no target code was executed during this read-only review. Is this the best way to solve the issue? The patch is the smallest complete extension: fixed marks reuse the existing phase helper, and the existing request diagnostics owner counts verification calls without introducing retries or another logging path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fd4334f20c44. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +21, Tests +49, Docs +11, Other +2. Total +83 across 5 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes: No label 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 November 3, 2026, 10:18 AM ET / 15:18 UTC. |
Expose fixed kill, wait, verification, and surrounding retirement phases on the existing slow-send detail line, with a bounded verification attempt count. Preserve immutable-ID commands, terminal-state proof, and cleanup authority.
c879d99 to
ff3b629
Compare
|
Merged via squash auto-merge.
|
…191985) Expose fixed kill, wait, verification, and surrounding retirement phases on the existing slow-send detail line, with a bounded verification attempt count. Preserve immutable-ID commands, terminal-state proof, and cleanup authority.
What Problem This Solves
Slow sandbox startup reports only an aggregate dependency-builder retirement duration, hiding whether the engine spends that time killing, waiting, or verifying termination.
User Impact
Operators can attribute retirement stalls from the existing slow-send detail line. This is diagnostics-only: engine commands, authority checks, terminal-state proof, and template publication behavior stay the same. No configuration or schema changes.
Why This Change Was Made
Add fixed owner phases for registry/lock/claim/target/identity work and kill/wait/verify, plus a bounded verify-attempt count in the existing report. OpenClaw performs one terminal-state inspect per builder, with no verification retry or backoff. Native engine cleanup and internal polling remain charged to their command. Physical removal remains housekeeping. Inclusive parent/child timings overlap.
Production growth is 21 lines, necessary for the requested attribution; no runtime speedup is claimed. Simplification retained the existing diagnostics owner and phase helper without a new abstraction, cache, or logging stream.
Evidence
pnpm check:changedpassed all guards, types, format and lint; its sole failure was the mainsystemKindunused export from improve(ui): clarify Systems devices and backup access #192070 /9ce5ba172a8e, reproduced on exact main parentb0c014629908. Final main includes2dbd7f79bbf1, which removes that unused export. Rerunning only the two previously failing scans on final headff3b6291a846passes production and full-tree with zero findings (118.335s). Earlier unrelated failures were consumed from upstream fixes. No unresolved local failures remain; the original aggregate failure is retained as history, not relabeled as a passing run.Release-note context: slow sandbox sends expose dependency builder retirement sub-stage timings and verification attempt count.
Five-sample p95 equals the maximum. No speedup or tail non-regression claim. Retirement median +2.54%, allocation median +2.50%; candidate p95 retirement +282.7%, preparation +120.7%, process CPU +68.5%, main CPU +109.7%, warm latency +187%. A/A preparation itself varied 25.175→56.149 s. External process timestamp windows account for 97.3%/99.3% of the two retirement tail increases but include startup/scheduling and intervening owner work, so do not isolate observer overhead. The unchanged warm path also varied. All tails remain in the evidence.
Candidate kill/wait/verify medians: 34.476/35.279/34.859 ms, each count1. CPU covers the preparation-window Node process (workers included, Git/Python excluded); allocation is main-isolate V8 allocation. This requested attribution has +21 production LOC and no behavior/performance fix.
Workload:
node --expose-gc --import ./scripts/tsx.mjs scripts/perf/local-workspace-checkpoint-measure.ts --source-root <frozen-revision> --output <fresh-arm> --mode preparation --serial-turns --fresh-only --burst 1 --requests 1 --files 62000 --file-bytes 19050 --acceleration --sandbox-backend podman --fake-builder-removal-ms 36000.Landing status
The shared exact-budget reconciliation #192026 merged as
a4d7594944569e50a7149d560e68d73899fb16b8after green exact-head CI41699981740. Newer main introduced81 more unallocated lines: #191470 contributed80, and #156399's10 were offset by9 deletions elsewhere. Scalar-only follow-up #192207 merged as135c63eff31e1d76c8bf8832495573c08dd627a2after green exact-head CI41703636481 and funds exactly that81, with no reserve. This PR's49 regression lines retain their own49-line allocation throughout.Merged as
2780c3f622408f82cab88572b5aa8748c61cdeabfrom exact headff3b6291a846955708f00f5725ad84f232b5e7b4. CI41707010703 passed all43 executed jobs; final Codex review is scoped-clean. No red-CI exception or reduced regression coverage is used.