GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — atlas backups: canonical local atlas.db has no routine backup (gitignored, ad-hoc copies only); nightly Turso atlas dump times out · Issue #1515 · developing-today/code

atlas backups: canonical local atlas.db has no routine backup (gitignored, ad-hoc copies only); nightly Turso atlas dump times out #1515

New issue
Copy link
New issue
Copy link
Closed
Closed
atlas backups: canonical local atlas.db has no routine backup (gitignored, ad-hoc copies only); nightly Turso atlas dump times out#1515
Copy link
Assignees
dezren39
Labels
priority/highImportant and time-sensitivestatus:done

Description

@dezren39
dezren39
opened on Oct 27, 2026
Issue body actions

Gap (backup audit, 2026-10-27): atlas has no reliable routine backup

Two halves, both verified firsthand today:

1. The canonical local atlas.db is never backed up routinely.

  • Canonical DB: ~/hatch-personal/workspace/turso-atlas/data/atlas.db (1.49 GB, modified 2026-10-27 02:07). It and its dated snapshots are gitignored (hatch-personal .gitignore lines 33 and 48: workspace/turso-atlas/data/*.db.gz, workspace/turso-atlas/data/**/*.db), so the every-minute hatch-personal autocommit does NOT cover them.
  • The only copies are ad hoc and same-disk: sandbox atlas-2026-10-25.db.gz / atlas-2026-10-26.db.gz beside it, and laptop ~/atlas/atlas-2026-10-26.db.
  • The local-only content (6,941 chunks / 2,226 sessions) exists only in these local DBs — by Drew's standing decision it is never published to Turso. Lose both disks and that content is unrecoverable; it cannot be re-derived from Turso.

2. The nightly Turso atlas dump is failing.

  • cold-store-nightly-backup, 2026-10-27 03:12 CDT run: D1 backup OK, Supabase filing OK, 3 of 4 Turso databases filed to Drive — but atlas failed: curl: (28) Operation timed out after 300001 milliseconds with 524901755 bytes received / turso export: ERROR: atlas: dump download failed. No successful atlas filing is evidenced in the job's available run history.

Related exposure: the laptop's ~/atlas/v3/ embedding databases (incl. the Qwen3 pass, ~113h of compute) also have no backup; they are rebuildable from corpus.db only at full recompute cost, and corpus.db itself lives only on the laptop.

Acceptance

  • A routine (daily) compressed snapshot of the local canonical atlas.db lands off-machine (Drive and/or R2) with retention, and its freshness is checked somewhere visible.
  • The nightly Turso atlas export succeeds end-to-end (streaming/chunked download or a window that fits a 500 MB+ dump) — 4 of 4 databases filed.
  • One restore spot-check of a filed snapshot is performed and evidenced.

Activity

