Skip to main content

Module token_calibration

Module token_calibration 

Source
Expand description

Provider-authoritative tokenizer calibration evidence (CO-05).

Local tokenizer counts remain useful estimates, but they are not provider billing truth. This module provides the bounded, deterministic report envelope required before a provider-count calibration can be consumed. Missing authority is deliberately rejected; callers must not silently promote local reference counts to provider evidence.

Structs§

TokenCalibrationEntry
A single provider-count observation, identified without retaining payload.
TokenCalibrationReportV1
Versioned provider-count calibration report.

Enums§

TokenCalibrationError
Fail-closed validation errors for calibration evidence.

Constants§

TOKEN_CALIBRATION_REPORT_VERSION
Stable report version for the first calibration contract.
TOKEN_CALIBRATION_SCHEMA_VERSION
Stable schema identifier for tokenizer calibration reports.