Mast Failure Modes
MAST v1 is an optional annotation, not a runtime judge or a recovery policy.
MAST labels on existing failure records
MAST v1 is an optional annotation, not a runtime judge or a recovery policy. The canonical vocabulary is `$AIWG_ROOT/agentic/code/addons/aiwg-utils/data/mast-failure-modes.v1.json`. Its 14 IDs span specification/system design, inter-agent misalignment and task verification. Definitions are concise operational paraphrases; positive and counter-examples are synthetic illustrations, not research traces. The sibling `schemas/mast-failure-modes.v1.schema.json` pins vocabulary version `1.0.0` and defines `#/$defs/failureModes` for both existing record owners.
Each annotation has `id`, `category`, nonblank `evidence`, `labeler` (`human` or `judge`) and nonblank `labelerVersion`. Evidence must identify a trace location and the observation supporting that particular mode. `labelerVersion` names the human rubric revision or exact judge configuration version/digest. A label never establishes causation or correctness on its own. Unknown IDs, mismatched categories, missing evidence and unknown labelers are rejected. Omitting the field means unlabeled; an empty supplied array makes no diagnostic claim.
The existing `MissionConductor` accepts an optional host `labelFailure(failure)` callback. It receives a detached failure entry and returns the supported labels or `undefined` to abstain. Only failure transitions invoke it, including routing failures; successful and planned cycles receive no labels. Labels are retained on the existing `CycleResult.failureModes`, including failed entries carried on dependency-aware resume. On authorized retry, the prior failure's labels survive in the existing recovery attempt evidence even if the retry succeeds. Explicit labels in host retry evidence take precedence. Invalid annotations are rejected; no label is inferred. The hook also sees repeated failures separately, so cite the exact attempt.
`prepareWorkerRetry(options, context)` accepts optional `options.failureModes` only with authenticated predecessor evidence. The validated detached array stays on that existing retry evidence and `workerRetryRecordFields` carries it into the existing invocation record (and optional `missionRetry` evidence). Labels describe the predecessor failure, not the new attempt. No new CLI flag, receipt, store or always-on judge is introduced. Owned-stop proof, retry authorization and health/attempt budgets remain required. Omitted annotations preserve existing ledger, receipt and output bytes.
Calibrating a MAST judge
Follow the existing procedure and #4557 substitution protocol in `$AIWG_ROOT/docs/decision/evaluator-calibration.md` with operator-sourced human labels. Freeze the vocabulary, annotation unit (for example one failed cycle), trace packet, judge model/configuration, prompt, few-shot example set and rubric digests. Keep calibration examples separate from held-out traces. All annotators must receive the same complete evidence packet and commit blind initial labels. Do not treat unlabeled traces as negative labels; retain abstentions and exclusions.
For multi-label traces, predeclare one binary present/absent criterion per MAST ID and report per-mode counts, confusion tables and Cohen's κ against human labels (with a declared adjudication/pairing rule and uncertainty method). Report exact label-set agreement separately. State how missing/insufficient trace evidence and undefined κ denominators are handled; never map abstentions to absence. Use nominal primary-mode criteria only if that distinct task is preregistered.
The existing `CalibrationStudy.substitution` test measures exact agreement per criterion, not κ. Bind the judge configuration digest and declare per-mode tolerances, sampling seed, minimums, resamples and alpha before seeing results. Use `aiwg-eval judge-collect --run-dir <archive> --analyze-only` for offline analysis. Report substitution alongside κ; do not rename one measurement as the other. Substitution is relative to the observed human pool, not ground truth. Judge labels remain advisory until calibrated; calibration does not authorize a label-based gate or a change in retry policy in this feature.
Research attribution and limits
Issue #4581 quotes REF-3263, MAST (Cemri et al., NeurIPS 2025 Datasets and Benchmarks; corpus grade A−, GRADE MODERATE): 14 modes grounded in 150 traces, applied to 1,642 traces across seven frameworks. Human agreement after calibration was κ = 0.88 (0.79 on new frameworks). A few-shot o1 judge reached κ = 0.77 / F1 0.80 against held-out experts, versus κ = 0.58 without the few-shot examples. Targeted interventions raised ChatDev ProgramDev success from 25.0% to 40.6%. These are reported research results, not measured AIWG outcomes or thresholds.
MAST is not exhaustive; scale rests on judge labels. Upstream issue #13 reports label disagreement in one released subset, and framework rates are sensitive to stratification. The corpus was unavailable for this implementation; research claims and caveats here are limited to the supplied issue text. No labeled traces are collected and no AIWG judge is claimed calibrated by shipping this vocabulary.