Skip to content

Answer a followup at once while an idle member integrates checked results - #63

Merged
LikC1606 merged 1 commit into
mainfrom
fix/followup-integration-busy
Nov 29, 2026
Merged

LikC1606 merged 1 commit into
mainfrom
fix/followup-integration-busy

Conversation

@LikC1606

Copy link
Copy Markdown
Collaborator

A native followup_task sent to an idle member no longer holds the Lead's tool call while the member integrates checked results.

Cause, from the balance-7 run:

  • Lead called followup_task on an idle member, gold.
  • Before gold's turn could start, its launch integrated pending helpers and adoptions into its workspace. That took about 5 minutes of Lean work.
  • The Lead's tool call waited the whole time, and the Lead soft-slice wait-limit interrupted the Lead turn mid-call. Re-confirm a proof writer's stop after close cancels pending work #61 made that interruption non-fatal, but the Lead turn was still lost.

Change (agentTeam.ts):

  • New pendingIntegration(worker). It is true when the member has a pending delivery, a helper submission, a queued adoption, or a helper delivery it has not adopted yet. These are the same conditions the next launch would work through.
  • When an idle member has pending integration and no queued task, followupNative starts the integration in the background and rejects the followup at once with math_team_native_member_busy.
  • When the integration finishes without failure, the host sends Lead a message event saying the member is ready. Lead then repeats the followup.
  • A member with a queued task keeps the old path, so a background launch never runs an old objective.

Tests:

  • New agentTeamNativeLifecycle case: a peer's helpers land, Lead follows up the idle member while its integration is held, and the followup is rejected right away. Once the integration is released, Lead gets the ready message and the repeated followup starts the member's turn. Without the change the test times out.
  • 25 related test files pass (370 tests). tsc --noEmit and bun run build pass.

Not done: no real-problem run. Running solvers were not changed. Independent of #62.

🤖 Generated with Claude Code

…ults

A native followup to an idle member launched the member and waited for
its turn to start. Before that turn, the launch integrates every
pending delivery, helper submission, queued adoption and unadopted
helper into the member workspace, which is Lean work. In balance-7
the Lead's tool call waited about five minutes for this, and the Lead
soft-slice wait-limit interrupted the Lead turn mid-call.

When an idle member has such pending integration and no queued task,
followupNative now starts the integration in the background and
rejects the followup at once with math_team_native_member_busy. When
the integration finishes without failure, the host sends Lead a
message that the member is ready, and Lead repeats the followup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LikC1606
LikC1606 merged commit b8af609 into main Nov 29, 2026
4 checks passed
@LikC1606
LikC1606 deleted the fix/followup-integration-busy branch December 1, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant