You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Containment lifecycle: update status after approval, remind only for applied blocks, list active containment #209
#168 (PR #202) records each containment request as containment-<action_id>.json with status: "pending_approval", and IP blocks also under {org}/containment_expiry/.
Problems
The status never changes. When the action is approved and runs (or fails, or is rejected, or the approval expires), the record still says pending_approval. There's no way to answer "which pods are isolated right now?".
Expiry reminders fire for blocks that were never applied.remind_expired_blocks reminds about every block request that reached its expires_at, including ones nobody approved, and tells people to remove a rule that doesn't exist.
Expiry counts from the request, not from when it was applied.
Proposed fix
Link the approval reference to the containment record. On execution, set status to applied/failed with applied_at; on rejection, rejected; when the approval expires, expired. This builds on the approved-action audit issue.
Set expires_at from applied_at, and send reminders only for applied blocks.
GET /orgs/{org}/containment?status=applied (viewer) and an MCP tool list_containment showing active isolations, cordons, disabled keys and blocks with their reverse commands.
Tests: the full lifecycle; no reminder for an unapproved block; the listing.
Activity