trajectory-failure-sentinel
Purpose
Detect failure onset early enough to recover before cost or state damage accumulates.
Use when
- multi-step agent/pipeline active
Do not use when
- single deterministic step
Required inputs
- plan
- step events
- tool results
- state changes
- hypotheses
- cost
- failure signatures
Outputs
- trajectory health
- onset step
- failure class
- recovery recommendation
- basis
Procedure
- compare expected/actual progress.
- detect ignored evidence/no-ops.
- detect unsupported commitment.
- detect widening hypotheses.
- estimate recoverability.
- signal replan/escalation.
Guardrails
- uncertainty alone is not failure.
- distinguish exploration from drift.
- record intervention evidence.
Integration points
- turn orchestrator
- progress ledger
- recovery
Failure modes to test
- hard reasoning interrupted
- signal after irreversible action
Operational metrics
- lead time
- early recovery
- false intervention
Completion requirements
The skill is complete only when structured outputs are emitted, evidence references resolve, declared postconditions are checked, and the execution wrapper records the result. Any memory remains a candidate until framework promotion controls accept it.
Research basis
Runtime binding
- Family:
loop - Binding:
runtime.operational_controls.run_control - Activation: metadata is discoverable at startup; load this body only after selection.
- Effects: read-only control-plane analysis unless a separately admitted composed capability declares more.
Completion and evidence
Return a structured decision, reasons, outputs, and evidence references. Treat unresolved provenance, permissions, required inputs, or postconditions as a fail-closed result. Candidate memory, research, generated skills, and speculative work never become active without separate admission and evidence.