Expand description
Deterministic context/handoff policy helpers.
Constants§
- DEFAULT_
DENSE_ THRESHOLD - Default tokens-per-line threshold for dense blob detection.
- DEFAULT_
MAX_ FILE_ PCT - Default maximum fraction of budget a single file may consume.
- DEFAULT_
MAX_ FILE_ TOKENS - Default hard cap for a single file when no explicit cap is provided.
Functions§
- assign_
policy - Assign an inclusion policy based on size and file classifications.
- classify_
file - Classify a file for context/handoff hygiene policy evaluation.
- compute_
file_ cap - Compute the maximum tokens a single file may consume.
- is_
spine_ file - Returns
truewhen a path matches a “spine” file that should be prioritized. - smart_
exclude_ reason - Returns the smart-exclude reason for a path, if any.