feat: cleanup policies (M3 part 5)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Daniel SamsonandClaude Sonnet 5.5 committed 2026-10-17 13:25:59 +01:00
1 parent 8b8aa068f9
commit ab507c1a7e
3 files changed
+270

No files matched your search

+7
View File
@@ -36,3 +36,10 @@ Guidance for AI coding agents working in `zag`, the Zig port of the
| `src/config.zig` | Config structs, defaults, TOML loading/merging, `ZAG_*` env overrides, validation |
| `src/loadclass.zig` | `.load` whitelist parsing and load-level classifier |
| `src/defaults.zig`, `src/defaults/` | Default `zag.conf` and `*.load` files embedded in the binary |
| `src/retry.zig` | Retry decision and backoff/jitter delay |
| `src/proc.zig` | Spawn with log redirection, process-group signals, liveness |
| `src/runner.zig` | Runs one job: heartbeat, timeout, kill, completion, retry |
| `src/recovery.zig` | Startup crash recovery of orphaned running jobs |
| `src/scheduler.zig` | Per-load-level concurrency, thread per job, `killJob` |
| `src/usage.zig` | `ps`/`nvidia-smi` sampling, `usage.csv`, summaries |
| `src/cleanup.zig` | Automatic and manual (`zag clean`) cleanup planning |