Repository navigation
Description
Summary
The free-text agent type field (default "business-assistant") is a vestigial taxonomy from before tags existed. The github: creation path never reads template.yaml metadata into the create config, so virtually every agent carries the default — and the surfaces that render it (Permissions tab, agent info chip, public-link fallback) show a stale, meaningless [business-assistant] label. Nothing functional depends on the value: categorization is covered by tags, the system agent keys on is_system, and the skill-runner tile variant can key on that agent's fixed name. Retire it end-to-end. No backward compatibility required — remove it from API/MCP responses outright rather than deprecating.
Context
Where it comes from:
AgentConfig.typedefaults to"business-assistant"(src/backend/models.py); creation bakes it into the container as thetrinity.agent-typeDocker label + anAGENT_TYPEenv var (src/backend/services/agent_service/crud.py). Rebuild fallbacks re-apply the default (src/backend/services/agent_service/lifecycle.py,deploy.py). The MCPcreate_agenttool advertises the same default.- The
AGENT_TYPEenv var is read by nothing underdocker/base-image/— dead weight.
Where it shows (the confusion):
src/frontend/src/components/PermissionsPanel.vuerenders[business-assistant]next to every agent in the permission list.src/frontend/src/components/InfoPanel.vuerenders a type chip (fed by the/infoendpoint reading the label).src/backend/routers/public.pyuses the label as a public link's display-name fallback — a visitor can see an agent titled "business-assistant".
What actually consumes it:
src/frontend/src/components/AgentTile.vuekeys the skill-runner tile variant offtype === 'skill-runner'; the runner is a fixed-name singleton (trinity-skill-runner), so the name is the sturdier key and thetypecheck is replaceable.- Nothing keys on
system-orchestrator(is_systemcovers the system agent everywhere). src/backend/routers/avatar.pybuilds a name→type map but only uses it as an existence check.
Drive-by bug found while tracing: the agent-create audit entry logs getattr(config, "agent_type", None) (src/backend/routers/agents.py) but the field is named type, so it has always logged null.
Going forward, tags (including the reserved-namespace pattern established for org tags) are the platform's classification mechanism; a single-valued free-text type is strictly redundant.
Acceptance Criteria
-
AgentTile.vuekeys the skill-runner variant off the fixed agent name instead oftype(lands first; the enterprise provisioner'stype=write becomes inert and is dropped in a private-repo follow-up). - The
"business-assistant"default and all fallbacks are removed (models.py,lifecycle.py,deploy.py, MCPcreate_agentparam); creation no longer writes thetrinity.agent-typelabel or theAGENT_TYPEenv var. -
typeis removed from API and MCP responses (AgentStatus,/api/agents,/api/agents/{name}/info, MCPlist_agents/get_agent) — no deprecation window. - Display surfaces stop rendering type:
PermissionsPanel.vue,InfoPanel.vue;routers/public.pyfalls back to the agent's display label / name, never the label — so the existing fleet's stale baked labels are never rendered anywhere (no forced recreates). - Permissions tab (Agent Detail): each agent row shows the canonical slug alongside the display name (replacing the removed
[type]suffix; shown when the display label differs from the slug, so agents stay unambiguous without hovering for the tooltip). -
template.yaml type:remains parseable but ignored (no compatibility check added; existing templates don't break). - The agent-create audit
agent_typetypo is fixed or the always-null field dropped. - User docs: a short retirement note added under
docs/user-docs/(agenttypeis retired; use tags for categorization), and existing references to agent type updated. -
docs/memory/architecture.mdreference totrinity.agent-typeupdated.
Technical Notes
- Frontend self-heals for new agents (
v-ifon truthiness), but the display-side suppression is what cleans up the existing fleet — containers keep baked labels until recreate. docker_service.pycurrently maps the label with an"unknown"fallback intoAgentStatus.type; removing the field removes the fallback too.- Keep
SYSTEM_AGENT_TYPE/runner constants only if the private modules still want them internally; nothing in OSS should read them.
Activity
vybe commentedon Aug 11, 2026
/claim
github-actions commentedon Aug 11, 2026
Claimed by @vybe. Label
status-in-progressadded.Next steps:
feature/2104-<short-slug>Fixes #2104test: update test_1793 happy-path to the post-#2104 contract
refactor(agents): retire the vestigial agent type taxonomy (#2104) (#…
fix(tests): sweep the tests that drifted from August/September code c…