Skip to content

fix(release): scope optional survivor assertions - #126000

Merged
vincentkoc merged 1 commit into
mainfrom
fix/upgrade-survivor-base-coverage
Aug 19, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/upgrade-survivor-base-coverage

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • require an explicit published-scenario coverage plan before asserting optional configured plugin installs
  • keep the base prepublish upgrade survivor on its canonical WhatsApp fixture

Root cause

The prepublish upgrade-survivor path seeds the base fixture directly and does not write a published-scenario coverage file. hasCoverage(...) intentionally returns true for baseline assertions, but the optional Matrix branch used it without the sibling hasCoverage(coverage) guard. The base fixture therefore failed before update with matrix plugin allow entry missing, even though Matrix belongs only to the configured-plugin-installs published scenario.

Evidence

Pre-fix exact-source failures:

The same assertion module already requires hasCoverage(coverage) for the later configured-plugin-install details and other optional published scenarios. This change applies that owner rule to the allowlist branch.

No local tests or builds were run, per release-validation policy. Exact-head GitHub CI is the proof path.

Scope

  • production LOC: 0
  • release harness: +1/-1
  • no runtime, config, protocol, storage, or public API change

Agent transcript omitted.

Exact-head targeted upgrade-survivor proof for 1a0521d4bae9521db9e08b6de7d4485144ed87fc: https://github.com/openclaw/openclaw/actions/runs/32187977956. The first focused run used main's trusted harness SHA 39b39ca6eec684f0675cd93500646b578f6e7021, so its /app/scripts/e2e/lib/upgrade-survivor/assertions.mjs was the old harness and repeated the pre-fix failure; the corrected run uses SHA-pinned base-repo workflow ref release-ci/1a0521d4bae9-1787088530, whose workflow and candidate both resolve to the PR head.

@clawsweeper

clawsweeper Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Aug 18, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. 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 Aug 18, 2026
@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 18, 2026, 5:34 PM ET / 21:34 UTC.

ClawSweeper review

What this changes

The PR scopes the Matrix plugin assertion to configurations with an explicit configured-plugin-install coverage record, preserving the WhatsApp assertion for the base fixture.

Regression provenance

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

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

No blocking patch defect found. This is a focused release-harness repair; keep it open for maintainer handling until the supplied exact-head selected-ref validation completes green.

Priority: P2
Reviewed head: 1a0521d4bae9521db9e08b6de7d4485144ed87fc

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a coherent, narrowly scoped repair with exact-head release validation still pending.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored release-harness PR is exempt from the external-contributor proof gate; its body nevertheless supplies an exact-head targeted CI link.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored release-harness PR is exempt from the external-contributor proof gate; its body nevertheless supplies an exact-head targeted CI link.
Evidence reviewed 5 items Assertion ownership: The coverage reader returns null when no coverage file exists, while the previous null behavior of intent acceptance was broad; the patched Matrix assertion now additionally requires coverage presence.
Scenario boundary: The base recipe contains representative plugin and WhatsApp configuration, while Matrix configuration is appended only by the configured-plugin-installs scenario steps.
Harness caller: The release runner exports the coverage-file location and invokes configuration assertions at both baseline and survival stages, establishing this module as the assertion owner.
Findings None None.
Security None None.

Live Verification

Command: pnpm test test/scripts/upgrade-survivor-assertions.test.ts

Result: FAIL (partial) — step 2 expect_output accepts official ClawHub npm-pack installs for configured external plugins: expected terminal output was not visible within 30 seconds: "accepts official ClawHub npm-pack installs for configured external plugins"

pnpm test test/scripts/upgrade-survivor-assertions.test.ts
runner@runnervmzvulz:/tmp/clawsweeper-live-proof-126000-KgDc8l/target$ pnpm test test/scripts/upgrade-survivor-assertions.test.ts
$ node --import tsx scripts/test-projects.mts test/scripts/upgrade-survivor-assertions.test.ts
pnpm test test/scripts/upgrade-survivor-assertions.test.ts
[test] starting test/vitest/vitest.tooling.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-126000-KgDc8l/target

 ✓  tooling  test/scripts/upgrade-survivor-assertions.test.ts (21 tests) 923ms

 Test Files  1 passed (1)
      Tests  21 passed (21)
   Start at  21:35:15
   Duration  1.34s (transform 216ms, setup 57ms, import 16ms, tests 923ms, environment 0ms)

