Skip to content

fix(packaging): accept frozen releases with their shipped MCP patches - #158098

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/frozen-package-mcp-contract
Sep 25, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/frozen-package-mcp-contract

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #157531. Unblocks package qualification for #157972; does not change that candidate.

What Problem This Solves

Fixes: Package Acceptance rejects a frozen release candidate when main has upgraded its bundled Chrome MCP dependency, even though the candidate still contains the exact previously shipped patched runtime.

User Impact

No runtime or dependency change. Release operators can qualify supported frozen candidates without importing an unrelated dependency upgrade. Unknown versions, ranges, mixed versions and modified or unpatched bytes remain rejected; no acceptance gate is skipped.

Why This Change Was Made

The checker now selects the trusted 1.8.0 or 1.9.0 hash contract from the exact package dependency pin and requires the bundled manifest to match. All original file hashes, required assets, ESM and CLI checks remain intact. The other consumer—the node bootstrap producer—keeps its existing 1.9.0-only default.

The 1.8.0 contract comes from shipped v2026.9.6, commit eb377ac. It stays supported while a supported frozen target pins it, and retires explicitly with those targets. The candidate supplies neither its expected hashes nor an exception policy.

Evidence

Current qualification

Merged at 2026-09-25 21:14:13 UTC as 4acdf1a, from exact hosted head 679f8e8. CI 36185669143 and its required ci-gate passed. The landed main delta is exactly the five packaging files; the unchanged carried #158115 fixture correction was already on main. Native closeout removed the PR worktree; all four required human co-author trailers and both work-session links were read back.

The exact-head ClawSweeper review artifact from run 36186748701 is complete, high-confidence and without code/security findings. Its archive and review-content digests were verified. The public review comment was still lagging, and native merge admission recorded recent-published-review/head and relevant-mainline-drift warnings under its ordinary policy. No admin or gate bypass was used; those warnings are retained rather than relabeled as clean.

The earlier failure and exact-base control remain recorded in the owner report. A local check of the two fixture files stopped before Vitest at the runtime-publication admission guard, so it supplies no passing test count. No live Gateway was stopped, restricted environment file accessed, or guard bypassed. Required hosted CI is the qualification path. Native publication produced a carrier commit with the exact local prepared tree and retained all contributor trailers.

  • Original failed Package Acceptance attempt: Code dee7003 / Tooling 8847d96. Build and pack completed; integrity then reported seven MCP-version/hash errors. Upgrade scenarios did not run.
  • The actual shipped [email protected] tarball reproduced those seven errors, then passed the repaired ordinary integrity check in 51s. Its SHA-256 is 1a7355691bc0e605222ba818f1f72c1787253c78dfeb0df6be2086ec73b71e63; downloaded bytes matched registry SRI and all eight original 1.8.0 hashes.
  • 62 contract tests passed (1.79s single-worker wall, 0.636s Vitest); 20 real packing/install integration cases passed (32.33s wall). A 30-case real-byte probe accepted both intact patched versions and rejected mixed, altered and pristine unpatched payloads. Integrated main replay: both files passed in 28.43s.
  • Script/root-test types, targeted lint, formatting and single-file docs sanity passed on the prepared repair. Fresh independent P0–P2 review of the five-file main integration is scoped-clean.

Limits: This does not qualify the rebuilt backport candidate or any upgrade scenario. The shipped npm artifact still fails the separate strict Docker check because it does not bundle the private workspace AI package; that gate is unchanged. No workflow dispatch, version bump, dependency change, release publication or deployment is part of this PR.

Contributor credit

Prepared during the release-backport work with session contributors @RomneyDa, @vyctorbrzezowski, @steipete and @jalehman. Existing patched-runtime contracts and their upstream attribution are preserved.

Work sessions

