tcai_convergence
Inspect or configure the recursive halting criterion for convergence. Adjust thresholds for free energy, task quality, epistemic value, and patience to determine when the loop halts.
Instructions
Inspect or configure the recursive double-loop halting criterion (v2.7). 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) |