Repository navigation
fix: keep upgrade survival fixtures idle during service restarts - #133289
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 8:39 AM ET / 12:39 UTC. ClawSweeper reviewWhat this changesThis PR sets the shared upgrade-survivor agent fixture’s heartbeat cadence to Merge readinessKeep 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 Review scores
Verification
How this fits togetherThe 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]
Before merge
Agent review detailsSecurityNone. PR surfaceOther +5. Total +5 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
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 candidate1084faf4371b08bd16573872a68565b558bff780, using trusted harness81d7f54399cae9dbf792f82688d6396424884c2dplus this isolated fixture delta. Blacksmith Testboxtbx_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
0mremains 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
pakodeclaration mismatch inui/vite.config.ts. No dependency or type workaround was applied. Exact-head isolated CI remains required before landing.