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§
- Exit
Class - 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.
- Flow
Halt - 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.
- Merge
Outcome - Result of an attempted merge of the run branch into the default branch.
- Outcome
- Terminal classification of a run.
CancelledandOrphanedrelease the ticket back toready; the other outcomes are also recorded on the ticket.
Functions§
- classify_
exit - derive_
outcome - Maps complete evidence to the run’s terminal outcome.