Documentation
¶
Overview ¶
Package router is Fort's deterministic matcher engine (backlog AO-013).
It maps a Task to exactly one route by applying an ordered ruleset with first-match-wins semantics and a default fallback. Every decision is recorded as a RouteDecision. There are zero model/LLM calls on this path: Route is a pure function of the Task and the Ruleset (proven by TestRoutingIsDeterministic).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouteDecision ¶
type RouteDecision struct {
TaskID string `json:"task_id"`
Route string `json:"route"` // the chosen agent
MatchedRule string `json:"matched_rule"` // rule id, "" when defaulted
Default bool `json:"default"` // true when no rule matched
Reason string `json:"reason"`
}
RouteDecision is the recorded outcome of routing a single task.
Click to show internal directories.
Click to hide internal directories.