Repository navigation
docs: correct verified accuracy defects in CLI, tools, and automation pages - #143179
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 maintainer review before merge. Reviewed September 9, 2026, 10:53 AM ET / 14:53 UTC (Revision 2). ClawSweeper reviewWhat this changesCorrects CLI examples, plugin configuration guidance, provider descriptions, and migration wording while preserving the published Swarm section anchor. Merge readiness✅ Ready for maintainer review The prior Swarm anchor finding is resolved, and no remaining actionable defect was found. The documentation corrections remain useful: current main still contains the old installation and credential examples. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s documentation translates CLI registration, configuration schemas, and runtime behavior into instructions for users and operators. Published headings also provide stable destinations for existing links. flowchart LR
A[CLI commands] --> D[Documentation pages]
B[Configuration schemas] --> D
C[Runtime behavior] --> D
D --> E[Publishing and stable anchors]
E --> F[User setup and operation]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceDocs +35. Total +35 across 48 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the source-aligned examples and evergreen explanations, retaining compatibility anchors for published section links. Do we have a high-confidence way to reproduce the issue? Not applicable to a runtime bug: the documentation discrepancies can be checked directly against source, and the previously missing anchor is present. Is this the best way to solve the issue? Yes. Focused prose and example corrections address the discrepancies without changing implementation behavior or published link destinations. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7a1ff2c65841. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
… pages Resolve the open `accuracy` audit findings for docs/cli/, docs/tools/ and docs/automation/. Every claim was checked against the implementation before the prose was touched; findings the source contradicted are left unchanged and rebutted in the PR body. Factual corrections (docs disagreed with code): - onboard: Z.AI defaults are glm-5.3 (coding) and glm-5.2 (general), not glm-5.2/glm-5.1 (extensions/zai/model-definitions.ts, openclaw.plugin.json). - sessions: the cleanup --json example printed a sessions.json store path, but both JSON exits map storePath through resolveSqliteTargetFromSessionStorePath (src/commands/sessions-cleanup.ts, src/config/sessions/cleanup-result.ts). - diffs: `plugins install diffs` resolved to an unrelated npm package; the plugin is external, not bundled (extensions/diffs/package.json). - ollama-search: a bare "OLLAMA_API_KEY" string is a literal key, not env indirection (src/config/types.secrets.ts). - minimax-search: the region list contradicted its own opening condition and merged two tiers (extensions/minimax/src/minimax-web-search-provider.runtime.ts). - imap: addressTokens is a per-account key (extensions/imap/src/config.ts). - thinking: GLM-5.3 is a second Z.AI exception (extensions/zai/provider-policy-api.ts). - video-generation: buffer-backed videoToVideo also covers fal reference-to-video (src/video-generation/live-test-helpers.ts). - slash-commands: the missing third source is skill commands (src/auto-reply/commands-registry-list.ts). - cron: `cron` is the registered command and `automations` its alias (src/cli/cron-cli/register.ts). - setup: add the real --classic and --agent-name flags to the Options table (src/cli/program/register.setup.ts). - path: file-slot wildcard rejection exits 2 (extensions/oc-path/src/cli.ts). Version scope added only where a release could be cited: 2026.8.1 (heartbeat task migration, inferred commitments, artifact-area staging), 2026.4.29 (owner bootstrap), 2026.4.26 (Hunter Alpha), 2026.3.31 (nodes.run). Elsewhere the time-relative wording is replaced with the verified current behaviour rather than a guessed version.
docs/AGENTS.md requires existing published heading ids to stay stable. The rename from 'Limits and roadmap' to 'Limits' changed the generated fragment, so add an explicit <a id="limits-and-roadmap" /> stub above the heading. parseDocsDocument now reports both ids with no collisions.
5a7df31 to
b234c99
Compare
|
@clawsweeper re-review Addressed the P3 finding on Also rebased onto current main. Re-ran on the new head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…er-ownership-20260909 * origin/main: (147 commits) fix(cli): reject blank account selectors before command startup (#143088) fix(update): repair young runs after recorded drivers exit (#143136) test(telegram): close model callback fixture connections (#143197) improve(test): reduce Telegram policy fixture startup overhead (#143192) test(ci): stabilize systemd manager shim timing (#143134) fix(test): retire chat preview Escape listeners during teardown (#143191) test(memory-wiki): share visibility test callbacks (#143181) fix(ci): accept native iOS keychain filenames (#142968) fix(ci): show publication observations in FRV status (#143171) fix(github): point the stuck-FAQ auto-response at a live anchor (#143194) docs: correct verified accuracy defects in CLI, tools, and automation pages (#143179) refactor(tests): remove duplicate Mistral cache-cost test (#143172) fix(doctor): complete canonical model-reference migration (#142284) fix(ci): reject stale and empty timing sample cohorts (#143182) fix(ui): remove first-reply confetti from chat (#143167) docs: split help/faq into 13 topic pages (#143150) refactor(docs): require caller-owned route indexes (#143164) fix(android): distinguish connection status from chat readiness (#143128) refactor: share agent-turn execution test defaults (#143166) fix(cli): print immutable-config refusals without crash framing (#143140) ...
… pages (openclaw#143179) * docs: correct verified accuracy defects in CLI, tools, and automation pages Resolve the open `accuracy` audit findings for docs/cli/, docs/tools/ and docs/automation/. Every claim was checked against the implementation before the prose was touched; findings the source contradicted are left unchanged and rebutted in the PR body. Factual corrections (docs disagreed with code): - onboard: Z.AI defaults are glm-5.3 (coding) and glm-5.2 (general), not glm-5.2/glm-5.1 (extensions/zai/model-definitions.ts, openclaw.plugin.json). - sessions: the cleanup --json example printed a sessions.json store path, but both JSON exits map storePath through resolveSqliteTargetFromSessionStorePath (src/commands/sessions-cleanup.ts, src/config/sessions/cleanup-result.ts). - diffs: `plugins install diffs` resolved to an unrelated npm package; the plugin is external, not bundled (extensions/diffs/package.json). - ollama-search: a bare "OLLAMA_API_KEY" string is a literal key, not env indirection (src/config/types.secrets.ts). - minimax-search: the region list contradicted its own opening condition and merged two tiers (extensions/minimax/src/minimax-web-search-provider.runtime.ts). - imap: addressTokens is a per-account key (extensions/imap/src/config.ts). - thinking: GLM-5.3 is a second Z.AI exception (extensions/zai/provider-policy-api.ts). - video-generation: buffer-backed videoToVideo also covers fal reference-to-video (src/video-generation/live-test-helpers.ts). - slash-commands: the missing third source is skill commands (src/auto-reply/commands-registry-list.ts). - cron: `cron` is the registered command and `automations` its alias (src/cli/cron-cli/register.ts). - setup: add the real --classic and --agent-name flags to the Options table (src/cli/program/register.setup.ts). - path: file-slot wildcard rejection exits 2 (extensions/oc-path/src/cli.ts). Version scope added only where a release could be cited: 2026.8.1 (heartbeat task migration, inferred commitments, artifact-area staging), 2026.4.29 (owner bootstrap), 2026.4.26 (Hunter Alpha), 2026.3.31 (nodes.run). Elsewhere the time-relative wording is replaced with the verified current behaviour rather than a guessed version. * docs(swarm): keep the limits-and-roadmap anchor after the heading rename docs/AGENTS.md requires existing published heading ids to stay stable. The rename from 'Limits and roadmap' to 'Limits' changed the generated fragment, so add an explicit <a id="limits-and-roadmap" /> stub above the heading. parseDocsDocument now reports both ids with no collisions.
What this is
The open
accuracyaudit findings fordocs/cli/,docs/tools/anddocs/automation/— 47 rows. Every row was treated as a hypothesis and checked against the implementation, config schema, or tests before any prose was edited. 38 rows produced an edit; 9 are rebutted below with the code that contradicts them.No new files, so
docs/docs.jsonand the zh-CN glossary are untouched. The one new list-item link (Docker test suites) reuses a glossarysourcethat already exists, so no glossary edit was needed either.Factual corrections — docs disagreed with the code
cli/onboard.mdglm-5.2/glm-5.1glm-5.3(coding) /glm-5.2(general), fallbacksglm-5.1thenglm-4.7extensions/zai/model-definitions.ts:9-10,extensions/zai/openclaw.plugin.json(defaultModel: "glm-5.2"),extensions/zai/onboard.ts:39,extensions/zai/detect.ts:177-209cli/sessions.md--jsonexample printed…/sessions/sessions.json…/agents/<id>/agent/openclaw-agent.sqlitetoDisplayedCleanupSummary(src/commands/sessions-cleanup.ts:158-165,:336,:364), andserializeSessionCleanupResultresolves again (src/config/sessions/cleanup-result.ts:89-94); resolver output atsrc/config/sessions/session-sqlite-target.ts:232-248. The same page already printed the correct form at itssessions --jsonexample.tools/diffs.mdopenclaw plugins install diffsopenclaw plugins install clawhub:@openclaw/diffsdiffsis external, not bundled:extensions/diffs/package.json(bundledDist: false), rootpackage.jsonexcludes!dist/extensions/diffs/**; bare specs only match bundled ids (src/plugins/bundled-sources.ts:23-95) and otherwise go straight to npm (src/cli/plugins-cli.install.test.ts:2337). The old command pointed users at an unrelated npm package nameddiffs.tools/ollama-search.mdapiKey: "OLLAMA_API_KEY"apiKey: { source: "env", provider: "default", id: "OLLAMA_API_KEY" }${VAR}/$VARcoerce to an env ref (src/config/types.secrets.ts:33-34,:94-112,:175-192); a bare uppercase string is a literal key and would be sent on the wire (extensions/ollama/src/web-search-provider.runtime.ts:95-110,:206)tools/minimax-search.md…webSearch.regionis unset" then made that key step 1; steps 3 and 4 were separatebaseUrlkeys merged into one tier; CN-only detection statedextensions/minimax/src/minimax-web-search-provider.runtime.ts:79-112(isMiniMaxCnHostat:67-77, the two base URLs OR'd in oneifat:106-108,"global"default at:111)automation/imap.mdaddressTokensfragment with no parent keyplugins.entries.imap.config.accounts.<id>.addressTokensextensions/imap/src/config.ts:27(insideImapAccountConfig),:37,:111;extensions/imap/src/sender-gate.ts:93; tests place it inside the account (sender-gate.test.ts:43,watcher.test.ts:244)tools/thinking.mdmaxdefaultextensions/zai/provider-policy-api.ts:12-27("5.3"effort map) and:49-58(levels: low|high|max,defaultLevel: "max")tools/video-generation.mdvideoToVideolive lane coversrunwayonly"falwith areference-to-videomodelsrc/video-generation/live-test-helpers.ts:66-87; the page's own matrix at L141 already said thistools/slash-commands.mdsrc/auto-reply/commands-registry-list.ts:30-39assemblesgetChatCommands()+buildSkillCommandDefinitions(...). The audit's alternative fix — change "three" to "two" — would have introduced an error.cli/cron.mdopenclaw automationsis the primary command;openclaw cronremains an alias"cronis registered,automationsis the aliassrc/cli/cron-cli/register.ts:30-32(.command("cron").alias("automations"))cli/setup.md--classic(explained in prose below it)--classicand--agent-name <name>addedsrc/cli/program/register.setup.ts:134,:121; mutual exclusion atsrc/commands/onboard.ts:574cli/path.md0/12extensions/oc-path/src/cli.ts:447-456(runtime.exit(2))cli/dns.md--applyonly; the plan prints anywheresrc/cli/dns-cli.ts:191-196returns before the check at:198-200Version scope: added only where a release could be cited
tasks:block migrationdocs/releases/2026.8.1/automations-and-scheduling.md:250,262docs/releases/2026.8.1/quality-of-life-improvements.md:79,223CHANGELOG.md:5864under## 2026.8.1CHANGELOG.md:31961under## 2026.4.29CHANGELOG.md:32333under## 2026.4.26nodes.runremovalCHANGELOG.md:34907under## 2026.3.31(Breaking)Everywhere else the release is not citable, so the time-relative wording was replaced with the verified current behaviour rather than a guessed calver.
CHANGELOG.mdrecords no deprecation entry for--deliver,cron.failureDestination, the legacy cron file formats,curator pin|unpin|restore,--legacy-bearer,execSecurity/execAsk, the exec-approvals SQLite cutover, the structured health contract, or the ClawFlow rename. Guessing one of those would have put a wrong version in the docs.Two deprecations carry no removal version in the code, so the docs cannot name one:
openclaw clawbot(src/cli/clawbot-cli.ts:7-17— registered, nohidden/deprecatedmarker, nothing indocs/plugins/sdk-migration/removal-timeline.md) and--legacy-bearer.clawbot.mdnow says plainly that no removal is scheduled; committing to a removal release is a product decision, not a docs fix.Findings rebutted — the docs were right
cli/reset.md"removed sidecar file mechanism". The page does not describe a sidecar as existing; it explicitly denies one, and that is correct. Attestations are SQLite rows (src/agents/workspace-state-store.ts:454-473, tableworkspace_attestationsatsrc/infra/state-migrations.workspace-setup-store.ts:595) inside the state dir (src/state/openclaw-state-db.paths.ts:6-13), andreset.ts:168-177touches no attestation file. No change.cli/skills.mdretired curator commands. The fix's alternative — droppin/unpin/restorefrom the list — would make the page wrong. They are still registered:src/cli/skills-cli.ts:954-964, erroring withSKILL_LIFECYCLE_CURATION_RETIRED_MESSAGE(src/skills/workshop/curator.ts:27-28). No change.cli/browser.md--legacy-bearer. The flag and its gating are described exactly right (extensions/browser/src/cli/browser-cli-extension.ts:128-139,:351-358; the throw precedes header attachment, so no credential is printed). No removal version exists to name. No change.tools/exec.mdretired session fields. Accurate and not time-relative:src/gateway/sessions-patch.ts:198-201rejects withINVALID_REQUEST,nullincluded (test atsessions-patch.test.ts:1942-1945), while the fields stay wire-valid in v4 (packages/gateway-protocol/src/schema/sessions-patch.ts:59-62). No change.tools/ask-user.md"nests an answers object inside another answers object". The nesting is the real shape — removing the inner wrapper would make the example wrong.src/agents/tools/ask-user-tool.ts:369-376wraps the wholeQuestionAnswers, whose only field isanswers(packages/gateway-protocol/src/schema/questions.ts:59-61, aclosedObject);ask-user-tool.test.ts:266,286asserts the doc's exact JSON. Added one sentence explaining the envelope instead.tools/agent-send.md. The bare session key is supported, not deprecated —"legacy_or_alias"is a shape name in a union (src/routing/session-key.ts:160-171,:177-195), and--session-keycarries no deprecation (src/cli/program/register.agent-turn.ts:26). Only the example comment was misleading; relabelled# Bare key scoped to an agent. Behavior section unchanged.sendPrompt". Not deprecated:window.sendPromptandopenclaw.prompt.sendare the same function, frozen non-writable (src/canvas/wrap.ts:175-189). Dropped the misleading "legacy" label rather than dating a deprecation that does not exist.tools/gemini-search.mdRelated card. The stated reason is false — the Perplexity page does claim content extraction (docs/tools/perplexity-search.md:135-141,:184-189;extensions/perplexity/src/perplexity-web-search-provider.ts:59-70). Applied the suggested text anyway purely for consistency with the three sibling pages that already use it (brave-search.md:144,exa-search.md:157,parallel-search.md:166), not as a correctness fix.read_whenitem". The page's whole subject is that path (docs/tools/exec-approvals.md:12-14, trust model at:50-57); removing the entry would lose a valid entry point. Realigned to the page's own vocabulary instead.Partial rebuttals: r3-1224's "
sessions listform" half (the subcommand is real —src/cli/program/register.status-health-sessions.ts:319-325— so it is now documented rather than removed); r3-2402'simage-generation.md:269"currently" (a runtime-state qualifier, not a release claim); three of r3-2428's five candidate notes onchrome-extension.md(persisted-pairing age, the daemon/Gateway default asymmetry, and an extension-build troubleshooting step are not release-scoped claims); r3-2360's "mark placeholders with angle brackets" (unbracketedpath/to/is the prevailing convention —exec-approvals.md:162,acp-agents-setup.md:171,creating-skills.md:253); r3-2444's premise that swarm roadmap items are secretly implemented (noagents.session()exists, andsessions_spawnhas no placement key —src/agents/tools/sessions-spawn-tool.ts:169-301).One fix applied differently from the ledger's instruction
r3-1025 told me to move the
## Retired inferred commitmentssection out ofdocs/automation/index.md. Two redirects indocs/docs.json:57,61target/automation#retired-inferred-commitments. Removing the heading would have broken both. The section stays; the version was added to its first sentence instead.Reported, not fixed (outside these three directories)
docs/reference/database-schemas.md:744lists shared-state schema v7 ("Retired inferred-commitment storage removed") with First releaseUnreleased, but the 2026.8.1 notes record both the schema retirement (quality-of-life-improvements.md:223) and a follow-up fix that calls it "the shipped commitments schema" (other-bug-fixes.md:642). TheUnreleasedcell looks stale.Phase 0jargon removed fromcli/audit.md:162also appears indocs/plugins/sdk-channel-ingress.md:146anddocs/plugins/sdk-channel-plugins/durable-ingress.md:36. There is no "Phase 0" concept in the ingress code.apiKeydefect fixed inollama-search.mdrepeats verbatim atdocs/providers/ollama/web-search.md:42anddocs/providers/ollama/recipes.md:87.pixverseis inDEFAULT_LIVE_VIDEO_MODELS(src/video-generation/live-test-helpers.ts:24) but has no row in thevideo-generation.mdcapability matrix.Validators
Baseline measured on the merge-base before any edit; re-measured after the rebase onto
5cc68a7a345.pnpm check:docs(thecheck-docsjob's own aggregate)docs-link-audit.mjs --anchors#windows-app-node), 12456 linksmarkdownlint-cli2(config's own globs)vitest.full-core-unit-srcsrc/docs/vitest.toolingdocs-link-audit.test.tsThe tooling failure is pre-existing and unrelated:
expected [ 'ass-guide', 'param-ass-guide' ] to deeply equal [ 'as-s-guide', 'param-as-s-guide' ].Doc-content pin:
src/cron/isolated-agent/run-fallback-policy.test.ts:480-486asserts literal strings indocs/cli/cron.mdanddocs/automation/cron-jobs/payloads.md, both of which I edited. Both strings are untouched and the test passes undervitest.cron.config.ts(1 file / 18 tests). Notevitest.full-core-unit-src.config.tsexcludessrc/cron/**and reports "No test files found" for it — a false green if used as the gate.CODEOWNERS: no
docs/cli/**,docs/tools/**ordocs/automation/**entry matches any changed file (the secops-owned CLI pages areapprovals.md,sandbox.md,security.md,secrets.md— none of them here).No new files, so no
.github/labeler.ymlorRELEASE_METADATA_PATHSgap is created by this change.