Repository navigation
Commit 0312426
committed
feat(agents): add the sandbox reaper reconcile engine and health server
Add the per-namespace reconcile pass: classify each managed Sandbox from
its annotations and bound Pod, gather checkpoint evidence, and apply the
planned tombstone or delete with resourceVersion/UID preconditions,
re-reading on CAS conflicts and recording Kubernetes Events and metrics.
A Pod watch keeps termination-log receipts after Pods are deleted.
Receipts live in memory only. When the bound Pod is gone and no receipt
was observed (a reaper restart or a watch gap), the receipt is treated as
unknown: the newest object listed in the session's own prefix is
recorded, an S3 failure defers the session, and only an empty listing
records a missing checkpoint.
Add the /metrics, /healthz, and /readyz router. Each pass has a 60-second
deadline; liveness records pass starts and readiness records successes,
so a slow S3 or apiserver fails readiness without restarting the reaper.
Scenario and property tests for the pass follow in the next layer.
Signed-off-by: Tee8z <[email protected]>1 parent 32be8a9 commit 0312426
6 files changed
Lines changed: 1136 additions & 0 deletions
File tree
- crates/buzz-sandbox-reaper
- src
- docs
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
| 29 | + | |
22 | 30 | | |
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
26 | 34 | | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
0 commit comments