Expand description
Provides compiled artifacts and stateful matchers.
Structs§
- Artifact
Cache - A thread-safe, byte-bounded cache of compiled artifacts keyed by [
ArtifactKey]. Read-mostly after warm-up; once the budget is reached, further artifacts are built and returned but not - Cached
Executable - Cached executable plus its canonical IR identity for provenance and L2 keys.
- Compiled
Artifact - A byte engine bound to a vocabulary, shared by
Arcacross sequences and the FFI. Onlymask_cachemutates after construction. - Executable
Cache - Exact-input, byte-bounded, single-flight cache of vocabulary-neutral executables.
- Executable
Cache Stats - Snapshot of vocabulary-neutral cache traffic and retention.
- Matcher
- A position inside a
CompiledArtifact. Owns the position, shares the artifact byArc.
Enums§
- Executable
Schema - Immutable compiled schema semantics with no vocabulary or mutable session state.
Constants§
- COMPILER_
SEMANTICS_ VERSION - Bumped whenever a change to IR-compile or bind semantics could make a previously-cached artifact
for the same
(ir_hash, vocab_fingerprint, mask_vocab_size, bind_mode)no longer equivalent to - EXECUTABLE_
SEMANTICS_ VERSION - Increment when vocabulary-neutral executable semantics change.
Functions§
- global_
executable_ cache - Process-wide bounded L1 cache. It contains no vocabulary or session state.
- validate_
token_ bytes - Validates a vocabulary binds without ambiguity (the same id -> bytes indexing an artifact runs), so a handle checked here reuses across compilations without re-discovering a conflict.