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. Reviewed October 5, 2026, 5:50 PM ET / 21:50 UTC (Revision 11). ClawSweeper reviewWhat this changesThe PR keeps root CLI help fast for inert plugin configuration, shares dotenv path selection with normal loading, and adds startup benchmark coverage. Merge readiness✅ Ready for maintainer review Keep open: current main and v2026.9.8 retain the reported config-loading overhead. The related merged optimization addresses a different cost, and no blocking defect was found in this patch. Priority: P2 Review scores
Verification
How this fits togetherRoot CLI help chooses between precomputed text and help rendered from live plugin configuration. The preflight examines the selected configuration and environment before deciding whether full configuration loading is necessary. flowchart TD
A[Root help request] --> B[Selected config and environment]
B --> C[Conservative config preflight]
C -->|Provably inert| D[Precomputed help]
C -->|Dynamic or meaningful| E[Live configuration loader]
E --> F[Plugin-aware help]
D --> G[CLI output]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +142, Tests +281, Other +11. Total +434 across 12 files. 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. Technical reviewBest possible solution: Keep the conservative preflight with shared dotenv selection, preserving live configuration loading whenever help could change. Do we have a high-confidence way to reproduce the issue? Yes, source establishes that root help with an inert plugins object loads the full configuration before selecting identical precomputed output. The linked report supplies measured reproduction; this read-only review did not execute it. Is this the best way to solve the issue? Yes, the conservative config-owned preflight avoids the unnecessary import while sharing dotenv selection and preserving ambiguous cases on the existing path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1b7dd0b2ac92. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
At head The direct failure is checks-fast-baseline-ratchets: Could a maintainer check ripgrep availability and the system-tool bootstrap for this lane, then validate the lane through its normal CI recovery process? No CI/workflow changes are included in this root-help patch. ClawSweeper Revision 10 found no correctness/security blocker on this head; CI still requires resolution before merge. |
Keep root help and version from starting configured plugin runtimes. Use core-only config inspection and manifest CLI descriptors, removing the legacy root-help registration fallback. Legacy command execution remains available. Migrate the source metadata caller and replace mocked help checks with real entrypoint coverage. Production LOC -25; test LOC -1; no test-ceiling increase. Validated with an exact-main counterfactual (two expected loader-count failures), four green help/version cases, seven focused test files, touched-file lint/format, and clean P0-P2 autoreview. Native GitHub gates enforce final-head CI before merge. Supersedes #147932, thanks @baisiqi6. Co-authored-by: baisiqi6 <[email protected]>
Keep root help and version from starting configured plugin runtimes. Use core-only config inspection and manifest CLI descriptors, removing the legacy root-help registration fallback. Legacy command execution remains available. Migrate the source metadata caller and replace mocked help checks with real entrypoint coverage. Production LOC -25; test LOC -1; no test-ceiling increase. Validated with an exact-main counterfactual (two expected loader-count failures), four green help/version cases, seven focused test files, touched-file lint/format, and clean P0-P2 autoreview. Native GitHub gates enforce final-head CI before merge. Supersedes openclaw#147932, thanks @baisiqi6. Co-authored-by: baisiqi6 <[email protected]>
Closes #114067
Related: #114068, #85396 (closed and unmerged; prior problem and review context)
What Problem This Solves
Fixes: bare
openclaw --helpwaits for the full config and plugin startup path when configuration contains an inertplugins: {}block.User Impact
User impact: root help stays fast for provably inert strict-JSON plugin configuration. Ambiguous or help-affecting configuration retains the existing live-config behavior.
Why This Change Was Made
A config-owned preflight checks the real process environment and selected config before using precomputed root help. Canonical dotenv files, plugin-sensitive environment values, JSON5, includes, substitutions, config-owned
env, unknown plugin shapes, and meaningful plugin settings retain the live snapshot path. Dotenv path selection is shared with the normal loader.The ordinary upstream alignment preserves the new fs-safe fallback-clear/native-normalization owners and sync/async/provider-auth/workspace isolation semantics. Tests follow upstream's intentional retirement of automatic legacy-path discovery: in the legacy-only fixture, implicit selection targets the absent canonical config and uses the live fallback; explicitly selecting that strict-JSON legacy file with inert
plugins: {}is eligible for static help. Unknown, dynamic, or non-inert content still falls back. The synthetic config-import test has a precise adjacent mock-isolation reason; only its single stale baseline row is removed, without widening exceptions or changing checkers, assertions, timeouts, or workflows.The startup benchmark adds
helpInertPlugins, writes{ "plugins": {} }, and exercises the real--helpentry with 500 ms first-output / 1000 ms exit contracts. The checked-in x64 relative baseline is unchanged. Measurements below are local macOS arm64 / Node 26.5.0 evidence; no current GitHub workflow explicitly selects this new benchmark case.Evidence
Current published head
8d72643069bafc8d04de5563315744d1ae627ed8is an ordinary upstream merge with parents91902d02257af69bf775b7a35f9c8cb618d5a15banda38b64b2fea5b16aa4352147187a8c8ab2e7413a. Its treef623ce1ecf5381d0e7147d95b5ed1f8f92734929exactly matches the independent source review. GitHub readback confirms 12 files, 472 additions / 38 deletions. Latest main121a56a643df9179be01623baffe2154200b8ca2is merge-tree conflict-free; no chase merge was added.91902CI costs: entireRun Node test shardsteps were 85 s for root-help-live-config, 205 s for preflight, and 104 s for benchmark tooling. Those steps include other files; they are neither per-file CI wall times nor new-head coverage.check:changed --staged --base a38b64b2...finished exit 0, including selected ratchets, formatting, all core-test/root-test type shards, scripts types/lint, dead-export scans, targeted core/root lint and final guards, without skip flags. Full unrelated runtime suites are not claimed.91902d02257af69bf775b7a35f9c8cb618d5a15b: ready for maintainer review, no findings or security blockers. It is not evidence of review of this new alignment head.91902finished with 77 successful, 23 skipped, and 2 failed jobs. The direct failure wasspawnSync rg ENOENTwhile startingcheck:database-worker-ratchet; the aggregate gate then failed. Its comparison did not run, and those checker/workflow files had no candidate delta. Runner/PATH root cause remains unproven; local ratchet success on this alignment does not resolve or reclassify that CI failure. Current-head CI/review must be checked independently after publication.Historical attribution: the prior
033ef941memory-core failure remains UNKNOWN. A bounded matched replay of its exact 18-file group passed 265/265 on both that head and its actual upstream parentbe46e696; local macOS/Node 26 results do not reproduce the original Linux/Node 24 context or prove every prior CI failure unrelated. No rerun, dispatch, empty commit, PR merge, release, or deployment is part of this alignment.