Skip to content

fix(ci): preserve published plugin bytes in upgrade fixtures - #154374

Merged
steipete merged 2 commits into
mainfrom
ci-burden/registry-fixture-same-version-bytes
Sep 21, 2026
Merged

steipete merged 2 commits into
mainfrom
ci-burden/registry-fixture-same-version-bytes

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the published-updater fixture rejecting a same-version core candidate because its registry serves different Discord package bytes under an already-installed version.

Related: #154133.

User Impact

No product behavior changes. Same-version updater qualification now models npm's immutable package versions, while the existing integrity guard continues to reject changed bytes.

Why This Change Was Made

The baseline phase acquired the published companion archive, but the candidate phase dropped that registry override. When both versions were 2026.9.5, the registry replaced the published archive with the locally rebuilt candidate at the same package/version. The updater correctly rejected its changed integrity.

Retain the published companion archive across both phases for the Discord and MSTeams scenarios, and verify installation against that selected archive. A genuinely different companion version still selects and verifies the prepared candidate. No published version, package integrity policy, timeout, or retry behavior changes.

This is a shared main-side fixture defect, introduced by #141146, not an agents-core change. Pinned main a667c541c1eb3e2e5fc02844af9d04e0e00197e1 reproduces the exact same expected/actual Discord integrity mismatch. It affects this same-version qualification path; it does not fail every ordinary PR job, since some use older baselines or do not run this cell.

Evidence

  • Linux Testbox main control: canonical package preparation passed; the published-updater cell failed on the expected Discord integrity mismatch after 299.448 seconds, one attempt. Control run.
  • Regression: original fixture fails on same-version registry integrity; repaired fixture passes both unchanged-version and new-version cases. It uses the real shell phase transition, registry metadata/HTTP tarball server, and installation assertion CLI. Wrong installed archive integrity is rejected. Whole file at one worker: 3.224 seconds; 208 sibling tests pass.
  • Linux node scripts/check-changed.mjs: passed in 172.460 seconds. Targeted typed lint, oxfmt --check, git diff --check, and Bash/Node syntax checks passed. Fresh P2 Codex autoreview: scoped-clean, no actionable findings.
  • Fixed head 0452022b4fa4f4c11473456c0244830927bfa4ee: canonical preparation passed in 353.196 seconds; the full cell passed in 317.559 seconds (301-second lane), one attempt. Fixed Testbox session. Plugin convergence, Doctor, and backup/rollback assertions passed; updateRestartSource is baseline-update.
  • Packed and served build IDs both equal 2026.9.5-0452022b4fa4-2026-09-21T03-28-18.168Z. Package SHA-256: 8331ac1adaecd704ee1904c19c6b0bfea5375ad0ec84505b7253c1775a75edbd.

The main control and repair used the same cell inputs after canonical --prepare-only package preparation:

[email protected] \
OPENCLAW_UPGRADE_SURVIVOR_SCENARIOS=legacy-operator-state \
OPENCLAW_UPGRADE_SURVIVOR_UPDATE_RESTART_MODE=auto-auth \
OPENCLAW_DOCKER_ALL_PARALLELISM=1 \
corepack pnpm test:docker:published-upgrade-survivor

All substantial proof ran on Linux Testbox. Neither this PR nor the related agents-core PR has been landed.

@clawsweeper

clawsweeper Bot commented Sep 21, 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: M maintainer Maintainer-authored PR labels Sep 21, 2026
@steipete
steipete marked this pull request as ready for review September 21, 2026 03:42
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 20, 2026, 11:58 PM ET / September 21, 2026, 03:58 UTC.

ClawSweeper review

What this changes

The upgrade test fixture retains published Discord and MSTeams archives across registry phases, verifies the selected archive, and adds regression coverage and documentation.

Merge readiness

✅ Ready for maintainer review

Keep open: current main still contains the fixture defect, and this focused repair preserves integrity enforcement. No actionable correctness or security finding was identified.

Priority: P2
Reviewed head: 9398c28cbba5bf3c5c665de7341e46af4041fb88

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused fixture repair with meaningful boundary regressions and recorded full upgrade qualification supports normal mergeable quality.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The captured Linux Testbox report exercises the changed registry owner through the published 2026.9.5 updater and records after-fix plugin convergence, Doctor, rollback checks, and baseline-owned restart; the touched implementation is unchanged at the reviewed head. Direct lease-log inspection was network-blocked.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The captured Linux Testbox report exercises the changed registry owner through the published 2026.9.5 updater and records after-fix plugin convergence, Doctor, rollback checks, and baseline-owned restart; the touched implementation is unchanged at the reviewed head. Direct lease-log inspection was network-blocked.
Evidence reviewed 6 items Pinned patch ownership: Reviewed the merge-base-to-head diff. The verified test merge records the pinned base followed by the exact PR head; its result contains the same scoped changes.
Repair remains necessary: Fetched main supplies the published companion override only inside the baseline phase. Candidate-phase registry construction therefore substitutes prepared bytes when the versions coincide. No merged replacement was established; the live PR remains open and unmerged. The supplied release commit was unavailable locally, so release inclusion was not established.
Archive selection and integrity remain aligned: The shell retains the acquired archive and supplies its override in both phases. Registry extras follow prepared packages, and the server's version map selects the final entry for an identical name/version. Assertions validate published package identity and compare installed SHA-512 integrity against the selected archive; MSTeams file checks use that archive too.
Findings None None.
Security None None.

How this fits together

The upgrade-survivor harness installs a published OpenClaw release and exercises its updater against a prepared candidate. Its local npm registry supplies plugin archives, and installation assertions determine whether the upgrade qualification passes.

