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.
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.