Skip to content

refactor(cli): deslop CLI, ACP, and logging - #157748

Merged
steipete merged 2 commits into
mainfrom
deslop/l39-cli2
Sep 25, 2026
Merged

steipete merged 2 commits into
mainfrom
deslop/l39-cli2

Conversation

@steipete

@steipete steipete commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Related: #156622

The prerequisite #157900 merged as 24827cd1a9e7a6dca19027ca121ba90fc03108c3. This PR is rebased onto main; the scanner changes are no longer part of its diff.

What Problem This Solves

This maintainer-requested second CLI pass and first ACP/logging pass remove repeated internal decisions, result construction, and forwarding layers that make the existing command and session flows harder to maintain.

User Impact

No intended user-visible change: command names, aliases, options, defaults, help, exit status and JSON shapes remain fixed, as do ACP messages/session behavior and logging fields, redaction, and file/rotation behavior. This refactor introduces no configuration or data migration.

Why This Change Was Made

The changes reuse existing owners and combine identical paths while preserving their boundary checks and explicit output projections. Production code shrinks by 1,404 net lines (CLI 921, ACP 257, logging 225, and one companion barrel line); tests/support grow by 50 lines. The assertion-safety baseline only shrinks to match removed assertions.

Simplifications and rationale
  • CLI config: reuse canonical path, record, unique-list and invalid-config renderers; resolve paths once and share secret-resolution inputs.
  • CLI dispatch: use the actual channel-send owner type and its lazy loader; remove artificial module wrappers and casts while preserving cache failure eviction.
  • CLI presentation: centralize the existing Docs footer bytes and help-example formatter; reuse explicit-option and unknown-command error owners.
  • CLI command registration: share hook list/toggle flows, directory list registration, node approval/rejection plumbing, and simple cron RPC registration. Preserve registration and option order.
  • Claws: share the existing consent decision and immutable planning inputs across operations.
  • Inference: share TTS output publication/result construction, use the provider-command registrar for model providers, and remove duplicate image/video result projections and forwarding helpers.
  • Gateway/service CLI: share trusted-dotenv application across selection/reload; require the configured health-probe owner instead of retaining an unreachable unconfigured probe. Keep existing deadline/address tests at the canonical owner. Remove duplicate response types and output branches.
  • Update CLI: one strict service-inspection reader owns effective/loaded command checks; simplify completion and target presentation, reuse native-result parsing, and remove an unreachable recovery branch. Preserve admission, authority, compensation, and settlement order.
  • Cron CLI: normalize creation schedules once, assign tool grants after selecting the edit payload, and use canonical scratch protocol response types. Preserve legacy pagination and scratch CAS handling.
  • Fleet CLI: use canonical create options and lazy-promise loader instead of duplicate declarations and a forwarding function.
  • Native hook relay and port handling: share response/deadline rendering and fuser invocation/error handling. Preserve direct-signal PID safety, bridge fallback, and deadlines.
  • Remaining CLI helpers: remove redundant dotenv, QR, worktree, npm-resolution and prompt wrappers; reuse existing date-window and string/number helpers; retain shipped compatibility contracts.
  • ACP: share runtime-option admission, cache the advertised-key map per serialization, and consolidate snapshot envelopes, tool results, approval matching and provenance fallback completion. Session routing retains its precedence with six added cases in the existing test.
  • Logging: derive input types from canonical diagnostic event types, share bounded support traversal while retaining distinct config/snapshot redaction rules, consolidate explicit stability-event field prefixes, and share activity-marker cleanup and attention-result construction.

The audit read the complete production subtrees, including all 217 files originally over 200 lines. No source file changed by the first CLI pass is edited again. Changed-export importers were searched across src, extensions, packages, test, scripts, ui, and apps; meaningful lifecycle/authority guards and output allowlists remain intact.

Evidence

Fresh independent Codex review is clean through P2. The stacked candidate preserves main's filesystem-helper redirects and Windows Task Scheduler diagnostics. Remote proof verified all 115 changed-file hashes before execution.