[test] passed 1 Vitest shard in 6.67s
runner@runnervmzvulz:/tmp/clawsweeper-live-proof-126000-KgDc8l/target$ pnpm test test/scripts/upgrade-survivor-assertions.test.ts
$ node --import tsx scripts/test-projects.mts test/scripts/upgrade-survivor-assertions.test.ts
[test] starting test/vitest/vitest.tooling.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-126000-KgDc8l/target

 ✓  tooling  test/scripts/upgrade-survivor-assertions.test.ts (21 tests) 910ms

 Test Files  1 passed (1)
      Tests  21 passed (21)
   Start at  21:35:23
   Duration  1.17s (transform 58ms, setup 27ms, import 6ms, tests 910ms, environment 0ms)

[test] passed 1 Vitest shard in 6.54s
runner@runnervmzvulz:/tmp/clawsweeper-live-proof-126000-KgDc8l/target$




















Assertions:

  • FAIL expect_output: accepts official ClawHub npm-pack installs for configured external plugins

How this fits together

The upgrade-survivor release harness seeds an older configuration, validates it before and after an upgrade, and reports package-acceptance results. Scenario coverage determines which optional plugin and channel expectations apply.

flowchart LR
  A[Published upgrade fixture] --> B[Scenario coverage record]
  A --> C[Configuration assertions]
  B --> C
  C --> D[Optional plugin decision]
  D --> E[Base WhatsApp assertion]
  D --> F[Configured Matrix assertion]
  E --> G[Release validation]
  F --> G
Loading

Before merge

  • Resolve merge risk (P1) - The changed release assertion remains automation-sensitive; merge after the exact-head selected-ref validation is green.
Agent review details

Security

None.

PR surface

Other 0. Total 0 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 1 1 1 0

Review metrics

Metric Value Why it matters
Production vs harness LOC production +0/-0; release-harness test support +1/-1 The repair is net-neutral and changes only release-validation assertion logic.

Merge-risk options

Maintainer options:

  1. Confirm exact-head release proof (recommended)
    Merge after the selected-ref upgrade-survivor validation finishes green for the current head.

Technical review

Best possible solution:

Keep the optional Matrix expectation bound to an explicit coverage record while preserving the canonical base WhatsApp fixture assertion.

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

Yes, source-reproducible: absent coverage resolves to null while the prior intent check accepted it, and the base recipe does not add the Matrix scenario steps.

Is this the best way to solve the issue?

Yes: placing the coverage-presence condition on the optional Matrix assertion matches the sibling optional assertions and avoids changing global intent semantics.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5cabd2b72e20.

Labels

Label justifications:

  • P2: This repairs a bounded release-validation failure without changing user runtime behavior.
  • merge-risk: 🚨 automation: The changed conditional decides whether an upgrade-survivor release-validation scenario passes or fails.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored release-harness PR is exempt from the external-contributor proof gate; its body nevertheless supplies an exact-head targeted CI link.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: History attributes 23 commits on the assertion path and includes the recent survivor assertion repair. (role: major release-harness contributor; confidence: high; commits: 72359437909f, 0684f50136e7; files: scripts/e2e/lib/upgrade-survivor/assertions.mjs, scripts/e2e/lib/upgrade-survivor/run.sh)
  • Vincent Koc: History attributes 15 commits on this path, including recent upgrade-survivor state and session work. (role: major adjacent release-harness contributor; confidence: high; commits: af73dbcc8340, 9f2c2bd4c0aa; files: scripts/e2e/lib/upgrade-survivor/assertions.mjs)
  • RomneyDa: This author has prior release-harness history and supplied the focused current repair. (role: recent area contributor; confidence: medium; commits: 71a02e16af84, 1a0521d4bae9; files: scripts/e2e/lib/upgrade-survivor/assertions.mjs)

Rank-up moves

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

  • Let the exact-head selected-ref upgrade-survivor validation finish green.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-18T21:04:23.737Z sha 1a0521d :: needs maintainer review before merge. :: none

@vincentkoc vincentkoc self-assigned this Aug 19, 2026
@vincentkoc
vincentkoc merged commit 4bea2d8 into main Aug 19, 2026
197 checks passed
@vincentkoc
vincentkoc deleted the fix/upgrade-survivor-base-coverage branch August 19, 2026 07:04
@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS 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.

2 participants