Skip to content

fix(release): prevent prerelease upgrade QA from missing official plugins - #120107

Merged
vincentkoc merged 1 commit into
mainfrom
fix/release-companion-registry
Aug 7, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/release-companion-registry

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 7, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes prerelease package upgrade QA when the frozen root candidate references official external plugin packages that are not yet published at the exact candidate version.

Why This Change Was Made

The release harness now derives the exact official npm plugin companions required by selected upgrade-survivor recipes, packs them from the same source SHA and candidate version, and transports them as a separate immutable artifact. Docker upgrade QA mounts that artifact read-only and serves it through the existing loopback npm registry while unknown packages continue to proxy to npm.

Artifact/ref validation opts in explicitly. Published npm, URL, and trusted-URL acceptance paths ignore the companion tuple. The manifest binds source SHA, candidate version, package identities, tarball hashes, artifact producer run/attempt, and its own SHA-256; validation fails closed on partial or dirty provenance.

The trusted release harness owns all upgrade-survivor Docker entry points. It starts the registry before openclaw update, preserves the caller-provided scenario environment, and creates the registry fixture directory only when companion packages are present. Scenario credentials remain scoped to their owning recipe.

Root cause: the root prerelease tarball could reference official external plugins before those companions were published, while the release scheduler could route through the frozen candidate's older package alias and start the registry too late. Architectural owner: release candidate preparation plus the trusted upgrade-survivor harness. Canonical fix: produce and consume immutable candidate companions at that boundary and route the selected lane through the trusted harness.

User Impact

Maintainers can run beta package, scheduled-ref, and release-path upgrade QA against one frozen candidate without prematurely publishing official plugin packages.

No product runtime behavior changes. No npm publish is performed, and this does not move the frozen release candidate.

Evidence

Release/tooling delta: +1022/-47 lines (net +975), justified by the immutable artifact ownership, provenance/security contract, trusted-harness routing, and lifecycle coverage. Test delta: +647/-24 lines (net +623). The final directory-lifecycle repair over the previously reviewed head is +2 release/tooling lines and +10 test lines.

@vincentkoc vincentkoc self-assigned this Aug 7, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling labels Aug 7, 2026
@clawsweeper

clawsweeper Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@openclaw-barnacle openclaw-barnacle Bot added size: XL maintainer Maintainer-authored PR labels Aug 7, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 7, 2026 02:11
@vincentkoc
vincentkoc force-pushed the fix/release-companion-registry branch from c058c7c to 039e3eb Compare August 7, 2026 02:18
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc
vincentkoc force-pushed the fix/release-companion-registry branch from 039e3eb to c8060d7 Compare August 7, 2026 02:26
@openclaw openclaw deleted a comment from clawsweeper Bot Aug 7, 2026
@vincentkoc
vincentkoc force-pushed the fix/release-companion-registry branch from c8060d7 to 7da7707 Compare August 7, 2026 03:15
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head: 7da77079fc3b2e31a661a1e238eeaf787ffca7d4.
The PR body now records the prior frozen-candidate stdout-contract failure, its focused regression fix, and the exact pinned Package Acceptance run in progress.

@clawsweeper

clawsweeper Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc
vincentkoc force-pushed the fix/release-companion-registry branch from 7da7707 to 8214258 Compare August 7, 2026 03:41
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc
vincentkoc force-pushed the fix/release-companion-registry branch from 8214258 to 32be933 Compare August 7, 2026 04:10
@vincentkoc
vincentkoc force-pushed the fix/release-companion-registry branch from 32be933 to e19dda6 Compare August 7, 2026 04:41
@vincentkoc

Copy link
Copy Markdown
Member Author

ClawSweeper rank-up move disposition for exact head e19dda62574f31576b053ac359cf166a072485a8:

The frozen-candidate Package Acceptance proof completed in https://github.com/openclaw/openclaw/actions/runs/31148216845 against Code SHA 272b3098c71af4143882e68e13193437ef605dd9. It passed the #120107 owner boundary through companion registry artifact binding/content validation, registry startup, baseline install, mounted-tarball update, doctor repair, and post-update state verification.

The remaining gateway startup refusal is the distinct #120086 restart/retry owner after doctor changed plugin migration inputs. The PR body now records that exact disposition. No #120107 rerun is needed.

@vincentkoc
vincentkoc merged commit a0deb8e into main Aug 7, 2026
132 of 134 checks passed
@vincentkoc
vincentkoc deleted the fix/release-companion-registry branch August 7, 2026 05:31
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 7, 2026
…cope

* origin/main:
  fix(qa): bound Matrix scenario preparation separately (#119996)
  test(msteams): cover occupied webhook port (#120158)
  fix(agents): clear btw attribution reservations
  fix(agents): reserve execution attribution atomically
  fix(agents): reject attribution collisions before capture
  fix(agents): reject CLI attribution collisions
  fix(agents): reject private attribution recovery by run id
  fix(agents): restore runtime check cleanliness
  fix(agents): refresh rebound run admission time
  refactor(agents): propagate exact attribution across runtimes
  fix(release): provide prerelease plugin companions to package QA (#120107)
  test(macos): stabilize gateway session negotiation tests (#120141)
  refactor(test): replace logic-bearing vi.mock factories with boundary fakes, batch 2 (#120117)

# Conflicts:
#	src/agents/command/attempt-execution.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling maintainer Maintainer-authored PR scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant