Skip to content

refactor(commands): deslop commands sixth pass - #161202

Merged
steipete merged 2 commits into
mainfrom
deslop/l172-commands6
Sep 29, 2026
Merged

steipete merged 2 commits into
mainfrom
deslop/l172-commands6

Conversation

@steipete

@steipete steipete commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Continues the maintainer-requested commands cleanup by removing duplicate result projections, migration traversal, and formatter plumbing left after the fifth pass.

User Impact

No intended user-visible change. Command behavior, flags, output text, exit codes, Doctor migrations, and config writes retain their existing contracts. There are no new settings, schema changes, or operator actions.

Why This Change Was Made

The existing owners can express these flows with less parallel implementation and fewer forwarding layers. Production code is 993 lines smaller; tests and support retain their assertions and add 10 net lines. The sweep started from fresh main, read the recent subtree change names including #159817, and covered every production module, including all 242 files over 200 lines.

Simplifications and rationale
  • Status sections and report builders import their canonical theme, time/token formatters, memory state resolvers, compatibility formatter, and table renderer directly. This removes callback plumbing used only to replace these owners in tests; the tests now spy on the owners.
  • Stale-model repair shares the string/object primary decision and messages while retaining fallback selection, inheritance, and duplicate-fallback removal.
  • Subagent allowlist scan and repair share scope discovery.
  • Legacy config normalization shares the context-budget result while retaining source-before-migrations behavior.
  • Plugin install health reports share their repeated issue projections, configured plugin IDs are collected directly, and plugin registry migration shares the existing malformed-record validation.
  • Doctor pairing removes a redundant load wrapper and checks already established by the role-admission branch; copy-preserving projections and canonical scope implication checks remain.
  • Session repair removes impossible empty-group branches and redundant projections; transcript label migration combines two equivalent fixed-label rewrite rules.
  • Cron repair shares save options and payload-field handling, reuses the existing count formatter, and removes repeated state initialization and conditions already established by normalization.
  • Agent binding commands reuse conflict descriptions and their existing result projections for human output; provider choices avoid redundant copies and assertions.
  • Config-only backup planning constructs its common result once, preserving missing versus canonical existing paths.
  • Migration CLI skill/plugin selection uses one ordered flow and canonical string normalization, retaining each kind's selection and config-write owner.
  • Configure sections derive from their descriptors; Gateway health auth diagnostics share the target-bound flow while retaining the different local and remote warning behavior. Channel status reuses finite-number normalization and ordered activity rendering.
  • Daemon PATH discovery and composition now have one owner, with unused private filesystem injections removed. Gateway readiness drops unused private retry options while keeping the same timing. Message formatting returns branch results directly.
  • Removed comments that repeated declarations or operations; retained ownership, lifecycle, authority, compatibility, and ordering explanations.

Evidence

Narrowed candidate

Current candidate: f90a7eb4ae2dc3d1cf87f7a28a84f568890233e5, source tree e4040f9434069acf15c1c90b247f45a431b1ea82. The cleanup retains 993 net fewer production lines, with 10 net added test/support lines and one fewer baseline line.

Six shared files are restored byte-for-byte to main: doctor-command-owner.ts, doctor/shared/legacy-tool-name-migration.ts, and doctor/shared/legacy-config-migrations.runtime.{retired,tier-eval,models.vllm,tool-policy-conflicts}.ts (all under src/commands/). Runtime import analysis found these files eagerly loaded by the later failing CI tests. The remaining diff has no changed eager import in those 13 failing-file paths, including top-level awaited fixture imports and partial mocks; the examined failing flows do not enter the conditional legacy-cron repair path. This narrows the refactor without modifying the unrelated runtime tests.

Fresh isolated Codex autoreview through P2 on the six-file withdrawal: scoped-clean, no actionable findings.

