Expand description
Core rotation execution pipeline.
A Revoked or Closed session fails the attempt up front; an Expired one is refreshed by
the gate. execute_by bounds only the target-side steps (rotate, verify, terminate sessions),
not the server-side cipher write and report.
ModulesΒ§
- cipher π
- The vault side of a rotation attempt: the pre-flight dry run and the cipher write (including the 409 re-check), plus fetching, checking and re-encrypting the cipher. The stage fixes how a rejection is reported.
- gate π
- The gate for target-side steps: lease, cancellation, session and connectivity checks.
StructsΒ§
- Attempt π
- One attemptβs inputs, shared by its steps.
- Cipher
Written π - Proof that the cipher write succeeded.
- Execution
Context π - Inputs to
execute. - Verified π
- Proof that verify succeeded.
EnumsΒ§
- Abort
Reason π - Why a gate aborted the rotation without reporting. The serverβs release sweep reclaims the job.
- Execution
Result π - The outcome of a single
executecall. - Halt π
- Why an attempt stopped before success: report a failure, or abort unreported.
- Target
Step π - A gated, target-side integration step.
FunctionsΒ§
- abort_
from_ πapi - The abort for an error that ends the attempt unreported, if it is one.
- execute π
- Runs one rotation attempt: a cipher pre-flight check, then resolve, generate, rotate, verify, write cipher, terminate sessions and report.
- halt_
from_ πapi - Maps an API error to a halt: abort when the attempt or session is gone, else report
Internal. - report_
failure_ πabsorb - Reports a rotation failure, absorbing report errors. Also used by the claim loop, before an
ExecutionContextexists.