pub struct JudgmentInput {Show 21 fields
pub spec: ProviderAuditSpec,
pub strict: bool,
pub first: bool,
pub prompt_tokens: u64,
pub prompt_bytes: u64,
pub claimed: u64,
pub input_no_cache: Option<u64>,
pub input_cache_read: Option<u64>,
pub input_cache_write: Option<u64>,
pub write: Option<u64>,
pub no_cache: Option<u64>,
pub hit: Option<u64>,
pub miss: Option<u64>,
pub usage_present: bool,
pub response_cache_header_hit: bool,
pub candidate_expired: bool,
pub byte_proxy: bool,
pub route_affinity_known: bool,
pub lcp: Option<LcpInput>,
pub system_tokens: u64,
pub session_stats: Option<SessionStats>,
}Expand description
All evidence needed to judge one call.
Fields§
§spec: ProviderAuditSpec§strict: boolstrict (self-hosted single instance) → W; shared → B/U downgrade.
first: boolFirst request in this scope window.
prompt_tokens: u64§prompt_bytes: u64§claimed: u64§input_no_cache: Option<u64>Input-side breakdown (unified usage) for provider-equality rules.
input_cache_read: Option<u64>§input_cache_write: Option<u64>§write: Option<u64>§no_cache: Option<u64>OpenAI 5.6+ delta: no_cache = prompt − claimed − write.
hit: Option<u64>DeepSeek: hit / miss tokens.
miss: Option<u64>§usage_present: bool§response_cache_header_hit: boolResponse-side cache header present (e.g. OpenRouter HIT) — reported zeros are legal, skip audit (R-4.1).
candidate_expired: boolA same-scope candidate existed at block 0 but failed the TTL check (true timing violation) — vs. no candidate at all (block-granularity floor, conservative UNKNOWN).
byte_proxy: boolToken upper comes from the byte proxy (len/4) — no tokenizer. Per RFC F2, byte-proxy evidence caps R-1.1 at B(Medium), never W(High).
route_affinity_known: boolWhether the deployment guarantees cache-affine routing (single node, sticky sessions, or a shared/global cache like DeepSeek’s disk cache). When UNKNOWN (default — models are typically served by clusters behind load balancers), R-2.2’s low-hit warning is suppressed to a note: a stable prefix with zero claimed hits is then plausibly a routing artifact, not a broken prefix.
lcp: Option<LcpInput>§system_tokens: u64System/tools segment tokens (cross-session expectation, R-2.1).
session_stats: Option<SessionStats>