Pre-push checks on this exact narrowed source passed on Linux Blacksmith Testbox: madge 0 cycles, runtime imports 0 cycles, all nine candidate files 36 tests passed, plugin contracts 50 files / 1,179 tests passed, and every selected node scripts/check-changed.mjs --base origin/main --timed gate passed, including all 27 test-type shards. Provider blacksmith-testbox, lease tbx_01m3qdk4zn7jj0mkt4prykc7sf, host workflow 36626442905. The source checks completed; the wrapper subsequently reported a provider timeout during lease cleanup, so its overall exit 1 is recorded separately from the passing checks. Both provider status and stop APIs timed out; the owned host workflow was then cancelled and confirmed completed to release the runner.

Landing blocker (2026-09-29, 21:24 UTC): exact-head CI run 36630774659 is attached to f90a7eb4ae2dc3d1cf87f7a28a84f568890233e5, but preflight job 109619144977 remains queued before checkout: no assigned runner and no steps, after about 20 minutes. It requests blacksmith-16vcpu-ubuntu-2404. A newer unrelated PR's preflight (36631372288 / 109621164290) has the same unassigned shape; Blacksmith Testbox status and stop API calls also timed out. The control-plane errors and Actions assignment wait are separate observations, not proof of a specific provider root cause. No repository or test failure has been reported on this head. The precise CodeQL scan is also queued.

Pinned squash auto-merge is armed; the PR is open and mergeable but not merged. Pending/unexecuted CI does not qualify for the pre-existing-failure exception. No admin merge was attempted, no failing test was waived, and no CI run was restarted. The earlier-head results below remain historical evidence, not a current-head pass or merge qualification.

Original candidate settlement after rebase

Rebased without conflicts onto main 38dd3c28dd42f8c853f35b37ac688c4701bcf474; candidate head 4ece9d4193992bcc8f6774cbe12fda04d08ef88a, verified source tree ec395e59118c073bc6282abfa19c9145fd1a3ac8. git range-diff confirms the original reduction is patch-identical, so its prior P2 autoreview remains applicable; there is no new corrective delta.

The nine suspected PR-owned files all passed on both clean main and the rebased candidate: 9 files / 36 tests per revision. Classification: resolved by rebase for every candidate; no tests, assertions, or behavior were loosened.

Candidate under src/commands/ Main Rebased PR Classification
status-json.test.ts 3 passed 3 passed Resolved
model-picker.default-agent.test.ts 6 passed 6 passed Resolved
model-picker.provider-menu.test.ts 5 passed 5 passed Resolved
sessions.kind-classification.test.ts 1 passed 1 passed Resolved
setup.doctor-recovery.test.ts 1 passed 1 passed Resolved
doctor-state-integrity.order.test.ts 1 passed 1 passed Resolved
doctor-config-preflight-plugin-verification.test.ts 9 passed 9 passed Resolved
doctor-config-preflight.plugin-action-inventory.test.ts 2 passed 2 passed Resolved
doctor-config-preflight.legacy-owner.process.test.ts 8 passed 8 passed Resolved

The old CI failures were snapshot-cleanup/read-admission cascades, including an unexpected updateRunStatus.runStatusError in status JSON. The new base includes main's 7b64dadaeeb43212fb23787feaf8722f56a45032 snapshot-cleanup custody repair. The focused replay establishes the current candidate result; it is not a claim that every old shard was replayed.

Comparison command: CI=1 node scripts/run-vitest.mjs <the nine files above> --reporter=verbose, with a detached clean main worktree and frozen dependency install on the same Linux Blacksmith Testbox. Main wall time: 49.88 s; candidate: 47.99 s. Provider blacksmith-testbox, lease tbx_01m3q7cxr57hgymhk75mm8er86, host workflow 36613551912. Wrapper source verification and command exit 0 passed.

Pre-push proof on this exact source passed: node --import ./scripts/tsx.mjs scripts/check-madge-import-cycles.ts reported 0 cycles; node --import ./scripts/tsx.mjs scripts/check-import-cycles.ts reported 0 runtime value cycles; node scripts/check-changed.mjs --base origin/main --timed passed all selected gates; and node scripts/run-vitest.mjs src/plugins/contracts passed 50 files / 1,179 tests. Provider blacksmith-testbox, lease tbx_01m3q72b1c8pnepsb89qh4s0ya, host workflow 36612859757. The remote command exited 0; both task leases were stopped after success. Testbox workflow cancellation during lease cleanup is not a test failure.

