Peach: Local-first video metadata scraper and media manager.
ops: apply formal ledger migrations
Peach local maintenance3ce5ea366e01
diff --git a/docs/HANDOFF.md b/docs/HANDOFF.mdindex 9186b877d..8d21b53fc 100644--- a/docs/HANDOFF.md+++ b/docs/HANDOFF.md@@ -15,6 +15,7 @@ This is durable operating knowledge, not a per-session transcript.- Real ledger: `R:\peach-data\database\ledger.db`; WAL mode; normal browsing legitimately changes play/activity fields.- Tests must create temporary SQLite databases and temporary media files.- Before real migration: SQLite backup, asset/tag counts, `PRAGMA integrity_check`, migration version check, then service smoke test.+- Formal migrations `0000` and `0001` were applied to the real ledger on 2026-08-14. The verified pre-migration recovery point is `R:\peach-data\archive\ledger.pre-migrate-20260814-152821.db`; do not delete it until later migrations have their own verified recovery point.- Media and runtime data remain under `R:\media` and `R:\peach-data`; they are not repository assets.## Operationsdiff --git a/docs/STATUS.md b/docs/STATUS.mdindex 439e27c4b..3e0155fa0 100644--- a/docs/STATUS.md+++ b/docs/STATUS.md@@ -4,11 +4,12 @@ Last verified: 2026-08-14## Runtime-- Production Peach: FastAPI `0.2.0` from `R:\peach-app` on `0.0.0.0:80`, PID observed as 54576; health mode is `fastapi`.+- Production Peach: FastAPI `0.2.0` from `R:\peach-app` on `0.0.0.0:80`, PID observed as 46596; health mode is `fastapi`.- Stash: `127.0.0.1:9999`, PID observed as 35332.- Traffic monitor: running through `RM-TrafficWatch` from `R:\peach-app\.venv`; all probe/sheets tasks use the same project environment.- Runtime Python: 3.14.7. The removed system Python 3.12 invalidated the old venv, which was rebuilt and reverified before production start.-- Real ledger migrations: not applied. `schema_migration` is absent in the real database.+- Real ledger migrations: `0000` and `0001` applied; `peach migrate status` reports zero pending migrations.+- Pre-migration backup: `R:\peach-data\archive\ledger.pre-migrate-20260814-152821.db`.Runtime PIDs are observations, not configuration; always re-check them.@@ -18,13 +19,13 @@ Runtime PIDs are observations, not configuration; always re-check them.- Default ledger connections in the compatibility query layer are read-only; activity/play/feedback writes are explicit.- FFmpeg resolution is centralized: environment, Peach-managed binary, PATH, then temporary Stash fallback.- `R:\peach-data` now separates `database/generated/sources/state/secrets/logs/archive/inbox`; the old empty root Inbox and old Resources/Tools compatibility surface are removed.-- 23 isolated tests passed under Python 3.14 after the repository and data restructure.-- Desktop 1280×720 and mobile 390×844 browser checks passed on the candidate service.-- Production port 80 passed health, home, 2,552-item real read-only list and one-byte `206 Partial Content` Range smoke checks after the switch.+- 23 isolated tests passed under Python 3.14 after the real migration and production restart.+- Real migration preserved 81,873 assets and 59,697 tag links; both live database and backup passed `integrity_check` and `foreign_key_check`.+- Desktop 1280×720 and mobile 390×844 browser checks passed on the same application candidate before the schema-only migration; visual checks were not rerun after migration because no browser instance was connected.+- Restarted production port 80 passed health, home, 24,980-item all-source list, 2,552-item local list and one-byte `206 Partial Content` Range smoke checks.## Next work-1. Apply formal migrations to the real ledger in a maintenance window, with SQLite backup and count/integrity verification.-2. Move FFmpeg/ffprobe to a Peach-managed installation and remove the temporary Stash binary fallback.-3. Extract the remaining query/write functions from `compat_web.py`, then delete that compatibility module.-4. Implement the first real online-source and AI provider adapters behind the existing boundaries.+1. Move FFmpeg/ffprobe to a Peach-managed installation and remove the temporary Stash binary fallback.+2. Extract the remaining query/write functions from `compat_web.py`, then delete that compatibility module.+3. Implement the first real online-source and AI provider adapters behind the existing boundaries.