Repository navigation
fix(release): align survivor session metadata assertion - #123068
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 13, 2026, 4:33 AM ET / 08:33 UTC. ClawSweeper reviewWhat this changesThis PR updates upgrade-survivor release assertions and fixtures so migrated session rows reject retired Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open. The follow-up commit addresses the prior SQLite-specific finding by applying the retired-metadata assertion before the file/SQLite branch; this is a focused, correct release-harness repair pending exact-head validation. Priority: P2 Review scores
Verification
How this fits togetherThe upgrade-survivor harness validates that a release upgrade preserves session transcripts while persisting only canonical session metadata. It reads migrated file or SQLite state and produces the release-validation pass/fail result. flowchart LR
Legacy[Legacy session state] --> Migration[Upgrade migration]
Migration --> Store[File or SQLite session store]
Store --> Harness[Upgrade survivor harness]
Harness --> Metadata[Reject retired metadata]
Harness --> Transcript[Verify transcript survival]
Metadata --> Result[Release validation result]
Transcript --> Result
Before merge
Agent review detailsSecurityNone. PR surfaceTests +7, Other -2. Total +5 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Keep canonical persisted session rows free of retired locators and land this focused harness correction once exact-head validation is green. Do we have a high-confidence way to reproduce the issue? Yes. Current main's canonical-row projection removes Is this the best way to solve the issue? Yes. Applying the metadata assertion to the shared migrated-row set is the narrowest maintainable repair, while retaining distinct transcript checks for each storage backend. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 792b2054df2c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Addressed the SQLite authority finding in The retired Proof:
|
|
Merged via squash.
|
What Problem This Solves
The trusted
mainrelease harness still required migrated file-backed session rows to retainsessionFile. Canonical session persistence intentionally retired that locator and stores transcript bytes separately, so exact-ref release validation failed after the signed candidate had correctly migrated the transcript and removed the legacy metadata.Observed failure: https://github.com/openclaw/openclaw/actions/runs/31679241095
Why This Change Was Made
Keep the two owned invariants separate:
sessionFilemetadata.The survivor fixture now models the canonical row shape instead of reintroducing the retired field. No runtime behavior, compatibility path, or fallback changes.
User Impact
Release validation no longer rejects correct upgrades after session locator retirement. A real missing transcript still fails the existing file-existence assertion, while retained legacy metadata now fails with an accurate diagnostic.
Evidence
node scripts/run-vitest.mjs test/scripts/upgrade-survivor-assertions.test.ts— 20 passed.No changelog change is required; this is trusted release-harness alignment.