The previous CI run 36616587292, head 4ece9d4193992bcc8f6774cbe12fda04d08ef88a, tested merge b3346cfb0a34c9856e7b5d8c1026c2e984f3ba67 with main bda22f818d967ffa3551b3a729d5bc43863844c7. It finished with 9 originating failed jobs (13 files / 21 cases), plus the aggregate gate; 124 jobs passed, 20 skipped, and none were cancelled.

A clean-main replay at that exact main parent reproduced 19 of the 21 cases with matching assertions/errors, across 11 files. It retained the ten original failing Node groups (316 files, their configs and worker settings) and ran the unchanged failing UI file after installing Chromium. Provider blacksmith-testbox, lease tbx_01m3qafdkgwz7zsa65qzyyr2jf, host workflow 36620000716. Expected and actual values, booleans, nulls, timeout duration, and missing exports matched; only log transport, temporary paths, timestamps, and UUIDs were normalized.

The cancellation-publication case also failed identically on newer main d8d0e9c990ea8006fdf8907d9e4972dbf452372b, hourly run 36619831492, job 109582556671: expected killed=true, cascadeKilled=1, received false, 0. That establishes main evidence for 20 of the 21 previous-head cases. The heartbeat different-store case passed its clean-main group and remains unqualified; a passing replay is not a fix. The narrowed head requires its own CI result before any merge decision.

Main-owned failures observed on the earlier head

These are historical results from CI run 36616587292, not failures asserted for the pending narrowed-head run. Unless noted otherwise, the matching clean-main proof is bda22f818d967ffa3551b3a729d5bc43863844c7 on Testbox host run 36620000716.

Earlier CI job Test file Matching main error
compact-large-4 / 109571805947 src/cron/service/ops.mutation-completion.test.ts Replay marked committed; native-commit rejection resolves instead.
compact-large-4 / 109571805947 src/cron/service/owner-hardening.test.ts CronJobsStoreChangedError rejects an expected resolution.
compact-large-4 / 109571805947 src/cron/service/shared-store-runtime.test.ts Same-time admission rejected; successor edit raises store-changed.
compact-small-6 / 109571806004 src/agents/subagents/registry/subagent-registry-task-replacement.test.ts 120-second timeout; acknowledgement receives invalid-event.
compact-small-8 / 109571806074 src/cron/isolated-agent/delivery-dispatch.double-announce.test.ts Mock lacks countPendingDescendantRuns.
compact-small-8 / 109571806074 src/agents/subagents/registry/subagent-registry.store-replaced.test.ts Settlement resolves instead of rejecting.
compact-large-7 / 109571806118 src/agents/subagents/registry/subagent-control.publication.test.ts Expected killed/count true/1, got false/0; matched hourly main run 36619831492, job 109582556671.
compact-small-9 / 109571806152 src/agents/subagents/registry/subagent-control.test.ts Expected success/killed=1; got error/killed=0.
compact-small-9 / 109571806152 src/agents/subagents/registry/subagent-control.retirement.test.ts Rollback and retained-wake booleans differ.
compact-small-23 / 109571806384 src/gateway/server-reload-handlers.test.ts Expected intervals [7200000,3600000], got [7200000,7200000].
compact-small-22 / 109571812144 src/cli/update-cli.target-schema.test.ts Interrupted update remains validating/running with null terminal fields.
UI E2E 5/9 / 109571802330 ui/src/e2e/initial-connect-splash.e2e.test.ts Loading-composer gap is -500; expected at least 0.

The separate heartbeat follow-up failure (src/gateway/server.heartbeat-store-lifecycle.product-proof.test.ts, job 109571806771) remains unqualified: expected agent.wait status ok, got error before store replacement. It did not reproduce on clean main. No inherited-failure exception applies to that case without further evidence. A subsequent check of all 22 failure annotations across the eight failed Node jobs in latest hourly main run 36627294336 (5a674c5c87b95261991381d99cc385c3fe5f0ac9) found no matching heartbeat case; absence from those annotations is not a passing test result or a repair.

Retained proof for the unchanged reduction

