Skip to main content

Crate ainl_context_freshness

Crate ainl_context_freshness 

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

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