engine
engine
¶
Validation engine — executes validation rules against sheet outputs.
Dispatches to type-specific check methods: file_exists, file_modified, content_contains, content_regex, and command_succeeds.
Attributes¶
Classes¶
ValidationEngine
¶
Executes validation rules against sheet outputs.
Handles path template expansion and dispatches to type-specific validation methods.
Initialize validation engine.
Source code in src/marianne/execution/validation/engine.py
Functions¶
expand_path
¶
Expand path template with sheet context variables.
Supports: {sheet_num}, {workspace}, {start_item}, {end_item}
Both workspace-relative and absolute paths are allowed. Agents work
in backend.working_directory (typically the project root) and
create files there — restricting validations to the workspace
directory would prevent checking those files.
Source code in src/marianne/execution/validation/engine.py
snapshot_mtime_files
¶
Snapshot mtimes for all file_modified rules before sheet execution.
Source code in src/marianne/execution/validation/engine.py
get_applicable_rules
¶
Get rules that apply to the current sheet context.
run_validations
async
¶
Execute all validation rules and return aggregate result.
Source code in src/marianne/execution/validation/engine.py
run_staged_validations
async
¶
Execute validations in stage order with fail-fast behavior.