Select only trusted exact 1.8.0 and 1.9.0 artifact contracts from the package pin. Keep bootstrap policy and all byte, asset, manifest and CLI checks intact.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: jalehman <[email protected]>
@clawsweeper

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

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 25, 2026 11:29
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M labels Sep 25, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@steipete — the tooling PR is blocked by a reproducible catalog-contract failure on its existing main base, not by these five packaging files. This is in the discovery/publication path from #157459 and the first-discovery protection in commit 36def8b.

Original failed CI job: models-list.discovery-lifecycle.integration.test.ts:187 expects Learned/learned after an unavailable refresh but receives an empty array.

  • The CI merge tree exactly equals this PR head’s tree. Replaying the failing subgroup reproduced that assertion with the other 283 tests passing.
  • Removing all five packaging changes reproduces the same failure on exact base 36def8b (46.47s).
  • The successful synthetic provider response supplies rows but no ready outcome. copyProviderCatalogOutcomes records none; prepareModelCatalogPublication therefore has no prior discoveryOrigins to retain after the next 503.
  • Adding only an explicit ready outcome to the synthetic response makes the complete original integration test pass, with every assertion and timeout unchanged (28.43s). That intervention was restored; it is diagnostic evidence, not a proposed shipped fix. ProviderCatalogResult still makes outcomes optional, so the owning repair must consider successful-hook compatibility rather than assume the fixture alone is invalid.

Please resolve this in the catalog owner while preserving the first-failure starter guard and authoritative-empty retirement semantics. I am keeping this PR limited to the frozen-package integrity blocker; no model repair, CI rerun, source rebase or gate bypass was performed. Local tests used Node 26.8.2 versus CI 24.19.0; the exact CI assertion and base/control comparisons are established, not full runtime-environment equivalence.

The backport’s separate source qualification continues. Required tooling CI is not qualified by these diagnostic results.

@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 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed September 25, 2026, 8:05 AM ET / 12:05 UTC.

ClawSweeper review

What this changes

Package Acceptance selects a trusted Chrome MCP patch hash contract for the package’s exact 1.8.0 or 1.9.0 dependency pin, with release guidance and regression tests.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: current main rejects the Chrome MCP version pinned by the shipped v2026.9.6 package. This remains a distinct, useful packaging fix for the open release backport.

Priority: P2
Reviewed head: c6813539108dc7298597929aa79ca3b941e6f252

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused checker repair has shipped-package behavior evidence and preserves the existing integrity checks.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The PR body records a registry-verified v2026.9.6 tarball failing the old package integrity checker and passing the changed checker in 51 seconds, directly exercising the changed packaging path. It does not establish a rebuilt-backport upgrade result; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body records a registry-verified v2026.9.6 tarball failing the old package integrity checker and passing the changed checker in 51 seconds, directly exercising the changed packaging path. It does not establish a rebuilt-backport upgrade result; no stored-data contract changes.
Evidence reviewed 10 items Current-main gap: The fetched main revision still hard-codes Chrome MCP 1.9.0 in its bundled-artifact checker.
Shipped contract: The v2026.9.6 checker specifies 1.8.0 and the same eight hashes used in this PR’s 1.8.0 table.
Shipped dependency pin: The v2026.9.6 package declares Chrome MCP 1.8.0 as a bundled dependency.
Findings None None.
Security None None.

How this fits together

Package Acceptance inspects an installable OpenClaw tarball before release qualification. It reads the package’s dependency pin and bundled files, then reports whether the patched Chrome MCP runtime is intact.

flowchart LR
A[Candidate tarball] --> B[Dependency pin]
A --> C[Bundled MCP files]
B --> D[Trusted version hashes]
C --> E[Manifest and byte checks]
D --> E
E --> F[Package acceptance result]
Loading

Before merge

  • Complete next step (P2) - Resolve the separate catalog-discovery failure on main and obtain a passing required CI gate for this head before merge.
Agent review details

Security

None.

PR surface

Tests +155, Docs +12, Other +52. Total +219 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 157 2 +155
Docs 1 12 0 +12
Config 0 0 0 0
Generated 0 0 0 0
Other 2 83 31 +52
Total 5 252 33 +219

Review metrics

