Skip to content

orchestrator

diapason.learning.spec_search.orchestrator

SpecSearchOrchestrator: top-level driver for a learning session.

Wires diagnose (M2) → plan (M3) → execute (M4) → gate (M5) into a single run(trigger) method. All dependencies are injected.

See spec §3, §7.2, §7.7.

SpecSearchOrchestrator

Top-level driver for a spec-search learning session.

All dependencies are injected so tests can mock everything.

from_config(config, *, teacher_engine, trace_store, benchmark_samples, student_runner, judge, session_store, checkpoint_store, diapason_home, scorer=None) classmethod

Build a single-session orchestrator from a SpecSearchLearningConfig.

Hyperparameters (teacher model, gate tolerance, autonomy mode, etc.) come from config; runtime primitives that cannot be expressed in TOML (engine instances, trace store, judge, etc.) must be injected.

See configs/diapason/examples/spec-search-quickstart.toml for the TOML schema and examples/diapason/spec_search_quickstart.py for an end-to-end wiring example.

run(trigger)

Execute a full spec-search session.

Returns the completed LearningSession.