Skip to content

fix(test): declare Workshop opt-out in legacy upgrade fixtures - #190878

Merged
vincentkoc merged 5 commits into
mainfrom
fix/upgrade-survivor-workshop-intent-20261102
Nov 2, 2026
Merged

vincentkoc merged 5 commits into
mainfrom
fix/upgrade-survivor-workshop-intent-20261102

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

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

  • Current correction: 68d323f, retaining captured base 28a93a0. Fresh exact 86a40-to-68d323 test-only correction review completed with zero findings across both changed units and the complete supplied caller/sibling proof. The accepted 86a40 two-owner production review remains separate unchanged-input evidence.
  • Fresh correction proof: complete baseline-order and Webhooks suites passed on Node and Bun, 18 unique cases per runtime (11 + 7). Targeted formatting, lint, the scripts test type leaf and both ratchets passed. The retained CI failure supplies the two original Cron-order negative cases; no old control was rerun.
  • Unchanged production proof at 86a40: 17 unique cases per runtime (7 fixture and 10 Doctor/bootstrap), scripts and core-other types and targeted statics passed. Production, Webhooks, Doctor-policy and docs bytes remain unchanged in the correction.
  • Matched predecessor control: 5 intended assertion failures and 2 passes. Complete JSON/JUnit records were independently attributed to exact source and pinned matcher implementations. The current fixture was restored before GREEN. The collector intentionally retains pending-attribution/nonzero COLLECTED_UNQUALIFIED; accepted components do not relabel that exit.
  • Real published 2026.6.34: checksum-bound package installation, full schema inspection, strict-JSON config set and config validation succeeded. The schema exposed enabled:boolean; stored config held enabled:false with no mode, and validation returned valid:true with no warnings.
  • Installation used effective ignore-scripts=false and no named hook-disable flags in isolated task directories. The npm allowScripts advisory remains recorded; individual hook execution was not separately observed.
  • Correction command components passed, but the original native aggregate exited 1 during cleanup and the first cleanup-only recovery also failed. After fresh associated-workflow settlement evidence, a separate claim-fenced cleanup exited 0 with child/pipe settlement and claim removal independently verified. The original failures remain unchanged; they are not relabeled as an aggregate pass. Earlier production-proof disposal and its ancillary portal warning remain separate.
  • Fresh exact-head CI and the enforced gate passed, including the former Cron, boundary and typecheck failures. Security-fast and the selected security jobs passed; the optional CodeQL aggregate is neutral, not evidence of a full scan. Claw review reports no findings or before-merge actions for 68d323. Native landing remains subject to its final admission.
  • The tested merge includes the upstream Baseten repair from #190958, with the fixed test and unchanged boundary guard verified at that merge. No CI exception was used.
  • The earlier package acceptance run remains failed overall: 10.9 passed and 9.2 failed at the extra Workshop warning. The Doctor campaign still requires its repaired two-cell, same-tarball Docker proof.

@vincentkoc vincentkoc self-assigned this Nov 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: XS labels Nov 2, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 2, 2026 04:46
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
Baseline-Refresh: 306f9a47ae3f27d3a182152a59e3368f006f714d
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: Workshop learning remains implicitly enabled, while writing the newer autonomous.mode setting would fail baseline validation.
  • After: The fixture discovers enabled:boolean, writes enabled:false, and requires canonical mode:off after upgrading.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused repair is coherent and prior findings are addressed; supplied validation primarily covers the harness and baseline CLI rather than a complete repaired upgrade.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored harness repair is outside the ordinary contributor proof gate; the body reports real 2026.6.34 schema/set/validate results and focused Node/Bun coverage, while distinguishing those results from full upgrade qualification.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: An unrelated Workshop warning prevents the legacy upgrade campaign from evaluating the state-preservation behavior it targets.