Check Result Wall time
OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build Pass 579.579 s
node scripts/check-changed.mjs -- <115 changed paths> Pass; all 25 test-type shards, three dead-export scans, lint and guards 1,706.918 s
CLI focused/mapped tests via node scripts/run-vitest.mjs 89 selections; eight Vitest groups passed 170.715 s
ACP selection 33 selections passed 52.681 s
Service/update lifecycle selection 36 selections passed 251.539 s
Entire logging selection 53 files / 1,023 cases passed 58.329 s
Cross-subsystem importer selection 31 selections; 13 Vitest groups passed 123.451 s
Real pnpm openclaw CLI/ACP smoke 101 isolated checks passed 197.916 s
Additional CLI smoke 14 isolated checks passed 43.197 s

The importer census covered all 431 named exports in the old/new changed-production-file union, searching src, extensions, packages, ui, apps, scripts, and test. Anthropic and memory-core consumer tests also passed in the initial candidate run (54.574 s); those inputs are unchanged.

The real CLI smoke covers help, config, JSON/error routes, a task-owned loopback Gateway, ACP initialize/new/mode/list/resume/close, cron creation/edit/scratch/toggle/removal, and support export. Additional checks cover maintenance, audit, private QA, Discord thread dry-run, unknown-command JSON, and dashboard JSON. All state, tokens, messages, and workspaces are synthetic and isolated.

Changed-test wall costs with pnpm test <file> --maxWorkers=1: session mapper 2.520 s / 8 cases; Gateway probe 19.100 s / 9 cases; supervised CLI probe 22.647 s / 16 cases; ACP abort-cause fixture 24.332 s / 1 case. The original Gateway-probe baseline was 21.051 s. Hosted CI reported 0.019 s across the eight mapper cases, 1.065 s across the nine Gateway-probe cases, 0.093 s across the 16 supervised-lock cases, and 8.362 s across the ten legacy Doctor cases. These sums of per-case timings exclude collection and shard overhead; the ACP abort fixture also has a reported whole-file duration of 9.661 s.

The build reports startup JavaScript at 371,511 compressed bytes, 179 B above the numeric warning limit. PR #157942 already owns this UI budget condition and documents clean main at 371,516 B; it defers MCP text without raising budgets. This lane does not change UI budgets. The shared duration parser participates in the UI startup closure, so the exact byte difference is not attributed without paired measurement. Structural build checks passed.

Fixes found along the way

The ACP abort-cause end-to-end fixture still expected a directly advertised session_status tool after Tool Search became the default. It now explicitly selects the direct-tool surface its synthetic provider implements; its validation-error and cancelled-settlement assertions remain unchanged. A control confirmed the original fixture lacked the direct tool, produced five requests, and failed its unchanged assertion (53.465 s); the repaired fixture passed (22.448 s). No timeout, retry, or assertion was weakened.

The strict service-reader consolidation exposed an implementation-coupled Doctor fixture: it mocked exported updater policy wrappers, so validation inside their owner reached the real host-account policy and rejected synthetic state. The shared fixture now emulates only the native-manager policy boundary; updater readers and error mapping remain real, and runtime-only cases delegate to the real assertion. No production check or existing test assertion was weakened. The captured 36-file CI shard reproduced exactly eight Doctor failures plus 522 passes in 208.587 s; removing the cleanup yielded 530 passes in 199.351 s; the corrected fixture passed all 530 in 172.558 s. All 12 other fixture consumers passed 150 cases in 146.614 s, and the independent native-policy suite passed all 16 cases in 2.271 s. The legacy file's measured pnpm test ... --maxWorkers=1 cost is 24.654 s for 10 cases. Fresh independent review of this fixture-only correction is clean through P2.

The original PR's hosted CI hit the manifest planner's 20-minute budget. The separate prerequisite fixes repeated literal scanning and an unterminated-Unicode cursor loop. A captured large request measured 102.687 / 5.276 / 5.574 / 105.510 seconds in A-B-B-A order with identical JSON hashes. The original failed merge's complete planner replay then passed in 258.288 seconds. The prerequisite's narrower exact-head CI is green; its 29-second manifest step is not a comparable measurement of the original workload.

