Skip to content

Enqueue a DELETE_BRANCH compensation when a saga plants its loop branch #433

Description

@hadamrd

Parent: #431

Part of epic: "Compensate the branch a failed worker abandons"

At dispatch, when a saga is created for a worker that plants a loop/ branch, append Compensation(kind=DELETE_BRANCH, target='loop/') to the saga's compensation tuple alongside the existing REMOVE_WORKTREE compensation. Primary falsifiable acceptance: a saga created by the dispatch path for issue #n carries a DELETE_BRANCH compensation whose target equals the exact branch name planted for that worker.

Customer story

As an operator dispatching workers on a real repository: every branch a worker creates must be registered for reclamation at the moment it is created, so no failed worker can leak a branch the control plane doesn't know to delete.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions