Strategic

pi-cyberneticsourcetypescript
Path: pi-cybernetic/src/engines/strategic.tsRelative: src/engines/strategic.tsSubproject: pi-cyberneticCategory: cybernetic-core
Lines: 387Bytes: 13,868Imports: 5Exports: 4

Content Preview

  1. /**
  2. * Loop 1 — StrategicEngine. Homeostatic regulator over Ω_goal (P3, P5).
  3. *
  4. * pi-agent-core 0.79 exposes `shouldStopAfterTurn` only on the low-level loop
  5. * config, not on the Agent class. At the Agent level this engine therefore
  6. * regulates through the surfaces that DO exist:
  7. * - turn_end events (via subscribe) → checkpoint evaluation
  8. * - agent.steer() → GoalState re-injection + re-anchoring
  9. * - prepareNextTurn() → thinking-level/model escalation
  10. *