Expand description
Pure functions for ContextFreshness and execution gating.
See also: ainl-context-compiler for LLM
context-window assembly (different lifecycle phase — this crate gates tool execution based
on repo-knowledge currency; the compiler crate assembles prompt bytes sent to the LLM).
Both crates can be used independently or together.
Structs§
- Freshness
Inputs - Inputs for freshness evaluation (extend without breaking callers).
Functions§
- can_
execute_ with_ context - Combine with compile/run gate for AINL MCP.
- evaluate_
freshness - Decide freshness from explicit inputs.
- impact_
decision_ balanced - Lenient policy: never block, only suggest impact when stale/unknown if repo intel exists.
- impact_
decision_ strict - Policy: when to block execution until context is refreshed.