Skip to content

fix: plugin update validation selects stale compatibility chunks - #157608

Merged
RomneyDa merged 1 commit into
mainfrom
fix/update-fixture-recorded-chunks
Sep 24, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/update-fixture-recorded-chunks

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: plugin-update validation can select a stale legacy chunk name even when the frozen candidate records its actual first-hop compatibility chunks.

User Impact

User impact: release validation exercises the compatibility chunks shipped by the candidate instead of failing while staging a nonexistent legacy fixture.

Why This Change Was Made

Treat the candidate's recorded compatibility inventory as authoritative when present. Keep the legacy static names only for older candidates that have no recorded inventory.

Evidence

@clawsweeper

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

@RomneyDa
RomneyDa marked this pull request as ready for review September 24, 2026 21:47
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 24, 2026, 5:55 PM ET / 21:55 UTC.

ClawSweeper review

What this changes

The branch makes first-hop release fixtures select compatibility chunks from the candidate package’s recorded inventory when present, retains a fallback for older candidates, and updates fixture tests.

Regression provenance

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

Merge readiness

⛔ Blocked before merge - 5 items remain

Keep open. The fix addresses the reported release-validation staging failure, but the documented explicit-source negative control can no longer demonstrate its expected failure, and the second-hop receipt can report an incorrect result.

Priority: P2
Reviewed head: 606baa08d01bd209536159fcbe00615fdf002ec9

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused fixture coverage is useful, but two release-validation correctness gaps remain.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: This member-authored PR is exempt from the external contributor proof gate. Its reported focused tests exercise fixture generation, but no after-fix real Docker upgrade result is supplied; the changed code does not alter a stored-data format.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR is exempt from the external contributor proof gate. Its reported focused tests exercise fixture generation, but no after-fix real Docker upgrade result is supplied; the changed code does not alter a stored-data format.
Evidence reviewed 9 items Introduced selector: With a recorded inventory, the fixture now removes only recorded files identified as generated compatibility chunks; the legacy-name fallback runs only without an inventory.
Legacy source control: The source inspector still selects shared-Y6bNiw2w.js as the expected missing chunk for an explicit, unrecorded 2026.8.2 source package.
Candidate retains the alias: Runtime postbuild still emits shared-Y6bNiw2w.js as a legacy compatibility file; the current recorded inventory does not list it, so the new recorded-inventory branch retains it.
Findings 2 actionable findings [P2] Preserve the explicit legacy-source negative control
[P2] Correct the second-hop compatibility receipt
Security None None.

How this fits together

OpenClaw release validation takes a frozen candidate package and published updater packages, creates modified package fixtures, then runs upgrade checks in Docker. Those checks produce evidence used to assess whether older installations can update.

flowchart LR
A[Candidate package] --> B{Recorded inventory?}
B -->|Yes| C[Recorded chunks]
B -->|No| D[Legacy chunk names]
C --> E[Update fixtures]
D --> E
E --> F[Docker upgrade checks]
F --> G[Release evidence]
Loading

Before merge

  • Preserve the explicit legacy-source negative control (P2) - With a recorded candidate, this branch retains shared-Y6bNiw2w.js, but the explicit 2026.8.2 source path still names that file as its expected missing chunk. The Docker negative control consequently cannot observe its required missing-chunk failure. Generate a source-appropriate negative fixture without making normal recorded lanes depend on stale names.
  • Correct the second-hop compatibility receipt (P2) - The new recorded-mode assertion confirms legacy aliases remain in the future tarball, but the Docker survivor still writes legacyCompatibilityChunksPresent: false to summary.json. Release evidence would therefore state the opposite of the fixture’s contents. Report retained aliases and removed recorded bridges accurately.
  • Resolve merge risk (P1) - An explicit 2026.8.2 source package paired with a recorded candidate can fail release validation because its negative fixture retains the alias the control expects to be missing.
  • Resolve merge risk (P1) - The second-hop release receipt can claim legacy aliases are absent when the generated future package still contains them.
  • Complete next step (P2) - Repair the explicit legacy-source negative control and correct the second-hop receipt, then validate both fixture modes before merge.

