tcai_convergence
Configure or inspect the halting criterion that stops loops when variational free energy stabilizes, task quality is sufficient, and epistemic value is low over consecutive cycles.
Instructions
Inspect or configure the recursive double-loop halting criterion (v2.6). With no arguments, returns the current satisfaction state and active thresholds. With arguments, updates them. The loop halts only when variational free energy has settled (|ΔF| ≤ epsFreeEnergy) AND realized task quality is high (≥ minTaskQuality) AND epistemic value is low, sustained over patience cycles — stationarity alone is insufficient (Legros 2026 §2.2/§4.3).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| epsFreeEnergy | No | Halt threshold: absolute |ΔF| ≤ (nats, default 0.02) | |
| relFreeEnergy | No | Halt threshold: |ΔF| ≤ rel·F, scale-free (default 0.03) | |
| minTaskQuality | No | Halt threshold: realized task quality ≥ (default 0.6) | |
| maxEpistemic | No | Halt threshold: expected info gain ≤ (default 0.1) | |
| patience | No | Consecutive satisfied cycles required to halt (default 3) |