Repository navigation
Commit 13fc30b
committed
feat(agents): checkpoint after turns and recover lost sessions from them
A node lost without warning sends no SIGTERM, so the checkpoint on stop
never runs. The harness now also saves in the background after completed
turns (one at a time, at most once per BUZZ_ACP_CHECKPOINT_AFTER_TURN_SECS,
default 600), and the save on stop waits for or cancels a running one. A
cancelled or failed save kills its helper's whole process group.
When a Pod left no termination receipt, the reaper records the newest
checkpoint directly under the session's own prefix instead of `missing`.
turn_completed activity records now carry duration_ms for long-turn alerts.
Signed-off-by: Tee8z <[email protected]>1 parent 9e5e4ca commit 13fc30b
10 files changed
Lines changed: 463 additions & 37 deletions
File tree
- crates
- buzz-acp/src
- buzz-sandbox-reaper/src
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
252 | 255 | | |
253 | 256 | | |
254 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
255 | 274 | | |
256 | 275 | | |
257 | 276 | | |
| |||
0 commit comments