de-hardcode orchestrator/interaction agent brand names (Mos/Tess) from coord + durable-session + roster schema #747
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Runtime agent identity is already configuration-driven (
apps/gateway/src/coord/coord.module.tsreadsMOSAIC_AGENT_NAME/MOSAIC_ORCHESTRATOR_AGENT_NAME), but the coordination/durable-session layer hardcodes the reference-deployment brand names ("Mos"/"Tess") into type names, class names, file names, DI symbols, and error prose. This bakes one operators naming scheme into the framework. Other operators want their own orchestrator/interaction agent names.Canonical role vocabulary (decided)
Display names ("Mos"/"Tess"/etc.) are per-operator aliases, not schema.
Scope (mechanical rename + 2 schema fields — no behavior change)
packages/coord/src:MosCoordinationClient/MosCoordinationPort/MosCoordinationAuthorityError->InteractionCoordination*;MosHandoff*->Handoff*; filemos-coordination.ts->interaction-coordination.ts;in-memory-mos-coordination-port.ts-> neutral; updateindex.tsexports.apps/gateway/src/coord: renamemos-coordination.{service,dto,controller}.ts+ specs; DI symbolMOS_COORDINATION_CONFIG->COORDINATION_CONFIG; keep env var names unchanged (already generic).packages/agent/src/tess-durable-session.ts->durable-session.ts(+ gatewaytess-durable-session.{service,repository,dto}.ts); scrub "Mos"/"Tess" from error strings; changesourceLabel ?? 'tess'default to a role-neutral literal.packages/mosaic/framework/fleet/roster.schema.json: add OPTIONALalias(display name) and OPTIONALprovider(agent runtime provider, e.g. openai-codex) to the agents[] item schema; surfacealiasinmosaic fleet psoutput.Out of scope
Examples/tests that set
name: Tessas sample data (class-B, fine). No runtime-identity logic changes.Acceptance
Mos/Tessin symbol/type/file/DI names or error prose under packages/coord, packages/agent, apps/gateway/src/coord (grep-clean).roster.schema.jsonaccepts optionalalias+provider; existing rosters still validate.mosaic fleet psshows alias when set.