Repository navigation
Task-scoped delegation and recoverable joins for App session teams #4019
Leeminjing
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I would like to propose task-scoped delegation and recoverable joins for App session teams, where members are persistent sessions.
Use case
A leader assigns tasks A and B to two existing members and waits for both. A completes while B awaits human approval. After an application restart, the intended behavior would be to retain A's result without rerunning it, restore B's approval request and routing, and resume the leader's wait. If B subsequently reports failure, the join would return both terminal outcomes in the requested order.
Proposed initial scope
TeamTaskAssign,TeamTaskInspect,TeamTaskReport,TeamTaskJoin, andTeamTaskCancel.Recovery would target persistent SQL storage, or Redis with persisted data and
key_ttl=None. Existing custom Storage implementations would retain ordinary chat support, while the new task capability would remain unavailable until the required atomic operations are implemented. Interrupted execution without a safe checkpoint would be reported explicitly rather than automatically replayed. This would not promise exactly-once external side effects.Arbitrary DAGs, automatic task retries, planning-state synchronization, background-tool ownership, and embedded SOP/Realtime delegation are outside this proposal.
Related work and contribution plan
Related work includes #2491 and #2763/#2764 for SDK-level delegation and HITL routing, and #1797/#2379 for App team-member reporting. The task-handle use case raised in #2491 is also related. This proposal focuses on durable task records and explicit joins across persistent App sessions, including HTTP/UI visibility and restart recovery.
The intended contribution is one focused main-repository PR, titled
feat(app): add task-scoped delegation and joins for session teams, plus a companion documentation PR inagentscope-ai/docs.Feedback requested
This is a proposal only. No implementation or tests have been run for this feature. Implementation would follow core-team design feedback in the corresponding Issue.
Prepared with Codex assistance.
All reactions