pub fn validate_spec_output_from_log(
spec_id: &str,
schema_path: &Path,
logs_dir: &Path,
) -> Result<Option<ValidationResult>>Expand description
Read the agent log file for a spec and validate its output against the schema.
This is useful for batch validation (e.g., in chant lint).
§Arguments
spec_id- The spec IDschema_path- Path to the JSON schema filelogs_dir- Path to the logs directory (typically.chant/logs)
§Returns
Ok(Some(ValidationResult))if log exists and validation was attemptedOk(None)if no log file exists for this specErrif there was an error reading the log or schema