Skip to main content

Component Architecture

This page is a tour of the canonical Python modules under scripts/goal-runner/.

Module responsibilities

ModuleResponsibility
orchestrator.pyPer-step dispatch and state transitions.
orchestrator_cli.pyThe CLI entrypoint (goal-run.ps1 → this).
goal_registry.pyMaterializes contracts into the runtime store.
program_controller.pyCoordinates IMPs across the program.
program_driver.pyDelegates child goal execution.
program_driver_cli.pyProgram Goal CLI seam.
runtime_store.pySQLite-backed state API.
state_machine.pyFoundation-artifact terminalization rule.
next_action_router.pyComputes the next dispatch record.
receipt_writer.pyPersists task receipts.
scoped_owner_gate.pyGate scope / source / approver validation.
owner_gate_manager.pyGate CRUD helpers.
goal_gate_cli.pyThe goal-gate.ps1 CLI.
signed_ticket_schema.pyTicket payload schema.
signed_ticket_verifier.pyssh-keygen -Y verify wrapper.
audit_integrity.pySHA1 validation, deviation accounting.
adapters/*Adapter implementations.