pub struct RoutingConfig {
pub task_class_rules: Vec<TaskClassRoute>,
pub pattern_rules: Vec<PatternRoute>,
}Expand description
The backend routing table (ticket backend-routing-abstraction, KRZ-331):
the declarative form of “task class → executor route”, making local
endpoints, hosted frontier models, and hosted fine-tunes peers behind one
routing interface. Resolved deterministically by crate::routing:
the FIRST matching rule wins, no match falls through to
ExecutorTier::Frontier, and an EMPTY table keeps the hardcoded literal
floor (crate::config::task_class_to_tier) byte-for-byte.
Rules name CAPABILITY CLASSES (ExecutorTier), never model ids
(docs/reviews/local-llm-and-triumvirate.md §1): a local endpoint, a
hosted OpenAI-compatible frontier endpoint, and a hosted fine-tune are
all the local class — which concrete endpoint the class resolves to is
ordinary local-backend role config (baseUrl + model), not routing
table content and not a new backend kind. The tracked, base-branch-owned
rules FILE surface (crate::routing_rules, ticket
routing-rules-config) is the tracked way to populate this table.
Fields§
§task_class_rules: Vec<TaskClassRoute>Ordered routing rules; the first rule whose taskClass matches the
ticket’s task class (case- and whitespace-insensitively, the same
normalization as the hardcoded floor) decides the executor tier.
pattern_rules: Vec<PatternRoute>Ordered PATTERN rules (ticket routing-rules-config), consulted only
when no exact taskClassRules entry matched: the first pattern that
matches the normalized task class decides the executor tier. An exact
class rule always beats a pattern (specific over general); within this
list, order is the only precedence knob. Additive: absent in every
pre-pattern config and every pre-pattern mission.created payload,
where it deserializes to empty.
Implementations§
Source§impl RoutingConfig
impl RoutingConfig
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
No rules of either form — the empty table that keeps the hardcoded
literal floor (crate::config::task_class_to_tier) byte-for-byte.
Trait Implementations§
Source§impl Clone for RoutingConfig
impl Clone for RoutingConfig
Source§fn clone(&self) -> RoutingConfig
fn clone(&self) -> RoutingConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more