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
The orchestrator must delegate to profiles (who may delegate one level further) without multiplying cost, losing auditability or letting parallel writers collide. Today child agents are capped at depth 1 and inherit the parent environment.
Proposed solution
A deep Delegation module (delegate(profile, task, mode) -> Handle, poll(handle)), per docs/profiles-collaboration-secrets.md A6, A8:
Budget carve: a child's tokens/minutes/steps come from its parent's remaining budget; no count cap. A machine guard delegation.max_live_processes only queues spawns, visibly.
Depth:delegation.max_depth default 2, hard ceiling 3; the delegate tool is registered only where depth < max_depth.
Authority: child allowlist = parent ∩ profile; Destructive unreachable; non-allowlisted Writes bubble to the orchestrator's single approval surface.
Writers: parallel writers get their own git worktree (existing --agents-worktree); writers in one workspace serialize on a write lease (ledger claim); only the orchestrator merges, with owner approval.
Mandatory report: a run cannot settle done without a completion report (changes, files, diff ref, checks run, risks); otherwise incomplete.
Audit: the ledger records the tree; tole audit <goal> prints it with drill-down into sessions.
Results flow up one level through the existing uteke mailbox room.
Updates the threat model (the depth-1 invariant changes).
Activity
fix(core): refuse non-normalized delegation lease paths (#585)
fix(core): charge unknown delegation usage in full (#585)
feat(core): delegation tree with budget carve, depth cap, write lease…
feat(cli): delegation limits and the delegated-child launch contract (#…
fix(cli): launch queued delegations from the recorded node only (#585)
fix(core): the delegation fold refuses spawns that break a cap; log o…
fix(cli): let parallel worktree writers pass the delegate lease pre-c…
fix(cli): canonical delegation root and strict FIFO queue (#585)
feat(cli): delegate tool with carved mission budgets, leases and gran…
feat(core): resource guard for delegation, admission by machine load (#…
fix(core): never block on or follow a file a child planted (#585)
feat(delegate): delegate_report tool and non-blocking reads of child …
fix(cli): redact audit text before capping it (#585)
feat(delegate): wire the machine resource guard into delegation (#630)