All execution proof ran on Linux Blacksmith Testbox, with the repository wrapper verifying the base and source tree. No tests, lint, typechecks, or builds ran on the shared Mac.

  • node scripts/check-changed.mjs --base 98e3f67d93b8348f0c166ae9975703e5ad0fd287 --timed -- <changed paths> passed all selected gates, including core/test type graphs, lint, Knip, import cycles, and storage/pairing guards. Final targeted lint also reported zero warnings/errors across 136 TypeScript files.
  • node scripts/run-vitest.mjs src/commands src/cli <Doctor-flow and backup importers> passed 9 shards: 1,187 files and 19,073 tests passed, with 4 existing file skips and 67 existing test skips. The full CLI selection includes every shared expected-error predicate hit found across src/cli and src/commands.
  • All *import-boundary.test.ts selectors, including src/infra/fs-safe-import-boundary.test.ts, plus normalization-core package export tests passed across 9 shards.
  • After compiler/lint corrections, affected migration, binding, pairing, bootstrap-size, and status tests passed their focused replays. No assertions, skips, timeouts, or retry policies were weakened.
  • pnpm build passed on the original candidate and clean base. Nineteen real pnpm openclaw … --help captures were compared after both full builds. Options, descriptions, and examples are identical; the only raw differences are expected revision hashes in four banners. All help commands exited successfully, and source SHA-256 checks passed before and after the builds/captures.
  • Fresh isolated Codex autoreview through P2: scoped-clean, no accepted/actionable findings.

The declaration build caught an unsupported Map.groupBy use and a lost TypeScript narrowing local; both were corrected. Lint findings were corrected without changing settings or suppressions. Only this lane's two assertion-baseline decreases are included. The initial help fixture used unequal build preparation; the final comparison uses full builds for both revisions.

Test cost and remote proof provenance

Changed test cases are retained. One-worker wall measurements (pnpm test <file> --maxWorkers=1, paths under src/commands/):

File Wall time
status-overview-rows.test.ts 23.91 s
status-overview-values.test.ts 1.62 s
status.command-sections.test.ts 32.77 s
status.command-report.test.ts 39.31 s
status.agent-local.test.ts 25.48 s

Cold transforms account for up to 97% of these standalone runs. The retained test bodies check report ordering, empty-state output, row values, and agent projection in milliseconds; no new process or timer fixtures were added. The hosted CI attempt was cancelled by fail-fast before complete changed-test timings were available; the standalone Testbox costs above are the retained measurements.

  • Full suite and import boundaries: blacksmith-testbox, tbx_01m3p57tedabjbghghk5209jz8, host workflow. Full suite wall: 3,605.31 s; boundary batch: 115.14 s.
  • Final changed checks, focused replays, and build: blacksmith-testbox, tbx_01m3pawm3szhqwsprssz6bpzw6, host workflow. Changed checks: 1,808.30 s; final corrective replay: 42 s.
  • Fully built base/candidate help comparison: blacksmith-testbox, tbx_01m3pj7zh5rn179cby9azz3c36, host workflow. Candidate build: 367.56 s; base build: 403.27 s.

These are remote command results; host workflows can show cancelled when a lease is stopped. The source tree verified for this original reduction proof was 15270a9b93188b308c3702b24a09d483366618bc. Earlier full-suite evidence is retained for unchanged code, with affected suites replayed after the compiler/lint corrections.

Fixes found along the way

No separate runtime or test repair is included. Shared runtime files were withdrawn from the reduction; inherited main failures and the remaining unqualified case are recorded above.

@clawsweeper

clawsweeper Bot commented Sep 29, 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.

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations docker Docker and sandbox tooling size: XL labels Sep 29, 2026
@steipete
steipete marked this pull request as ready for review September 29, 2026 13:18
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 29, 2026
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 29, 2026, 5:34 PM ET / 21:34 UTC (Revision 7).

ClawSweeper review

What this changes

The branch consolidates CLI formatting and Doctor repair logic, adjusts status tests, and removes redundant command code while aiming to preserve existing behavior.

Merge readiness

⛔ Blocked before merge - 5 items remain

Keep open. Current main does not contain this cleanup, and the merged fifth pass is distinct. No definite introduced defect was established, but compatibility of the remaining state-writing Doctor changes through an update is unproven.

