Repository navigation
test(gateway): canvas reads keep verified cold archives after #185955 - #186193
Conversation
#185955 made read-only transcript probes stream verified cold archives instead of restoring them. The canvas retained-widget test still asserted the old restore side effect (archive gone after a view), so it failed on main. The view still returns identical content; assert the archive stays cold.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
🦞👀 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. |
#185955 made loadTranscriptEvents stream verified cold archives instead of restoring them, so the carrier-retirement test waited forever for a restore mutation that read-only probes no longer start (300 s CI timeout on main). Trigger restoration through restoreSessionColdTranscript, then read.
|
Codex review: needs changes before merge. What this changesThis PR changes the canvas integration test to expect a verified cold archive to remain present after viewing its saved widget. Example: A conversation reader opens the saved widget in the archived widget-parent session.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR: it correctly updates an obsolete archive expectation, but its added comment triggers the required test-line ratchet. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherThe Gateway canvas handler verifies a saved widget receipt through the session transcript owner, then returns the document HTML under current conversation access. flowchart LR
A[Conversation reader] --> B[Canvas view handler]
B --> C[Session receipt matcher]
C --> D[Verified cold archive]
B --> E[Saved document owner]
E --> F[Widget HTML response]
Technical reviewBest possible solution: Keep the corrected archive assertion and make this focused test repair line-neutral without removing behavioral checks or raising the ceiling. Do we have a high-confidence way to reproduce the issue? Current-main source shows that canvas-widget matching reads verified cold archives directly while the test still expects removal; the reported failure matches that mismatch, but no tests were run during this read-only review. Is this the best way to solve the issue? Changing this assertion is the smallest complete repair because the production behavior is intentional and widget-content equality remains independently checked. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c28d2e4294e4. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests +1. Total +1 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
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 October 27, 2026, 2:33 PM ET / 18:33 UTC. |
|
Admin-merging over |
…w#185955 (openclaw#186193) * test(gateway): canvas reads keep verified cold archives after openclaw#185955 openclaw#185955 made read-only transcript probes stream verified cold archives instead of restoring them. The canvas retained-widget test still asserted the old restore side effect (archive gone after a view), so it failed on main. The view still returns identical content; assert the archive stays cold. * test(sessions): restore explicitly in archive carrier retirement test openclaw#185955 made loadTranscriptEvents stream verified cold archives instead of restoring them, so the carrier-retirement test waited forever for a restore mutation that read-only probes no longer start (300 s CI timeout on main). Trigger restoration through restoreSessionColdTranscript, then read.
What Problem This Solves
Main is red.
src/gateway/server-methods/canvas-session-read.test.ts > reads retained widget receipts and waits only for current live presentationsfails withexpected { session_id: …, … } to be undefined.A bisect between r240 (
7bce7a61, where the test passes) and main pins the first bad commit at35494b66, "perf(sessions): avoid cold restores for transcript probes" (#185955). That change intentionally made read-only transcript probes consume verified cold archives without restoring them, so reading an archive no longer moves it back into hot storage. The canvas view still returns identical content, and that assertion passes. The test then asserted the old side effect: the cold archive was gone after the view.This PR asserts the new contract instead: after a read-only view, the archive is still present and the view content is unchanged. Production code is unchanged.
Evidence
checks-node-changed-compact-small-2-2.node scripts/run-vitest.mjs src/gateway/server-methods/canvas-session-read.test.tspasses: 1 file, 1 test.git bisect runover7bce7a61..bf72e96b39a2with--first-parentreports35494b66as the first bad commit.