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.
StageOutcome
Result of one executed aftercare stage.

Functions§

classify_exit
derive_outcome
Maps complete evidence to the run’s terminal outcome.
wants_merge
Whether the evidence so far justifies attempting a merge. A test stage that ran and failed blocks the merge; an unconfigured test stage does not, because the operator chose auto-merge policy without one.
wants_tests
Whether exit and commit evidence justify running the test stage. Tests exist to qualify committed work for merging, so anything else skips them.