Priority: P3
Reviewed head: f90a7eb4ae2dc3d1cf87f7a28a84f568890233e5

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The code reduction and reported checks are substantial, but the changed stored-state repair paths still lack upgrade compatibility proof.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The supplied MEMBER association exempts ordinary contributor proof. Reported Linux Testbox checks and CLI help captures exercise command output, while the changed Doctor cron import and transcript rewrite paths lack a published-updater observation over copied old state; stored-data compatibility remains insufficient. The complete live PR body supplements the captured body, which has omitted ranges.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied MEMBER association exempts ordinary contributor proof. Reported Linux Testbox checks and CLI help captures exercise command output, while the changed Doctor cron import and transcript rewrite paths lack a published-updater observation over copied old state; stored-data compatibility remains insufficient. The complete live PR body supplements the captured body, which has omitted ranges.
Evidence reviewed 8 items Pinned introduced change: The merge-base-to-head diff changes Doctor's legacy cron import branch and other command paths; it is separate from base-branch drift.
Persisted transcript path: The branch combines legacy label rewrite rules; Doctor later writes changed transcript event JSON under a snapshot comparison.
Credential boundary: The consolidated health check still selects credentials by local or remote target, skips an unresolved credential unless a configured remote sibling resolved, and passes the selected credentials to the probe.
Findings None None.
Security None None.

How this fits together

OpenClaw command handlers receive CLI options and read configuration and local state. Doctor can repair stored configuration, cron jobs, and sessions, while status and agent commands render operator-facing results.

flowchart LR
A[CLI request] --> B[Command handlers]
C[Configuration and local state] --> B
B --> D[Doctor repair decisions]
B --> E[Status and agent output]
D --> F[Updated stored state]
Loading

Before merge

  • Resolve merge risk (P1) - The changed Doctor config and cron repair paths can rewrite existing operator state; a published updater has not been shown handing copied pre-upgrade records to this candidate with the expected backups and warnings.
  • Resolve merge risk (P1) - The changed transcript-label repair can rewrite persisted session events; existing-state compatibility has not been demonstrated through the update path.
  • Complete next step (P2) - Demonstrate a published-updater handoff into this candidate on copied pre-upgrade config, cron, and session state, including the resulting records, backups, and Doctor warnings.
  • 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

None.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/doctor-completion.ts, migration/backfill/repair: src/commands/doctor-device-pairing.ts, migration/backfill/repair: src/commands/doctor-memory-search.ts, unknown-data-model-change: src/commands/doctor-bootstrap-size.ts, unknown-data-model-change: src/commands/doctor-completion.ts, unknown-data-model-change: src/commands/doctor-device-pairing.ts, and 4 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Prove the upgrade handoff (recommended)
    Run a published updater into this candidate using copied pre-upgrade config, cron, and session state, then compare records, backups, and Doctor warnings.
  2. Defer state-writing cleanup
    If upgrade proof is unavailable, separate the Doctor state-writing refactors from the output-only cleanup.

Technical review

Best possible solution:

Keep one Doctor repair path that preserves existing config, cron, and transcript semantics, including recoverable warnings and backups, across a published-version update.

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

Not applicable: this refactor reports no existing-behavior bug. CLI help comparisons do not exercise Doctor repairs during an update.

Is this the best way to solve the issue?

Unclear: consolidation fits the existing command owners, but the state-writing portion needs upgrade compatibility evidence before its safety can be judged.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 14398941a104.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is internal cleanup with no intended user-visible change.
  • merge-risk: 🚨 compatibility: Doctor changes migration decisions for stored config and cron jobs without a published-updater compatibility demonstration for this head.
  • merge-risk: 🚨 session-state: Doctor also changes a rewrite applied to persisted session transcript events.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied MEMBER association exempts ordinary contributor proof. Reported Linux Testbox checks and CLI help captures exercise command output, while the changed Doctor cron import and transcript rewrite paths lack a published-updater observation over copied old state; stored-data compatibility remains insufficient. The complete live PR body supplements the captured body, which has omitted ranges.

Evidence

