Repository navigation
fix(ci): align cold-storage fixtures with retained navigation - #190716
Conversation
Verify cold history without restoring its archive, then prove exact payload restoration through chat.inject. Preserve the published legacy cold-storage contract through committed-source admission.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR updates cold-storage release fixtures to verify retained navigation, read-only history access, and restoration on append while preserving older release behavior. Example: A 60-day-old fixture session contains a header and two messages.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR repairs release fixtures that contradict current cold-storage behavior, and no actionable code defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherRelease Docker scenarios import synthetic sessions through Doctor, exercise the installed Gateway, and inspect SQLite and archive state to validate archival, recovery, and recall. flowchart LR
A[Synthetic session histories] --> B[Doctor import]
B --> C[Installed Gateway]
C --> D[SQLite navigation and cold archives]
D --> E[Shared fixture assertions]
C --> F[History recall and append checks]
F --> E
Technical reviewBest possible solution: Use the existing shared fixture owner and frozen-source selector to verify both storage dialects without changing product storage behavior. Do we have a high-confidence way to reproduce the issue? Current-main fixtures pass retained cold message rows into a decoder that rejects absent resident payloads, establishing the failure path without executing target code. Is this the best way to solve the issue? The change repairs the assertions at their shared owner, preserves published legacy behavior, and checks restoration through the existing append operation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 366333d32526. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +17, Other +103. Total +120 across 8 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 1, 2026, 6:21 PM ET / 23:21 UTC. |
|
Merged via squash.
|
…aw#190716) Verify cold history without restoring its archive, then prove exact payload restoration through chat.inject. Preserve the published legacy cold-storage contract through committed-source admission.
What Problem This Solves
Cold-storage release fixtures still expect archival to remove event rows and history reads to restore them. Current cold storage retains navigation rows with offloaded payloads, so recall fails in the strict resident-payload decoder before
chat.send.User Impact
Release checks can exercise cold history, restart, portable backup and recall against the current storage contract. Product runtime behavior is unchanged.
Why This Change Was Made
Use one shared cold-state assertion for both fixture consumers. Require offloaded message payloads, intact navigation and exact resident headers; keep history reads cold, then verify exact restoration through a real
chat.injectappend. Preserve the published pre-navigation contract through the existing committed-source frozen-target selector.Evidence
8f3da9e8e46eefafc7d081c8b89c9552986566c3: resident decoder rejects the retained cold rows before the recall turn.live-docker-stage.test.tsandopenai-chat-tools-readiness.test.ts(32.1s). Both added compatibility regressions fail on the base.git diff --checkpass.e99c7b529d8e9d5d7c0062d48457ae8f71a13002..de3919876c280046af09f61934284eff415fc3d9: complete, zero findings, security cleared.session-runtime-contextDocker proof: passes in 102s on Node 24.22.1 with the packaged Gateway and matching candidate harness. The committed required-mode scenario includes cold seeding, read-only history, restoration on append, restart and portable-backup recovery. Ordinary PR CI does not select this lane for these fixture paths.