Expand description
Kintsugi Tier-2 model wrapper.
The model’s only jobs are to explain (a one-sentence summary) and to
score the ambiguous band (a risk 0..=100). It is never in the path for a
catastrophic command, and its influence is escalation-only — it can add
caution but can never unlock a rule-based block (see CLAUDE.md).
Two backends behind one Scorer trait:
HeuristicScorer— deterministic, dependency-free, always available. This is also the graceful-degradation path when no real model is present.LlamaScorer(featurellama) — real CPU GGUF inference viallama.cpp.
Re-exports§
pub use heuristic::HeuristicScorer;pub use manage::select_spec;pub use manage::ModelSpec;pub use manage::MODEL_FALLBACK;pub use manage::MODEL_PRIMARY;
Modules§
- heuristic
- The deterministic, dependency-free scorer.
- manage
- Model weight management: pinned specs, RAM-based selection, checksum
verification, and (feature
download) the single permitted network fetch.
Structs§
- Model
Output - The model’s structured output for one command.
Constants§
Traits§
- Scorer
- A Tier-2 scorer. Kept warm in the daemon and shared across requests.
Functions§
- default_
scorer - Construct the best available scorer: the real model if the
llamafeature is on and weights load, otherwise the heuristic scorer. - model_
available - Whether a real (non-heuristic) model backend is compiled in.