fix(agent-teams): resume owned in-progress tasks from IDLE - #555
Open
hichipli wants to merge 1 commit into
Open
Conversation
Check owned in-progress work before idle teammates claim new tasks in both current team runtimes. Reuse the existing assignment/worktree recovery path so mailbox priority and one-task ownership remain unchanged. Add a cross-lesson regression test, synchronize English, Chinese, and Japanese lesson docs, and regenerate the course website data. Fixes shareAI-lab#519
hichipli
marked this pull request as ready for review
August 30, 2026 20:04
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
in_progresstask befor looking for new workContext
The lesson numbers have changed since #519 was filed. The affected current implementations are
s13_agent_teamsands15_integrated_harness.Previously, a teammate that ended a model turn without calling
complete_taskentered IDLE with an ownedin_progresstask. IDLE only attempted to claim new work, while the task ownership invariant correctly prevented a second claim. The teammate could therefore loop forever without resuming the task it already owned.The updated order is:
Validation
python3 -m unittest tests.test_agent_teams_runtime.AgentTeamsRuntimeTests.test_idle_teammate_resumes_owned_task_before_claiming_new_workpython3 -m unittest tests.test_agent_teams_runtimepython3 -m py_compile s13_agent_teams/code.py s15_integrated_harness/code.py tests/test_agent_teams_runtime.pynpm run extractfromweb/s13_agent_teamsands15_integrated_harnessgit diff --checkCloses #519.