Skip to content

fix(ci): keep Docker upgrade seed baseline older than target - #142273

Merged
steipete merged 2 commits into
mainfrom
codex/ci-upgrade-baseline-predecessor
Sep 8, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/ci-upgrade-baseline-predecessor

Conversation

@steipete

@steipete steipete commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where Docker seed CI fails its real-upgrade case after npm's latest release reaches the target version. The updater correctly reports already-current, but the test is supposed to prove an actual upgrade before running its separate no-op control.

Why This Change Was Made

When the published survivor lane is selected, use the existing release baseline resolver to pin a published stable version strictly older than the selected source package version. Pass the release context so frozen extended-stable lines retain their existing predecessor policy. Materialize the resolver and its version helper from the trusted workflow revision through both Git harness checkout paths. Export the exact baseline before the Docker scheduler; unrelated lanes need no registry lookup.

User Impact

Release publication no longer changes this CI case into a same-version update or downgrade. Current main, future betas, and extended-stable targets keep the same real-upgrade and already-current assertions. No product updater behavior or package version changes.

Evidence

  • Six executed workflow-to-resolver-to-scheduler cases fail on the original floating-latest workflow and pass after the repair. They cover target 9.3, current main 9.2, two beta positions, a frozen extended-stable line, and fail-closed behavior when no predecessor exists.
  • 26 existing baseline resolver tests and seven focused CI guard cases passed. Scoped changed checks and workflow validation passed.
  • A live npm versions snapshot resolves 9.3 to [email protected], current main 9.2 to [email protected], and 9.4-beta.1 to [email protected].
  • Sixteen harness and sibling checks passed, including real Git materialization from both the index and a distinct workflow revision. The materialized resolver executes correctly after candidate policy files are changed; both new Linux cases fail against the original materializer.
  • Exact-head CI must pass before landing, including the unchanged Docker seed survivor assertions selected by this workflow change.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S maintainer Maintainer-authored PR labels Sep 8, 2026
@steipete
steipete marked this pull request as ready for review September 8, 2026 15:25
@clawsweeper

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

@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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 8, 2026
@clawsweeper

clawsweeper Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 8, 2026, 11:30 AM ET / 15:30 UTC.

ClawSweeper review

What this changes

Docker seed CI selects an exact published release older than the candidate, with documentation and regression coverage for stable, beta, and extended-stable targets.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 3 items remain

The repair remains useful because current main still uses a floating baseline, but the new resolver invocation depends on files the CI checkout does not provide. This protected PR should remain open for that bounded repair.

Priority: P2
Reviewed head: fe8a440f72435d59bd5a350358a05523ab1f7945

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The policy reuse and focused scenarios are useful, but a deterministic checkout integration failure blocks the patch.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied Repository State identifies a maintainer author, so the external-contributor proof gate does not apply. Reported resolver runs and fixture handoffs do not establish that the real checkout supplies the invoked helpers.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied Repository State identifies a maintainer author, so the external-contributor proof gate does not apply. Reported resolver runs and fixture handoffs do not establish that the real checkout supplies the invoked helpers.
Evidence reviewed 9 items Introduced invocation requires missing harness files: The new step invokes .ci-harness/scripts/lib/release-upgrade-baseline.mjs. The Linux checkout materializes only actions, ios-screenshot-evidence.mjs, and direct-run.mjs in both its index-export and sparse-checkout paths; neither the resolver nor its release-version.mjs dependency is included.
Canonical checkout owner confirms the omission: checkout_harness uses the same restricted file inventory as its generated workflow projection. Setup Node does not populate the missing release helpers.
Regression fixture bypasses checkout materialization: The six cases manually copy both release helpers into the harness before executing the workflow step, so they validate resolver-to-scheduler handoff but cannot detect the missing production checkout wiring.
Findings 1 actionable finding [P1] Materialize both release helpers in the Linux CI harness
Security None None.

How this fits together

Docker seed CI tests upgrades from a published OpenClaw package to the selected source build. Baseline selection feeds the Docker scheduler, whose survivor scenario checks preserved state and a separate already-current update.

