deploy: Log how a deploy ends when its requester leaves #4

Merged
dev merged 1 commits from deploy-outlive-requester into main 2026-11-26 21:44:44 +00:00

In the disconnect test on slop-cannon (request 5cd2c2), the audit log recorded "cancelled: the requester disconnected" while the activation finished successfully on the box, so neither approvers nor the log could tell whether the deploy took effect.

  • Deploys outlive their requester (ops::outlives_requester). deploy::execute ignores the requester's cancel token. If the requester leaves, server::see_through logs a new detached event and keeps waiting, then logs finished or failed as usual. Other operations still stop when their requester leaves.
  • Activation units are named after the request ID (slop-deploy-<id>-<profile>, previously a random run ID), so if the broker itself goes away mid-deploy, the audit record leads to the units' journals on each node.
  • The web history shows detached in the timeline and keeps the outcome as running until the deploy finishes.
  • docs/design.md and docs/architecture.md describe both.

Tested: cargo clippy --all-targets, nix build (new tests for see_through and the history outcome) and the VM test. No test runs a real deploy here; I can repeat the disconnect test on slop-cannon once palace runs this.

🤖 Generated with Claude Code

In the disconnect test on `slop-cannon` (request `5cd2c2`), the audit log recorded "cancelled: the requester disconnected" while the activation finished successfully on the box, so neither approvers nor the log could tell whether the deploy took effect. - **Deploys outlive their requester** (`ops::outlives_requester`). `deploy::execute` ignores the requester's cancel token. If the requester leaves, `server::see_through` logs a new `detached` event and keeps waiting, then logs `finished` or `failed` as usual. Other operations still stop when their requester leaves. - **Activation units are named after the request ID** (`slop-deploy-<id>-<profile>`, previously a random run ID), so if the broker itself goes away mid-deploy, the audit record leads to the units' journals on each node. - The web history shows `detached` in the timeline and keeps the outcome as running until the deploy finishes. - `docs/design.md` and `docs/architecture.md` describe both. Tested: `cargo clippy --all-targets`, `nix build` (new tests for `see_through` and the history outcome) and the VM test. No test runs a real deploy here; I can repeat the disconnect test on `slop-cannon` once `palace` runs this. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
slop-cannon Bot added 1 commit 2026-11-25 10:43:26 +00:00
deploy: Log how a deploy ends when its requester leaves
CI / Check (pull_request) Successful in 4m54s
CI / Check (push) Successful in 4m44s
7c577051ba
A requester leaving cancelled the request, so the audit log said
"cancelled" while the activation it had started finished on the box.
Deploys now outlive their requester: the broker logs `detached`,
keeps waiting for the activations, and logs how they finished.

If the broker itself goes away, the activations still finish, and
their units are now named after the request ID
(`slop-deploy-<id>-<profile>`), so the audit record leads to their
journals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dev merged commit 7c577051ba into main 2026-11-26 21:44:44 +00:00
dev deleted branch deploy-outlive-requester 2026-11-26 21:44:44 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dev/slop-broker#4