Skip to main content

MAX_SCANNED_INSTRUCTION_FILES

Constant MAX_SCANNED_INSTRUCTION_FILES 

Source
pub const MAX_SCANNED_INSTRUCTION_FILES: usize = 200;
Expand description

Ceiling on files discovered by directory scan, per scan entry.

A scanned directory is repository-controlled and unbounded — nothing stops a repo holding thousands of *.instructions.md files. The declared paths above are a fixed handful, so only this side needs a limit. On overflow the scan reports what it found plus an explicit marker entry, rather than silently returning a prefix: a truncated list that looks complete is the failure mode this module exists to remove.