Repository navigation
Description
Problem
start_agent injects assigned library skills and computes a full result — and then throws it away at the API boundary. A caller who starts an agent over REST or MCP cannot tell whether skill delivery succeeded, was skipped, or hit a conflict.
This violates the product quality bar's "tell the truth about state": the response says "Agent X started" while a skill the operator assigned may have silently failed to land.
Evidence (abilityai/trinity dev@6b0ddd96)
-
services/agent_service/lifecycle.py:483-484, 569-570—start_agent_internalrunsinject_assigned_skills()and returns bothskills_injection(status) andskills_result(the detail, including per-skilldelivery_status). -
routers/agents.py:866-878— the endpoint rebuilds the response from a fresh whitelist containingmessage,credentials_injection,credentials_result,recreated,recreate_reason,recreate_deferred. Neither skills field is in it. The code comment states the mechanism exactly:"This dict is a fresh whitelist, NOT
start_agent_internal's return value, so a field added there does not reach the API unless it is also added here."The two credentials fields are whitelisted — so the omission is an oversight in the same shape, not a deliberate redaction.
-
MCP
start_agentreturns onlymessage, so the loss compounds for any automated caller. -
services/fleet_ops_service.py:375already readsstart_result.get("skills_injection")internally — the field is considered useful one layer down, and is dropped one layer up.
Why it matters now
Skill injection has several silent failure modes that only this field reports: a name collision with an agent-authored .claude/skills/<name>/ yields conflict with nothing written and force does not override; byte caps (10 MiB/skill, 50 MiB/run, 64 KiB frontmatter) drop a package; a plain restart skips injection entirely while a recreate re-injects (lifecycle.py:447,483). None of these reach a remote operator today. Any controller or fleet automation that starts an agent and assumes its assigned skills are present is assuming something the API declined to tell it.
Proposal
Add skills_injection and skills_result to the routers/agents.py response whitelist, alongside the credentials pair they mirror, and surface both in the MCP start_agent return.
Acceptance criteria
POST /api/agents/{name}/startreturnsskills_injectionandskills_resultwith the valuesstart_agent_internalproduced.- MCP
start_agentsurfaces at minimum the status plus any per-skill non-deliveredoutcomes. - A start where one skill hits
conflictis distinguishable by the caller from a clean start, without a second call (quality bar fix: add missing logging_config.py to backend Dockerfile #4). - An agent with no assigned skills returns the no-op status rather than an absent field — absence must not be how "nothing to do" is spelled (quality bar Fix: Add missing Docker labels to system agent container #1).
- No secret or source URL enters the payload —
skills_resultcarries names and statuses only, consistent with the ent#334 projection rule.
Related
abilityai/trinity-enterprise#692— admin/controller source management over MCP (same surface, remote-caller blindness).- Product read:
reports/findings/2026-09-23-regent-product-read.md§4 (trinity-pm workspace) · intakeOP-110.
Activity
dolho commentedon Sep 24, 2026
/claim
github-actions commentedon Sep 24, 2026
Claimed by @dolho. Label
status-in-progressadded.Next steps:
feature/2991-<short-slug>Fixes #2991fix(agents): start returns skills_injection/skills_result — skill-del…
feat(skills): mark deprecated skills on sets, the runner picker and t…