Gear Shifter

pi-cyberneticsourcetypescript
Path: pi-cybernetic/src/engines/gear-shifter.tsRelative: src/engines/gear-shifter.tsSubproject: pi-cyberneticCategory: cybernetic-core
Lines: 313Bytes: 12,599Imports: 10Exports: 3

Content Preview

  1. /**
  2. * Loop 4 — GearShifter. Deterministic memory router (ADR-005..009).
  3. * Preserves the MemoryEngine hook surface while selecting exploration, focus,
  4. * or debug context without LLM-mediated routing.
  5. */
  6. import type { AgentMessage } from "@earendil-works/pi-agent-core";
  7. import type { Message, TextContent, UserMessage } from "@earendil-works/pi-ai";
  8. import type { Gear, GearShiftAudit, GearShiftReason, MemoryConfig, TurnMetrics } from "../types/index.ts";
  9. import type {
  10. GoalCheckpointMessage,