Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/terraphim_orchestrator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ terraphim_persistence = { path = "../terraphim_persistence", version = "1.4.10",

# Quickwit integration (optional)
reqwest = { workspace = true, optional = true }
ulid = "1.2.1"

[dev-dependencies]
tokio-test = "0.4"
Expand Down
15 changes: 15 additions & 0 deletions crates/terraphim_orchestrator/orchestrator.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@ max_duration_secs = 1800
repo_path = "/opt/ai-dark-factory/workspace"
create_prs = false

# =============================================================================
# ROUTING (telemetry-aware model selection)
# =============================================================================
# Uncomment to enable KG-driven and telemetry-aware model routing.
# Requires taxonomy markdown files in the taxonomy_path directory.
# When use_routing_engine is true, the control-plane routing engine
# combines KG routing, keyword routing, provider health, budget pressure,
# and live telemetry signals for model selection.
#
# [routing]
# taxonomy_path = "/opt/ai-dark-factory/kg/routing"
# probe_ttl_secs = 300
# probe_on_startup = true
# use_routing_engine = false

# =============================================================================
# SAFETY LAYER (always running)
# =============================================================================
Expand Down
11 changes: 10 additions & 1 deletion crates/terraphim_orchestrator/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,16 @@ pub struct RoutingConfig {
/// Run provider probes on startup (default: true).
#[serde(default = "default_true_routing")]
pub probe_on_startup: bool,
/// Use RoutingDecisionEngine instead of inline model selection (default: false).
/// Use RoutingDecisionEngine instead of inline model selection.
///
/// When enabled, `spawn_agent()` delegates model selection to the
/// control-plane routing engine which combines KG routing, keyword
/// routing, provider health, budget pressure, and live telemetry
/// signals (throughput, latency, subscription limits).
///
/// Telemetry data is persisted across restarts and restored on startup.
///
/// Default: `false` (uses inline model selection logic).
#[serde(default)]
pub use_routing_engine: bool,
}
Expand Down
Loading
Loading