flowchart TD
  A[Published plugin archive] --> C[Fixture registry]
  B[Prepared candidate archive] --> C
  C --> D{Same plugin version?}
  D -->|Yes| E[Retain published bytes]
  D -->|No| F[Select candidate bytes]
  E --> G[Published updater]
  F --> G
  G --> H[Verify installed identity and integrity]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +245, Docs +15, Other +23. Total +283 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 245 0 +245
Docs 2 15 0 +15
Config 0 0 0 0
Generated 0 0 0 0
Other 2 34 11 +23
Total 5 294 11 +283

Review metrics

Metric Value Why it matters
Code growth by responsibility Product runtime 0; fixture tooling net +23 lines; regression tests +245 lines Growth stays within qualification tooling and tests, with archive preservation and integrity rejection providing the stated justification.
Regression test cost 3.224 seconds at one worker, reported in the PR The reported whole-file cost remains below the repository's five-second test-time target.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/assertions.mjs, serialized state: scripts/e2e/lib/upgrade-survivor/assertions.mjs, unknown-data-model-change: scripts/e2e/lib/upgrade-survivor/assertions.mjs, unknown-data-model-change: scripts/e2e/lib/upgrade-survivor/run.sh. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Technical review

Best possible solution:

Keep published package identities immutable in the fixture and qualify changed plugin bytes under a distinct version while retaining all installation integrity checks.

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

Yes: current-main registry construction explains the same-version integrity mismatch, and the captured body reports a matching failing published-updater control. This read-only review did not execute the harness.

Is this the best way to solve the issue?

Yes: retaining the already-acquired archive fixes the fixture's package identity at its owner while preserving candidate selection for new versions and strict integrity rejection.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This repairs a bounded same-version upgrade qualification defect without changing user-facing runtime behavior.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The captured Linux Testbox report exercises the changed registry owner through the published 2026.9.5 updater and records after-fix plugin convergence, Doctor, rollback checks, and baseline-owned restart; the touched implementation is unchanged at the reviewed head. Direct lease-log inspection was network-blocked.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The captured Linux Testbox report exercises the changed registry owner through the published 2026.9.5 updater and records after-fix plugin convergence, Doctor, rollback checks, and baseline-owned restart; the touched implementation is unchanged at the reviewed head. Direct lease-log inspection was network-blocked.

Label justifications:

  • P2: This repairs a bounded same-version upgrade qualification defect without changing user-facing runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The captured Linux Testbox report exercises the changed registry owner through the published 2026.9.5 updater and records after-fix plugin convergence, Doctor, rollback checks, and baseline-owned restart; the touched implementation is unchanged at the reviewed head. Direct lease-log inspection was network-blocked.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured Linux Testbox report exercises the changed registry owner through the published 2026.9.5 updater and records after-fix plugin convergence, Doctor, rollback checks, and baseline-owned restart; the touched implementation is unchanged at the reviewed head. Direct lease-log inspection was network-blocked.

Evidence

What I checked:

  • Pinned patch ownership: Reviewed the merge-base-to-head diff. The verified test merge records the pinned base followed by the exact PR head; its result contains the same scoped changes. (9398c28cbba5)
  • Repair remains necessary: Fetched main supplies the published companion override only inside the baseline phase. Candidate-phase registry construction therefore substitutes prepared bytes when the versions coincide. No merged replacement was established; the live PR remains open and unmerged. The supplied release commit was unavailable locally, so release inclusion was not established. (scripts/e2e/lib/upgrade-survivor/run.sh:773, 632917180583)
  • Archive selection and integrity remain aligned: The shell retains the acquired archive and supplies its override in both phases. Registry extras follow prepared packages, and the server's version map selects the final entry for an identical name/version. Assertions validate published package identity and compare installed SHA-512 integrity against the selected archive; MSTeams file checks use that archive too. (scripts/e2e/lib/upgrade-survivor/assertions.mjs:1392, 9398c28cbba5)
  • Meaningful regression coverage: The new test exercises actual shell registry transitions, HTTP metadata/tarball responses, and the installation assertion CLI for unchanged and distinct versions. It rejects an installation record containing the wrong archive integrity. Existing cohort tests cover version selection and unavailable companions but stub the registry owner, so they do not duplicate this boundary coverage. (test/scripts/upgrade-survivor-registry-identity.test.ts:45, 9398c28cbba5)
  • Recorded published-updater proof: The captured PR body reports a Linux Testbox control failing on Discord integrity and a repaired full published 2026.9.5 × candidate cell passing in 317.559 seconds, including plugin convergence, Doctor, backup/rollback, and baseline-owned restart. Packed and served build IDs match 0452022. The changed shell, assertions, and regression test are identical between that proof commit and the reviewed head. Proof session: https://github.com/openclaw/openclaw/actions/runs/35557381853. GitHub identifies this as a cancelled Testbox lease workflow, not a passing CI run; its log download was blocked by the review network. The behavioral results are the captured author's execution report. (0452022b4fa4)
  • Related work and historical routing: The supplied discussion for fix: run agents-core CI files safely in parallel #154133 independently describes encountering this registry mismatch during a separate agents-core qualification. The earlier merged survivor work at fix: catch published upgrade regressions before merging #141146 establishes prior area involvement. Current-main logs also show repeated work by Peter Steinberger and adjacent registry isolation work by Dallin Romney. Historical blob gaps prevented exact line-introduction verification; no causal attribution is made. (scripts/e2e/lib/prepublish-plugin-registry.sh, 632917180583)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; 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.

@steipete
steipete enabled auto-merge (squash) September 21, 2026 04:06
@steipete
steipete merged commit 1f4ddeb into main Sep 21, 2026
84 checks passed
@steipete
steipete deleted the ci-burden/registry-fixture-same-version-bytes branch September 21, 2026 04:08
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 21, 2026
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 P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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