Expand description
Validator: checks a parsed AST for AGM spec compliance.
Produces a DiagnosticCollection of errors and warnings covering file-level
checks, node-level checks, reference resolution, cycle detection, field
compatibility, code block validation, and more.
§Validation passes
- File-level (
file): header required fields, at least one node. - Node-level (
node): ID pattern/uniqueness, summary, dates, status. - Structural per-node (
code,verify,context,orchestration,execution,memory): structured sub-field validation. - Type schema (
type_schema): per-type field schema enforcement. - Cross-node (
references,cycles,compatibility): reference resolution, cycle detection, conflict detection. - Cross-package (
imports): import resolution and cross-package refs. Only runs whenValidateOptions.import_resolverisSome.
Modules§
- code
- Code block validation (spec S23, S23.6).
- compatibility
- Conflict detection between active nodes (spec S11).
- context
- Agent context validation (spec S25).
- cycles
- Depends-chain cycle detection (spec S11).
- execution
- Execution state validation (spec S26).
- file
- File-level validation (spec S8, S9).
- imports
- Import validation (spec S10).
- memory
- Memory entry validation (spec S28).
- node
- Per-node structural validation (spec S11, S12).
- orchestration
- Orchestration node validation (spec S13.10, S27).
- references
- Reference resolution across relationship fields (spec S11).
- type_
schema - Type schema enforcement (spec S14).
- verify
- Verify entry validation (spec S24).
Structs§
- Validate
Options - Options controlling validation behavior.
Functions§
- validate
- Validates a parsed AGM file against all spec rules.