← Files AI PsychiatryARCHIVED FILE

.ai/executive-function/state-machine.json

1.26 KB · Oct 2, 2026 · 00:30 UTC

↓ Download file

{
  "canonical_source": ".ai/executive-function/state-machine.md",
  "states": [
    "idle",
    "focused",
    "drift_warning",
    "attention_reset",
    "strategy_reset",
    "isolated",
    "blocked",
    "complete"
  ],
  "initial_state": "idle",
  "terminal_states": [
    "blocked",
    "complete"
  ],
  "limits": {
    "same_strategy_attempts": 3,
    "verification_passes": 2,
    "critic_rounds": 2,
    "nested_job_depth": 3,
    "agent_delegation_depth": 2,
    "work_in_progress": 1
  },
  "transitions": [
    {
      "from": "idle",
      "event": "objective_locked",
      "to": "focused"
    },
    {
      "from": "focused",
      "event": "drift_detected",
      "to": "drift_warning"
    },
    {
      "from": "drift_warning",
      "event": "reset_attention",
      "to": "attention_reset"
    },
    {
      "from": "attention_reset",
      "event": "same_strategy_failed",
      "to": "strategy_reset"
    },
    {
      "from": "strategy_reset",
      "event": "scope_isolated",
      "to": "isolated"
    },
    {
      "from": "isolated",
      "event": "cannot_progress",
      "to": "blocked"
    },
    {
      "from": "focused",
      "event": "proof_complete",
      "to": "complete"
    }
  ]
}

SHA-256: f19d060fd66bbfc90bead9babb4934f1a178c7671e45fa88c569e364f26675f2