Expand description
Shared audit primitives for cross-cutting validation.
These functions apply to all content types and domain crates,
not just instruction files. Moved from instruction-files to
enable reuse across the agent toolkit.
Structs§
- Audit
Config - Configuration for instruction file discovery and auditing.
- Issue
- An issue found during auditing.
Constants§
- LINE_
BUDGET - Default line budget for combined instruction files.
Functions§
- check_
context_ invariant - Check instruction files for machine-local path references.
- check_
line_ budget - Check combined line count against budget.
- check_
staleness - Check if instruction files are older than source code.
- find_
instruction_ files - Discover all instruction files under the given root.
- find_
root - Find the project root by walking up from CWD.
- is_
agent_ file - Check if a file path refers to an agent instruction file.