Skip to content

fix: keep upgrade survival fixtures idle during service restarts - #133289

Merged
steipete merged 1 commit into
mainfrom
codex/upgrade-survivor-quiescent-fixture
Aug 30, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/upgrade-survivor-quiescent-fixture

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where upgrade-survivor verification can report lost session metadata when the running baseline refreshes the seeded skills cache before migration. The failing update/restart/auth run contained an intervening main-session inference failure; snapshot preparation persists its refresh before provider authentication, so failed inference can still change this specimen. The original log did not capture the wake trigger.

Why This Change Was Made

Disable periodic heartbeat in the shared authored upgrade fixture using the existing every: "0m" contract. The fixture remains idle across baseline startup and service replacement, while explicit cron jobs and agent calls remain enabled. Keep every migration assertion, timeout, plugin check, and update/restart step unchanged. No product configuration surface, persistence logic, or schema changes.

User Impact

No runtime behavior change. Release verification isolates state preservation from unrelated background cache refreshes. All survivor scenarios share this specimen; the SQLite-volume scenario also checks it after Gateway restart.

Evidence

The prior failure is update/restart/auth job 99223457333. With the fixture change, the complete original-order Docker scenario passed from [email protected] to candidate 1084faf4371b08bd16573872a68565b558bff780, using trusted harness 81d7f54399cae9dbf792f82688d6396424884c2d plus this isolated fixture delta. Blacksmith Testbox tbx_01m198yarhfpkrv34pm9xcgntx; 8m12s including package build. Baseline startup18s, update-owned recovery restart52s, health/readiness/status1s each.

Read-only stage observations retained the same prompt hash through baseline service startup, package update, and Doctor migration into SQLite. Session/transcript preservation, plugin artifact audits, supervisor replacement, and authenticated Gateway probes all passed. Existing Doctor coverage also verifies that 0m remains a disabled monitor during migration. Independent autoreview found no actionable issues. Production delta0; fixture/comment delta+5 lines.

Local changed-file validation passed formatting, erasability, dependency and structural guards, then stopped on the existing shared-checkout pako declaration mismatch in ui/vite.config.ts. No dependency or type workaround was applied. Exact-head isolated CI remains required before landing.

@clawsweeper

clawsweeper Bot commented Aug 30, 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 30, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 8:39 AM ET / 12:39 UTC.

ClawSweeper review

What this changes

This PR sets the shared upgrade-survivor agent fixture’s heartbeat cadence to 0m and documents why the fixture must remain idle during service replacement.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open for normal maintainer handling: this maintainer-labeled PR has no blocking correctness finding, and its narrow fixture change uses the existing disabled-heartbeat contract to remove a known source of upgrade-test state mutation.

Priority: P3
Reviewed head: 9daaaa580a16080fb1395dc0f5b38cc9db1990f7

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused fixture-only repair follows the existing disabled-cadence contract and includes reported end-to-end upgrade evidence.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This repository-member PR changes an internal upgrade fixture, so external-contributor proof is not required; its body nevertheless records a full Docker upgrade-survivor run covering baseline startup, replacement, and preservation checks.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This repository-member PR changes an internal upgrade fixture, so external-contributor proof is not required; its body nevertheless records a full Docker upgrade-survivor run covering baseline startup, replacement, and preservation checks.
Evidence reviewed 6 items Introduced fixture change: The verified PR delta adds only the explanatory comment and agents.defaults.heartbeat.every: "0m"; the test merge against current main has the same two-file result.
Disabled cadence contract: A non-positive parsed heartbeat duration resolves to null, which is the scheduler’s disabled cadence representation.
Scheduler behavior: The scheduler excludes every resolved heartbeat whose interval is null, so the fixture does not register periodic heartbeat work.
Findings None None.
Security None None.

How this fits together

The upgrade-survivor harness applies an authored agent configuration to a baseline service, upgrades it, and checks state preservation afterward. The fixture feeds the heartbeat scheduler, whose background runs can otherwise change seeded session state before the migration assertions execute.

flowchart LR
  A[Agent fixture] --> B[Config recipe]
  B --> C[Baseline service]
  C --> D[Heartbeat scheduler]
  D --> E[Upgrade and restart]
  E --> F[State preservation checks]
Loading

Before merge

  • Resolve merge risk (P1) - Exact-head CI is still running, and the supplied snapshot omits the newest ClawSweeper comment; check any outstanding rank-up move before landing.
Agent review details

Security

None.

PR surface

Other +5. Total +5 across 2 files.

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 2 6 1 +5
Total 2 6 1 +5

Review metrics

Metric Value Why it matters
Runtime versus test-support LOC production +0, test-support +5 All net growth is an E2E fixture value and its invariant comment; no shipped runtime path changes.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/config-recipe/agents.json. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the fixture-only cadence change after exact-head CI and the latest review guidance are clear, retaining the existing Docker upgrade-survivor scenario as the state-preservation regression boundary.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land the fixture-only cadence change after exact-head CI and the latest review guidance are clear, retaining the existing Docker upgrade-survivor scenario as the state-preservation regression boundary.

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

No high-confidence current-main failure rerun was performed. Source establishes the relevant scheduler path, but the reported prior failure did not capture the wake trigger.

Is this the best way to solve the issue?

Yes. Disabling the existing periodic cadence at the shared fixture is the narrowest isolation fix; it avoids changing migration, persistence, or production heartbeat behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This improves internal upgrade-verification reliability without changing operator-facing runtime behavior.
  • 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. Not applicable: This repository-member PR changes an internal upgrade fixture, so external-contributor proof is not required; its body nevertheless records a full Docker upgrade-survivor run covering baseline startup, replacement, and preservation checks.

Label justifications:

  • P3: This improves internal upgrade-verification reliability without changing operator-facing runtime behavior.
  • 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: This repository-member PR changes an internal upgrade fixture, so external-contributor proof is not required; its body nevertheless records a full Docker upgrade-survivor run covering baseline startup, replacement, and preservation checks.

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)

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 4dfa35d into main Aug 30, 2026
161 checks passed
@steipete
steipete deleted the codex/upgrade-survivor-quiescent-fixture branch August 30, 2026 12:51
@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

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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