@claritylabs/cl-router-policy
v0.1.0
Published
Pure model-routing vocabulary and reviewed policy data for cl-router clients
Downloads
501
Maintainers
Readme
@claritylabs/cl-router-policy
Pure, zero-runtime-dependency model-routing vocabulary shared by cl-router clients. It exports task and provider identifiers, reviewed default routes, capability metadata, quality-bar definitions, fallback helpers, the versioned price manifest used for attribution, and the reviewed qualification-spec catalog that binds calibration to executable prompt/schema/validator/scorer artifacts. Artifact IDs end in the SHA-256 of canonical compact sorted-key JSON, so changing artifact content requires a new immutable qualification spec.
The package does not execute model calls, read environment variables, persist state, or contain tenant configuration. Autonomous policy state and telemetry belong to the separate cl-router service.
import {
MODEL_TASKS,
MODEL_TASK_ROUTES,
modelTaskForCall,
taskFamilyForCall,
} from "@claritylabs/cl-router-policy";
const task = modelTaskForCall("extraction", "extraction_classify");
const family = taskFamilyForCall("extraction", "extraction_classify");
const initialRoute = MODEL_TASK_ROUTES[task];Node.js 24 or newer is required. Package versions are released from the
private claritylabs-inc/cl-router repository through its reviewed GitHub
Actions release workflow. The package is licensed under Apache-2.0.