The canonical public package and installed published [email protected] updater passed in 514.651 seconds. The first update invocation installed candidate 2026.9.6, preserving npm ownership, launcher identity, installed manifest/build-info, operator configuration, and the workspace sentinel. Candidate tarball SHA-256: 318af29fc97ff1a376ddf51609e678e65bee5e29e0cacb215d24e42840f9fe70. This isolated --no-restart cell did not exercise native service restart or session-history migration.

Remote provider: Blacksmith Testbox (run), lease tbx_01m3bg0w800rm4jphmr17n67p4. Commands ran sequentially through node scripts/crabbox-wrapper.mjs run --provider blacksmith-testbox --id … --timing-json -- OPENCLAW_TESTBOX=1 OPENCLAW_TESTBOX_REMOTE_RUN=1 …, starting with pnpm install --frozen-lockfile. The complete proof passed and reverified all 115 source hashes. The lease is stopped.

The fixture-only follow-up also passed node scripts/check-changed.mjs -- src/flows/doctor-health.test-support.ts in 359.658 seconds, including both selected test-type graphs, all three dead-export scans, lint, and repository guards. Its Blacksmith Testbox run used lease tbx_01m3bn9mndpebk4bfxh7kysxth, now stopped. All 116 final source hashes were verified, and the committed tree c40ac37ce3cd97b6ec4f6d279d16c86da232fac6 exactly matches that completed proof. Production files are unchanged from the full build, CLI/ACP smoke, and published-driver update proof above.

Real managed-service upgrade

The authentic published [email protected] updater completed its first actual update invocation with restart enabled against this candidate. The isolated native scenario passed in 108.224 seconds, after a fresh canonical public package build/validation passed in 656.834 seconds. It used a newly created Linux OS account, its canonical HOME/state paths, real user-systemd and D-Bus, and the published CLI's gateway install, gateway start, and update --tag file:<candidate> --yes --json commands. No service-manager shim or production-code patch was used.

Before update, the real Gateway reported 2026.9.4; afterward it reported 2026.9.6 and the candidate's exact packaged build ID. Both HTTP health/readiness and authenticated RPC health passed. The native PID changed from 11237 to 13052, systemd's invocation ID changed, the same unit ID and unit-file location were retained, and UID/cgroup ownership was verified. The updater reported ok/npm; install root, launcher, operator configuration, and the workspace sentinel were preserved.

Verified source: bbb7ef56c7d230296d7d9bc93040ab5e79d9a39c, tree c40ac37ce3cd97b6ec4f6d279d16c86da232fac6. Crabbox materialized build commit be6e8c653d77b4b3cee06386b01c067256332ec4; the serving Gateway reported 2026.9.6-be6e8c653d77-2026-09-25T08-28-10.325Z, matching the installed artifact. Candidate SHA-256: a7c24acf564b27dfce6635bac8c16052456ea4d8f3450a3345a17975a642ca42. All 116 source hashes remained unchanged.

Blacksmith Testbox hosting run, lease tbx_01m3bsr6vnx0378y6g3bez18fk. The owned service, user manager, account, and processes were removed successfully; all six cleanup checks returned success, then the lease was stopped. An initial bootstrap-only attempt stopped at an unnecessary busctl status credentials-introspection probe before OpenClaw was installed. Replacing that extra probe with the repository's canonical systemctl --user show-environment readiness check, with output discarded, left all real product assertions intact; the same integrity-verified tarball was reused.

The review's managed-restart observation is now complete. Its automated schema warning does not describe this diff: claws-cli.runtime.ts consolidates planning inputs, and the assertion-safety file is a shrink-only ratchet, not a stored-data schema. This refactor introduces no configuration, default, schema, or retention change.

Approved rebase resolution