Metric Value Why it matters
Production and test LOC production +83/−31 (net +52); tests +157/−2 (net +155) The production growth holds two fixed release contracts; the tests cover accepted and rejected variants.

Root-cause cluster

Relationship: canonical
Canonical: #158098
Summary: This PR owns the frozen-package checker mismatch; the release tracker and backport depend on qualification but address broader, distinct work.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep exact trusted contracts for supported frozen releases, retire 1.8.0 when those targets retire, and preserve the bootstrap builder’s current-runtime default.

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

Yes. The shipped package pins 1.8.0 while current main’s checker requires 1.9.0, and the linked Package Acceptance attempt reported the resulting integrity failures; this review did not execute the checker.

Is this the best way to solve the issue?

Yes. Selecting fixed hashes from the candidate’s exact pin repairs frozen-package qualification without changing the candidate dependency or the bootstrap builder’s default.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 71bb516084f5.

Labels

Label changes:

  • add P2: The checker blocks qualification of a supported frozen package, with impact limited to release tooling.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body records a registry-verified v2026.9.6 tarball failing the old package integrity checker and passing the changed checker in 51 seconds, directly exercising the changed packaging path. It does not establish a rebuilt-backport upgrade result; no stored-data contract changes.
  • 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 PR body records a registry-verified v2026.9.6 tarball failing the old package integrity checker and passing the changed checker in 51 seconds, directly exercising the changed packaging path. It does not establish a rebuilt-backport upgrade result; no stored-data contract changes.

Label justifications:

  • P2: The checker blocks qualification of a supported frozen package, with impact limited to release tooling.
  • 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 PR body records a registry-verified v2026.9.6 tarball failing the old package integrity checker and passing the changed checker in 51 seconds, directly exercising the changed packaging path. It does not establish a rebuilt-backport upgrade result; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body records a registry-verified v2026.9.6 tarball failing the old package integrity checker and passing the changed checker in 51 seconds, directly exercising the changed packaging path. It does not establish a rebuilt-backport upgrade result; no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • vincentkoc: 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)

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.

Report successful HTTP discovery and selected account provenance in the
catalog lifecycle fixtures. Account retention requires an observed ready
outcome; returned rows alone may be advisory static fallback.

The learned-row failure reproduced in 20/20 contended Testbox runs.
The repaired file passes 20/20 standalone runs, the contended replay,
and three complete original-shard replays. Repair the identical missing
outcome found by sibling freshness validation. All assertions are retained.
No production behavior changes.

Carries the already-landed owning fix from PR #158115 unchanged so the
packaging PR preserves its hosted ancestry while its failed CI is repaired.
Upstream: d5d4952

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: jalehman <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Sep 25, 2026
@roboclaw-bot
roboclaw-bot merged commit 4acdf1a into main Sep 25, 2026
224 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/frozen-package-mcp-contract branch September 25, 2026 21:14
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
…openclaw#158098)

* fix(packaging): accept frozen releases with their shipped MCP patches

Select only trusted exact 1.8.0 and 1.9.0 artifact contracts from the package pin. Keep bootstrap policy and all byte, asset, manifest and CLI checks intact.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: jalehman <[email protected]>

* perf(models): correct discovery outcomes in lifecycle fixtures (openclaw#158115)

Report successful HTTP discovery and selected account provenance in the
catalog lifecycle fixtures. Account retention requires an observed ready
outcome; returned rows alone may be advisory static fallback.

The learned-row failure reproduced in 20/20 contended Testbox runs.
The repaired file passes 20/20 standalone runs, the contended replay,
and three complete original-shard replays. Repair the identical missing
outcome found by sibling freshness validation. All assertions are retained.
No production behavior changes.

Carries the already-landed owning fix from PR openclaw#158115 unchanged so the
packaging PR preserves its hosted ancestry while its failed CI is repaired.
Upstream: d5af36d

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: jalehman <[email protected]>

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: jalehman <[email protected]>
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 gateway Gateway runtime 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