Skip to main content

Goal Runner

The Goal Runner is the deterministic backend that materializes and dispatches goals. Its entrypoints are scripts/goal-runner/goal-run.ps1 (PowerShell) and scripts/goal-runner/orchestrator_cli.py (Python).

Architecture

Dispatch path

  1. goal-run.ps1 -GoalId … is invoked.
  2. The PowerShell module forwards to orchestrator_cli.py.
  3. orchestrator_cli.py detects whether the goal is goal_type: PROGRAM and routes accordingly.
  4. For normal goals, GoalRegistry.materialize is called.
  5. Orchestrator.step advances the goal one tick.
  6. role_dispatcher.dispatch issues the next task.
  7. next_action_router.compute writes the next-action record.
  8. The CLI prints a JSON summary.

CLI surface

CommandPurpose
goal-run.ps1Run or resume a goal.
goal-status.ps1Print durable state for a goal.
goal-pause.ps1Pause a goal.
goal-resume.ps1Resume a paused goal.
goal-cancel.ps1Cancel a goal.
goal-recover.ps1Recover from a known failure mode.
goal-doctor.ps1Detect split-brain runtime.
goal-gate.ps1List/inspect/approve/reject gates.
program-status.ps1Read-only program-level snapshot.
ingest-github-review.ps1Ingest a GitHub review into a gate.

See CLI Reference → for the full operator reference.