GeezerVison is showing github.com — atlas(#5670 §8): atlas-backup → fleet search backup verb (verify nix copy vs surviving shell original first) · Issue #14129 · developing-today/code
atlas(#5670 §8): atlas-backup → fleet search backup verb (verify nix copy vs surviving shell original first) #14129DescriptionSlice of #5670 (§8 of the Scaler-era data architecture revision, design PR #5667).
Row: atlas-backup (laptop systemd unit; nix-declared 2026-10-30) → a fleet search backup verb or a fleet serve maintenance role. Nightly atlas.db snapshot → laptop backups + R2 + Drive, sha256-verified.
Precondition (from §8): first verify the flake/nix copy matches the surviving shell original (~/tmp/atlas-backup.sh on the laptop). Note the other surviving copy: hatch-personal/workspace/turso-atlas/scripts/atlas-backup.py (21 KB, 2026-10-28) — reconcile all three before designing the verb; if they disagree, record which is live on the laptop unit today.
Work: verification record on this issue; then implement the backup verb/role in the fleet binary with the same destinations and sha256 verification; switch the laptop unit over; retire the outside copies.
Acceptance: copy-reconciliation recorded; verb lands with a test; laptop unit runs the fleet path for one nightly cycle; outside copies marked retired; #5670 updated.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T06:22:39Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": "/home/hatch",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/hatch",
"repo": "developing-today/code",
"branch": "main",
"sha": "76bbec72135cee7bd837984b0cd283ae295766e0"
},
"auth_subject": "felix",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activitydeveloping-today commented on Nov 24, 2026 dezren39 commented on Nov 24, 2026 Copy reconciliation (lane oc-code-08, task 21685):
- Repo
nixos/home/atlas-backup.sh on main matches the nix-store atlas-backup binary that the laptop atlas-backup.service executes (only the nix shebang/wrapper header differs). This is the live copy.
~/tmp/atlas-backup.sh no longer exists on the laptop.
hatch-personal/workspace/turso-atlas/scripts/atlas-backup.py differs (29.6 KB, older). Treat as outside copy to retire once the verb lands.
- Laptop unit state: last run failed with
Result: timeout on 2026-11-23 06:28 CST; next timer 2026-11-24 04:59.
Verb not started; parked until the next timer run is observed. Task 21685 claim parked with resume condition after 2026-11-25 04:59 CST.
developing-today-fleet commented on Nov 25, 2026 ContributorAuthor More actions
agent-note:v1
Agent: item-work-288
Task: 21685
State: claimed
Resumed after the prior lane's timed park (oc-code-08's copy reconciliation stands: the nix copy in nixos/home/atlas-backup.sh is the live one; ~/tmp/atlas-backup.sh is gone; the hatch-personal Python copy is the outside copy to retire).
Fresh observation the park was waiting for: the timer run it was parked to observe has now happened — and failed the same way. atlas-backup.service started 2026-11-24 04:58:20 CST and was killed at 06:28:20 CST with Result: timeout (1h30m wall, 3.1G memory peak), identical to the 2026-11-23 failure. The shell backup is timing out nightly, so waiting for another cycle only repeats a known failure; the fleet verb is the fix path.
This lane's slice: implement the fleet search backup verb (same destinations + sha256 verification as the live script) with a test, land it by PR, then park this task for the laptop-unit switch-over plus one nightly cycle on the fleet path. developing-today-fleet commented on Nov 25, 2026 ContributorAuthor More actions
agent-note:v1
Agent: item-work-288
Task: 21685
State: slice-landed, parked for the switch-over
Slice landed: PR #14906 (merged 4532657ef73c674536745a3d1e9cc0a9c08bba1c) — fleet search backup, a faithful port of the live atlas-backup shell routine into the fleet binary: same destinations (laptop root, R2 supabase-backups, Drive via rclone), sha256 verification at every destination, same manifest shape, dedupe against backup-log.md, rotation (newest 7 dates laptop + R2, newest 4 archives on Drive), same verdict/log formats and exit codes. Registry inventory + Fleet Book updated in the same PR.
Verification (laptop worktree named fallback — CI runs on main only; an Actions exec session was started but its runner cannot reach this repo's branch, the recorded no-cross-repo-credentials gap, and was closed unused): cargo test -p fleet-search all pass, including the new contract test that runs the verb end-to-end against stub sqlite3/bws/rclone with the shell script's documented behaviour as oracle; cargo test -p fleet-registry pass; cargo check -p fleet --features search,search-serve pass; fmt clean.
Acceptance status: copy reconciliation ✓ (prior lane, comment 7123982770) · verb lands with a test ✓ (this slice) · laptop unit runs the fleet path for one nightly cycle ✗ · outside copies marked retired ✗ · #5670 updated ✗.
Wake protocol (task 21685 parked, not_before 2026-11-26T12:00:00Z): on wake —
- Check whether the laptop's deployed fleet binary carries the verb:
fleet search backup --help on the laptop. If it does not (the verb merged 2026-11-25; the laptop binary updates via the fleet-static bootstrap pin), re-park naming the deploy as the blocker.
- Switch the unit: edit the atlas-backup declaration (
nixos/home/laptop-backups.nix) so the service runs fleet search backup instead of the nix script package, land it by PR, and apply it on the laptop via the standing switch route.
- Observe one nightly cycle on the fleet path (timer ~05:01 CST): the run's verdict line +
backup-log.md entry are the evidence; the shell script's nightly timeouts (2026-11-23 and 2026-11-24, both Result: timeout) are what the fleet path must not repeat.
- Mark the outside copies retired (the hatch-personal Python runner; the nix script stays in-tree as the port's source until the cycle proves, then retire it too), update migrate all Atlas/search/embedder scripts into developing-today/code + fleet binary; retire outside copies #5670, and close this issue.
developing-today-fleet commented on Nov 26, 2026 ContributorAuthor More actions
Fresh resume check (2026-11-26, lane code-f):
developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions
Wake-protocol step 1 executed (2026-11-26, lane 2037-H):
- Laptop channel is UP this run (
fleet shell targets: laptop reachable via fleet laptop-agent) — the blocker lane code-f hit earlier today has cleared.
- Deployed-binary check:
fleet search backup --help on the laptop printed the generic fleet search help with no backup verb — the laptop's deployed fleet binary (fleet 0.1.0, source rev 74eee892e18e43e0d214f977de67b5ab9c7b8aef) does not carry the verb merged in PR fleet search: add the backup verb (atlas-backup port, #14129) #14906 (4532657ef73c674536745a3d1e9cc0a9c08bba1c, 2026-11-25).
- Per the recorded wake protocol step 1: re-park naming the deploy as the blocker. No unit, host, or outside copy changed.
Ready condition: the laptop's fleet-static bootstrap pin advances to a build containing PR #14906 and fleet search backup --help on the laptop shows the backup verb. Then resume at protocol step 2 (switch nixos/home/laptop-backups.nix to the fleet path by PR, apply via the standing switch route, observe one nightly cycle, retire outside copies, update #5670, close #14129).
Acceptance status unchanged: copy reconciliation ✓ · verb lands with a test ✓ (PR #14906) · one nightly cycle on the fleet path ✗ (blocked on deploy) · outside copies retired ✗ · #5670 updated ✗. developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions
Wake-protocol step 1 re-executed (2026-11-28 ~02:50Z, lane code-g):
- Laptop channel is UP (
fleet shell targets: laptop reachable via fleet laptop-agent).
- Deployed-binary check:
fleet search backup --help on the laptop still prints the generic fleet search help with no backup verb — deployed binary is still source rev 74eee892e18e43e0d214f977de67b5ab9c7b8aef, unchanged since the 2026-11-26/27 checks. PR fleet search: add the backup verb (atlas-backup port, #14129) #14906 (4532657e) is still not deployed.
- Per protocol step 1: re-parked (task 21685, checkpoint + park recorded) naming the deploy as the blocker. No unit, host, or outside copy changed.
Ready condition (unchanged): the laptop's fleet-static bootstrap pin advances to a build containing PR #14906 and fleet search backup --help on the laptop shows the backup verb. Then resume at protocol step 2.
Acceptance status unchanged: copy reconciliation ✓ · verb lands with a test ✓ (PR #14906) · one nightly cycle on the fleet path ✗ (blocked on deploy) · outside copies retired ✗ · #5670 updated ✗. developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions
Wake-protocol step 1 re-executed (2026-11-28 ~03:15Z, lane code-h):
Ready condition (unchanged): the laptop's fleet-static bootstrap pin advances to a build containing PR #14906 and fleet search backup --help on the laptop shows the backup verb. Then resume at protocol step 2.
Acceptance status unchanged: copy reconciliation ✓ · verb lands with a test ✓ (PR #14906) · one nightly cycle on the fleet path ✗ (blocked on deploy) · outside copies retired ✗ · #5670 updated ✗.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|