orxtra v0.13.0 /scheduler.src.orxtra.scheduler._validator
On this page

validate_task_tree checks a WorkflowConfig for structural errors: execution-mode conflicts, missing conditional fields, headless-mode Overseer restrictions, dependency cycles, variable collisions.

#scheduler.src.orxtra.scheduler._validator

#scheduler.src.orxtra.scheduler._validator

#_count_execution_modes

python
def _count_execution_modes(task: TaskSpec) -> int

Count how many execution modes are set on a task.

#_validate_agent_fields

python
def _validate_agent_fields(task: TaskSpec, errors: list[str]) -> None

Validate agent-specific required fields.

#_validate_conditional_fields

python
def _validate_conditional_fields(task: TaskSpec, errors: list[str]) -> None

Validate fields required conditionally (retry, for_each).

#_validate_task

python
def _validate_task(task: TaskSpec, errors: list[str], seen_names: set[str], *, headless: bool=False) -> None

Validate a single task, recursing into subtasks.

#_validate_dependencies

python
def _validate_dependencies(config: WorkflowConfig, errors: list[str]) -> None

Validate dependency references and cycles.

#_validate_variable_collisions

python
def _validate_variable_collisions(config: WorkflowConfig, errors: list[str]) -> None

Check for variable name collisions.

#validate_task_tree

python
def validate_task_tree(config: WorkflowConfig, *, headless: bool=False) -> list[str]

Validate a workflow config.

Returns list of error messages (empty = valid). When headless=True, rejects tasks that require an Overseer (context_refinement, decision_point).

Search