Findings

  • [P2] Preserve the explicit legacy-source negative control — scripts/e2e/lib/update-first-hop-package-fixtures.mjs:177-186
  • [P2] Correct the second-hop compatibility receipt — test/scripts/update-first-hop-package-fixtures.test.ts:666-668
Agent review details

Security

None.

PR surface

Tests +15, Other +2. Total +17 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 18 3 +15
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 14 12 +2
Total 2 32 15 +17

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Repair fixture proof before merge (recommended)
    Preserve the explicit legacy-source negative control and make the second-hop receipt reflect the generated package, then validate both recorded and explicit source modes.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Repair the first-hop fixture path so an explicit 2026.8.2 source still gets a missing shared-Y6bNiw2w.js negative control with a recorded candidate, without restoring stale-name failures in normal recorded lanes. Make the second-hop receipt reflect retained legacy aliases versus removed recorded bridges, and add focused regression coverage.

Technical review

Best possible solution:

Keep recorded chunks authoritative for normal candidate fixtures, make the explicit legacy-source negative control remove its expected alias when present, and report actual future-package contents in the release receipt.

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

Yes, from source: an explicit 2026.8.2 package selects shared-Y6bNiw2w.js as its missing-chunk control, while a recorded candidate retains that file. This read-only review did not execute the Docker lane.

Is this the best way to solve the issue?

No. The recorded-inventory selection fixes normal candidate staging, but the negative fixture also needs to account for the explicit source’s expected missing chunk, and the receipt must describe the package it produced.

Full review comments:

  • [P2] Preserve the explicit legacy-source negative control — scripts/e2e/lib/update-first-hop-package-fixtures.mjs:177-186
    With a recorded candidate, this branch retains shared-Y6bNiw2w.js, but the explicit 2026.8.2 source path still names that file as its expected missing chunk. The Docker negative control consequently cannot observe its required missing-chunk failure. Generate a source-appropriate negative fixture without making normal recorded lanes depend on stale names.
    Confidence: 0.88
  • [P2] Correct the second-hop compatibility receipt — test/scripts/update-first-hop-package-fixtures.test.ts:666-668
    The new recorded-mode assertion confirms legacy aliases remain in the future tarball, but the Docker survivor still writes legacyCompatibilityChunksPresent: false to summary.json. Release evidence would therefore state the opposite of the fixture’s contents. Report retained aliases and removed recorded bridges accurately.
    Confidence: 0.94

Overall correctness: patch is incorrect
Overall confidence: 0.89

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 1ab1bb09789a.

Labels

Label changes:

  • add P2: The regression affects a bounded release-validation mode and its evidence, rather than the installed updater runtime.
  • add merge-risk: 🚨 automation: Merging this fixture change can break an explicit release-validation lane and publish an inaccurate second-hop proof field.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.

Label justifications:

  • P2: The regression affects a bounded release-validation mode and its evidence, rather than the installed updater runtime.
  • merge-risk: 🚨 automation: Merging this fixture change can break an explicit release-validation lane and publish an inaccurate second-hop proof field.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.

Evidence

Acceptance criteria:

  • [P1] pnpm test test/scripts/update-first-hop-package-fixtures.test.ts --maxWorkers=1.
  • [P1] node scripts/check-changed.mjs --dry-run -- scripts/e2e/lib/update-first-hop-package-fixtures.mjs scripts/e2e/update-first-hop-compat-docker.sh scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh test/scripts/update-first-hop-package-fixtures.test.ts.
  • [P1] git diff --check.

What I checked:

Likely related people:

  • Peter Steinberger: 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)

Rank-up moves

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

  • Cover an explicit 2026.8.2 source against a candidate with a recorded inventory.
  • Check the generated future package against the second-hop receipt and validate the repaired paths through the release 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.

@RomneyDa
RomneyDa merged commit bf26fad into main Sep 24, 2026
144 checks passed
@RomneyDa
RomneyDa deleted the fix/update-fixture-recorded-chunks branch September 24, 2026 22:34
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scripts Repository scripts size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant