Add svc.sh agent data-dir snapshots with SQLite-consistent backup #417

Merged
weichen merged 30 commits from feature/svc-agent-backup into main 2026-10-12 04:34:28 +00:00
30 Commits
Author SHA1 Message Date
weichen a24ba3034c Record the sync checkpoint
ci / test-pg (pull_request) Successful in 1m34s
ci / test (pull_request) Successful in 2m54s
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=e27810246f507c1e1c2ff6e9fb6282f6da90e0ec; candidate=4f0773e57af8310fbd9a177ac1a23c94061604ed.

Impact: task metadata only.

Refs: .task/feature-svc-agent-backup.md
2026-10-12 04:31:27 +00:00
weichen 4f0773e57a Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=e27810246f507c1e1c2ff6e9fb6282f6da90e0ec.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-12 04:31:07 +00:00
weichen 61b563cc32 Record the sync checkpoint
ci / test (pull_request) Successful in 3m36s
ci / test-pg (pull_request) Successful in 1m33s
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=ac4058a72f2496a7d5a0225c4fb4e3a7ac8ac012; candidate=ff05ac9482813ff676f96c6dbdfb796019bcc544.

Impact: task metadata only.

Refs: .task/feature-svc-agent-backup.md
2026-10-12 04:25:13 +00:00
weichen ff05ac9482 Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=ac4058a72f2496a7d5a0225c4fb4e3a7ac8ac012.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-12 04:24:38 +00:00
weichen c17ab82fe0 Record the sync checkpoint
ci / test-pg (pull_request) Successful in 1m56s
ci / test (pull_request) Successful in 3m12s
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=b4649d79c2bdd66c3bcb9e60752abdb99b5667df; candidate=14d141832ce67acb7f626499aff4e06c31b7b404.

Impact: task metadata only.

Refs: .task/feature-svc-agent-backup.md
2026-10-12 04:21:03 +00:00
weichen 14d141832c Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=b4649d79c2bdd66c3bcb9e60752abdb99b5667df.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-12 04:20:37 +00:00
weichen 1c832d8d6c Record the sync checkpoint
ci / test (pull_request) Successful in 3m9s
ci / test-pg (pull_request) Successful in 1m32s
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=5942ba7a949f3032cacf75856529726a7c24fa8e; candidate=52ae58dedf75528dff88f4f8b7f7267d293694e9.

Impact: task metadata only.

Refs: .task/feature-svc-agent-backup.md
2026-10-12 04:04:04 +00:00
weichen 52ae58dedf Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=5942ba7a949f3032cacf75856529726a7c24fa8e.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-12 04:03:42 +00:00
weichen 69086622b6 Record post-sync governance test evidence
ci / test-pg (pull_request) Successful in 2m43s
ci / test (pull_request) Successful in 5m15s
2026-10-12 03:51:01 +00:00
weichen 8e6f2137d1 Record the sync checkpoint
ci / test-pg (pull_request) Successful in 1m49s
ci / test (pull_request) Successful in 3m5s
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=3e4a79e4133202b537c888a8beeb7c10d82595f4; candidate=8abebff33f0c64be631259e3e60118fdf5d282e6.

Impact: task metadata only.

Refs: .task/feature-svc-agent-backup.md
2026-10-12 03:49:33 +00:00
weichen 8abebff33f Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=3e4a79e4133202b537c888a8beeb7c10d82595f4.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-12 03:48:54 +00:00
weichen 441656c753 Record post-sync governance test evidence
ci / test-pg (pull_request) Successful in 1m22s
ci / test (pull_request) Successful in 4m10s
2026-10-12 03:43:45 +00:00
weichen 5fb381dde9 Record the sync checkpoint
ci / test-pg (pull_request) Successful in 1m11s
ci / test (pull_request) Failing after 2m41s
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=b6307db015da4a3718baadb242c52cb66b024f74; candidate=a9a456efc2fd3bc6630cc65f089c0c6fad58f69b.

Impact: task metadata only.

Refs: .task/feature-svc-agent-backup.md
2026-10-12 03:42:19 +00:00
weichen a9a456efc2 Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=b6307db015da4a3718baadb242c52cb66b024f74.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-12 03:41:54 +00:00
weichen f86ae58c96 Record green rerun and flake analysis in the task card
ci / test-pg (pull_request) Successful in 1m41s
ci / test (pull_request) Successful in 3m53s
2026-10-12 03:36:54 +00:00
weichen e80ae62e90 Record post-sync governance test evidence
ci / test-pg (pull_request) Successful in 1m45s
ci / test (pull_request) Successful in 3m48s
2026-10-12 03:31:48 +00:00
weichen 42ecfe1312 Record the sync checkpoint
ci / test-pg (pull_request) Successful in 1m14s
ci / test (pull_request) Successful in 3m45s
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=af9c2de663be5ff102dcab7698464a645832f569; candidate=67da726e7f6c6dd14e4646997b0a1b22141201a6.

Impact: task metadata only.

Refs: .task/feature-svc-agent-backup.md
2026-10-12 03:30:27 +00:00
weichen 67da726e7f Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=af9c2de663be5ff102dcab7698464a645832f569.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-12 03:29:59 +00:00
weichen dd1e73a31d Record sync and post-sync test evidence in the task card
ci / test-pg (pull_request) Successful in 2m10s
ci / test (pull_request) Successful in 2m48s
2026-10-12 03:21:12 +00:00
weichen 46b490d834 Record the sync checkpoint
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=37e3229538d64867a6a074020a072da925244fcc; candidate=b3a473af3f3f7dee7806312cca436a8f87ca9385.

Impact: task metadata only.

Refs: .task/feature-svc-agent-backup.md
2026-10-12 03:19:15 +00:00
weichen b3a473af3f Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=37e3229538d64867a6a074020a072da925244fcc.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-12 03:18:53 +00:00
weichen b9e64f00ad Record outcomes and next-step recommendations in the task card
ci / test (pull_request) Successful in 3m40s
ci / test-pg (pull_request) Successful in 1m11s
2026-10-12 03:11:51 +00:00
weichen 6f4f2eeff6 Fill the task record PR link and stage conclusions (#417)
ci / test-pg (pull_request) Successful in 1m23s
ci / test (pull_request) Successful in 3m32s
2026-10-12 03:11:33 +00:00
weichen 3395e05c2d Record post-sync test-governance evidence in the task card
ci / test-pg (pull_request) Successful in 1m22s
ci / test (pull_request) Successful in 3m39s
2026-10-12 03:10:40 +00:00
weichen 22e7d75c75 Record task-sync evidence in the task card 2026-10-12 03:09:08 +00:00
weichen b33866d840 Record the sync checkpoint
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=3fa0d3ade8beb6b534c7ffa7505426001c58e284; candidate=20cffd7ad21e98b41a8be7cfd28ccf20f9a65691.

Impact: task metadata only.

Refs: .task/feature-svc-agent-backup.md
2026-10-12 03:09:07 +00:00
weichen 20cffd7ad2 Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=3fa0d3ade8beb6b534c7ffa7505426001c58e284.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-12 03:08:42 +00:00
weichen 6000d07b0e Import test-governance evidence receipt into the task card 2026-10-12 03:08:32 +00:00
weichen 3ca4f3bc35 Add svc.sh agent data-dir snapshots with SQLite-consistent backup
Why: the 2026-10-11 runtime/ deletion lost all agent SQLite data with no
backup; the svc-autorecover closing report left "agent SQLite backup" as
a follow-up and the user asked to land it (recovery plan U2 residue).
Evidence: tests/test_svc_backup.py 11/11 green locally (live WAL writer,
manifest sha, retention, guards); make test-governance full suite green
(159 tests, rerun twice after one unreproduced flake).
Impact: new service-level actions backup/backups; snapshots live in
runtime-backups/<name>/ outside runtime/; rm --purge removes them; pg
backup and other flows unchanged.
Refs: modules/documents/docs/proposals/2026-10-12-service-restart-data-recovery.md r2 (sec 6, U2 residue); task card .task/feature-svc-agent-backup.md.
2026-10-12 03:06:04 +00:00
weichen cf5e5a503a Record the task card for feature-svc-agent-backup
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-svc-agent-backup.md; R0=475654363de3ec72df68d246ffab8217b1cfeab6.

Impact: task metadata only; the feature workspace starts at 475654363d.

Refs: .task/feature-svc-agent-backup.md
2026-10-12 02:48:34 +00:00