feat(retention): implement Piece 2 job archival, CLI wiring, and rotation driver

This commit is contained in:
operator
2026-10-07 03:28:38 +00:00
parent fff5556eb6
commit c11d1d83ae
7 changed files with 1003 additions and 24 deletions
+2
View File
@@ -22,6 +22,7 @@ fail=0
"$BIN/retention-rotate-chat-history.sh" || fail=1
"$BIN/retention-rotate-job-log.sh" || fail=1
"$BIN/retention-archive-followups.py" || fail=1
"$BIN/retention-archive-jobs.py" scan || fail=1
echo "--- verification ---"
@@ -40,6 +41,7 @@ done
echo "--- live sizes after run ---"
ls -la "$ROOT/logs/chat-history.jsonl" "$ROOT/job-log.jsonl" "$ROOT/followups.json" 2>/dev/null || true
echo "active jobs: $(ls -1 "$ROOT/jobs"/*.json 2>/dev/null | wc -l), archived jobs: $(ls -1 "$ROOT/jobs/archive"/*.json 2>/dev/null | wc -l)"
echo "=== retention-run done rc=$fail ==="
exit $fail