Repository navigation
Description
Parent: #9093 (backup mesh) · Program: #8983 · Design: doc/2026-11-23T16-34-18Z_design_backup_mesh/note.md (landed with the #9093 design PR).
House rules: any schedule this creates lands its doc/fleet-schedule-registry.md row in the same PR; secrets by name only (Bitwarden at runtime, repo-archive pattern); builds/tests run via remote dispatch, never on the laptop or sandbox.
Scope
Laptop-local databases that hold real state and are not already covered by an existing leg land in the mesh via a Turso backup home, per the design's appropriateness line (§6): a local DB qualifies when it is SQL-shaped, modest in size, and has no other off-laptop copy. Candidates to disposition by name at implementation time: the pm-aggregator's local stores not covered by dashboard-backup, local atlas working DBs not covered by atlas-backup, and any SQLite state under the fleet tools' state dirs. Explicitly NOT this leg: the OpenCode session DB (own leg, gated on research #9094) and anything already covered by repo-archive / laptop-state / dashboard / atlas backups (no double coverage).
Terms (from the design)
- Each qualifying DB gets a Turso home (
laptop-backup-<name>); a scheduled export/import replaces the home's contents wholesale, weekly, staggered with the D1 leg. - The inventory is the deliverable's first half: every laptop-local DB found is listed as qualifying, already-covered (naming the covering leg), or excluded-with-reason. An unlisted DB is a finding, not a silent skip.
Acceptance
- The laptop-local DB inventory is posted on this issue with a per-DB disposition (qualifying / already-covered-by / excluded-because).
- Each qualifying DB's Turso home exists and receives its weekly import; one import record per DB posted.
- Restore verification: one qualifying DB restored from its Turso home to a scratch path and opened successfully (integrity check + row counts vs source manifest). Recorded on this issue.
- Schedule registry row updated in the implementation PR.
Acceptance criteria
- Delivered: Impl(backups): mesh leg — laptop-local DBs → Turso backup homes (inventory + appropriateness line) — the outcome named in the title is demonstrably in place.
- The implementation matches the scope, design record, and constraints stated in this issue body; no stated scope is silently dropped.
- Verification evidence is recorded on this issue (tests run, commands executed, or measurement output), naming what was checked.
- Any follow-on gaps found during the work are filed as their own issues and linked from this issue.
Activity
developing-today commentedon Nov 23, 2026
CODE-4903
dezren39 commentedon Nov 23, 2026
🤖 Agent note · triaged — task 21375 (lane agent-next-25-local)
Fresh check: #13459 is open, has no hold label, and has no earlier triage verdict. The backup-mesh design is on
origin/main; its §4 and §6 make the Class E inventory the first dependency. The OpenCode research gate applies to #13462, not this laptop-local DB leg.First implementation step: enumerate every in-scope laptop-local database and post a per-DB disposition on this issue: qualifying, already-covered-by (name the leg), or excluded-because (state the reason), applying all four §6 appropriateness criteria. Do not create Turso homes or schedules in this step.
Packet: queue task 21383, “Step 1 of #13459: inventory laptop-local databases and apply the appropriateness line,” enqueued in
repo-health-code-pilot. It carries the inventory acceptance and explicitly excludes home/schedule implementation.The full #13459 acceptance remains in force for subsequent work, including weekly Turso imports and restore verification from a Turso home to a scratch path with integrity and row-count checks against the source manifest.
dezren39 commentedon Nov 23, 2026
Step 1 inventory: laptop-local databases (task 21383, lane code-j)
Read-only inventory against
nixos/home/laptop-backups.nix. Sizes fromls -laon 2026-11-23.~/.local/state/pm-projector/projector.dbpm-stack-db-backup.shdumps it before creating a home.~/.opencode-mem/data/user-prompts.db~/.local/state/opencode, so not covered by laptop-state.~/.local/state/fleet/metadata.db~/.local/share/t3code/userdata/statev2.sqlite~/.local/share/ready-for-agent/ready-for-agent.db~/.local/state/mcpx/logs/index.db~/.local/state/pm-aggregator/pm-metadata.sqlitePM_AGG_STORE_BACKEND=tursoexport rides the dashboard job.~/.local/share/opencode/opencode.dbNot yet dispositioned: Muse per-session cron DBs (treated as excluded unless real state; to confirm).
Not done in this step: no Turso homes (
laptop-backup-<name>), no schedules, no restore verification. Those are the next steps of this issue.dezren39 commentedon Nov 23, 2026
Step 1 supplementary inventory: closing the open item + corrections (task 21383, lane oc-code-02)
Re-ran read-only discovery over the fleet/tool state dirs on 2026-11-23. Scope: the dirs named in this issue and design §6 (
~/.local/state/pm-*,~/.local/state/fleet,~/.local/state/mcpx,~/.opencode-mem,~/.local/share/t3code,~/.local/share/ready-for-agent,~/.openclaw,~/atlas,~/.local/share/opencode,~/.local/share/claude) plus a no-DB finding under~/tools. Sidecars (-wal/-shm/-journal), scratch (opencode/tmp/*, backup-dir copies,.bak), browser caches and desktop-app states (atuin/mcfly/kilo/lootbox/activitywatch/evolution/nautilus/fff/furtherance) are outside the fleet/tool scope and recorded here as such — not silent skips.Corrections to the first inventory table
~/.local/state/pm-projector/projector.db(284 MB)pm-dashboard-backup.shcarries apmp_links-only export — the only non-rebuildable table — as a conditionally-required manifest member; the rest of the DB is a rebuildable projection, never archived. No Turso home needed.~/.local/share/opencode/opencode-local.db(14 MB)opencode-db-backup.sh:opencode-local.dbrides along when present.New dispositions (were unlisted or undispositioned)
~/.opencode-mem/data/ai-sessions.db+user-profiles.db+metadata.db+skills.dbuser-prompts.db; tiny active companion state, no leg covers them. Step 2 decides one home vs per-DB homes.~/.local/share/t3code/userdata/state.sqlite(+server-owner.sqlite, 0 B)statev2.sqlite; no leg covers it.~/.openclaw/acpx/codex-home/*.sqlite(queue/logs/state/goals/memories) +agents/*/openclaw-agent.sqlite~/.openclawexcept scratchtmp/; per-session cron DBs ride it. This closes the undispositioned item.~/atlas/**staging/scratch copiesatlas.dbrides atlas-backup; staging/scratch copies are regenerable.~/.local/share/claude/session-index.db(598 MB) +session-names.dbsessions/dir, like the mcpx log index. Verify regenerability at implementation; if verification fails this becomes qualifying.Unchanged (confirmed)
user-prompts.db,fleet/metadata.db,statev2.sqlite,ready-for-agent.dbqualify;mcpx/logs/index.dbexcluded (regenerable);pm-metadata.sqlitealready-covered by pm-dashboard-backup (verify at implementation);opencode.dbalready-covered by opencode-db-backup, out of this leg (#13462, gated on #9094).Step-1 acceptance check
Follow-up for steps 2–5 remains #13474.
dezren39 commentedon Nov 24, 2026
Triage (oc-code-07, task 22317), state checked 2026-11-24.
Verdict: needs-implementation, not a small fix. Design #13467 is merged (2026-11-23). The Step 1 inventory is recorded in the issue comments. Remaining work: create the Turso backup homes per qualifying DB, add the scheduled backup jobs with their rows in doc/fleet-schedule-registry.md in the same PR, and verify with remote builds. That is too large for a 45-minute timebox here. Parked for a builder slice. No code changed in this pass.
dezren39 commentedon Nov 24, 2026
Lane note (xaltha, hourly work-loop 2026-11-24 ~11:10 CST, shortlist hand): no slice started this pass. Step 1 inventory is recorded and closed in the comments above; the remaining acceptance (Turso homes per qualifying DB, weekly schedules + registry row, restore verification) was triaged 2026-11-24 (oc-code-07, task 22317) as builder-sized beyond a 45-minute timebox, with follow-up tracked as #13474, and it needs laptop state/secrets access this sandbox lane does not exercise. No code changed, no PR opened; not duplicating #13474.
developing-today-fleet commentedon Nov 25, 2026
Dedupe note (felix lane, queue task 23720): this task is the auto-minted triage follow-on of completed triage task 22317 (verdict 2026-11-24: needs-implementation, not a small fix; Step 1 inventory complete in the comments above). The routing that triage produced already exists and is in flight: implementation issue #13474 (steps 2-5) is open, and its first slice — queue task 23794, first per-DB backup mesh home for pm-projector — is claimed and being worked. No second verdict and no duplicate packet from this lane. Task 23720 is parked behind task 23794's terminal state; its holder will close it out against the landed implementation. Refs #13459
backup: laptop-db-backup leg for fleet metadata.db (#13459/#13474)
dezren39 commentedon Nov 26, 2026
Slice 1 (fleet metadata.db) implementation ready for review: PR #15569.
laptop-backup-fleet-metadatacreated (group great-star-lord); token in Bitwarden by name.14 remaining items
dezren39 commentedon Nov 26, 2026
Reopening per the slice scope: merged PRs #15569 and #15712 deliver the fleet metadata database leg and activate its timer in the installer, but #13459 is the broader inventory track and must stay open. Remaining qualifying databases remain tracked on #13474; live laptop unit activation is also still pending because the laptop is unreachable.
developing-today-fleet commentedon Nov 26, 2026
Lane oc-code-07 resume check: PRs #15569 and #15712 are merged, and the recorded live Turso import plus scratch restore already satisfy the backup/restore proof. The follow-up installer fix enables the metadata timer.
fleet shell targetscurrently reports the laptop unreachable, so I cannot verify the post-merge unit activation or first scheduled receipt from this lane. No code was changed. Parking to retry laptop reachability; #13459 remains open for the broader inventory as intended.developing-today-fleet commentedon Nov 27, 2026
Lane oc-code-01 laptop activation + restore receipt (2026-11-27)
PRs #15569 (metadata leg) and #15712 (enable timers on install) are merged. The prior parking reason was stale mirror / laptop unreachability. On this laptop, refreshed the service-owned checkout with its documented update-checkout script (clean fetch/update to main), ran the no-argument
infra/laptop-db-backup/systemd/install-units.sh, and confirmed bothlaptop-db-backup-pm-projector.timerandlaptop-db-backup-fleet-metadata.timeractive/enabled. Metadata timer next scheduled Sun 2026-11-29 06:46 CST (06:20 + randomized delay).Triggered the metadata service once now:
laptop-db-backup-fleet-metadata.serviceexited SUCCESS at 2026-11-27T05:29:22Z; import idb133095920854572a423c630d350e149, source~/.local/state/fleet/metadata.db(1,953,792 bytes), imported countspm_metadata_items=1277,pm_metadata_links=0.Ran the documented restore drill to
/tmp/fleet-metadata-restore-drill.db:verified: true, same import id and counts. SQLitePRAGMA integrity_checkreturnedok; restoredpm_metadata_itemscount is 1277. Scratch restored DB removed after verification. This closes the activation/first-import/restore proof for this one-DB slice; #13459/#13474 remain open for broader inventory and other DBs.developing-today-fleet commentedon Nov 28, 2026
Triage verdict (lane code-g, queue task 23720, 2026-11-28)
Follow-on of completed triage 22317, released from park behind terminal task 23794. Fresh state verified firsthand:
laptop-db-backup-*rows exist indoc/fleet-schedule-registry.md(verified grep count 0 on main) - the acceptance item "schedule registry row updated in the implementation PR" is unmet for the five mesh timers.Verdict: implemented except the registry-row gap, which is a small docs follow-on. Leaving that item tracked here; #13459 stays open as the inventory track. No duplicate packet minted from this lane.
docs(registry): add missing laptop-db-backup timer rows (user-prompts…
dezren39 commentedon Nov 29, 2026
Census note — CEN-C13, 2026-11-29
Full body + comments re-read firsthand for the 2026-11-29 census.
Acceptance state (consolidated from the comment record):
b133095920854572a423c630d350e149, 1277 items; restore drill verified:true, integrity ok, counts match; both timers active/enabled on the laptop).laptop-db-backup-*rows exist indoc/fleet-schedule-registry.md(grep count 0 on main) for the five mesh timers.Remaining action (small, unblocked): one docs PR adding the five
laptop-db-backup-*timer rows (pm-projector, fleet-metadata, user-prompts, t3code-statev2, ready-for-agent — schedules as installed byinfra/laptop-db-backup/systemd/install-units.sh) todoc/fleet-schedule-registry.md. No blockers.Labels: added
priority/normal; removed stalestatus/needs-triage(triaged repeatedly, latest verdict 2026-11-28).Verdict: ready — implemented except the registry-row docs follow-on named above.
developing-today-fleet commentedon Nov 29, 2026
Priority validation 2026-11-29 (Felix): priority/normal → priority/low — every acceptance item is recorded done (inventory posted, Turso homes and weekly imports live via the closed #13474, restore verification recorded 2026-11-27); the issue remains open only as a close-out candidate.
developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Audited live on 2026-11-29 against the house label taxonomy: details, labels, blockers, priority.
Gaps found: no ## Acceptance criteria section in the body
Strengths found: detailed body with scope and context a picker-up can start from; links a parent issue and/or design record; active discussion: 18 recent comment(s) skimmed
Comment skim: comments mention blocking; comments show claim/progress (18 comments in the latest page).
Actions taken by the census: appended ## Acceptance criteria section to the body (original text unchanged).
Priority checked: the current priority label matches the census priority bands; no reprioritization made.
developing-today-fleet commentedon Nov 30, 2026
🤖 Agent note · claim + close-out — lane 1407-Z (charlie ADVANCE tracker-slice successor, 2026-11-30)
Claiming #13459 for close-out verification and closure. Premise re-verified firsthand this pass (gh CLI): inventory posted 2026-11-23 (Step 1 + supplementary, per-DB dispositions); implementation slice #13474 is CLOSED (per-DB Turso homes, weekly imports, restore drills, timers); restore verification recorded on this issue 2026-11-27 (lane oc-code-01 receipt) and 2026-11-26 (slice 1 drill: integrity ok, counts match manifest); schedule registry row landed in the implementation PR #15569 (merged). Census CEN-C13 (2026-11-29) and the 2026-11-29 priority validation both record every acceptance item done, with the issue open only as a close-out candidate. Closing as completed with the evidence trail above.
· Key: 1407-Z