Skip to main content

Module delegation_skills

Module delegation_skills 

Source
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).