logit-loom
Safe Rust machinery for composing token-stream transforms and observers.
The crate provides ordered transform pipelines, full or sparse candidate exposure, transactional write-back, panic/error containment, observer fan-out, cooperative cancellation, and mechanical receipts. It does not load a model.
[]
= "=0.2.0"
Example
Apply a first-party token bias to an in-memory vocabulary:
use ;
Each call starts with Pipeline::begin. Successful transform invocations use
consecutive zero-based steps. A backend calls Pipeline::accept only after the
selected token has entered causal state, once for an unmatched successful
transform invocation.
Failure and observation
- Candidate changes commit only after every stage succeeds.
- Callback errors and unwinding are contained and retained in receipts.
- Backend-selected candidate views must be non-empty, bounded, and contain unique token IDs.
- Observers are polled before sampling and see exact token bytes only after causal admission.
See the workspace overview, getting-started guide, and architecture.