features/orchestration/orchestration library

Classes

CodexTotals
Aggregate token + runtime totals tracked by the scheduler across all runs.
OrchestrationEvent
Generic high-level scheduler event for observability.
RetryEntry
Snapshot of a queued retry.
RunAttemptStatus
Snapshot of one attempt at a point in time.
RunningEntry
State the scheduler tracks for a currently running worker.
Scheduler
Single-authority scheduler that owns dispatch, reconciliation, and retries.

Enums

RetryKind
Distinguishes continuation retries (after a successful exit) from failure-driven retries.
RunAttemptPhase
Phases a single agent attempt transitions through.

Typedefs

PromptBuilder = String Function(Issue issue, int? attempt)
Builds a rendered prompt for one attempt. The scheduler stays decoupled from the prompt renderer so tests can swap in deterministic builders.