Expand description
Canonical skill-name constants for CADMAS-CTX delegation hooks.
§Why a dedicated module
Each routing surface in codetether — provider failover, swarm
dispatch, ralph handoff, autochat persona relay, RLM compaction
model — wants to key its per-(agent, skill, bucket) Beta
posteriors against a stable skill string. Spelling drift across
call sites (“model_call” vs “router” vs “provider_call”) would
silently fragment posteriors and starve the LCB score of
evidence.
This module centralises the catalogue. Every site that calls
DelegationState::update or DelegationState::score must
pass one of these constants as the skill argument.
§Stable shape
- Names are lowercase
snake_case. - Never renamed — adding a new surface gets a new constant; old ones stay so existing sidecar data remains readable.
- Documented alongside the codetether surface they key.
§Examples
use codetether_agent::session::delegation_skills;
assert_eq!(delegation_skills::MODEL_CALL, "model_call");
assert!(delegation_skills::ALL.contains(&"swarm_dispatch"));Constants§
- ALL
- Complete list of registered skill names.
- AUTOCHAT_
PERSONA - Skill for TUI autochat next-persona selection
(
src/tui/app/autochat/— Phase C step 31). - MODEL_
CALL - Skill for provider-failover routing in
choose_router_target_bandit. - RALPH_
HANDOFF - Skill for ralph-loop persona handoff
(
src/ralph/ralph_loop.rs— Phase C step 29). - RLM_
COMPACT - Skill for RLM compaction model selection in
resolve_rlm_model_bandit. - SWARM_
DISPATCH - Skill for swarm-executor dispatch
(
src/swarm/orchestrator.rs— Phase C step 28).