Principle:A5c ai Babysitter Process Validation
| Knowledge Sources | |
|---|---|
| Domains | Validation, Process_Authoring |
| Last Updated | 2026-10-23 00:00 GMT |
Overview
A practice of validating process files and library syntax before orchestration execution to catch authoring errors early.
Description
Process Validation is the principle of catching parse, import, and syntax errors in process files before they reach the runtime. By pre-importing each process file and running static analysis, typo footguns (mismatched quotes, broken template literals, missing imports) are detected at commit time rather than mid-iteration.
This addresses the problem of late-discovered errors in long-running agent workflows: a syntax error discovered mid-iteration wastes agent time and breaks replay determinism.
Usage
Use this principle when authoring agent processes in a CI/pre-commit pipeline. Run validation before run:create to ensure only syntactically correct, importable processes enter the orchestration runtime.
Theoretical Basis
The validation model is based on fail-fast — detect errors as early as possible:
1. Pre-import: Node.js import() each .js file → catches parse/import errors
2. Static analysis: ESLint on staged files → catches syntax/style errors
3. Exit non-zero on any failure → gates CI/pre-commit
Key property: Validation is non-destructive — it never executes the process, only imports it to check loadability. This ensures side-effect-free validation.