Compile and serialize a plan

The compiler turns a loaded Spec into an execution plan. The engine runs that plan. Use Uptimely to build the complete project bundle.

from uptimely import Compiler, spec
from uptimely import plan as plan_io

document = spec.load_spec("spec.json")
execution_plan = Compiler().compile(
    document,
    features=["health_signal_normalized"],
)
plan_io.export_json(execution_plan, "execution_plan.json")

See Spec validation for declaration checks, Binding inspector for implementation checks, and Execution plan versioning for compatibility and rebuild requirements.