Skip to main content

Module layer

Module layer 

Source
Expand description

TraceLayer — the probe decorator (RFC-0015 §2/§5.3).

Wrap Arc<dyn LanguageModel>; generation and streaming are automatically probed: fingerprint (denoised request body) → LCP lookup → judge → sink. No trait changes, no provider changes. The auditor is pluggable and off by default (verdict = None, plain passthrough).

Structs§

RuleAuditor
Built-in rules engine (RFC-0015 §4.2). Stateless — the strict/shared mode comes from JudgmentInput.strict, set by the layer.
TraceLayer
The probe decorator. Wrap a model; every call is fingerprinted and recorded to the sink.

Traits§

CacheAuditor
The audit engine (pluggable; RuleAuditor is the built-in rules engine).