Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. What this changesThe branch makes task and flow inspection restore state read-only and gives plugin inventory commands configuration reads that do not record observations. Review scores
Merge readiness⛔ Blocked before merge - 5 items remain Distinct plugin-inspection work remains useful, so closure would discard a meaningful contribution. Most task-related work is now obsolete, and the pinned branch still contains the previously reported Doctor regression. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherCLI inspection commands read configuration and shared SQLite state to report installed plugins and runtime records. Configuration observation and runtime restoration can also enter writable persistence paths. flowchart TD
A[CLI command] --> B[Configuration reader]
B --> C[Plugin inventory]
A --> D[Inspection or mutation]
D --> E[Read-only state reader]
D --> F[Writable runtime owner]
E --> G[Diagnostic output]
C --> G
F --> H[Persisted changes]
Technical reviewBest possible solution: Keep plugin inventory on the existing non-observing configuration owner, remove the retired task machinery and its schema guard, and preserve current Doctor diagnostics. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: cold plugin inventory uses observing configuration reads, which can write configuration-health state. No current-main runtime reproduction was executed. Is this the best way to solve the issue? No, the full branch is no longer the best fit: most of its runtime owners have been retired. A focused repair using the existing non-observing configuration factory is the maintainable remainder. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9ae1a44bf05d. Merge-risk optionsMaintainer options:
SecurityNone. EvidenceWhat I checked:
PR surfaceSource +135, Tests +195. Total +330 across 23 files. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 (19 earlier review cycles; latest 8 shown)
Reviewed October 2, 2026, 9:44 PM ET / October 3, 2026, 01:44 UTC (Revision 20). |
|
@clawsweeper re-review — round-2 pushed (42c76881fbb): all three findings repaired with call-site evidence, plugin-sdk API baseline regenerated, compact-small shard failures addressed, and redacted real-behavior proof added to the PR body (before/after descriptor + migration evidence from a production host, including the fail-closed schema-mismatch path). |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review — R3 pushed (4785ade29bb): clears the three follow-up CI failures (test tuple typing, dependency-check facade export, Windows ACL inspection timeout with preserved error cause — no Windows skips or weakened checks). 213 focused tests + check:test-types + dependency checks + full build/check green locally. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review — R4 pushed (0a5ffd3c09f): both remaining P1 findings fixed (maintenance preview non-observing with the apply/preview branch traced; all 15 catalog-inferred inspection commands classified + regression-tested), the SDK merge-risk resolved by keeping |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review — R5 pushed (84c5a31aed6): the two shard failures were deterministic R4 test-mock regressions (mocks now cover getRuntimeConfigForInspection); PR body headings aligned to the template. No production-code changes. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
84c5a31 to
633ab2b
Compare
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
Thanks for the PR. We're closing older pull requests that have gone stale against current This PR has had no commits since August 16, CI is failing, and it still needs real behavior proof against current main. Please open a fresh, narrower PR if the read-only inspection paths still create writable state. |
What Problem This Solves
Several CLI inspection paths could re-enter task and TaskFlow runtime restore through writable state owners. On a host with a running Gateway, commands such as task listing/audit, maintenance preview, TaskFlow inspection, and default plugin inventory could therefore create or migrate the shared state database, or record configuration observation, despite being read-only operations.
This change makes those inspection restores fail closed when the existing state DB is older than the current schema, rather than opening it writable. It preserves the writable migration path for explicit mutations.
Why This Change Was Made
#124110 now owns the generic non-creating, non-migrating state/doctor loaders. This PR has been reshaped after it and drops the overlapping work.
The remaining scope is limited to the unique guarantees:
No schema version, public config option, or CLI flag is added.
Refs: #119583, #120222
#120222 is retained as resilience context only. This PR does not change Gateway startup ordering or claim to resolve that open product decision.
User Impact
Read-only CLI inspection no longer creates or migrates
state/openclaw.sqlite. If a task or TaskFlow inspection encounters an older state schema, it explains how to repair it (openclaw doctor --fixor starting the Gateway) without changing the DB.Explicit mutation commands, including task notification/cancellation and flow cancellation, retain their existing writable migration behavior.
Evidence
openclaw/mainafter fix: keep doctor lint from migrating shared state #124110.user_versionunchanged and mutations can then migrate.git diff --checkpassed.CI=true pnpm buildcompleted.