Next
  1. developing-today commented on Oct 27, 2026

    @developing-today
    developing-todayBot
    on Oct 27, 2026 – with developing.today
    Contributor
    More actions

    CODE-576

  2. dezren39
    added
    queue/queuedHas a queued queue task
    priority/highImportant and time-sensitive
    on Oct 27, 2026
  3. github-actions
    assigned
    dezren39
    on Oct 27, 2026
  4. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Oct 28, 2026
  5. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), Lane A shift
    • Session / ID: queue task 1565 (triage)
    • Found via: queue claim
    • Task: Triage atlas backups: canonical local atlas.db has no routine backup (gitignored, ad-hoc copies only); nightly Turso atlas dump times out #1515 — confirm both halves against current state (canonical atlas.db backup exposure + nightly Turso atlas export timeout) and enqueue the implementation follow-up(s). No implementation in this task.
    • Expectation: effort s (triage, 20-min timebox); done = triage verdict posted on atlas backups: canonical local atlas.db has no routine backup (gitignored, ad-hoc copies only); nightly Turso atlas dump times out #1515 + follow-up packet(s) enqueued.
    • Links: issue atlas backups: canonical local atlas.db has no routine backup (gitignored, ad-hoc copies only); nightly Turso atlas dump times out #1515 · umbrella audit(backups): 2026-10-27 coverage audit — aggregator offsite unproven, Kaneo/atlas gaps, NixOS backup service directive #1516
  6. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane C shift
    • Session / ID: queue task 1579
    • Found via: queue claim
    • Task: Half 1 first: run atlas-backup.py end-to-end so a truthful OK verdict lands in backup-log.md, verify laptop/R2/Drive destinations, and do a restore spot-check of a filed snapshot. Half 2 (cold-store Turso atlas export timeout) follows or parks with a checkpoint between halves, per the packet.
    • Expectation: m/l (two halves) — done = OK verdict + 3-destination evidence + integrity_check ok on restored snapshot, and an evidenced 4-of-4 Turso export run
    • Links: issue atlas backups: canonical local atlas.db has no routine backup (gitignored, ad-hoc copies only); nightly Turso atlas dump times out #1515
  7. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), Lane A shift
    • Session / ID: queue task 1565 (triage)
    • Found via: queue claim
    • Task: Triage complete — verdict below. Implementation follow-up enqueued as queue task 1579 (already claimed by the next worker; this issue's labels are left as queue/claimed + work/assigned + status/in-progress for that task).
    • Expectation: done for triage; the fix lives in task 1579.
    • Links: follow-up packet hidden_files/queue-pilot/packet-1515a-fix.json · umbrella audit(backups): 2026-10-27 coverage audit — aggregator offsite unproven, Kaneo/atlas gaps, NixOS backup service directive #1516

    Triage verdict (task 1565, verified 2026-10-28 ~00:40Z)

    Half 1 — canonical local atlas.db: CONFIRMED, with a same-day partial remediation that has not yet proven success.

    • Canonical DB re-verified: ~/hatch-personal/workspace/turso-atlas/data/atlas.db = 1,490,194,432 bytes, mtime 2026-10-26 21:07 CDT (= the packet's 2026-10-27 02:07 UTC — same instant). git check-ignore -v → .gitignore:48 workspace/turso-atlas/data/**/*.db. It is not covered by git/autocommit.
    • Sandbox copies are exactly the ad-hoc ones: atlas-2026-10-25.db.gz / atlas-2026-10-26.db.gz (296M each, Oct 26 06:41–42) — same disk, and they predate the canonical DB's last modification, so even they are stale.
    • Correction/update to the issue as filed: a routine now EXISTS — cron atlas-local-backup-daily (daily 04:47 CDT) running scripts/atlas-backup.py (both created 2026-10-27, after this issue was filed). But it has never recorded a success: backup-log.md's only entry is 2026-10-27 | FAILED early: open() got an unexpected keyword argument 'mtime', and the job has no completed runs on record yet.
    • One destination IS evidenced: laptop ~/backups/atlas/2026-10-27/atlas-2026-10-27.db.gz (211M, Oct 27 15:41 CDT). The R2 and Drive legs are not evidenced anywhere I could read, and the log's FAILED line contradicts a clean run — so the routine's success is unproven, which is exactly what follow-up 1579 must close (fix verdict/logging, verify all 3 destinations, restore spot-check with sqlite3 integrity_check).
    • Laptop v3 exposure stands: ~/atlas/v3/corpus.db (1.3G) + bge-small-vecs.db (186M) sit on the laptop only (read-only ls verified; the Qwen3 pass was not touched).

    Half 2 — nightly Turso atlas export timeout: CONFIRMED, unchanged.

    • Latest cold-store-nightly-backup run (2026-10-27 03:12 CDT, run e827336e): D1 OK, Supabase OK, 3 of 4 Turso DBs filed; atlas FAILED — curl: (28) Operation timed out after 300001 milliseconds with 524901755 bytes received. No newer nightly run exists yet (next: 2026-10-28 03:12 CDT), so this failure is the current state.
    • Follow-up 1579 includes the export fix (streaming/chunked/resumable download or a window that fits a 500MB+ dump) with acceptance = an evidenced run filing 4 of 4 Turso DBs and the job exiting 0.

    Follow-up verification commands (recorded per packet): nightly/manual export run end-to-end with timing + byte counts; sqlite3 integrity_check on a restored filed snapshot; destination listings for laptop/R2/Drive; a truthful ATLAS-BACKUP <date> OK verdict line in backup-log.md.

  8. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane C shift
    • Session / ID: queue task 1579, parked 2026-10-28T01:20Z at shift budget end; both long-running processes below are DETACHED (nohup) and still running — resume by reading their logs, do NOT start duplicate runs
    • Found via: queue claim

    Half 1 — snapshot routine (evidence so far)

    • A duplicate run launched 19:01 CDT by an earlier agent evaporated mid-legs (its staging was clobbered; it filed the laptop gz but no manifest and no log verdict). My clean re-run (PID 49756, log /tmp/atlas-backup-run.log on the sandbox) is the only run now.
    • Snapshot manifest: sha256=1ec75c15fc1c4308ce38c56ab50938e7df7b4db3f3d522849abd79143ecdcefa, size=492009646, source_bytes=1490194432, counts sessions=18325 messages=122124 chunks=107639.
    • ✅ Laptop leg VERIFIED: ~/backups/atlas/2026-10-27/atlas-2026-10-27.db.gz (492009646 B, 20:12 CDT) + manifest.json filed; laptop-side sha256sum matches the manifest exactly.
    • ✅ RESTORE SPOT-CHECK PASSED: that filed gz was gunzipped on the laptop and PRAGMA integrity_check returned ok; row counts sessions=18325 / messages=122124 / chunks=107639 — exact match to the manifest. Evidence kept at ~/backups/atlas/.restore-check-2026-10-27/restore-check.txt on the laptop (restored DB deleted after the check).
    • ⏳ R2 and Drive legs were still uploading when this shift parked; the run appends the truthful verdict (ATLAS-BACKUP 2026-10-27 OK … or PARTIAL) to hatch-personal/workspace/turso-atlas/backup-log.md when it exits. Resume = read that log line first.

    Half 2 — Turso atlas export (evidence so far)

    • The code fix was already on main before this task: commit a2b9da6 (2026-10-27 08:46 UTC, after the failed 03:12 CDT nightly) raised the dump cap to 1800 s + retry, and a2e02d0/28c9195b hardened the rebuild (compressed download, streaming repair filter, COMMIT truncation guard). What was missing was an evidenced successful run.
    • Manual evidence run of pkgs/cold-store-reaper/scripts/export-turso.sh started 19:47 CDT (PID 55965, log /tmp/turso-export.log): atlas dump download COMPLETED — 1.1 GB of SQL in ~12 min under the 1800 s cap (the old 300 s cap died at 524901755 bytes); repair filter passed; truncation guard passed; sqlite rebuild completed; the script's own PRAGMA integrity_check on the rebuilt DB passed (it moved on to gzip); gz = 385 MB.
    • ⏳ At park time it was still in cold-store put-backup turso (Drive filing of the atlas export), with 3 smaller databases (databases.tsv: 4 total) still to go. Resume = read /tmp/turso-export.log for turso export: filed … lines and the final all 4 database(s) filed line; if the process died, re-run export-turso.sh only for the missing databases is not supported — re-run the whole script (it re-files all 4; that is idempotent per-date in Drive).

    Expectation on resume: confirm both logs, verify R2 HEAD + Drive listing for atlas/2026-10-27, then complete task 1579; if either process died without a verdict, re-run just that half.

  9. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Oct 28, 2026
  10. 11 remaining items

  11. dezren39
    added
    status/parkedDeliberately paused with a recorded resume condition
    on Oct 28, 2026
  12. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), Lane B shift
    • Session / ID: queue task 1579 (resumed to check the resume condition)
    • Found via: queue claim (resume per §10)
    • Task: Resume condition NOT yet met — checked ~/hatch-personal/workspace/turso-atlas/backup-log.md fresh at 2026-10-28T03:05Z: latest lines are the 2026-10-27 FAILED (mtime bug, since patched) and PARTIAL (sha256=1ec75c15…, laptop=ok r2=FAIL-at-the-time drive=ok) lines; no clean OK line yet. The dedupe-fixed routine runs as the atlas-local-backup-daily cron tonight at 04:47 CDT (09:47Z). Re-parked until after that run rather than re-attempting the multi-destination backup inside this shift (the last two manual re-runs died on environment faults: sandbox recycle mid-laptop-leg, then a stalled laptop SSH stream). Resume after ~10:05Z: if backup-log.md has a clean OK line for tonight's run, verify it and complete; if the cron line is FAILED/PARTIAL, read its reason and act on that.
    • Expectation: resume after 2026-10-28T10:05Z on a later shift claim
    • Links: issue atlas backups: canonical local atlas.db has no routine backup (gitignored, ad-hoc copies only); nightly Turso atlas dump times out #1515 · script ~/hatch-personal/workspace/turso-atlas/scripts/atlas-backup.py
  13. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · escalated

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-10-28 01:19 CDT
    • Found via: monitor reconciliation
    • Task: Check-in on parked task 1579 (issue atlas backups: canonical local atlas.db has no routine backup (gitignored, ad-hoc copies only); nightly Turso atlas dump times out #1515, no effort label → default s): parked 2026-10-28T02:59Z awaiting a clean OK line from the atlas-local-backup-daily cron, now past the ~1.5× check-in threshold with no activity at all since the park note at 03:02Z.
    • Expectation: Holder (queue worker) please checkpoint, resume, or hand off: on resume, check backup-log.md for the clean OK line / re-run per the task's resume brief; if the cron still has not produced a clean backup, say so explicitly on the issue with the latest cron state so the park condition stays truthful.
    • Links: task 1579 (repo-health-code-pilot, parked, att 1/2)
  14. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 28, 2026
  15. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up (resume)

    • Agent: queue worker (repo-worker-code), Lane A shift
    • Session / ID: queue task 1579 (resume), claimed 2026-10-28T10:05Z
    • Found via: queue claim (resume per §10: pick up from checkpoint, do not restart)

    State on resume: Half 2 COMPLETE (evidenced 4-of-4 Turso filing, 2026-10-28T01:25Z note). Half 1: all three destinations hold the verified 2026-10-27 archive (sha256 1ec75c15…cefa); restore spot-check passed; R2 HEAD-signing bug patched. The one outstanding acceptance item is a clean ATLAS-BACKUP … OK verdict line in backup-log.md.

    Fresh check 10:06Z: the dedupe-fixed atlas-local-backup-daily cron (run da0410f6, fired 04:47 CDT / 09:47Z) is still running. Its staging output for today already exists: .backup-staging/2026-10-28/atlas-2026-10-28.db.gz (492,009,646 B, sha256 113ab894…73bc, manifest created 09:53Z with integrity counts sessions=18325 messages=122124 chunks=107639 from the unchanged canonical atlas.db, 1,490,194,432 B, mtime 2026-10-26T21:07 CDT). backup-log.md has no verdict line for today's run yet — the legs are still in flight. This shift is monitoring the run; if it does not land a verdict inside the claim window, the task re-parks naming this run as the resume condition.

  16. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done — both halves of #1515 COMPLETE

    • Agent: queue worker (repo-worker-code), Lane A shift
    • Session / ID: queue task 1579 (final resume), completed 2026-10-28T10:12Z
    • Found via: queue claim (resume per §10)

    Half 1 — ✅ clean verdict landed. The dedupe-fixed atlas-local-backup-daily cron (run da0410f6, fired 04:47 CDT) finished succeeded at 10:07Z and appended the first clean verdict to backup-log.md:

    2026-10-28 | sha256=113ab894e061749ecdd6e5b30b5b51eeec866e0fda8c46d248490496eb5273bc | ok laptop/r2/drive | size=492009646 | counts sessions:18325,messages:122124,chunks:107639
    

    Independent verification this shift: laptop ~/backups/atlas/2026-10-28/atlas-2026-10-28.db.gz sha256 re-computed = 113ab894…73bc (exact match, 492,009,646 B); staging manifest records the snapshot integrity counts from the unchanged canonical atlas.db (1,490,194,432 B, mtime 2026-10-26T21:07 CDT). R2 + Drive legs report ok in the verdict (the R2 HEAD-signing bug behind the earlier PARTIAL line was patched by the prior shift; the 2026-10-27 archive was verified on all three destinations then, and the restore spot-check — integrity_check ok + row counts — passed on that filed snapshot).

    Half 2 — ✅ already complete (evidenced 2026-10-28T01:25Z note: manual export-turso.sh run filed 4 of 4 Turso DBs, atlas dump 402,684,378 B gz under the 1800 s cap, rebuilt-DB integrity_check passed).

    All acceptance criteria for #1515 are now met; closing the issue and completing queue task 1579.

  17. dezren39
    closed this as completedon Oct 28, 2026
  18. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 28, 2026
  19. developing-today
    added
    status:done
    on Oct 28, 2026
  20. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    Atlas backup close-out (2026-10-28):

    • Canonical atlas.db lives on the laptop (~/atlas/turso-atlas/data/atlas.db), migrated + byte-verified.
    • Daily backup restored: cron atlas-local-backup-daily (04:47 CT) runs scripts/atlas-backup.py — snapshot from the laptop, filed to laptop ~/backups/atlas/ + R2 supabase-backups/atlas/ + Drive local-atlas, silent on success, loud on failure.
    • All three legs proven with the current script. The final blocker was a real bug found on the third proof run: the Drive step skipped its upload whenever a same-named file had the same SIZE, so a same-size archive from the morning run was verified instead of the new bytes (same size, different md5). Fixed — it now skips only when size AND md5 match, otherwise replaces in place and verifies by file id; the manifest gets the same treatment. Today's Drive file was repaired in place and independently re-verified (md5 4d342c75…).
    • Sandbox copy retired: workspace/turso-atlas/data/ (8.6 GB of snapshots/deltas) moved to recoverable trash (expires 2026-11-27) with a POINTER.md left in its place; the laptop's stale data/.chunks (1.4 GB) moved to the laptop trash dir the same day.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

priority/highImportant and time-sensitivestatus:done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.