feat(subagents): wire v2 - identity, queued phase, budgets, artifacts, cost - #169
Merged
Conversation
…, and cost on the wire
Implements the bodek UX-pass wire spec (P1-P6). subagent_state frames and the registry now carry the clamped goal (2048), the profile id and effective post-clamp max_risk (declared while queued, effective from started), the enforced budget_seconds/budget_iterations/budget_cost_usd, cumulative-then-final cost_usd estimates computed with the exact /api/usage math, and terminal artifact metadata {id,path,bytes}; the framed result envelope adds cost_usd and the full artifact refs. delegate_tasks emits an explicit queued phase per accepted task before acquiring a concurrency slot so clients see accepted-but-not-spawned work; the registry gained a merge-on-recored semantic so queued -> started transitions actually overwrite the declared identity (the old restore-old-into-new record made any re-record a no-op). /api/usage exposes subagents.cost_usd as a lifetime sub-total - parent-turn totals are unchanged and documented as such in SUBAGENTS.md, which also carries the wire-field reference and closes the blocking-model question: deny-not-prompt is final, no waiting_approval state will exist.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
odek | 6e139be | Commit Preview URL Branch Preview URL |
Aug 31 2026, 09:34 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the sub-agent wire additions from the bodek UX pass (P1-P6). Everything new is omitempty: old-client/new-client matrices degrade to current behavior. Full suite 31/31 green, vet + golangci-lint clean, -race clean on cmd/odek.