Overview
Guidance Modules are the turn-to-turn intelligence layer for Autopilot Full Auto runs. They replace the manual “continue” loop with a structured decision system that can be evaluated, improved, and composed over time.Definitions
- Turn: one Codex execution window that ends in
turn/completedorturn/error. - Run: a multi-turn Full Auto session composed of turns.
- Guidance: a soft recommendation for what to do next.
- Guardrails: deterministic constraints that can override guidance.
Why They Exist
Without guidance, long runs rely on ad hoc prompts and manual intervention. A Guidance Module:- Sees the full context of the last turn
- Understands goal, constraints, and budget
- Chooses the next action with measurable confidence
- Enforces deterministic guardrails for safety
- Logs every decision for replay and optimization
Guidance Contract (Conceptual)
Current Pipeline (Full Auto Today)
Full Auto currently runs four concrete steps between Codex turns:- Turn Summary → Build a
FullAutoTurnSummaryfrom Codex events. - DSPy Decision → Choose the next action and optional prompt.
- Guardrails → Enforce budget/safety limits and override if needed.
- Dispatch → Execute the action and start the next turn if continuing.
Turn Summary Inputs (Examples)
turn/plan/updated,turn/diff/updatedthread/tokenUsage/updateditem/commandExecution/requestApproval,item/fileChange/requestApprovalitem/tool/requestUserInputturn/error,turn/completed
Guardrail Rules (Current)
turn_failed-> stopturn_interrupted-> pausemax_turns/max_tokens-> stopno_progress_limit-> stoplow_confidenceorreview-> pause
Decision Records
Every decision is logged with:- Input summary + hashes
- Decision output + confidence
- Guardrail audit trail
- Versioned model/package info
Future Direction
The long-term goal is an extensible, packageable guidance stack:- Composable modules (BudgetPolicy, NextActionSelector, Verifier)
- Clear signatures for drop-in replacements
- Replayable decision records with versioned manifests
- Evaluation and optimization loops (DSPy optimizers)