Skip to main content

Module audit_common

Module audit_common 

Source
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§

AuditConfig
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.