resume active sessions

This commit is contained in:
ari committed 2026-11-01 15:52:46 -05:00
1 parent 9e94c05fb6
commit 917a361370
19 files changed
+871 -42

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ nix flake check --no-build
## Behaviour you must not break
- The `state.json` format: existing owners, sessions and permissions must still load. JSON field names are effectively a public format.
- The `state.json` format: existing owners, sessions and permissions must still load. JSON field names are effectively a public format. The same goes for `in-flight-<channel>.json`: turns written by the previous build are resumed by the next one.
- The cluster wire protocol: frame types and call names in `manager/cluster.go`. A master and slaves may run different versions for a while.
- Machine names (`u-<id>`, `c-<id>`), unit names (`slackerbot-<machine>.service`), and paths (`/var/lib/slackerbot`, the agent env file at `/var/lib/slackerbot/agent.env`, which must match `nix/container.nix`).
- Anything that decides whether a message is a command or goes to the agent: `commands.ErrNotCommand`. Ordinary sentences must still reach the agent.