Skip to content

fix(ci): align cold-storage fixtures with retained navigation - #190716

Merged
vincentkoc merged 1 commit into
mainfrom
fix-ci-cold-storage-fixture-contract-20261102
Nov 1, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-ci-cold-storage-fixture-contract-20261102

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

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.inject append. Preserve the published pre-navigation contract through the existing committed-source frozen-target selector.

Evidence

  • Original recall failure, attempt 1 at 8f3da9e8e46eefafc7d081c8b89c9552986566c3: resident decoder rejects the retained cold rows before the recall turn.
  • Node 24.22.1: 31 tests pass across live-docker-stage.test.ts and openai-chat-tools-readiness.test.ts (32.1s). Both added compatibility regressions fail on the base.
  • Tooling typecheck, scoped lint, formatting, Bash syntax and git diff --check pass.
  • Fresh independent source review: complete, no unresolved findings.
  • Local ClawSweeper, high-reasoning committed-range review e99c7b529d8e9d5d7c0062d48457ae8f71a13002..de3919876c280046af09f61934284eff415fc3d9: complete, zero findings, security cleared.
  • Exact-head session-runtime-context Docker 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.
  • Exact-head PR CI: all checks complete, 59 successful, 113 skipped, one neutral.
  • The separate live OpenAI recall turn remains unverified on this candidate.
  • Scope: 8 harness/test files, +162/-42 lines; no product runtime changes or new public configuration.

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.
@vincentkoc vincentkoc self-assigned this Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M labels Nov 1, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 1, 2026 23:05
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The fixture attempts to decode offloaded messages as resident payloads and fails before recall.
  • After: The fixture verifies retained navigation and offloaded payloads, then checks exact original events after an append.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-consistent, with successful current-head validation; supplied behavioral evidence remains incomplete for the separate live recall path.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored harness repair is outside the ordinary contributor-proof gate. Exact-head targeted lifecycle Docker execution succeeded, but its logs were inaccessible through the sandbox; compatibility tests support admission behavior, and the body explicitly leaves live OpenAI recall unverified.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release validation fails on valid archived transcripts before it can verify recall and recovery.
Reason: This maintainer-authored repair restores existing release coverage with one shared assertion and no product configuration or storage changes.

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
Reviewed head: de3919876c280046af09f61934284eff415fc3d9

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The separate candidate OpenAI nonce-recall turn remains explicitly unverified; the successful lifecycle Docker job's behavioral logs could not be inspected.
Agent review details

How this fits together

Release 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
Loading

Technical review

Best 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

  • Cold-storage lifecycle and recall fixtures keeps the original intent (31848a1: Provide permanent installed-package coverage of archival, recovery, exact transcript preservation, and model recall.)
  • Independent persisted-payload decoding keeps the original intent (c659113: Verify exact logical transcript bytes across text and compressed payload representations.)
  • Frozen-target compatibility admission keeps the original intent (3d35108: Remove retired release dialects while retaining compatibility needed by supported published targets.)
  • Existing script compatibility test matrix keeps the original intent (41e5d5f: Consolidate test scaffolding while preserving distinct transport, lifecycle, and persistence contracts.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 31848a1 adds scripts/e2e/lib/session-cold-storage/fixture.mjs:133 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 31848a15205a; files: scripts/e2e/lib/session-cold-storage/fixture.mjs)
  • Vincent Koc: Raw commit 4d26e86 adds scripts/lib/frozen-target-compat.sh:64 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4d26e86e6c31; files: scripts/lib/frozen-target-compat.sh)

PR surface

Tests +17, Other +103. Total +120 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 24 7 +17
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 7 138 35 +103
Total 8 162 42 +120

Labels

Label changes:

  • add P2: Broken release fixtures prevent meaningful cold-storage qualification, with no introduced product-runtime failure identified.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Broken release fixtures prevent meaningful cold-storage qualification, with no introduced product-runtime failure identified.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Capture the candidate OpenAI cold-history recall result with the nonce response and preserved original event prefix, redacting credentials and non-public endpoints.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 1, 2026, 6:21 PM ET / 23:21 UTC.

@vincentkoc
vincentkoc merged commit 02f6c40 into main Nov 1, 2026
206 checks passed
@vincentkoc
vincentkoc deleted the fix-ci-cold-storage-fixture-contract-20261102 branch November 1, 2026 23:24
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant