Skip to main content

Module outcome

Module outcome 

Source
Expand description

Outcome derivation. Evidence in, verdict out: this module is the only place a run’s terminal outcome is decided, and it is pure so policy can be tested without a daemon, a process, or a repository.

Structs§

RunEvidence
Everything observed about one finished run. Fields are facts gathered by the supervisor; none of them are claims made by the agent.

Enums§

ExitClass
Classification of how the agent process ended. This is the adapter-level reading of the raw wait status; vendor-specific classifications such as rate limits join in a later phase.
FlowHalt
Which stage a halted flow walk stopped on. The distinction the outcome turns on is only ever first-versus-later: the first stage is the run’s own attempt at the work and its failure is fully described by the process exit already in evidence, while a later one halting means earlier stages passed and whatever they produced is worth preserving.
MergeOutcome
Result of an attempted merge of the run branch into the default branch.
Outcome
Terminal classification of a run. Cancelled and Orphaned release the ticket back to ready; the other outcomes are also recorded on the ticket.

Functions§

classify_exit
derive_outcome
Maps complete evidence to the run’s terminal outcome.