pub enum Transition {
Claim,
Start,
Submit,
Verify,
}Expand description
Task lifecycle transition whose relation gates are evaluated.
| Transition | From | Relations | Decisions |
|---|---|---|---|
Claim | Planned | FS, SS | yes |
Start | Claimed | FS, SS | yes |
Submit | InProgress | FF, SF | no |
Verify | Submitted | all four | yes |
A claim reserves only work that could start now, so it shares the start gates. Submission is the owner’s finish claim and verification the accepted finish: both must respect FF/SF. Verification also re-checks FS/SS and decisions, so a restored waiver or gate applies again before acceptance.
Variants§
Claim
Reserve planned work for an owner.
Start
Begin executing claimed work; records the start event.
Submit
Request independent verification; records the submission event.
Verify
Accept the submitted result; records the finish event.
Implementations§
Source§impl Transition
impl Transition
Sourcepub fn lifecycle(self) -> WorkStatus
pub fn lifecycle(self) -> WorkStatus
Lifecycle state the transition leaves.
Sourcepub fn governs(self, kind: DependencyKind) -> bool
pub fn governs(self, kind: DependencyKind) -> bool
Whether a relation constrains this transition of its successor.
Sourcepub fn starts(self) -> bool
pub fn starts(self) -> bool
Whether this transition is gated as the successor’s start, where a provisional edge may accept a pending predecessor attempt.
Sourcepub fn checks_basis(self) -> bool
pub fn checks_basis(self) -> bool
Whether a basis on a rejected predecessor attempt prevents this transition: finishing work built on a rejected result would hide the rejection.
Sourcepub fn checks_decisions(self) -> bool
pub fn checks_decisions(self) -> bool
Whether open decisions on the work or its containers prevent this transition.