Issue 2056 append-only evaluation ledger#
Source: https://github.com/TanStack/db/issues/2056; raw body in raw-issue.json. Reviewed head: f43a16522c990134ae993235a312d2d5e433dc8a (main, 2026-10-06). Scope: reproduce by strengthening oracles, audit laws/enforcement, compare candidate fixes; production repair awaits user selection. All initial verdicts are pending evidence. No claim is omitted for overlap.
| ID | Original claim / proposed repair | Reference | Severity | Law / planned owner | Evidence, verdict, action, value / destination |
|---|---|---|---|---|---|
| R1 | Tagged on-demand persisted Collection works once and fails after fresh process restart with full-mode snapshot error; stays loading and live queries fail until local data is cleared. | Summary, versions, setup, steps | P1 candidate | Restart preserves ability to satisfy retained demand; Electric history + recovery + SDK delivery owners | Pending; test fresh Collection objects and tagged/untagged neighbors. Host-specific Expo claim needs its own receiving witness. |
| R2 | Lost in-memory tag state plus persisted requiresTagState=true selects needsFullSnapshot, full mode and offset -1. | Explanation steps 1–2, 0.5.4 dist lines ~828/872 | Mechanism | Resume evidence must include all state needed to interpret future messages | Pending; inspect persisted schema and stream arguments; retain legacy missing flag and explicit reset neighbors. |
| R3 | loadSubset unconditionally requests a snapshot; SDK rejects full mode before starting stream, preventing readiness. | Explanation steps 3–5, dist ~248 | P1 candidate | Every acquisition must use the current provider session's capabilities and preserve progress | Pending; real installed SDK witness plus stricter mock calibration. |
| R4 | Full-mode demand should await full sync instead of requesting snapshots; reported ~35-line patch awaits first markReady, rejects markError, resolves collection abort. | Expected + workaround | Repair proposal | Applied settlement, terminal failure, cleanup; readiness scopes remain distinct | Pending; assess gate reuse, early readiness, late demand, cancellation, concurrent requests, error identity. |
| R5 | Full shape downloads on every launch because tags are not persisted; persisting tag state alongside resume may be a better fix. | Workaround cost / alternative | Design proposal | Resume certificate is complete and atomic with represented rows; cost is separate from correctness | Pending; evaluate schema, selected tags, persisted subset completeness and retention. |
| R6 | Two-launch test uses real Electric adapter + persistedCollectionOptions + Expo SQLite adapter over node:sqlite and fake tagged server; fails 0.5.4, passes patch; test offered but not attached. | Test paragraph | Evidence idea | Cross-boundary receiving witness | Pending; preserve reported test path, do not claim native Expo validation. |
| R7 | #811 has same error in progressive mode. | Related footnote | Context | Capability dispatch applies across modes | Pending; inspect related report; preserve unique progress/capability context. |
Required audit questions#
For each behavioral law: independent authority; model encoding; reachable histories; real driver; all observation cuts; red/control calibration; remaining scope. Final accounting and reviewer quality remain pending.
Final evaluation, 2026-10-06#
Production head remains f43a16522c990134ae993235a312d2d5e433dc8a. All temporary production changes were restored. Full adjudication, law audit, authority, calibration, and remaining owners are in docs/contributing/oracle-reviews/issue-2056-full-mode-recovery.md (revision 1).
Final dispositions: R1 confirmed-open (P1 acquisition failure; permanent loading not established); R2 duplicate of R1 (resume/tag mechanism confirmed); R3 confirmed-open (SDK capability bug; no-start claim refuted on tested current-main path); R4 design-decision (recommend reset-aware applied gate); R5 design-decision (complete persisted tag certificate); R6 confirmed-open (offered Expo/0.5.4 fixture not supplied or verified); R7 already-fixed (earlier progressive path).
Evidence: existing primary 30/30 baseline; strict mock 3 red; final main 11 red/227 green; readiness-only 2 red/6 green; reset-aware applied prototype 238 green; direct saved replay 1 red/30 skipped. Tests and documentation only remain. No implementation closure or deferral is claimed.
Later implementation status#
The final evaluation above describes only the reviewed main commit
f43a16522c990134ae993235a312d2d5e433dc8a. It is not the status of
PR #2069. After the user chose scoped, on-demand recovery, the production
implementation and its oracle witnesses landed on this branch at
7c2e6a4f640bbbef64c1045362b22346a8c46e21. The implementation and
subsequent review evidence are recorded in
docs/contributing/oracle-reviews/issue-2056-full-mode-recovery.md under
“Continuation: scoped on-demand recovery” and later sections. At PR head
c21196d94, Electric and the SQLite persistence wrapper contain that repair;
the old “production repair awaits user selection” conclusion no longer applies
to the PR.
The three candidate-*.patch files are head-pinned comparison artifacts from
the original evaluation. They are not pending changes or patches to apply to
the current electric.ts. Keep them only as historical evidence of the
rejected readiness-only and one-time gates and the selected reset-aware gate.