flowchart TD
  A[Selected source version] --> C[Release baseline resolver]
  B[Published npm versions] --> C
  C --> D[Exact older baseline]
  D --> E[Docker upgrade scheduler]
  E --> F[Upgrade and state survival checks]
  F --> G[Already-current control]
Loading

Before merge

  • Materialize both release helpers in the Linux CI harness (P1) - When published-upgrade-survivor is selected on a clean runner, this command fails with a missing module before the Docker scheduler starts. checkout_harness in .github/actions/git-owner/owner.py supplies only .github/actions and the two evidence scripts for Linux jobs, in both its index-export and sparse-checkout paths; it supplies neither this resolver nor its release-version.mjs import. The new tests mask the omission by copying both files into the fixture. Extend the canonical checkout inventory, regenerate its workflow projection, and cover actual materialization.
  • Resolve merge risk (P1) - Whenever published-upgrade-survivor is selected on a clean runner, the missing harness resolver stops the Docker seed job before its upgrade assertions execute.
  • Complete next step (P2) - Supply both release helpers through the canonical Linux harness checkout and add coverage that uses the materialized harness.

Findings

  • [P1] Materialize both release helpers in the Linux CI harness — .github/workflows/ci.yml:5653-5655
Agent review details

Security

None.

PR surface

Tests +94, Docs +2, Config +11. Total +107 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 95 1 +94
Docs 1 2 0 +2
Config 1 12 1 +11
Generated 0 0 0 0
Other 0 0 0 0
Total 3 109 2 +107

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Materialize the resolver before use (recommended)
    Add both release helpers to the Linux harness checkout paths and validate the resulting harness before running baseline selection.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Update the canonical Git checkout owner to materialize release-upgrade-baseline.mjs and release-version.mjs for Linux jobs in both index-export and sparse-checkout paths, regenerate the workflow projection, and extend actual checkout-materialization coverage before the resolver-to-scheduler check.

Technical review

Best possible solution:

Keep candidate-relative baseline selection and materialize its complete helper dependency set through the canonical trusted checkout owner.

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

Yes, source inspection establishes a deterministic failure path: a clean Linux checkout followed by the selected baseline step attempts to execute a missing module. No runtime reproduction was executed in this read-only review.

Is this the best way to solve the issue?

The existing predecessor resolver is the right solution, but its checkout dependency is incomplete; repair materialization and test that boundary instead of manually supplying the missing files.

Full review comments:

  • [P1] Materialize both release helpers in the Linux CI harness — .github/workflows/ci.yml:5653-5655
    When published-upgrade-survivor is selected on a clean runner, this command fails with a missing module before the Docker scheduler starts. checkout_harness in .github/actions/git-owner/owner.py supplies only .github/actions and the two evidence scripts for Linux jobs, in both its index-export and sparse-checkout paths; it supplies neither this resolver nor its release-version.mjs import. The new tests mask the omission by copying both files into the fixture. Extend the canonical checkout inventory, regenerate its workflow projection, and cover actual materialization.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded CI correctness repair without a demonstrated user-facing runtime outage.
  • add merge-risk: 🚨 automation: The introduced command targets an unmaterialized harness script and would stop selected Docker seed jobs before validation.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The supplied Repository State identifies a maintainer author, so the external-contributor proof gate does not apply. Reported resolver runs and fixture handoffs do not establish that the real checkout supplies the invoked helpers.

Label justifications:

  • P2: This is a bounded CI correctness repair without a demonstrated user-facing runtime outage.
  • merge-risk: 🚨 automation: The introduced command targets an unmaterialized harness script and would stop selected Docker seed jobs before validation.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The supplied Repository State identifies a maintainer author, so the external-contributor proof gate does not apply. Reported resolver runs and fixture handoffs do not establish that the real checkout supplies the invoked helpers.

Evidence

