validate_change
Validate a proposed file write for syntax errors, structural regression, and security anti-patterns. Returns a decision without modifying the file.
Instructions
Fast single-file gate. Run Aegis Ring 0 (syntax) + Ring 0.5 (structural signals + cost regression) + Ring 0.7 (security anti-patterns) on a proposed file write. Returns the decision without applying the change. Pure observation — never coaches the agent. Use this when the change is contained to one file or when speed matters more than cross-file safety.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_content | Yes | Full file contents the agent intends to write. | |
| old_content | No | Optional. If provided, enables cost-aware regression detection by comparing structural signal totals before vs after. | |
| path | Yes | Path the agent intends to write (used as filename for syntax/structural analysis only — no side effects to disk). |