# CAIN VIGIL — Viability

`cain/vigil/envelope.py`, `cain/vigil/evaluator.py`.

`AutonomyViabilityEnvelope` defines the multidimensional region inside which autonomous authority may be released.
`VigilEvaluator.evaluate(...)` runs the full assessment deterministically:

state → envelope → uncertainty → observability → world-state → drift → capability/assurance velocity → prediction
→ authority release → containment.

## Outputs
`state` (after transition), `envelope` (inside + violations), `uncertainty`, `observability`, `world_state`, `drift`,
`capability_assurance`, `prediction`, `release`, `containment`, `viable`.

## Invariant
`viable` is true only when the effective state is VIABLE/RECOVERY **and** the release decision is
ALLOW/ALLOW_WITH_RESTRICTION. Any contraction is reported with its cause; `UNKNOWN` never becomes viable.

## Status
IMPLEMENTED, TESTED.