What I checked:

  • Pinned introduced change: The merge-base-to-head diff changes Doctor's legacy cron import branch and other command paths; it is separate from base-branch drift. (src/commands/doctor/cron/legacy-store-migration.ts:587, f90a7eb4ae2d)
  • Persisted transcript path: The branch combines legacy label rewrite rules; Doctor later writes changed transcript event JSON under a snapshot comparison. (src/commands/doctor-session-transcript-labels.ts:83, f90a7eb4ae2d)
  • Credential boundary: The consolidated health check still selects credentials by local or remote target, skips an unresolved credential unless a configured remote sibling resolved, and passes the selected credentials to the probe. (src/commands/configure.gateway-health.ts:32, f90a7eb4ae2d)
  • Current-main necessity: Fetched main retains the earlier legacy notification migration branch, while the PR head consolidates it; this central cleanup has not reached main. (src/commands/doctor/cron/legacy-notify.ts:73, 14398941a104)
  • Distinct merged predecessor: The earlier fifth cleanup pass is merged, but the sixth pass retains unique introduced changes. (d45a5b9aa715)
  • Current proof and prior review: The captured PR body has omitted ranges. A separate complete live REST body describes exact-source Testbox checks and CLI help comparisons, but no published-updater run over copied pre-upgrade state for this head. The prior review requested that upgrade evidence; the restored shared modules narrow the concern without removing the remaining state-writing changes.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Jason (Json): Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vito Cappello: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Show before-and-after stored records, backups, and Doctor warnings from a published-updater run over copied pre-upgrade state.

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 (6 earlier review cycles)
  • reviewed 2026-09-29T13:28:50.078Z sha c4e696b :: blocked before merge. :: none
  • reviewed 2026-09-29T13:46:00.900Z sha c4e696b :: blocked before merge. :: none
  • reviewed 2026-09-29T14:12:30.245Z sha dad28a2 :: blocked before merge. :: none
  • reviewed 2026-09-29T16:07:09.567Z sha 6517898 :: blocked before merge. :: none
  • reviewed 2026-09-29T19:20:06.318Z sha 4ece9d4 :: blocked before merge. :: none
  • reviewed 2026-09-29T19:44:10.231Z sha 4ece9d4 :: blocked before merge. :: none

@steipete
steipete enabled auto-merge (squash) September 29, 2026 15:59
Consolidate command formatting, migration traversal, and result projections while preserving CLI behavior, output, exit codes, Doctor migrations, and config writes. Remove redundant private plumbing and narrating comments; shrink only the matching assertion baseline entries.
@steipete
steipete disabled auto-merge September 29, 2026 18:38
@steipete
steipete force-pushed the deslop/l172-commands6 branch from 6517898 to 4ece9d4 Compare September 29, 2026 19:03
@steipete
steipete enabled auto-merge (squash) September 29, 2026 19:05
@steipete
steipete disabled auto-merge September 29, 2026 19:32
Restore six shared Doctor modules byte-for-byte to main so the commands
reduction no longer changes modules eagerly imported by the failing runtime
CI paths. Keep the remaining cleanup and all existing test assertions.

The original nine CI candidates pass on main and the rebased PR. Clean-main
replays separately reproduce 19 of 21 later CI failures; two remain
unreproduced. The narrowed source still requires its pre-push checks and CI.

Fresh isolated review through P2 found no actionable defects in this delta.
@steipete
steipete enabled auto-merge (squash) September 29, 2026 21:04
@steipete
steipete merged commit f3ed9bb into main Sep 29, 2026
391 of 393 checks passed
@steipete
steipete deleted the deslop/l172-commands6 branch September 29, 2026 23:10
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 30, 2026
Consolidate command formatting, migration traversal, and result projections while preserving CLI behavior, output, exit codes, Doctor migrations, and config writes. Retain shared runtime implementations unchanged and remove 993 net production lines.

All nine original CI candidates pass on clean main and the rebased PR. Exact-source Testbox checks pass, including both zero-cycle checks, changed checks, and 1,179 plugin contract tests. Independent review found no actionable findings. CI attribution and retained main-failure evidence are recorded in the PR body.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations docker Docker and sandbox tooling merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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