Introduce stable_id = role on AgentMetadata so learning profiles and KG
execution records survive process restarts and hot-reloads. Previously
every Uuid::new_v4() rotation orphaned accumulated expertise.
- registry: add stable_id field (serde default, backward-compatible),
stable_id_or_role() fallback helper, drain_role(), list_roles()
- coordinator: profile lookup and KG writes use stable_id_or_role()
instead of the ephemeral UUID; drain_role() drops Sender to close
mpsc channels after in-flight messages drain; registry_arc() accessor
- executor: agent_id written to KG now uses stable_id_or_role()
- server: reload_agents() drain-and-respawn function; SIGHUP handler
via while sighup.recv().await.is_some(); POST /reload endpoint;
AppState extended with config_path, router, cap_registry
- fix: SIGHUP recv() spin-loop guard (is_some())
- fix: io_other_error clippy lint in vapora-agents, vapora-llm-router,
vapora-workflow-engine (std::io::Error::other instead of Error::new)
- docs: ADR-0040, CHANGELOG entry, README hot-reload section
25 lines
498 B
Text
25 lines
498 B
Text
{
|
|
RoutingConfig = {
|
|
default_provider | String,
|
|
cost_tracking_enabled | Bool,
|
|
fallback_enabled | Bool,
|
|
},
|
|
|
|
ProviderConfig = {
|
|
enabled | Bool,
|
|
api_key | String | optional,
|
|
url | String | optional,
|
|
model | String,
|
|
max_tokens | Number,
|
|
temperature | Number,
|
|
cost_per_1m_input | Number,
|
|
cost_per_1m_output | Number,
|
|
},
|
|
|
|
RoutingRule = {
|
|
name | String,
|
|
condition | { .. },
|
|
provider | String,
|
|
model_override | String | optional,
|
|
},
|
|
}
|