Expand description
Validation utilities for on-disk state. Validate Ito repository artifacts.
This module provides lightweight validation helpers for specs, changes, and modules.
The primary consumer is the CLI and any APIs that need a structured report
(ValidationReport) rather than a single error.
Structs§
- Report
Builder - A stateful builder for collecting validation issues.
- Resolved
Module - A resolved module reference (directory + key paths).
- Validation
Issue - One validation finding.
- Validation
Report - A validation report with a computed summary.
- Validation
Summary - Aggregated counts for a validation run.
Constants§
- LEVEL_
ERROR - Validation issue is an error (always fails validation).
- LEVEL_
INFO - Validation issue is informational (never fails validation).
- LEVEL_
WARNING - Validation issue is a warning (fails validation in strict mode).
Functions§
- error
- Creates an
ERRORlevel issue. - info
- Creates an
INFOlevel issue. - issue
- Construct a
ValidationIssuewith a fixedlevel,path, and message. - report
- Convenience constructor for a
ReportBuilder. - resolve_
module - Resolve a module directory name from user input.
- validate_
change - Validate a change’s delta specs by change id.
- validate_
change_ dirs_ repo_ integrity - Validate change directory naming and cross-references.
- validate_
module - Validate a module’s
module.mdfor minimal required sections. - validate_
spec - Validate a spec by id from
.ito/specs/<id>/spec.md. - validate_
spec_ markdown - Validate a spec markdown string and return a structured report.
- validate_
tasks_ file - Validate a change’s tasks.md file and return any issues found.
- warning
- Creates a
WARNINGlevel issue. - with_
line - Attach a 1-based line number to an existing issue.
- with_
loc - Attach a 1-based line + column location to an existing issue.
- with_
metadata - Attach structured metadata to an existing issue.
Type Aliases§
- Validation
Level - Severity level for a
ValidationIssue.