Reason: The maintainer-authored change restores a coherent synthetic operator configuration while preserving the supported baseline floor and strict acceptance policy.

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
Reviewed head: 68d323f68de8709eaccd5c7d8afe516725bb552d

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: A complete published-upgrade run with the repaired fixture is not supplied; the separate Doctor package campaign remains pending.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Legacy operator seed and baseline receipt keeps the original intent (c24b3f2: Exercise baseline-authored operator state and require successful upgrades with clean Doctor evidence.)
  • Restrictive plugin selections and Webhooks specimen keeps the original intent (bb12da4: Preserve authored plugin selections without accidentally selecting every default-enabled bundled plugin.)
  • Workshop Doctor warning policy keeps the original intent (b17b673: Warn when autonomous Workshop learning is enabled but plugin policy prevents its functionality.)
  • Canonical Workshop settings placement keeps the original intent (710b58d: Normalize legacy settings before moving them into plugin-owned configuration through the existing core Doctor migration.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit c24b3f2 adds scripts/e2e/lib/upgrade-survivor/legacy-operator-state.mjs:97 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c24b3f2e1af8; files: scripts/e2e/lib/upgrade-survivor/legacy-operator-state.mjs)
  • Ayaan Zaidi: Raw commit b17b673 adds src/flows/doctor-core-bootstrap-size-check.test.ts:155 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b17b67373c9b; files: src/flows/doctor-core-bootstrap-size-check.test.ts)

PR surface

Tests +176, Docs +6, Other +63. Total +245 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 177 1 +176
Docs 1 9 3 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 2 65 2 +63
Total 6 251 6 +245

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove merge-risk: 🚨 automation: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Restores focused published-upgrade validation without changing shipped runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (3 earlier review cycles)
  • reviewed 2026-11-02T05:02:58.619Z sha e564340 :: needs changes before merge. :: [P2] Use the current plugin-config helper in the Doctor assertion | [P2] Check the opt-out at its migrated location after upgrading
  • reviewed 2026-11-02T05:50:35.459Z sha 6d10f7d :: needs changes before merge. :: [P2] Use a Workshop opt-out supported by the oldest baseline
  • reviewed 2026-11-02T07:16:01.836Z sha 86a40fc :: needs changes before merge. :: [P2] Update the Cron lifecycle fixture for the schema query

Reviewed November 2, 2026, 4:44 AM ET / 09:44 UTC (Revision 4).

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head 6d10f7d1a9e0b07c2c2ef3fedaec82b1979f2574. Both prior findings are addressed: the Doctor test uses the canonical plugin-config helper, and preservation checks cover the actual core and marked plugin storage eras while rejecting loss, reactivation, invalid settings, and dual placements. Fresh focused Node/Bun tests and both relevant type leaves passed; the body records strict independently attributed RED evidence and its unchanged collector failure history. The separate Doctor campaign's repaired two-cell package proof remains pending and is not claimed here.

@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head 86a40fc99d7362d046535939574541644d35c79f. The supported 2026.6.34 finding is addressed at the fixture producer: select the installed baseline schema before writes, author native enabled=false or mode=off, and record the selected field for strict baseline and migrated preservation checks. The supported floor, restrictive plugin policy and strict Doctor assertion are unchanged. Fresh proof includes the real pinned 6.34 CLI schema/set/validate, 17 tests per runtime, both type leaves and independently attributed full 7/5/2 RED reports. The original collector nonzero and per-hook observation limits remain explicit in the body. The fresh two-owner source review is complete; the separate Doctor package campaign remains pending.

@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head 68d323f68de8709eaccd5c7d8afe516725bb552d. The remaining Cron fixture finding is fixed: the strict subprocess mock now handles the exact baseline config-schema command, and asserts the recorded schema field plus native mode=off settings. All existing Cron ordering and unknown-command assertions remain. The full 11-case baseline-order and 7-case Webhooks suites passed in both Node and Bun, with targeted scripts types, formatting, lint and ratchets. Fresh scoped source review is complete. The body distinguishes current correction proof, unchanged production and real 6.34 proof, original cleanup failures and independently accepted final cleanup. Current hosted CI and the separate Doctor package campaign are not claimed complete.

@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
@vincentkoc
vincentkoc merged commit 6b06549 into main Nov 2, 2026
148 checks passed
@vincentkoc
vincentkoc deleted the fix/upgrade-survivor-workshop-intent-20261102 branch November 2, 2026 09:58
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 3, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant