Skip to content

refactor(scripts): centralize upgrade survivor version floors - #146975

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/upgrade-survivor-baseline-policy-20260913
Sep 13, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/upgrade-survivor-baseline-policy-20260913

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Upgrade-survivor scenario planning repeats the same minimum-version decision in six branches.

User Impact

The planner selects the same scenarios and baseline groups. Exact abandoned-update selection, permissive tags and missing baselines, and every version floor are preserved.

Why This Change Was Made

A private table keeps the six minimum versions with their scenario names and one comparison path. The existing custom-plugin baseline export also gains its missing declaration. Production changes: −51 lines; tests: unchanged.

Evidence

  • Actual old/new policy modules matched across 19,200 scenario/baseline cases. Actual grouped planners matched across 3,024 cases, including output ordering and error messages. These checks used Node builtins only; no Docker or upgrade execution is claimed.
  • Existing docker-e2e-plan.test.ts and targeted-docker-lane-groups.test.ts cover all six floors, aliases, and ordered grouping. All 114 docker-e2e-plan cases passed in hosted job103716640994, including the six floors and aliases.
  • Root and independent source review, fresh P2 autoreview, diff checks, and the normal commit formatting hook passed. The borrowed dependency installation is incompatible with this source snapshot, so package-backed validation remains hosted.

Exact-head CI passed at 3871c0edc0e7ed2733f8d86032b4c7f4e0508bb5 (attempt1); aggregate gate103717980024 succeeded.

Compatibility proof requested in review: this module is pure planning policy. It reads scenario and baseline strings and returns the same selection decisions; all six floors, permissive unparsed baselines and the exact [email protected] abandoned-update exception remain. No persisted data, store, schema, migration or upgrade-execution code changes. The 19,200 policy and 3,024 actual planner comparisons plus 114 hosted planner cases verify the unchanged planning contract. A data migration is not applicable; no Docker upgrade execution is claimed.

@clawsweeper

clawsweeper Bot commented Sep 13, 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.

@vincentkoc vincentkoc self-assigned this Sep 13, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 13, 2026 11:28
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 13, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 13, 2026, 7:53 AM ET / 11:53 UTC (Revision 2).

ClawSweeper review

What this changes

Centralizes minimum release versions for upgrade-test scenarios and adds the missing type declaration for an existing baseline constant.

Merge readiness

⛔ Blocked before merge - 1 item remains

No blocking findings. This useful, maintainer-authored cleanup remains absent from current main. The earlier migration-proof blocker is resolved: the patch preserves scenario selection and does not change upgrade execution or persisted data.

Priority: P3
Reviewed head: 3871c0edc0e7ed2733f8d86032b4c7f4e0508bb5

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving cleanup with existing boundary coverage and successful exact-head CI.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from external-contributor runtime proof; its changed owner is pure planner policy, supported by reported equivalence checks and verified exact-head CI, with no upgrade execution claimed or required for a changed storage contract.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from external-contributor runtime proof; its changed owner is pure planner policy, supported by reported equivalence checks and verified exact-head CI, with no upgrade execution claimed or required for a changed storage contract.
Evidence reviewed 8 items Introduced change preserves selection semantics: The verified merge-base-to-head diff replaces six minimum-version branches with the same six thresholds. Unparsed or missing baselines remain permissive, and abandoned-update still requires exactly [email protected]. Parsing, aliases, scenario ordering, and trust classification are unchanged.
Planner boundary, not a data migration: The grouped planner imports the existing policy and filters scenario/baseline pairs before producing job descriptions. The other caller filters expanded Docker lanes with the same predicate. The changed module has no storage, process, network, or dependency imports; scenario names do not establish a dependency-runtime contract.
Existing planner contract coverage: Inspected complete relevant test cases for legacy-state and custom-plugin floors, mobile/watch floors, ACP and plugin-cleanup filtering, explicit scenario selection, aliases, and ordered grouping. These assert observable planner output and remain unchanged. No tests or target code were executed during this read-only review.
Findings None None.
Security None None.

How this fits together

OpenClaw’s upgrade-test planners combine requested scenarios with published baseline versions. This policy determines which combinations become Docker validation jobs.

flowchart LR
  A[Requested scenarios] --> C[Upgrade test policy]
  B[Published baseline versions] --> C
  C --> D{Supported combination?}
  D -->|Yes| E[Grouped Docker jobs]
  D -->|No| F[Combination omitted]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Other -51. Total -51 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 17 68 -51
Total 2 17 68 -51

Review metrics

Metric Value Why it matters
Selection contracts 6 minimum-version floors and 1 exact-version exception preserved The refactor changes policy representation without changing which upgrade scenarios are eligible.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/lib/upgrade-survivor-policy.mjs, unknown-data-model-change: scripts/lib/upgrade-survivor-policy.mjs. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep one private version-floor table and the existing planner contract, with the exact-version exception explicit and existing boundary coverage retained.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR removes repeated planning logic rather than fixing a reported runtime defect; source comparison establishes the preserved selection rules.

Is this the best way to solve the issue?

Yes. A private table consolidates the existing policy without adding a competing owner or changing callers, and the declaration matches an already-exported constant.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 59773963d180.

Labels

Label justifications:

  • P3: This is a bounded internal cleanup with unchanged scenario selection and no user-facing behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from external-contributor runtime proof; its changed owner is pure planner policy, supported by reported equivalence checks and verified exact-head CI, with no upgrade execution claimed or required for a changed storage contract.

Evidence

What I checked:

  • Introduced change preserves selection semantics: The verified merge-base-to-head diff replaces six minimum-version branches with the same six thresholds. Unparsed or missing baselines remain permissive, and abandoned-update still requires exactly [email protected]. Parsing, aliases, scenario ordering, and trust classification are unchanged. (scripts/lib/upgrade-survivor-policy.mjs:149, 3871c0edc0e7)
  • Planner boundary, not a data migration: The grouped planner imports the existing policy and filters scenario/baseline pairs before producing job descriptions. The other caller filters expanded Docker lanes with the same predicate. The changed module has no storage, process, network, or dependency imports; scenario names do not establish a dependency-runtime contract. (scripts/plan-targeted-docker-lane-groups.mjs:100, 3871c0edc0e7)
  • Existing planner contract coverage: Inspected complete relevant test cases for legacy-state and custom-plugin floors, mobile/watch floors, ACP and plugin-cleanup filtering, explicit scenario selection, aliases, and ordered grouping. These assert observable planner output and remain unchanged. No tests or target code were executed during this read-only review. (test/scripts/docker-e2e-plan.test.ts:1383, 3871c0edc0e7)
  • Prior compatibility concern addressed: The captured PR body explicitly answers the previous review at refactor(scripts): centralize upgrade survivor version floors #146975 (comment) with unchanged planning semantics and reports 19,200 policy comparisons plus 3,024 grouped-planner comparisons. These are contributor-reported equivalence checks, not Docker upgrade proof. Source inspection supports the explanation that no migration applies. (3871c0edc0e7)
  • Exact-head hosted validation: GitHub reports the linked CI run completed successfully at the reviewed head: https://github.com/openclaw/openclaw/actions/runs/34754527588. The supplied body separately reports 114 hosted planner cases passing. (3871c0edc0e7)
  • Still distinct from current main and latest release: Comparing the two policy files against fetched main retains the complete proposed refactor. Inspection of v2026.9.4 also shows the separate minimum-version helpers. No merged replacement was established; the broader GitHub PR search was rejected by the limited endpoint. (scripts/lib/upgrade-survivor-policy.mjs, 59773963d180)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-13T11:37:06.875Z sha 3871c0e :: blocked before merge. :: none

@vincentkoc
vincentkoc merged commit 34c47b4 into main Sep 13, 2026
190 of 191 checks passed
@vincentkoc
vincentkoc deleted the refactor/upgrade-survivor-baseline-policy-20260913 branch September 13, 2026 18:10
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 13, 2026
* commit '2d87daf04b78992382299d552f15ac84a86a23ed': (1815 commits)
  fix(ui): distinguish tool activity with semantic icons (#147207)
  fix(linux): recover completed Quick Chat replies without resending (#146048)
  feat(desktop): unify Tauri title bar and window controls (#147097)
  refactor(test): share plugin fixture server shims (#147225)
  perf(gateway): defer worker workspace execution imports (#143496)
  fix(gateway): post-ack webhook work fails with "Async work scope is closed" (#144801)
  refactor(scripts): centralize upgrade survivor version floors (#146975)
  fix(ci): check publication registries before FRV fanout (#147184)
  fix(qa): align system-agent delegation with channel contracts (#145905)
  improve: reduce repeated chat message identity work (#147210)
  fix(channels): remove stale pre-tool previews from Slack and Telegram (#147106)
  fix: keep catalog discovery scoped and execution lazy (#147159)
  fix: serialize reclamation worker shutdown with foreground writes (#147178)
  test(sessions): cover abrupt committed transcript recovery (#143984)
  fix: stop transcript storms during context overflow recovery (#147202)
  fix: reduce CPU overhead for small history and usage reads (#147205)
  fix: resume tasks after tools finish and the model times out (#147203)
  refactor(scripts): share SQLite reliability message waits (#146900)
  feat(exec): configure approval reviewer thinking and fastMode (#147192)
  test: remove redundant Bonjour module headers (#146981)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S 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