Repository navigation
fix(cli): retire invalid secret flags and prove doctor recovery - #118926
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 11:18 PM ET / August 5, 2026, 03:18 UTC. ClawSweeper reviewWhat this changesThis PR removes two schema-invalid secret-provider CLI flags, deletes their ineffective security bypasses, updates secret-provider documentation, and adds QA coverage for Doctor recovery. Merge readinessKeep open: current main still accepts two secret-provider CLI flags that its strict schema rejects, and this PR removes that invalid path with focused recovery proof. No blocking patch defect was found; Vincentkoc is the likely related contributor from the active CLI, secret, and QA history. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s config CLI writes secret-provider settings that the resolver validates before reading files or commands. Doctor migrates retired persisted settings, while QA Lab records whether gateway recovery can complete safely on a real host. flowchart LR
A[Operator CLI input] --> B[Secret provider config]
B --> C[Strict config schema]
C --> D[Secret resolver]
D --> E[Secure file or command access]
F[Doctor] --> G[Retired config migration]
G --> B
H[QA Lab] --> I[Gateway recovery evidence]
Decision needed
Why: The patch removes public CLI inputs, and repository policy treats CLI/config compatibility changes as requiring human upgrade-scope judgment. Before merge
Agent review detailsSecurityNone. PR surfaceSource -27, Tests +1230, Docs -5, Other +60. Total +1258 across 21 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Confirm the retired flags should fail immediately, with affected scripts moved to verified non-symlink command paths and trusted directories. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main accepts both flags even though its strict secret-provider schema omits them, so their resulting configuration cannot be valid. Is this the best way to solve the issue? Yes: removing the producer-side flags and their ineffective bypasses is the canonical repair; preserving an alias would retain a schema-invalid configuration route. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1f3d45b76f51. LabelsLabel justifications:
EvidenceAcceptance criteria:
What 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 (20 earlier review cycles; latest 8 shown)
|
* origin/main: (208 commits) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (#119218) test(qa): cover Canvas agent and node controls (#119047) fix(cli): avoid repeated migration scans during local agent turns (#119051) fix(gateway): keep agents list on prepared model facts (#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (#119121) fix(qqbot): keep channel API calls on the active account [AI] (#118575) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) fix(auto-reply): suppress false no-reply fallback during continuations (#119154) ...
* origin/main: chore(tui): add Gateway boundary PTY coverage (#119191)
* origin/main: fix(agents): protect private memory in shared chats (#119198) perf(cli): skip absent gateway workspace dotenv (#119227) fix(agents): observe native provider prompt egress (#119219) fix(feishu): report bot identity retry failures (#102185) fix(memory): load configured providers for CLI search (#119186) fix(discord): count retained speech bytes test(discord): isolate exact speech overflow test(discord): cover exact speech overflow fix(discord): bound realtime exact speech
Punchcard-Session: crisp-lantern-orchard-nv * origin/main: perf(memory): defer session backfill runtime (#119372) fix(ci): isolate built TUI PTY fixture (#119339) fix(commands): restore tool inventory for dynamic models (#119306) fix(media): release rejected BytePlus and Runway video downloads under debug capture (#119257) docs: add ChromeOS (Crostini) platform install guide (#107663) test(msteams): serve JWKS from in-process server in auth coverage (#119354) fix(qa): enable OpenAI for stored audio scenario (#119349) test(agents): realpath apply-patch temp dir fixture (#119353) test(slack): drop redundant .js-suffixed system-event mock (#119352) fix(exec): leave safe builtins unrewritten in enforced mode (#119351) fix(sessions): keep gateway responsive while large transcript archives are built (#112424) fix(tui): restore provider auth in installed local mode (#119283)
Punchcard-Session: crisp-lantern-orchard-nv
Punchcard-Session: crisp-lantern-orchard-nv
Punchcard-Session: crisp-lantern-orchard-nv
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Punchcard-Session: crisp-lantern-orchard-nv
Punchcard-Session: crisp-lantern-orchard-nv
|
@clawsweeper re-review Exact head: The two findings from the prior immutable review artifact are addressed:
Exact-head proof: https://crabbox.openclaw.ai/portal/runs/run_869bd098af1e The changed gate, private QA build, and native |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Punchcard-Session: crisp-lantern-orchard-nv
|
@clawsweeper re-review Exact head: The remaining systemd user-manager isolation finding is addressed:
Exact-head proof: https://crabbox.openclaw.ai/portal/runs/run_422508d83404 The focused hostile-environment test, changed gate, private QA build, and native |
|
Merged via squash.
|
* origin/main: fix(channels): honor explicit preview streaming settings refactor(telegram): consolidate outbound contracts and targets (#119438) fix(qa): retry transport cleanup and always stop owned labs (#119442) fix(mcp): guard stdio stdout frame parsing against oversized-buffer crash (#119379) refactor(auto-reply): centralize delivery deduplication and routing (#119436) fix(qa): preserve scenario isolation in serial suites (#119439) perf(xai): lazy-load optional capability runtimes (#119374) refactor(browser): consolidate browser CLI and normalization helpers (#119432) fix(qa): require ready transport accounts (#119431) refactor(media): share image and video geometry normalization (#119416) fix(config): preserve plugin metadata for missing config (#119421) fix: retry delivery when outbound adapter is unavailable (#119371) fix(cli): retire invalid secret flags and prove doctor recovery (#118926) refactor(signal): share outbound and reaction transport (#119415)
…claw#118926) * test(qa): add doctor CLI recovery coverage * test(qa): secure doctor exec SecretRef proof * test(qa): gate doctor systemd recovery proof * test(qa): normalize doctor terminal output * test(qa): close doctor probe sockets * test(qa): classify doctor probe as foreign * test(qa): track doctor probe sockets * test(qa): retain doctor instance narrowing * test(qa): preserve observed doctor recovery proof * test(qa): keep doctor recovery on stable dist * test(qa): honor Windows exec ACL blocking * test(qa): use canonical home for systemd recovery * test(qa): follow bounded gateway recovery * test(qa): accept lifecycle service label * test(qa): align doctor recovery contract Punchcard-Session: crisp-lantern-orchard-nv * docs(secrets): remove retired provider bypasses Punchcard-Session: crisp-lantern-orchard-nv * test(qa): isolate doctor recovery target Punchcard-Session: crisp-lantern-orchard-nv * fix(cli): retire invalid secret provider flags Punchcard-Session: crisp-lantern-orchard-nv * test(qa): isolate doctor supervisor mode Punchcard-Session: crisp-lantern-orchard-nv * fix(plugins): remove dead secret path bypass Punchcard-Session: crisp-lantern-orchard-nv * chore: drop release-owned changelog entry Punchcard-Session: crisp-lantern-orchard-nv * test(qa): isolate doctor sudo scope Punchcard-Session: crisp-lantern-orchard-nv * fix(secrets): remove dead path bypass Punchcard-Session: crisp-lantern-orchard-nv * test(qa): isolate systemd user bus Punchcard-Session: crisp-lantern-orchard-nv
What Problem This Solves
The CLI maturity taxonomy lacked executable product proof for doctor gateway auth checks, foreign-port diagnosis, systemd start-limit guidance, and bounded recovery verification. The config builder also still exposed two retired SecretRef provider bypass flags that generated schema-invalid configuration.
What Changed
cli.auth-and-secretref-checks.cli.port-and-startup-diagnosisandcli.restart-guidance.gateway restart --jsonhandoff, independent status/RPC/health checks, and exact cleanup.OPENCLAW_GATEWAY_PORTandOPENCLAW_GATEWAY_URLoverrides.XDG_RUNTIME_DIRorDBUS_SESSION_BUS_ADDRESS.OPENCLAW_QA_ALLOW_SYSTEMD_RECOVERY=1is set on a prepared Linux systemd host.--provider-allow-insecure-pathand--provider-allow-symlink-commandbuilder flags, their input plumbing, and obsolete documentation.trustedDirs.No config schema, protocol, taxonomy, or QA Lab runtime semantics change. The plugin manifest type now matches the existing materialized provider contract by dropping a field that was never applied.
Validation
Current head:
fccf952031566dbe854a62325d0845d811db4ff7Sanitized AWS Crabbox:
cbx_d3c809aefd99was released after the successful run.pnpm check:changed: pass, including typecheck, lint, import-cycle checks, and build.doctor-gateway-startup-recoverythroughqa suite: pass with hostile ambient gateway port, URL, external-supervisor, sudo-scope,XDG_RUNTIME_DIR, andDBUS_SESSION_BUS_ADDRESSoverrides set.cli.port-and-startup-diagnosisandcli.restart-guidance.qa-evidence.json.Additional proof:
doctor-auth-secretref-checksproducer E2E: pass, with primary proof forcli.auth-and-secretref-checks.node scripts/docs-list.js: pass.git diff --check: pass.Repair Summary
gateway restart --jsonhandoff; persist observed status and health.ClawSweeper Findings Addressed
allowInsecurePathfixture option and usetrustedDirsfor the generated secure command.allowInsecurePathfield that normalization preserved but provider materialization ignored.systemctl --userchecks target the same account scope.gateway restarthandoff.Punchcard-Session: clear-river-orchard-dn