Summary
The /orchestrate skill (agent-dev /add-orchestrator bundle) provisions disposable workers as durable agents named eph-<agent>-<short-id> via deploy_system, then tears them down best-effort with stop_agent + delete_agent — and deliberately skips teardown on failed runs, so a failed or interrupted orchestration leaves containers behind with no GC.
Trinity now ships first-class ephemeral agents (Abilityai/trinity#1580): create_agent accepts ephemeral: true plus a hard budget (max_executions and/or ttl_seconds), the platform hard-discards the agent at budget (container, DB rows, name — no soft-delete/retention), and a cleanup sweep reclaims orphans even after crashes. Spawn provenance auto-grants the parent→child permission edge, so the orchestrator can immediately chat with / control the child it spawned.
Acceptance Criteria
Technical Notes
- Ephemeral creation intentionally skips credential auto-injection and defaults
max_parallel_tasks=1; per-owner quota (default 5 live ghosts) and a per-parent spawn rate limit apply — the skill should surface a clear message when quota-limited rather than retry-looping.
- An ephemeral agent cannot spawn another ephemeral agent (depth-1 by design) — orchestrator must be a durable agent.
Summary
The
/orchestrateskill (agent-dev/add-orchestratorbundle) provisions disposable workers as durable agents namedeph-<agent>-<short-id>viadeploy_system, then tears them down best-effort withstop_agent+delete_agent— and deliberately skips teardown on failed runs, so a failed or interrupted orchestration leaves containers behind with no GC.Trinity now ships first-class ephemeral agents (Abilityai/trinity#1580):
create_agentacceptsephemeral: trueplus a hard budget (max_executionsand/orttl_seconds), the platform hard-discards the agent at budget (container, DB rows, name — no soft-delete/retention), and a cleanup sweep reclaims orphans even after crashes. Spawn provenance auto-grants the parent→child permission edge, so the orchestrator can immediately chat with / control the child it spawned.Acceptance Criteria
/orchestratecreates workers viacreate_agentwithephemeral: trueand an explicit budget (max_executionssized to the planned runs, or attl_secondswindow) instead of the durableeph-*+deploy_systempath.delete_agentwhen a worker finishes ahead of budget. No more skip-teardown-on-failure leak.ephemeral_not_entitled(instance without the entitlement), fall back to the current durableeph-*flow with a one-time warning — the skill must keep working on OSS instances.Technical Notes
max_parallel_tasks=1; per-owner quota (default 5 live ghosts) and a per-parent spawn rate limit apply — the skill should surface a clear message when quota-limited rather than retry-looping.