Skip to main content

Module priors

Module priors 

Source
Expand description

Static capability priors for known models (CONTEXT.md §7).

Day-one seed for tiering an unknown pool with no learned data: known models mapped to per-dimension scores and a relative cost/quota class. Unknown models get a conservative default, and the within-pool cascade discovers their real level through evaluator outcomes. This same table is what the phase-two learned router refines from logged trajectories, so the priors degrade gracefully into learned weights.

Structs§

ModelPrior
Per-dimension capability scores (0–100) plus family and cost class.

Enums§

CostClass
Relative cost/quota rank, not an absolute price. Cheap < Workhorse < Frontier defines the cascade order within whatever pool is present.

Functions§

family_of
The vendor family for a model id, or "unknown".
family_of_worker
The vendor family for a worker by name, used where model ids aren’t known (e.g. doctor, which sees worker names but not their models).
prior_for
Look up priors for a model id/alias by case-insensitive substring match (most specific patterns first). Returns [DEFAULT] for unknown models.
tier_ladder
The cascade ladder for a worker’s models. The order is taken AS GIVEN — config/discovery already orders models cheapest→strongest (discovery sorts by the platform’s pricing; users list them in tier order; adapters declare them cheap→strong). Priors are no longer used to reorder the ladder — only for family detection — so any model from any platform tiers by real cost or by the user’s intent rather than a hardcoded name table.