Main commit d57aa0cc18f (#157892) added explicit restart-health failure reasons. In src/cli/daemon-cli/restart-health-diagnostics.ts, the resolution retains main's complete six-entry restartFailureReasons map and GatewayRestartWaitOutcome type import. The entire formatGatewayRestartFailure function is byte-identical to main: the existing still-starting and service-stayed-stopped branches retain precedence, followed by Gateway restart failed: <reason>. for both statusLine and failMessage, then the timeout branch.

Kept from this PR: the direct ports-format.js import of the same formatter, exporting the existing renderer implementation as renderGatewayPortHealthDiagnostics, calling it directly from renderRestartDiagnostics, and deleting the redundant forwarding function. Dropped: none; each retained simplification remains equivalent. Main's lifecycle-readiness.test.ts and restart-health-progress.test.ts are unmodified.

After the first rebase, the post-prerequisite measurement was 109 production files, 1,104 insertions / 2,514 deletions, 1,410 net lines removed. Every added and deleted line of the previously approved patch was unchanged; range-diff differed only in context around main's new import and map. The Doctor fixture commit was patch-identical.

Final update-verification rebase

Main commit c926e83c8e9 (#157329) independently inlined the previous-Gateway verification receipt helper while adding readiness progress at its owner. The conflict in src/cli/update-cli/update-command-verification.ts is resolved by keeping main's complete previous-Gateway verification implementation byte-for-byte, including its positive run guard, receipt text, authority check, callback ordering, and timestamp.

Dropped from this PR: the now-redundant recordPreviousGatewayVerification helper-inlining hunk, because it is already owned by main. Kept: the two equivalent loops that project version/build mismatches and plugin/channel errors into existing failure facts, preserving order, fields, messages, and codes. Every other added/deleted line in the previously approved patch remains unchanged. The earlier restart-health resolution remains intact, with no additional dropped hunks there.

The final production measurement is 109 files, 1,103 insertions / 2,507 deletions, 1,404 net lines removed. The six-line difference from the post-prerequisite measurement is entirely the helper simplification already incorporated by main. Tests/support remain +50 lines and the assertion baseline remains -7.

Final status

The coordinator has removed the archive-worker dependency hold because exact-head CI for 956169817f6e958d71174165004cc0d9a6475d6c completed green. The current rebase at 2ea37d37ff204a96cd972a00f46925e019633bd9 passed 15 unmodified main test files / 607 cases in 304.184 seconds through node scripts/run-vitest.mjs, including all nine new Windows readiness-progress cases, original-service coverage, restart probes, verification/recovery callers and triage. All 131 source/test hashes matched before and after; the frozen dependency install passed. Blacksmith Testbox run, lease tbx_01m3c96efrjzy7wx48c8s6ezre, now stopped. The command and wrapper exited successfully; an external runner-portal sync warning occurred only after proof completed. Exact-head CI and the subsequent failure investigation are recorded below. No archive repair is included in this PR.

CI timeout investigation and authorized retry

Initial CI failure (attempt 1). Exact-head CI 36138658157 failed in checks-node-changed-config-compact-small-1 (plus the aggregate CI gate); fail-fast cancelled the run. This is not the archive-worker failure. After six passing cases, src/gateway/server.config-patch.test.ts hit a 180-second hook timeout for openclaw.changes.list preserves an approved include-only operation without a duplicate write, then a 300-second no-output termination (exit 143). Its failed job log was captured once; no hosted rerun was used during the diagnostic comparison.

A bounded Blacksmith comparison replayed the original full-file shard and order at the exact CI merge ceefc05b8d178ae5157ce8fa97bf320c9d4dd87e and its clean first parent d5d4952c5bcabcf1470846c02d88bf04c66051d2. Both used Node 24.19.0, two workers, two-CPU affinity, frozen dependencies, unchanged test/hook/no-output deadlines, and separate clean worktrees. Candidate: 81/81 passed in 213.262 seconds; clean base: 81/81 passed in 279.285 seconds. The named case passed in 2.629 and 5.416 seconds respectively. These replays did not reproduce the CI timeout and do not establish a repair.

Blacksmith Testbox run, lease tbx_01m3cc6xxq5b5t0hysk9mq439a, stopped after the comparison. Source remained unchanged. Open #157886 independently documents the same case, hook timeout, no-output termination and exit 143 in CI 36099648083; it explicitly says no cause or repair is established. No owning repair is merged on inspected main. The initial landing stopped under the standing rule. The coordinator then explicitly authorized exactly one failed-job rerun on the unchanged head. Attempt 2 completed successfully for head 2ea37d3. No second rerun was used. The passing rerun does not establish a repair for the timeout; its ownership and any further investigation remain a separate follow-up.

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 25, 2026 00:13
@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: 2ea37d37ff204a96cd972a00f46925e019633bd9
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/logging/diagnostic-support-redaction.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 25, 2026, 10:15 AM ET / 14:15 UTC (Revision 11).

ClawSweeper review

What this changes

The branch consolidates CLI commands and service handling, Agent Client Protocol session flows, and diagnostic logging and redaction, with focused test updates.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open. Current main retains the pre-refactor implementations, and this remains a coherent contribution with production-path upgrade proof. This review found no supported blocking defect at the pinned head.

Priority: P2
Reviewed head: 2ea37d37ff204a96cd972a00f46925e019633bd9

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong production-path proof and substantial validation support a coherent but broad refactor with no actionable finding in this review.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The changed CLI, ACP, and update owners are tied in the PR body to real command and session smoke runs and a published-updater managed restart, with observed candidate version, build, PID, and health results. No stored-data contract changes in the introduced diff, so migration compatibility is not applicable.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The changed CLI, ACP, and update owners are tied in the PR body to real command and session smoke runs and a published-updater managed restart, with observed candidate version, build, PID, and health results. No stored-data contract changes in the introduced diff, so migration compatibility is not applicable.
Evidence reviewed 7 items Pinned introduced change: The introduced diff consolidates existing service inspection under the update owner; the reader still requires the effective loaded command and manager-policy validation.
ACP routing and coverage: Per-session metadata still outranks server defaults, and the added table exercises label, key, existing-session, and fallback precedence.
Sensitive redaction path: The shared traversal retains separate private-field rules for configuration and diagnostic snapshots, including argument-aware snapshot redaction.
Findings None None.
Security None None.

How this fits together

The CLI turns operator commands into Gateway requests and service actions, while Agent Client Protocol translates client sessions and events into Gateway operations. Diagnostic logging turns runtime events into bounded, redacted support output.

flowchart LR
  A[CLI commands] --> B[Command routing]
  C[ACP client] --> D[Session translation]
  B --> E[Gateway]
  D --> E
  E --> F[Diagnostic events]
  F --> G[Redaction]
  G --> H[Support output]
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Published upgrade proof 1 managed-service restart cell The branch touches update and service handling, for which the repository requires a published-driver-to-candidate check.

Stored data model

Persistent data-model change detected: database schema: src/cli/claws-cli.runtime.ts, migration/backfill/repair: config/assertion-safety-baseline.txt, unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep one owner for each CLI, ACP, and diagnostic decision while preserving observable command, session, upgrade, and redacted-support behavior.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is an internal refactor rather than a reported failure. The recorded production-path runs provide behavior-parity evidence.

Is this the best way to solve the issue?

Yes: the branch reuses existing owners and removes repeated paths while retaining the checked routing, service-admission, and redaction decisions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 86ac7739b1a5.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded maintenance improvement across important CLI, ACP, and diagnostic paths, without a demonstrated urgent user regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed CLI, ACP, and update owners are tied in the PR body to real command and session smoke runs and a published-updater managed restart, with observed candidate version, build, PID, and health results. No stored-data contract changes in the introduced diff, so migration compatibility is not applicable.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed CLI, ACP, and update owners are tied in the PR body to real command and session smoke runs and a published-updater managed restart, with observed candidate version, build, PID, and health results. No stored-data contract changes in the introduced diff, so migration compatibility is not applicable.

Evidence

What I checked:

  • Pinned introduced change: The introduced diff consolidates existing service inspection under the update owner; the reader still requires the effective loaded command and manager-policy validation. (src/cli/update-cli/update-command-service-plan.ts:275, 2ea37d37ff20)
  • ACP routing and coverage: Per-session metadata still outranks server defaults, and the added table exercises label, key, existing-session, and fallback precedence. (src/acp/session-mapper.ts:36, 2ea37d37ff20)
  • Sensitive redaction path: The shared traversal retains separate private-field rules for configuration and diagnostic snapshots, including argument-aware snapshot redaction. (src/logging/diagnostic-support-redaction.ts:573, 2ea37d37ff20)
  • Current-main necessity: Current main retains the pre-refactor ACP runtime-option, update-service, and support-redaction blobs, so the central cleanup is not already incorporated. (src/acp/control-plane/runtime-options.ts:338, 86ac7739b1a5)
  • Production behavior proof: The PR body records isolated real CLI and ACP flows and a published [email protected] updater installing the candidate with a managed-service restart; the reported Gateway version, build identity, PID, HTTP readiness, and authenticated health changed as expected. The body says the final production files remained hash-identical through the later fixture and rebase work. (2ea37d37ff20)
  • Prior timeout and current gate: The previous review recorded no findings but flagged a config RPC timeout. The PR body records passing candidate and base replays without claiming a repair; the current pinned-head aggregate CI status is successful. The separate diagnostic work remains open at fix: preserve config reload diagnostics in tests #157886. (2ea37d37ff20)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-25T07:04:09.244Z sha 72294f8 :: blocked before merge. :: none
  • reviewed 2026-09-25T07:51:08.308Z sha bbb7ef5 :: blocked before merge. :: none
  • reviewed 2026-09-25T08:36:08.598Z sha bbb7ef5 :: blocked before merge. :: none
  • reviewed 2026-09-25T09:10:03.362Z sha bbb7ef5 :: blocked before merge. :: none
  • reviewed 2026-09-25T10:00:08.678Z sha 9561698 :: blocked before merge. :: none
  • reviewed 2026-09-25T10:30:48.757Z sha 9561698 :: blocked before merge. :: none
  • reviewed 2026-09-25T13:12:06.069Z sha 2ea37d3 :: blocked before merge. :: none
  • reviewed 2026-09-25T13:59:36.739Z sha 2ea37d3 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 25, 2026
@steipete
steipete changed the base branch from main to deslop/l39-ci-source-scan September 25, 2026 06:34
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime cli CLI command changes fleet size: XL labels Sep 25, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Sep 25, 2026
Base automatically changed from deslop/l39-ci-source-scan to main September 25, 2026 09:30
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Sep 25, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the scripts Repository scripts label Sep 25, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 25, 2026
Consolidate command registration, result projection, strict service reads,
ACP session mapping, and bounded diagnostic traversal under existing owners.
Remove redundant wrappers, declarations, and repeated normalization while
preserving command, protocol, lifecycle, output, and redaction contracts.

Configure the ACP abort-cause fixture for the direct tool surface it implements.
Production code shrinks by 1,410 net lines; no operator migration is required.
Keep the synthetic manager fixture independent of updater reader placement.
Exercise real updater wrappers and delegate to the actual native policy for
runtime-only cases. Preserve all maintenance and refusal assertions.
@steipete
steipete merged commit 22fbcfc into main Sep 25, 2026
401 of 404 checks passed
@steipete
steipete deleted the deslop/l39-cli2 branch September 25, 2026 14:19
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
* refactor(cli): deslop CLI, ACP, and logging

Consolidate command registration, result projection, strict service reads,
ACP session mapping, and bounded diagnostic traversal under existing owners.
Remove redundant wrappers, declarations, and repeated normalization while
preserving command, protocol, lifecycle, output, and redaction contracts.

Configure the ACP abort-cause fixture for the direct tool surface it implements.
Production code shrinks by 1,410 net lines; no operator migration is required.

* test(doctor): mock the native service policy boundary

Keep the synthetic manager fixture independent of updater reader placement.
Exercise real updater wrappers and delegate to the actual native policy for
runtime-only cases. Preserve all maintenance and refusal assertions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes fleet gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. security-sensitive-changed size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant