You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: a system-scoped caller of a gated skill is promised the outcome but never receives it #3233
When a request names a gated skill (abilityai/trinity-enterprise#751), the MCP server turns the backend's pending_approval answer into a result whose message ends "Do not retry or route it through another agent — the outcome will be sent to you." (src/mcp-server/src/client.ts, parseGateResult). The backend tells only two kinds of requester: an agent gets a new skill_gate task, a person gets an Inbox notice. A system-scoped MCP key — the scope the system agent uses — is classified KIND_OTHER by skill_gate_service.requester_from_principal, and _notify sends it nothing. That caller is told to wait for an outcome that never arrives, and told not to retry.
Context
requester_from_principal (src/backend/services/skill_gate_service.py): agent_name is set only for agent-scoped keys, and X-Source-Agent is honoured only for them (dependencies.resolve_source_agent). is_person_principal accepts only the scopes in PERSON_SCOPES (None, user). A system-scoped key falls through to KIND_OTHER.
_notify: an agent requester gets a platform task, a person requester an Inbox notice; "Schedules, channels, public visitors, paid callers and connectors have no channel after the request". KIND_OTHER lands in that no-channel group.
The outcome stays on the gate record and in the executor's Executions, so a caller that knew to look could find it — the MCP message says the opposite.
Found while reviewing abilityai/trinity-enterprise#568, whose delegation contract reuses the "the outcome will be sent to you" wording.
Acceptance Criteria
A system-scoped requester is told the outcome (for example a skill_gate task to the system agent), or the pending_approval message says where to read the outcome whenever it will not be delivered
A test drives a system-scoped request to a gated skill and asserts the caller's path to the outcome
The MCP result never promises a delivery the backend does not make for that caller
Technical Notes
ent#715: an agent learns an outcome, never which person decided it — keep that for any new delivery channel.
Activity
feat(delegation): every caller is taught that a receipt means running…
fix(skill-gate): close the #3208 validation gaps before the gate map …
Release: v1.0.0 (#3853)