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: needs real behavior proof before merge. Reviewed September 6, 2026, 6:01 AM ET / 10:01 UTC. ClawSweeper reviewWhat this changesThe branch batches node completion checks, distinguishes companion execution outcomes, coordinates shared Git mutations, refreshes hosting after approval, and repairs related process handling, packaging, pricing, UI recovery, and tests. Merge readiness⛔ Blocked before merge - 6 items remain This remains useful, maintainer-owned work that current main does not fully implement. The prior cache-path finding is resolved; no additional blocking code defect was established in the inspected paths. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw delegates session execution to paired devices through the Gateway and a private node worker. Completion returns execution outcomes and workspace changes for verification and publication on the Gateway. flowchart TD
A[Session work] --> B[Gateway authorization]
B --> C[Paired device worker]
D[Command approval] --> E[Connection-bound hosting refresh]
E --> C
C --> F[Execution outcome and workspace checks]
F --> G[Verified result publication]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve the single execution and publication owners, with composed proof that authorized hosting refresh succeeds while revoked or replaced authority cannot reach worker effects. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main collapses pre-submission socket failure and post-submission reply loss into null, and the linked report supplies deterministic socket scenarios. No runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? Yes for the inspected core repairs: submission facts belong at the socket owner, shared Git mutations need common-directory coordination, and batching preserves the existing fence order. Complete authority proof is still needed before merge. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e07ebcb5af89. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (35 earlier review cycles; latest 8 shown)
|
1d355fe to
ada88bb
Compare
ada88bb to
6b58012
Compare
6b58012 to
7fe0471
Compare
7fe0471 to
c45bb98
Compare
|
@clawsweeper re-review Please review current head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
358b2da to
5ef50e5
Compare
Keep command deadlines active until stdio closes. Inspect the OpenAI artifact exercised by the SQLite lifecycle instead of parsing a truncated unrelated registry inventory; retain exact provider-source and lifecycle assertions.
Preserve exact Android admission publication, both Gateway fixture regression groups, and the canonical UI dialog cleanup while integrating current main. No node-session authority or execution-outcome assertions are removed.
Project each selected hook from the existing trusted configuration without changing pins, file filters, detector behavior, or failure propagation. Run the trusted harness in a dedicated isolated Python environment so user-site installs and candidate module shadowing cannot break the scan. Repairs repeated security-fast bootstrap failures on unrelated ShellCheck and zizmor repositories observed while validating the node-session follow-up PR #132180.
Integrate frozen main af53152. Preserve focused OpenAI artifact inspection, all SQLite lifecycle checkpoints, and reader-intent scrolling with real frame waits. Proof: six CLI deadline cases and eight bundled Chromium catalog cases pass on the resolved tree. Fresh complete-candidate P0 autoreview is scoped-clean. Exact-head static checks, signed native acceptance and hosted CI remain pre-landing gates.
Fix the inherited max-lines CI failure by moving the unchanged launcher into the existing Gateway process fixture owner and reusing the shared result type. Preserve all case bodies, tables, ordering, cleanup and environment precedence. Proof: focused lint fails at1040lines before and passes at1000 after;46 process cases pass with one Linux-only skip, formatting and changed checks pass, fresh P0 autoreview is scoped-clean. Production delta0; test/support net0. Paired-node live acceptance and exact-head hosted CI remain required before landing.
Integrate frozen main558b17c26e79118752a3e474772954cfd37f45cf and retain its canonical CLI process split. Remove the redundant local launcher extraction; all original case bodies, tables, environment ordering and cleanup contracts are preserved. CLI files now match main exactly. Proof:57 focused planner/workflow/child-lifecycle cases pass, format and focused lint pass,237-path source/mode preservation passes, and fresh complete-candidate P0 review is scoped-clean. Exact-head CI, final artifact and signed paired-node acceptance remain pre-landing gates.
Integrate main e721414 while retaining companion submission provenance and its single-buffer JSONL optimization. Adopt the canonical CLI output runner and keep successful POSIX tree output under its existing command deadline. Start the unchanged bounded diagnostic drain after termination, including when an escaped writer retains a pipe. Preserve failed-root status, cleanup ownership, and Windows PID safety. Replace generic pre-commit hook projection with shared isolated local-scanner setup. Preserve exact policy selection, scan targets, and failure propagation; remove obsolete projection tests and use real deadline/output regressions. Validated process and Git siblings, scanner and routing suites, real pinned scanner fixtures, the full changed-check plan, browser regressions, both Android flavors, and fresh P0 review. Final paired-node live acceptance and exact-head hosted CI remain required before landing PR #132180.
Integrate the pinned main baseline while retaining native submission provenance, deadline-owned output, and finalization authority fences. Remove duplicate child-exit tracking and the single-use native exec adapter. Validation: 233 focused tests passed with one platform skip; scoped checks passed; fresh isolated Codex P0 review passed all seven parts. The earlier complete staged checks and broader tests remain recorded. Extra standalone scanner proof deferred at operator request. Exact-head CI and signed paired-node acceptance remain pre-merge gates. Context: #132180
Preserve current main's cleanup receipts, role-removal finally paths, shared deadlines, temporary-directory ownership, and current Vitest/cache contracts. Keep the node finalization, typed execution outcomes, and native promotion fixes. A real integration regression showed an already-exited nonzero command with no group being labeled cooperative. Reuse the canonical group probe in the termination owner, leave completed work normal, and retain live/unknown group cleanup. The original normal-outcome assertion remains intact. Validation: 345 non-process integration tests passed. After reproducing the cleanup mismatch, all 96 process tests passed with one platform skip. Fresh isolated Codex P0 review passed all seven parts. Build, exact-head CI, and signed native acceptance remain pre-merge work. Context: #132180
Preserve both Windows test additions and the measured environment-name shrink while retaining current main dependency and runtime changes. Provider strict acquisition and credential-scoped cache ownership remain intact alongside pricing normalization. Validation: 178 focused integration tests passed; environment-name counter 495/495; fresh complete-candidate P0 review passed all six parts. The earlier signed app remains bound to its original source and is not relabeled. Context: #132180
Route the worktree wrapper through the shared required-output owner after its queued Git execution. Preserve interruption failures and reject truncated successful stdout without duplicating validation or bypassing the common-directory mutation queue. The real 17 MiB Git-blob regression failed on the previous production tree because the wrapper returned incomplete data. The repaired candidate passed 125 focused Git, finalization, and process tests with one platform skip. Fresh independent P0 review completed all six parts without accepted findings. Restore seven stale cache-path expectations across four tooling tests to the existing .cache/vitest contract. All four failed for the reported mismatch before correction and passed afterward, without changing production cache policy. This addresses the concrete ClawSweeper P2 finding. Fresh review covers the complete corrected candidate. Retain current main runtime changes. Earlier signed native artifacts remain bound to their original commits; this integration does not relabel them or claim current-head live acceptance. Context: #132180
|
Splitting this PR into focused replacements as requested. The original head remains preserved at Landed: Workspace patch-byte preservation #140683, commit Also landed: Windows retired-PID cleanup #140753, commit Also landed: Direct Anthropic Sonnet 5 pricing #140810, commit Also landed: Process output lifetime and cleanup #140927, commit Also landed: Shared Git-ref mutation ownership #141095, commit Also landed: Native CLI fixture completion and Windows coverage #141423, commit Also landed: Consolidated Gateway fixture publication coverage #141580, commit Also landed: Cancellation-owned native Codex test waits #141579, commit Across these eight original replacements: production/tooling net +32, tests/support net +946, docs net +1. Including the separate Startup prerequisite below, landed tests/support are net +980, for net +1013 overall. Supporting validation repair also landed: Windows Startup fixture child ownership #141360, commit Open replacement: Node finalization batching #141217 reduces the observed command count from five to two while retaining ordering and child deadlines. Current head Native acceptance: the earlier package reached native-module/private-worker checks but stalled in Bash's post-sign audit input. Its task-owned process was stopped and diagnostic evidence preserved; no app was launched. The already-landed system-Bash tooling repair #141884, commit Native execution outcomes remain needed: current-main transport still conflates submission outcomes and can emit a denial after a lost native reply. The candidate has been ported to main Hosting refresh is superseded: Mac desktop/session fixes #144226, commit Explicit disposition, stop-fixture cleanup (group R): omitted; no new PR. The original +9/-6 change replaces a fake-clock jump with bounded All 136 original paths now have explicit assignments across the source-partition ledgers. Assignment is not landing proof; held evidence and preserved coverage remain tracked until each replacement is verified. Remaining: node finalization, native execution outcomes, command recovery guidance, and the ancillary provider, packaging, and test/tooling changes. Source comparison is separating already-landed behavior from genuine residual work; replacements will preserve newer main changes rather than replay whole original files. Native/live acceptance remains attached to the replacements that change those flows, not to unrelated Git, provider, or test-only slices. This comment will track the landed replacements and explicit dispositions before the original is closed. |
|
Closing the umbrella now that its independent fixes have been split into focused work, including #140683, #141095, #140927, and #144226. Remaining node batching is tracked in #141217; any other still-reproducible defect should continue as a scoped repair rather than reviving this combined branch. Closed in a sweep of stale maintainer PRs (no activity for 7+ days). Reopen with a current reproduction if this still matters. |
Closes #131912: Mac companion execution-submission provenance.
Closes #131913: unnecessary node-session finalization round trips.
Closes #131970: concurrent node results colliding on shared Git refs.
What Problem This Solves
Node sessions spend unnecessary RPCs finishing work, can describe a lost Mac companion reply as a policy denial, and can collide when result retention and managed-worktree cleanup mutate shared Git refs. Approving an expanded native-node command surface can retire hosting inventory without prompting the promoted connection to republish consent.
This follows the already-landed native Mac hosting and Full-access parity, native IPC cancellation, and elapsed-time attribution. Those changes are not included again. Connected verification repairs cover device-policy guidance, failed-command cleanup, native packaging, pricing estimates, and test/CI expectations that contradicted their owners.
Why This Change Was Made
Record submission at the socket owner and distinguish not-submitted, outcome-unknown, and cancellation. Required native execution never replays locally. Main already enforced that route; deleting dormant contradictory fallback machinery is not evidence of a historical replay. Cancellation does not prove rollback, and
SYSTEM_RUN_NOT_STARTEDrefers to companion submission rather than the outer Gateway dispatch.Compose capture/renew/capture and renew/capture into two node commands instead of five RPCs. Retain every capture, renewal, authenticated-byte check, current placement/claim/generation check, local verification, and publication fence. Preserve patch line endings under inherited Git settings and serialize result-ref/worktree mutations at the common-Git-directory owner. External Git contention keeps its native failure; no foreign lock is removed. Required Git output uses the shared validator after queued execution: interrupted code-zero results and truncated successful stdout are rejected, while complete stdout remains valid when only diagnostic stderr was truncated.
Successful POSIX tree output remains owned by its command deadline; failed, terminated, and unowned output uses the existing bounded diagnostic drain. Current main's cooperative termination and cleanup receipts are retained. The termination owner preserves normal completion for a naturally exited failing command when its process group is provably absent, while retaining cleanup for live or unproven groups. The original failing assertion was not weakened.
Deliver command-approval resolution to the exact promoted connection and republish hosting consent. Native process, route, and Gateway generations fence callbacks. Preserve main's removal-time invalidation and guaranteed disconnect on reconciliation failure. Device errors distinguish pending approval, missing device commands/plugins, and Gateway allow/deny policy. Main's shared deadline and temporary-directory owners remain canonical.
The cleanup removes duplicate child-exit tracking and a single-use native exec adapter without changing callback gating or forwarded fields. Tests retain transport/process/restart/cancellation/authority boundaries. Catalog refresh uses a fake clock separately from scrolling and paint assertions, while preserving current host-targeted pagination and exhausted-host rows. Main's current Vitest API/cache policy and native compiler fixture replace superseded adaptations.
Native packaging retains the normal isolated source install. Pricing estimates retain version-specific manifests, alias/snapshot normalization, discovery, and operator overrides, using the previously recorded Anthropic pricing and AWS pricing-feed evidence. CI consolidates the isolated local scanner setup while retaining trusted policy selection, file selection, pinned tools, failure propagation, and Python isolation.
User Impact
Fewer completion RPCs; truthful companion outcomes; reliable shared-ref cleanup and complete Git data; hosting refresh after approval; actionable device guidance; complete deadline-owned output; and accurate cleanup status for completed commands. Native packaging does not require a source-layout migration. Sonnet 5 estimated pricing is corrected; historical usage and invoices are not rewritten.
No new product configuration, dependency pin, SQLite schema, public protocol version, or second production node identity relative to integrated main. The approval-only socket SDK retains decision-or-null. Product deadlines and security/ownership fences remain unchanged. No overall measured node-session speedup or production rollout is claimed.
Evidence
Published candidate:
035178aa67c9946dbd2e6fc14e536bf2b82da132, tree4b63014cfa41bcdf951f60000522dfa01ae56740, integrates main8b37368a4e3fc7a7549f7a42dd50494f3be6ff2f.6badc96e7a42929be8263fac177a8e7ea979ccdcreproduced silent incomplete output from a real 17 MiB Git blob. The repaired wrapper and owner/sibling selection passed 125 cases with one platform skip. Command:node scripts/run-vitest.mjs src/infra/git-exec.test.ts src/agents/worktrees/git.test.ts src/gateway/worker-environments/workspace-result-ref-mutation.test.ts src/gateway/worker-environments/node-worker-tunnel.finalization.test.ts src/process/exec.test.ts src/process/exec-termination.test.ts..artifacts/vitestwhile the canonical owner returned.cache/vitest. Changed seven expected path components only. The same four named cases then passed; 792 other cases were filtered out, not run. Files:test/scripts/test-projects-routing.test.ts,test/scripts/test-extension.test.ts,test/scripts/test-group-report.test.ts, andtest/scripts/test-projects.test.ts. Production cache placement and concurrency assertions are unchanged.node scripts/check-changed.mjs -- src/infra/git-exec.ts src/agents/worktrees/git.ts src/agents/worktrees/git.test.ts; thennode scripts/check-changed.mjs -- test/scripts/test-projects-routing.test.ts test/scripts/test-extension.test.ts test/scripts/test-group-report.test.ts test/scripts/test-projects.test.ts. The core checks preceded only the seven test-literal corrections; the tooling checks cover the final tree.scripts/package-mac-app.shcompleted for arm64 debug in 663 seconds. App, core, and embedded worker match commit035178aa67c9946dbd2e6fc14e536bf2b82da132and build timestamp2026-09-06T09:14:48.867Z. Foundation Developer ID signatures, required MLX helper/shaders, package integrity, and packaged-worker initialization were verified. Signature and worker proof passed again after relocation; source remained clean and final resource admission passed. No GUI launch, paired turn, or live authority-chain pass is implied.51c7271303939bf04663933aabc3fc3b53f8b25e. Matching build identities, MLX helper/shaders, package integrity, and worker-first/native-first initialization were verified, including after relocation. Compilation/signing succeeded; its first wrapper success receipt was blocked by a later CPU-headroom check. A separate verification receipt preserved that distinction. This artifact has not been relabeled as the current candidate.The integrated product dependency is Codex 0.153.4, inherited from main. The parent personally inspected pinned stdio transport and process ownership contracts. Source inspection does not substitute for live execution.
Current LOC against integrated main: runtime +699/−405 (net +294); tests/support +5,212/−2,372 (net +2,840); tooling/workflows +106/−55 (net +51); docs +18/−3; metadata +2/−2. Total: 139 files. Test-only support under
src/is classified separately from runtime. Production growth implements compound finalization fences, connection-owned publication, common-Git-directory mutation ownership, and typed outcome/diagnostic behavior. Pure moves and shared-fixture relocation do not create additional runtime owners.Review follow-through and remaining gates
The concrete cache-path finding in the latest durable review is fixed with failing/passing proof. Its
package.jsondata-model signal is not a schema change: the manifest delta only adds four Windows test-selection paths. The environment-name budget is an exact shrink to the measured count; it does not add configuration.Exact-head required CI and final signed paired-node/browser acceptance remain pending. Acceptance includes valid delivery plus revoked/stale/reassigned authority rejection at the private-worker boundary, real Full-access turns, cancellation/reconciliation, independently verified execution and workspace bytes, and timings. No prepare, merge, production deployment, or current-head paired model turn is claimed.
The operator explicitly waived further standalone npm/scanner acceptance investigation. Earlier runs reached passing real scanner controls but intermittently stalled in policy bootstrap; no root cause was established, and those runs are not reported as complete passes. Normal required CI and reviewer credential scanning remain enabled.
Historical paired-node evidence remains attached to its original source: twelve Full-access turns at an older head required no run approvals and verified both-host bytes. It does not prove this head. Its uncontrolled timing comparison did not establish an overall speedup; the structural saving here is three finalization RPCs.
Documentation: https://docs.openclaw.ai/nodes · https://docs.openclaw.ai/tools/exec-approvals · https://docs.openclaw.ai/platforms/mac/xpc · https://docs.openclaw.ai/providers/anthropic