quak backup writes each file's ML data into its JSON (closes #163) #172

Merged
clawbot merged 1 commits from issue-163-backup-ml-data into next 2026-10-06 05:13:28 +02:00
1 Commits
Author SHA1 Message Date
sneak b886943a6d quak backup writes each file's ML data into its JSON (closes #163)
check / check (push) Successful in 2m33s
lib.backup() now waits for an ML data fetch, joining the one its refresh
started or starting one, before it writes the per-file JSON, and each
file's JSON carries the cached payload as mlData. When the fetch fails,
each file with no cached ML data gets mlDataError and an entry in
failures.json, so the result counts it as failed and quak backup exits 1;
the next run fetches again.

Judgement call: the wait comes after the originals are downloaded, so the fetch runs alongside the downloads.
Judgement call: a failed ML fetch is recorded per file in failures.json, which is how the exit code goes non-zero without changing src/cli-commands.ts.

Model: opus-5-5
2026-10-06 00:49:14 +00:00