Acceptance criteria:

  • [P1] pnpm test test/scripts/ci-platform-checkout.test.ts test/scripts/ci-linux-git.test.ts test/scripts/ci-workflow-guards.test.ts test/scripts/release-upgrade-baseline.test.ts.
  • [P1] node scripts/generate-ci-git-owner.mts --check.
  • [P1] pnpm check:changed.
  • [P1] git diff --check.

What I checked:

  • Introduced invocation requires missing harness files: The new step invokes .ci-harness/scripts/lib/release-upgrade-baseline.mjs. The Linux checkout materializes only actions, ios-screenshot-evidence.mjs, and direct-run.mjs in both its index-export and sparse-checkout paths; neither the resolver nor its release-version.mjs dependency is included. (.github/workflows/ci.yml:5653, fe8a440f7243)
  • Canonical checkout owner confirms the omission: checkout_harness uses the same restricted file inventory as its generated workflow projection. Setup Node does not populate the missing release helpers. (.github/actions/git-owner/owner.py:391, fe8a440f7243)
  • Regression fixture bypasses checkout materialization: The six cases manually copy both release helpers into the harness before executing the workflow step, so they validate resolver-to-scheduler handoff but cannot detect the missing production checkout wiring. (test/scripts/ci-workflow-guards.test.ts:3934, fe8a440f7243)
  • Existing materialization coverage: The checkout tests exercise real harness materialization and currently expect release-version.mjs only for preflight; these provide an appropriate boundary for extending regression coverage. (test/scripts/ci-platform-checkout.test.ts:537, fe8a440f7243)
  • Current main still needs baseline selection: Fetched main retains OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPEC: openclaw@latest. The latest-release workflow blob could not be inspected because the local object was unavailable and retrieval failed; no shipped-fix claim is made. (.github/workflows/ci.yml:5653, a8ac0975148f)
  • Existing resolver is the correct policy owner: The resolver filters published stable versions, requires a strict predecessor, and constrains frozen release contexts to their release month. The PR correctly reuses this policy. (scripts/lib/release-upgrade-baseline.mjs:35, fe8a440f7243)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Materialize both helpers through the canonical checkout owner and regenerate the workflow projection.
  • Extend checkout-boundary coverage for matching and differing workflow/source revisions, then validate the selected Docker seed lane.

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.

@steipete
steipete merged commit a1c1660 into main Sep 8, 2026
146 of 148 checks passed
@steipete
steipete deleted the codex/ci-upgrade-baseline-predecessor branch September 8, 2026 16:09
@steipete

steipete commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 8, 2026
* commit '04869ae4899ad0524c3287759798362b0d62fef8': (677 commits)
  fix(release): pin Kova census refresh (#142104)
  fix: doctor read-only database inspections time out on large agent databases (#142179)
  docs: align v2026.9.3 framing with release announcement (#142307)
  fix(ui): discover models when default-model pickers open (#142105)
  fix(ci): keep Docker upgrade seed baseline older than target (#142273)
  refactor(tests): reuse named OAuth credential fixtures (#142272)
  fix(ci): keep mobile release helpers out of source checks (#142115)
  chore(ui): refresh control ui locales (#142147)
  fix(active-memory): explain why recall was skipped (#138658)
  fix(media): preserve converted images with HEIC filenames (#142263)
  docs: add v2026.9.3 release notes (#142277)
  fix(ui): retire picker focus listeners together (#142258)
  fix(ui): keep menu hover colors consistent across themes (#142243)
  fix(release): keep changelog credits within verified history (#142261)
  fix: keep tool-finalizer placeholders private in message-only groups (#138645)
  perf(tui): carry prepared URL membership through rendering (#142262)
  test(ui): await activity cache imports before teardown (#142282)
  fix(qa): align auth and Workshop proofs with runtime contracts (#142280)
  feat(xai): use one curated catalog and concrete setup default (#142136)
  refactor(outbound): reuse prepared sendability facts (#142252)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 9, 2026
…w#142273)

* fix(ci): select an older Docker upgrade seed baseline

* fix(ci): materialize trusted upgrade baseline resolver
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 maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant