Skip to content

fix(test): restore update restart outcome fixture - #159127

Merged
steipete merged 1 commit into
mainfrom
codex/update-restart-reporting-fixture
Sep 26, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/update-restart-reporting-fixture

Conversation

@steipete

@steipete steipete commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the restart-outcome CI fixture failing before it reaches Gateway verification after #159072 changed update-result reporting.

Related: #159072, #158848

User Impact

No user-visible behavior change. Restores CI coverage of failed restart backup retention and verified-success backup retirement.

Why This Change Was Made

The isolated fixture now supplies finite environment facts and a synthetic ledger row to the real reporting callback. Production restart, recovery, reporting, and package-transaction code still run; all existing outcome assertions and filesystem controls remain unchanged.

Evidence

On pinned main 5899667bf77e350a0a7d82cebaa8acadff8ccfbe, the unchanged fixture fails nine of its 19 cases with the unexpected container-environment dependency before verification. The fixture repair passes all 19 cases, including real missing-module and missing-file failures that retain the previous package, plus the verified-success control that removes the backup.

The registered Vitest wrapper passes. Independent Codex review is clean through P2. Formatting, focused lint, all three export scans, and the other completed tooling guards pass locally. The local changed-file gate stops at the compiler boundary because this checkout borrows dependencies; Clean-install CI is green at exact head e33450d4fa2fb81e6b4a57b46bc1f4449467aa40.

@clawsweeper

clawsweeper Bot commented Sep 26, 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 26, 2026
@steipete
steipete marked this pull request as ready for review September 26, 2026 19:37
@clawsweeper clawsweeper Bot added 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 Sep 26, 2026
@clawsweeper

clawsweeper Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 26, 2026, 3:59 PM ET / 19:59 UTC.

ClawSweeper review

What this changes

The branch gives the update restart test fixture stable environment values and a synthetic update history row so its existing verification and backup checks can run.

Regression provenance

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

Merge readiness

✅ Ready for maintainer review

Keep open: the registered restart outcome fixture remains broken on current main, and this narrow repair restores its path through update reporting. No concrete merge blocker surfaced.

Priority: P2
Reviewed head: e33450d4fa2fb81e6b4a57b46bc1f4449467aa40

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The small fixture repair matches the current reporting contract and preserves the meaningful restart outcome checks.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored, test-only PR repairs a registered Node fixture that loads production update modules with controlled inputs; the body reports before-and-after case results and green exact-head CI. It 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: This maintainer-authored, test-only PR repairs a registered Node fixture that loads production update modules with controlled inputs; the body reports before-and-after case results and green exact-head CI. It changes no stored-data contract.
Evidence reviewed 7 items Introduced fixture change: The pinned PR delta adds environment inputs and a synthetic ledger mutation callback; the verified test merge applies the same change.
Current reporting contract: Current main reads container and state-directory facts, then calls mutateRun on the admitted update row to record next-action guidance.
Reporting precedes verification: The production finalizer invokes next-action reporting before the Gateway restart path.
Findings None None.
Security None None.

How this fits together

OpenClaw records update guidance before restarting and verifying the Gateway. A registered Node fixture loads the production update modules with controlled service and history inputs, then checks whether verification governs package-backup retirement.

flowchart LR
 A[Update result] --> B[Recovery guidance]
 C[Fixture environment and history row] --> B
 B --> D[Gateway restart verification]
 D --> E{Verified?}
 E -->|Yes| F[Retire backup]
 E -->|No| G[Keep backup]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +9. Total +9 across 1 file.

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

Review metrics

Metric Value Why it matters
Restart fixture cases 9 of 19 failed before; 19 of 19 passed after, per PR evidence The reported result covers both failure retention and verified-success backup retirement.

Technical review

Best possible solution:

Retain one registered regression that reaches update reporting and verifies that failed Gateway health keeps the old package while verified health permits backup retirement.

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

Yes, from source: current main calls reporting before restart, while the registered fixture lacks the inputs that reporting now reads. The PR reports nine baseline failures; this read-only review did not execute tests.

Is this the best way to solve the issue?

Yes. Supplying finite facts at the fixture boundary lets the existing production reporting callback run without changing production code or weakening the outcome assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0830a3fa459a.

Labels

Label changes:

  • add P2: This restores established update regression coverage without changing user-facing runtime behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored, test-only PR repairs a registered Node fixture that loads production update modules with controlled inputs; the body reports before-and-after case results and green exact-head CI. It changes no stored-data contract.

Label justifications:

  • P2: This restores established update regression coverage without changing user-facing runtime behavior.
  • 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 maintainer-authored, test-only PR repairs a registered Node fixture that loads production update modules with controlled inputs; the body reports before-and-after case results and green exact-head CI. It changes no stored-data contract.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Bảo Võ: 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.

@steipete
steipete merged commit 734f865 into main Sep 26, 2026
162 of 163 checks passed
@steipete
steipete deleted the codex/update-restart-reporting-fixture branch September 26, 2026 20:10
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

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