Skip to content

fix(e2e): published upgrade cell fails after update advisory rewording - #161079

Merged
steipete merged 1 commit into
mainfrom
steipete/upgrade-survivor-noop-advisory
Sep 30, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/upgrade-survivor-noop-advisory

Conversation

@steipete

@steipete steipete commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: the published-driver upgrade-survivor Docker cell (legacy-operator-state) fails at legacy-operator-update-noop for every candidate built after #160056, because the harness compared the exact wording of the service-management advisory.

User Impact

No user-visible change. The published-upgrade cell passes again, and future rewording of update advisories no longer breaks it.

Why This Change Was Made

The already-current update check hardcoded the full advisory text. #160056 legitimately reworded the rerun guidance (OPENCLAW_HOME either unset or pointing at that same home), so the second update's only step differed in advisory.message and the lane reported "second update executed mutations or unexpected maintenance".

The check keeps its real contract: an already-current, repair-free result with either no steps or exactly one managed-service-reconciliation entry for openclaw gateway install --force that did not run (durationMs: 0, exitCode: 0) and carries a recoverable-maintenance advisory with a non-empty explanation. The advisory text itself is no longer compared. Product text is unchanged.

Evidence

  • test/scripts/upgrade-survivor-update-noop.test.ts runs the exact heredoc payload extracted from run.sh. The new "accepts reworded service guidance" case fails against the previous assertion and passes now. New rejection cases cover a different step name/command, a different advisory kind, and a blank advisory message. The existing mutation, executed-service, failed-receipt, repeated-maintenance, repair-request, and skip-reason cases still reject.
  • Test cost: pnpm test test/scripts/upgrade-survivor-update-noop.test.ts --maxWorkers=1 took 9 s wall (Vitest shard 7.0 s) on a heavily loaded host; the three new cases each spawn one short Node process (~120 ms).
  • Docker cell OPENCLAW_UPGRADE_SURVIVOR_SCENARIOS=legacy-operator-state pnpm test:docker:published-upgrade-survivor passed at f20a7e37fb6 on Blacksmith Testbox tbx_01m3p3a61d5n82p15phnvvvf2f (run): published-upgrade-survivor-legacy-operator-state pass in 395 s, lane exit 0. The command first asserted that the patched check and the reworded product text were both present in the synced tree.
  • That run's real update-noop.json is skipped/already-current with one unexecuted managed-service-reconciliation step carrying the reworded advisory. Replaying the previous assertion against that same file reproduces the original failure (AssertionError: second update executed mutations or unexpected maintenance, with only advisory.message differing); the new assertion accepts it.

The published-driver upgrade-survivor cell (legacy-operator-state) failed
at legacy-operator-update-noop for every candidate built after #160056.
That change reworded the managed-service rerun guidance, and the
already-current assertion hardcoded the full advisory text, so the only
difference was advisory.message.

Project each step's advisory to its kind plus a non-empty explanation.
The check still requires an already-current, repair-free result with no
steps or exactly one unexecuted managed-service-reconciliation entry
(same name, command, cwd, duration, exit code, and advisory kind).
Product text is unchanged.
@clawsweeper

clawsweeper Bot commented Sep 29, 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 scripts Repository scripts size: XS labels Sep 29, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 29, 2026
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 29, 2026, 7:39 PM ET / 23:39 UTC (Revision 3).

ClawSweeper review

What this changes

The PR changes the published-upgrade test to accept a nonempty service advisory explanation regardless of its wording and adds acceptance and rejection cases.

Regression provenance

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

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open. Current main still requires obsolete advisory wording in the published-upgrade check, and this PR addresses that mismatch without an actionable patch defect. The previous request for stored-data compatibility proof does not apply to this test-harness change.

Priority: P2
Reviewed head: f20a7e37fb64ee78b22ad46e791d429b43ebe005

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-backed harness repair with meaningful regression cases and a reported real-cell result; the linked outer run does not independently confirm that result here.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The supplied repository state classifies this as a member-authored internal harness PR. Its body reports a published-driver Docker run reaching the changed second-update check and accepting the reworded receipt; the linked outer workflow was cancelled and its logs were unavailable to this reviewer. The diff changes no stored-data contract.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state classifies this as a member-authored internal harness PR. Its body reports a published-driver Docker run reaching the changed second-update check and accepting the reworded receipt; the linked outer workflow was cancelled and its logs were unavailable to this reviewer. The diff changes no stored-data contract.
Evidence reviewed 10 items Current-main mismatch: Fetched main still compares the complete former advisory message, including guidance to run without OPENCLAW_HOME.
Current service guidance: The service owner now says OPENCLAW_HOME may be unset or point to the account home; its test checks that wording.
Receipt producer: The updater records an unexecuted managed-service-reconciliation step with a recoverable-maintenance advisory.
Findings None None.
Security None None.

How this fits together

The published-upgrade survivor test installs a released OpenClaw version and updates it to a candidate. It checks a second update’s JSON receipt before verifying that the Gateway and operator state survived.

flowchart LR
A[Published installation] --> B[Candidate update]
B --> C[Second update]
C --> D[JSON receipt]
D --> E[No-op check]
E --> F[Gateway and state checks]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +29, Other -2. Total +27 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 30 1 +29
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 8 10 -2
Total 2 38 11 +27

Review metrics

Metric Value Why it matters
Focused test cost 9 s wall; 7 s Vitest shard, author-reported The PR records the single-worker cost of its changed assertion test.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/run.sh. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep the no-op check tied to stable receipt fields, with advisory wording verified by the service owner’s tests.

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

Yes, at source level: current main requires the former advisory sentence while the service owner emits the revised one. This read-only review did not execute the Docker cell.

Is this the best way to solve the issue?

Yes. The proposed check preserves the no-op receipt constraints while allowing guidance prose to change; the service owner retains a separate wording test.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 55bb2ccf0a08.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: A false failure obstructs published-upgrade validation without a reported user-facing runtime failure.
  • merge-risk: 🚨 automation: The PR changes which update receipts the published-upgrade validation cell accepts.
  • 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. Not applicable: The supplied repository state classifies this as a member-authored internal harness PR. Its body reports a published-driver Docker run reaching the changed second-update check and accepting the reworded receipt; the linked outer workflow was cancelled and its logs were unavailable to this reviewer. The diff changes no stored-data contract.

Evidence

What I checked:

  • Current-main mismatch: Fetched main still compares the complete former advisory message, including guidance to run without OPENCLAW_HOME. (scripts/e2e/lib/upgrade-survivor/run.sh:1135, 55bb2ccf0a08)
  • Current service guidance: The service owner now says OPENCLAW_HOME may be unset or point to the account home; its test checks that wording. (src/infra/gateway-supervision.ts:57, 55bb2ccf0a08)
  • Receipt producer: The updater records an unexecuted managed-service-reconciliation step with a recoverable-maintenance advisory. (src/cli/update-cli/update-command-result.ts:137, 55bb2ccf0a08)
  • Introduced assertion change: The introduced hunk replaces exact prose comparison with advisory-kind and nonblank-message checks while retaining the step, command, directory, duration, and exit-code checks. (scripts/e2e/lib/upgrade-survivor/run.sh:1126, f20a7e37fb64)
  • Focused regression cases: The test executes the assertion payload extracted from the shell entry point; new cases accept reworded guidance and reject a different step, advisory kind, or blank explanation. (test/scripts/upgrade-survivor-update-noop.test.ts:60, f20a7e37fb64)
  • Published-driver proof report: The PR body reports that the published 2026.9.6-to-candidate Docker cell passed at the reviewed head and that replaying the old assertion against its real already-current receipt reproduced the failure. The linked outer Testbox workflow is cancelled, so its status alone does not verify the reported inner result. (f20a7e37fb64)

Likely related people:

  • steipete: 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-29T08:18:24.370Z sha f20a7e3 :: blocked before merge. :: none
  • reviewed 2026-09-29T08:33:56.018Z sha f20a7e3 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 29, 2026
@steipete
steipete marked this pull request as ready for review September 29, 2026 23:33
@steipete

Copy link
Copy Markdown
Contributor Author

On the remaining "data-model compatibility proof" item: this PR changes no stored data or migration. scripts/e2e/lib/upgrade-survivor/run.sh is the upgrade-survivor test harness, and the change only relaxes how its no-op check compares advisory prose.

The upgrade-compatibility proof for this path is the published-driver cell itself: legacy-operator-state (published 2026.9.6 driver, then candidate) passed at f20a7e37fb6 on Blacksmith Testbox tbx_01m3p3a61d5n82p15phnvvvf2f, as recorded in the PR body. Replaying the previous assertion against that run's real update-noop.json reproduced the original failure, and the new assertion accepts it.

@steipete steipete self-assigned this Sep 30, 2026
@steipete
steipete merged commit 4e52570 into main Sep 30, 2026
222 of 223 checks passed
@steipete
steipete deleted the steipete/upgrade-survivor-noop-advisory branch September 30, 2026 00:43
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 30, 2026
The published-driver upgrade-survivor cell (legacy-operator-state) failed
at legacy-operator-update-noop for every candidate built after #160056.
That change reworded the managed-service rerun guidance, and the
already-current assertion hardcoded the full advisory text, so the only
difference was advisory.message.

Project each step's advisory to its kind plus a non-empty explanation.
The check still requires an already-current, repair-free result with no
steps or exactly one unexecuted managed-service-reconciliation entry
(same name, command, cwd, duration, exit code, and advisory kind).
Product text is unchanged.

(cherry picked from commit 4e52570)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 30, 2026
…aw#161079)

The published-driver upgrade-survivor cell (legacy-operator-state) failed
at legacy-operator-update-noop for every candidate built after openclaw#160056.
That change reworded the managed-service rerun guidance, and the
already-current assertion hardcoded the full advisory text, so the only
difference was advisory.message.

Project each step's advisory to its kind plus a non-empty explanation.
The check still requires an already-current, repair-free result with no
steps or exactly one unexecuted managed-service-reconciliation entry
(same name, command, cwd, duration, exit code, and advisory kind).
Product text is unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

1 participant