1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! KV-cache grafts — context-space steering artifacts (ADR-059).
//!
//! A graft is a small bank of per-layer key/value tensors spliced into the
//! attention cache as fabricated history at invariant positions `0..N`
//! (phantom-kv's technique). No weight edits; unloading leaves the base
//! byte-identical; the model's own attention does the steering — nothing
//! is projected out of any activation and no per-token hook runs.
//!
//! Container: GGUF with `graft.*` metadata, mirroring the GLP
//! reader-conformance discipline (ADR-053). Fail-closed everywhere:
//! unknown mode, unknown or not-yet-implemented splice site, malformed
//! shapes, hash mismatch, or missing RoPE declaration are fatal — the
//! reader never guesses and never silently mis-splices.
//!
//! Universality split (ADR-059 "Splice-site reality"): the *container* is
//! family-independent data; the *splice site* is per-architecture and
//! enumerated (`full_attn_kv` ships; `window_tail_kv`, `compressed_kv`,
//! `recurrent_state` are staged sites that this reader rejects until
//! they ship); the *artifact* is always checkpoint-bound (cache K is
//! post-RoPE, so a bank is bound to one exact model revision and RoPE
//! configuration).
//!
//! Scope of this module: loading + conformance. Binding (layer/head/RoPE
//! validation against a model path), the cache splice, graft-region
//! tagging, and cache-identity integration live with the family serve
//! paths per the site contracts.
pub use ;
pub use ;
pub use ;