Add durable shared task coordination - #2031
Closed
phytal wants to merge 1 commit into
Closed
Conversation
|
Hi @phytal, thanks for your interest in contributing! This project requires that pull request authors are vouched, and you are not in the list of vouched users. This PR will be closed automatically. See https://github.com/PrimeIntellect-ai/prime-agent/blob/main/CONTRIBUTING.md for more details. |
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.
Summary
Ports the durable shared task-coordination runtime from the Zero fork onto current upstream
main(0.9.1).This is a semantic rebase rather than a commit replay: the fork diverged before upstream's recent runtime/lifecycle work, so the task coordination layer was adapted to current APIs and upstream behavior instead of bringing back obsolete lifecycle code.
Validation
npm run checkgit diff --checkThe equivalent focused fork change is zeroset-inc#23.
Note
Add durable shared task coordination for agent sessions
AgentSessiondelegate, replace, complete, defer, and cancel supervised tasks across parent and child sessions with actor-authorized host handlers inhandleAgentTaskHostRequestadmitTaskResumeand_dispatchTaskResumeso persisted resume requests route to the owning session across active, passive (rehydrated), and nested runtimesenforce_inspection_only) applied during IPython kernel startup whenexecutionProfileisinspection_only, denying process-execution and cross-process syscallscomputeOwnAndTotalUsagepreserves parent total-token count after child attribution subtraction, andreconcileContextTreeTotalUsageincludes structural descendants and disposed identified children without double-countingAgentSessionturn execution, continuation, and auto-refine now acquire a shared capacity lease when a pool is configured; sessions without a pool are unaffected.enforce_inspection_onlyraisesRuntimeErroron non-Linux or unsupported architectures. Invalidtask_idin host payloads now raisesRuntimeErrorinrlm._spawn_handle_from_payloadandrlm._subagent_from_payload.Macroscope summarized 4dcfcde.