Skip to main content

Module env_class

Module env_class 

Source
Expand description

Classify a failed run as a workflow failure (the skill is broken) vs an environment failure (network/credentials/missing binary) so a flaky network never marks a workflow Broken (workflow-engine v2, Layer 4).

Classification is heuristic; the confidence field lets the Broken fast-path (P4) require high-confidence workflow failures before demoting, and lets the user override via mur run --env-class workflow|env.

Structs§

EnvClassification
Result of classifying a failure’s stderr/output.

Functions§

classify_failure
Heuristic stderr classifier. Zero env markers → likely a workflow bug (moderate confidence); one marker → likely environmental; several → almost certainly environmental.