Repository navigation
fix(test): declare Workshop opt-out in legacy upgrade fixtures - #190878
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. |
Baseline-Refresh: 306f9a47ae3f27d3a182152a59e3368f006f714d
|
Codex review: needs maintainer review before merge. What this changesThis PR authors a baseline-supported Workshop opt-out and verifies that it survives upgrade migrations. Example: The legacy-operator fixture starts from openclaw 2026.6.34.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes the previously reported Cron fixture failure without weakening upgrade acceptance; no actionable defect remains in the reviewed head. Exact-head CI is still pending. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe published-upgrade harness seeds operator configuration through the installed baseline CLI, updates the installation, and checks that settings, skills, and policy survive. flowchart LR
A[Published baseline CLI] --> B[Read config schema]
B --> C[Seed native Workshop opt-out]
C --> D[Record baseline receipt]
D --> E[Update and Doctor migrations]
E --> F[Assert canonical opt-out and preserved state]
Technical reviewBest possible solution: Keep schema-aware fixture authoring and strict preservation checks in the existing survivor owner. Do we have a high-confidence way to reproduce the issue? Current-main source leaves Workshop implicit under the restrictive fixture policy, and Doctor warns when autonomous learning is enabled without its plugin; no target code was executed during this read-only review. Is this the best way to solve the issue? The repair uses the installed baseline schema and existing receipt rather than changing product defaults or weakening Doctor, and the latest correction repairs the affected subprocess consumer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 419d0c531180. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +176, Docs +6, Other +63. Total +245 across 6 files. Added test files: 0. View PR surface stats
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 (3 earlier review cycles)
Reviewed November 2, 2026, 4:44 AM ET / 09:44 UTC (Revision 4). |
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…law#190878) * fix(test): preserve legacy operator workshop opt-out * fix(test): preserve migrated Workshop opt-out * fix(test): seed baseline-native Workshop opt-out * fix(test): model schema discovery in Cron upgrade fixture
Related: #186506
What Problem This Solves
The legacy upgrade fixture could leave autonomous Workshop learning enabled under a restrictive plugin allowlist, then fail its strict Doctor check. Its initial opt-out repair also wrote a newer key to the supported 2026.6.34 baseline, whose schema accepts only a boolean.
User Impact
Harness-only change. The scenario declares and preserves its learning opt-out while retaining restrictive allow/deny policy, ordinary hooks, workspace skills and operator settings. The supported baseline floor, product defaults and strict final Doctor assertion remain unchanged.
Why This Change Was Made
Before writing config, the fixture reads the installed baseline's existing config schema. It requires exactly one supported field: enabled:boolean or a mode that includes off. It authors false/off through that baseline CLI and records the selected field in the existing baseline artifact. Missing, ambiguous or unsupported schemas fail before mutation.
Baseline acceptance requires the native core shape. After updating, acceptance requires canonical mode:off with no retired enabled field, exactly one core/plugin settings location, and the migration marker for plugin placement. Tests run the actual ordered false-to-off migration before the settings move. Loss, reactivation, invalid or simultaneous settings fail without choosing a preferred source. The Doctor-policy regression uses the current canonical config helper. The Cron-order subprocess mock now models the same exact schema command and asserts the selected receipt field and native opt-out, while retaining strict unknown-command and ordering checks.
Evidence