Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR makes validation and setup report configuration read failures separately from invalid settings. Example: Run bare openclaw without a TTY with configuration {"$include":"missing.json"} and no missing.json file.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: current main still misdiagnoses unreadable configuration, and this focused correction has no actionable findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherCLI validation, startup, and setup consume configuration snapshots and produce human or JSON diagnostics before configuration changes or onboarding effects. flowchart TD
A[CLI entry point] --> B[Configuration snapshot]
B --> C[Existing failure classifier]
C --> D[Read error and retry guidance]
C --> E[Invalid settings recovery]
D --> F[Nonzero exit without setup effects]
E --> F
Technical reviewBest possible solution: Use the existing snapshot classification consistently while preserving invalid-settings recovery and configuration-write ownership. Do we have a high-confidence way to reproduce the issue? Yes: the missing-include input reaches current main's invalid-config diagnostics, matching the supplied CLI control; this read-only review ran no target code. Is this the best way to solve the issue? The patch restores the existing read-failure contract through shared formatting and existing callers, without changing parsing, persisted formats, or writer authority. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 92be346dfcab. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +96, Tests +182, Docs +2. Total +280 across 22 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (13 earlier review cycles; latest 8 shown)
Reviewed October 22, 2026, 3:05 AM ET / 07:05 UTC (Revision 14). |
|
Added explicit stored-data/upgrade compatibility evidence to the body at The incomplete workspace snapshot fixture exposed by natural CI now uses the canonical factory and preserves real mocked-module exports: the same file moves from 2 failures/3 passes to 5 passes, with existing assertions unchanged. Its selected type/format/mock/export/lint checks pass. The new head's natural |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
Merge official main 8518052 for the actual conflict and failed test-line gate. Keep its permission controls and CLI service inspection owners. The official budget suffices without an author raise.
Exercise the selected release branch or tag through the existing CLI fixture and verify the retained context before resume. Fixes openclaw#187326
) Join the catalog refresh root before checking readiness instead of timing an asynchronous RPC with a shorter polling deadline. Preserve the exact catalog payload and WebSocket authorization assertions. Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: fuller-stack-dev <[email protected]> Co-authored-by: steipete <[email protected]>
Record the existing PR166573 regression proposal at its measured236 LF, so it remains independently funded against current main with zero headroom. Keep the shared scalar and every other allocation unchanged. No regression tests or inherited main debt are added by this follow-up.
Closes #159029. Thanks to @masatohoshino for the report and prior closed, unmerged #159030.
What Problem This Solves
Distinguishes unreadable configuration from settings that need correction. A missing include or failed file read should produce its underlying read error and retry guidance before setup offers changes or writes anything.
User Impact
Validation, setup, configure, onboarding and bare startup retain the read-failure diagnosis. Malformed JSON and invalid schema keep their existing recovery paths. An unknown configuration does not authorize setup writes; include ownership, revision, path and writer checks stay intact.
Why This Change Was Made
The existing classifier and terminal-safe diagnostic owner supply the error. Bare startup keeps definitive engine-selection failures; validation uses the same failure kind for text and JSON. Shared
readSetupConfigguards offline and Gateway-routed planning before writes. No new config option, runtime manager, permission, schema, protocol or dependency override is introduced.November 27 conflict resolution
Merged official main
41fcd490fb4datd325ff5209b0. The setup tests retain main's first-conversation starter-file behavior and the configuration-read failure assertions. The read guard returns before setup planning and workspace writes.107 focused CLI and setup tests passed across six files. The core, commands and config/CLI test type checks passed, along with scoped lint, formatting and the test-line budget. Independent read-only review found no P0–P2 issues on this merge snapshot. Follow hosted checks for this head.
November 26 conflict resolution
Merged official main
86f219ea1d45inbeff75bd84dc. The import resolution insrc/cli/run-main.tspreserves the CLI failure-context wrapper from main and the configuration-read diagnostic for bare startup.92 focused CLI tests passed across five files. Core and affected config/CLI test type checks, scoped lint and formatting, and the test-line budget passed. An independent read-only review of the merge snapshot found no outstanding issues. Follow hosted checks on the new PR head.
November 25 conflict resolution
Resolved the CLI entry-point import conflict with upstream
b37553a53183at3a09bf86f036a377cfd0f9a0d214dd7921b9c4d3. The configuration read-error resolver and upstream Windows Gateway task supervisor both remain wired into their existing paths. Independent source review found the same author delta across all 23 paths.90 focused CLI tests passed, covering bare startup, configuration diagnostics, and the supervisor paths. Core and affected test type checks, typed lint, formatting, and the test-line ratchet passed. The fresh branch is still subject to GitHub CI and owner review.
November 23 conflict resolution
Integrated official main 76aaafa into this PR at fa24bff. The guided quickstart fixture retains the unreadable-configuration regression and the upstream completion-message cases. The guest dictation fixture uses the exact current main blob. The earlier contributor patch there has the same patch ID as the already merged #195385.
44 focused configuration, guided onboarding, and setup tests passed. Core and affected test type checks, typed lint, formatting, and independent source review passed. The scoped local run used configuration and setup fixtures. The previous WebSocket fixture results, CI runs, and source snapshots below are tied to their recorded revisions.
Evidence
Earlier author head:
ab705260b61e65e1db18583788aa2d7920b5908b(tree1a918b7f64a123f381fdd72ac0b898ba1d0d9ade). The original CLI/configuration proposal is unchanged by this follow-up. Production, docs, manifests, lockfile and the original regression-test files are byte-identical to public heade27aaf9612848c71e0ded4b6cdd83b1e858267d2.November 9 CI repair
CI42167756533, job127728885476, failed the guest-dictation WebSocket fixture at the old head. The first
talk.catalogRPC did not produce an observed response within the fixture's5000ms polling window. The native classifier remains unknown: no matching main job; the exact tested merge/base and original failure remain retained.The official #195385, commit
a4e4638, waits for the actual catalog-refresh root to settle before checking the published catalog. Its producer stores the snapshot before releasing that root. This branch carries that exact one-file repair as02eb9ac888db10f3c1af21c88f867eea9e5655ad, preserving the original author, date, message and existing trailers. The first warming response, final settled reason, exact catalog payload, guest/foreign-session permissions, relay ownership, late-event denial and revocation assertions all remain. The outer30000ms test limit is unchanged;the repair adds0 literal test LF.Current focused verification
OPENCLAW_VITEST_RUNTIME=node pnpm test src/gateway/server.auth.guest-dictation.test.ts --maxWorkers=1. One test in one file passes;test time29.393s,wrapper wall147.043s. It uses isolated synthetic state, a private local Gateway and real WebSocket requests, with the existing provider I/O fixture. It does not establish live-provider or operator-Gateway behavior. The transport/authorization composition is why a cheaper helper-only assertion would not cover this contract.tsconfig.core.test.gateway-server.jsonconsumer graph passes49.333s;typed lint passes353.132s including native SDK declaration preparation,format0.216s and whitespace checks pass. These ran on candidate tree1a918b7f64a123f381fdd72ac0b898ba1d0d9ade,which is exactly the final committed tree.Exact test-line funding
The proposal still has 236 literal LF of regression growth relative to its official author base/current-main proposal. The prior100-line record relied on136 lines of base headroom. At pinned main
43dae0b46f1eb1dcfed7434196ff3bf1aa8a9b2a,the native control is 6,589,535/6,589,535,slack0;the prospective merge with the old record is 6,589,771/6,589,635,over136. Only this PR's existingconfig/test-lines-allocations/cli-config-read-failure-166573.txtrecord changes 100→236,matching its own measured regression growth. The shared scalar and every other grant remain unchanged;no inherited main debt is funded.The native local fork-base check passes 6,527,057/6,527,220,slack163. The exact canonical main checker applied to the prospective current-main merge passes 6,589,771/6,589,771,slack0. Local-head counts and CI-merge counts have distinct comparison trees. The final live pre-push projection and fresh natural CI remain separately observed below.
The final live pre-push comparison uses official main
df13b6b8994cefe16f311f29f0301bba511ec617and merge tree477b271c498f9e6686e2042b2152735f2698acc5. Its native main control is 6,591,944/6,591,947,slack3;the actual proposed merge is 6,592,180/6,592,183,slack3. The proposal preserves the base's3-LF headroom while independently funding its236-LF growth.Budget-scope correction: the old6,527,475/6,527,475 zero-slack figure belongs to the historicaldad4 CI/pre-push merge preview,not the standalone e27/c50 tree. The current local measurement above is copied directly from its native stdout;the separate43 anddf13 main/merge projections retain their own hashes and counts.
Investigated failures and remaining scope
The first local pinned-Bun attempt on this same candidate hit the existing 30000ms total test limit (wrapper215.087s). Its full cause remains unclassified. One phase-only diagnostic run completed all assertions in27.658s:its first catalog response took about5107ms and final root wait1ms,consistent with a5000ms readiness poll being too short in that run. It does not prove the complete cause of the old CI failure or the first local timeout. The diagnostic source was restored byte-for-byte before the final uninstrumented Node verification;the diagnostic pass is not final proof.
The old Doctor/launcher30s timeouts retain their original unknown classification. Installed latest-stable upgrade,Windows permission-denial,Bun-wide compatibility,real-provider and operator-Gateway proof remain uncovered. Current CI and any required owner/security review are separate from the local Node24 pass;Node26 compatibility has not been independently established. No old failed run is relabeled green or manually rerun.
CI for the earlier head
Natural CI42558962404 completed successfully for
ab705260b61e65e1db18583788aa2d7920b5908b: 101 jobs,73 success/28 skipped,zero failures. The modern aggregateopenclaw/ci-gateand native baseline ratchets both succeed. Skipped jobs are not executed tests.The original guest-dictation fixture is actually present in the successful run:
checks-node-changed-compact-large-4-1,worker[shard:bun:agentic-control-plane-auth-node-hosted-1],reports guest dictation crosses the real WebSocket authorization boundary — PASS12053ms. This is the same named fixture as the retained failure,not merely a matching aggregate job name. The workflow's Node driver is24.22.1;the worker is Bun. Numeric job-name suffixes do not establish a Node major version,so this is not a Node26 compatibility claim.The logged CI checkout is merge
2352bb10fof this head intodf13b6b8994cefe16f311f29f0301bba511ec617;the tested merge tree is477b271c498f9e6686e2042b2152735f2698acc5,matching the separately qualified final pre-push budget projection. Prior42167756533 stays failed/classification unknown,and the first local Bun outer timeout remains unclassified. Upstream merge/owner approval remain separate.Prior-head integration,causal controls and retained verification history
November 6 author maintenance integrates official main
c50ff4fbe5410609d00066642c72213e4354ee23into623056f849c7e0be4465c21775a6e939cd3a5c0b. The merge conflict was confined to the imports insrc/cli/fresh-install-config.ts. Both the author’s read-failure diagnostic and main’s first-write and pre-migration onboarding detection are present. Current author heade27aaf9612848c71e0ded4b6cdd83b1e858267d2contains reviewed treee7f2daabe3cd1a1ae3a652bbd6ff012a6159bd25.dad4fc1a037821f2e503df81fe43171bf61af656immediately before push. Test lines OK: 6527475; ceiling: 6527475; slack: 0.Previous CI repair
Previous author CI repair (2026-10-29), 623056f, carries the exact change from official #187339, commit
230619948b35fedb88bf5dbc528c7fd3f2fb07df, preserving Shakker's original author identity, date and commit message. It changes one test file and no production code or fixture API. The test now selects the release branch/tag through the existing--target-refoption, verifies the retained context, then moves that actual ref before asserting resume rejection. No publication, live Actions dispatch or release operation was performed; the local fixture uses private Git repositories and synthetic GH/npm transports.Failing CI and attribution
At previous head
55e74290f5ac0fc7d72d8c2a09dde147d6d5836d, CI 40822099308 checks mergeb5e543264b0bec435af26634224a19b856fde640against basef3c816eb4a3e1902153382eff5ccd656f898f9b2. Its sole failed leaf ischeck-test-types-core-3: the release-candidate test passesreleaseRefafter the shared fixture API removed that property, producing TS2353 at line 335.ci-gatefails as a consequence.The native classifier reports pre-existing — failure signatures match main; selected scope not compared. Independent source comparison confirms that the failing test, its two fixture owners, type config, wrapper, manifest and lock are byte-identical in that CI base, merge and PR head. The upstream repair merged at 05:13:17 UTC, after this CI fixed its base. That existing upstream repair is credited rather than claimed as an authored feature or new contribution.
That CI's budget job already passed: 6,248,290 / 6,321,421, slack 73,131. Those are CI-merge counts, distinct from the fixed-main local counts below; neither this fact nor the repair relabels the failed historical run.
Current repair verification
Exact-head natural CI: CI 40825895608 completed successfully at
623056f849c7e0be4465c21775a6e939cd3a5c0bon 2026-10-29 06:10:58 UTC (14:10:58 Asia/Shanghai). The previously failedcheck-test-types-core-3is successful, andci-gatereports that CI and applicable security requirements passed. No old run was rerun. This does not classify the retained Doctor/launcher timeouts or grant upstream merge approval.The affected test-consumer graph first reproduces the same TS2353 (77.21 s), then passes after the exact upstream patch (51.73 s). The complete failing CI leaf,
test/tsconfig/tsconfig.test.root.scripts.json, also passes (50.42 s); this is not a claim that the entire core stripe or CI ran locally.The two affected branch/tag resume cases pass through the actual local CLI fixture (23.30 s wrapper time). The 23 other cases are unselected by the focused command, not disabled or treated as passing. Both rejection and no-dispatch assertions remain, and selected-context verification is stronger.
Typed lint (55.50 s), format, line-cap, whitespace and native budget pass. The repair removes 11 test LF lines. Local total 6,247,655 / 6,321,032, slack 73,377; the effective ceiling is unchanged official scalar 6,320,412 plus unchanged official allocations 620. The total remains below the scalar alone. No author allowance, baseline, counting rule, timeout, ignore or expected failure is changed.
Fresh local autoreview of the complete one-file delta against
55e74290, P0-P2, is scoped-clean with no actionable finding. Snapshot767c70e25dc4635179254f41dd48aee805778241, tree40171d512430356b180b23a70b8f59eb09759c37. This is static review of the delta and supplied fixture/wrapper context; the full internal CLI implementation was not supplied and the reviewer did not execute tests.Prior CLI integration remains qualified
The original 22 introduced CLI/configuration files, production tree, manifest, lock and their callers are unchanged from
55e74290; the only new tracked change is the official candidate-test repair. Their prior 197-case proof, production/test-consumer types, lint, native guards and complete 22-file review (77e25911, against pinned main85180528) therefore retain unchanged-input qualification. They are not counted as newly executed tests on this head. That normal integration preserves main's permission controls, service-installation context, pre-engine inspection and proxy owners; it applies no author budget raise.Retained failures and remaining proof
bbcd3f84budget failure (CI 40753429576, 6,310,774 / 6,310,560) and the55e74290inherited type failure above. No job was manually rerun or reclassified, and no administrative merge exception is claimed.doctor.external-configat 29,977.1 ms; maintenance-ready was the next start label. Passing replays and this unrelated fixture repair do not prove that cause repaired. No deadline or assertion is extended.pnpm openclawattempt did not finish its normal source rebuild within 600 s and never reached the config-read branch. Current source/boundary tests do not establish an installed upgrade, Windows permission-denial, Bun, real-provider or operator-Gateway pass.Historical causal controls and prior-head verification
The earlier registered
config validatenegative control used canonical main working bytes with the reviewed regression overlaid. Both text and JSON cases failed: text reportedConfig needs correctionand suggested schema inspection, while JSON reportedOpenClaw config is invalidfor a real missing include. The 743.31 s wrapper included first-time compilation. This was an owning-command control, not a certified pristine-main deployment; all overlaid source/index bytes were restored. It is historical evidence, not a fresh 8518 execution.An integration control also showed why main's inline configure owner must stay: keeping the formerly extracted helper bypassed terminal-value tagging and failed the existing ANSI/bidi/newline test. The final proposal preserves canonical tagged rendering instead of keeping that duplicate helper.
At
92fac2b005d24a755c7de8f148644ab534dc34f6, historical proof qualified 244 distinct cases across 10 files in separate runs (183 CLI, 41 command, eight wizard and 12 queue-owner cases), not one 244-case execution. The initial batch retained two failures: a stale materialized-fallback expectation was corrected against the preset retirement, while the unchanged 120 s non-JSON initialization timeout remained unclassified despite later passing replays. The stricter exact queue matcher, authored/raw absence, no-write and workspace assertions remained. Current 197-case proof above is reported separately, without adding overlapping old counts.At
bbcd3f84958539217f6e68966e39bb7fa30c20d6, the subsequent main integration retained the original repair and canonical signal handling. The existing profile scope expectation was corrected to WRITE while targetless dispatch remained ADMIN; main now independently owns that correction, so its file is removed from the introduced diff. The old Node fallback's 37 CLI cases, selected permission contract and queue check remain old-head evidence. The separate Doctor 30 s failure and prior Bun CI classifications remain unresolved as described above.Earlier full-proposal and scoped follow-up independent reviews stay tied to their recorded revisions (
ba1be3b8,5ce18634,28e3a046,afce0f77); they do not substitute for the current complete review.