Repository navigation
teams: the global manager is not woken by a top-level manager's turn ending - #2906
Closed
ZeroPoint95 wants to merge 9 commits into
Closed
ZeroPoint95 wants to merge 9 commits into
ZeroPoint95 wants to merge 9 commits into
Conversation
…ending Its members are the managers of whole teams, each a conversation the person talks to, and every answer one of them gave ended a turn that woke the global manager. Measured in the desktop app: 22 wakes in one afternoon, 803,496 input tokens, all answered "[no change]"; one such wake had it send the person's own request back to a manager as a directive. It is still woken by a manager's post, question or failure, and it is told never to re-issue the person's request. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…th a full stop Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The rule now covers only members that manage a top-level team, not everyone seated in the team that holds every team. team_send's answer no longer tells the global manager that endings wake it. The test that guarded the rule passed with the rule removed; it now waits past the settle, and a second test covers a global manager nobody has open. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A directive the global manager sends is answered with team_post, and its text, the top-level manager's text and the send answer all say so. A member of the team that holds every team that manages nothing is told what an ordinary member is told, since its ending does wake the global manager. The closed-manager test now covers a failure opening it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…t-afi # Conflicts: # internal/manual/chat/team-manager.md
No member's turn finishing or being stopped in the team that holds every team wakes or opens the global manager: it can see and direct only the current top-level managers, so a member left seated there after losing its team woke it on every answer for nothing. A team it starts is told to answer the brief it was started on with team_post, as a directive. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Collaborator
Author
|
Folded into #2897 so the engine side of this work is one pull request. The commits are unchanged and are now on that branch; this branch is left in place. |
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.
Why
Each crew manager is seated in
All teams, whose manager is the global manager (Afi in the desktop app). Every turn a crew manager ended wrotefinishedthere, andfinishedstarted the global manager's turn.Measured on 2026-11-24 in the desktop app, with the person talking to two crew managers directly:
[no change].What changes
finished, and any stop) no longer starts the global manager's turn. One rule,teamEventWakesManagerOf, is used by the watch that wakes an open manager and by the path that opens a closed one.team_post), its question or a permission it is held on, and its turn failing.team_statussays where each stands, and that it must never send a manager the person's own request to that manager as a directive. Its delivery line no longer lists "finishing" among what starts its turn.What this gives up
The global manager no longer hears of a crew's routine progress on its own. It learns of a result when the crew manager posts it, and of a blocker when the manager asks or fails. A summary on Afi's home of work a crew finished unattended now depends on that post.
Depends on
Stacked on #2897 (phases 1 and 2), which changed the same two places. This PR is against that branch and is to be retargeted to
devonce #2897 merges.Checks
TestTheGlobalManagerIsNotWokenByATopLevelManagersTurnEndingandTestTeamEventWakesTheGlobalManagerininternal/session/team_nest_test.go.go vet ./internal/session/, the team, wake, rouse, crew and nest tests ofinternal/session,internal/teams,make fmt-check test-laws manual-gates changelog-check: pass.internal/tui3run whole fails one test,TestTheSpendingTabIsTheSevenRowsAndNothingElse(an extraunbilledrow). It fails the same way on the teams: hand-offs say what happened, pause and stop hold, one wake path, weak models are reported #2897 branch and passes when run alone on both, so it is not from this change.4ea2a1238): a crew manager answered the person and itsfinishedinAll teamswoke nobody (before,woke ◆followed within six seconds). The manager then posted one line to the global manager withteam_post: that woke it, it read the crew withteam_statusandteam_read, and told the person the result on its own page. That one wake cost 130,687 input tokens over four calls, one of them a completion-check follow-up it answered[no change]; the cost of a wake is not changed here, only how many there are.Final review
Three impartial review rounds, each by a fresh reviewer, with a repair round after each. No round found a blocker.
team_send's answer told the global manager that endings wake it.team_post, and its text, the top-level manager's text and the send answer say so.All teamswakes or opens the global manager, because it can see and direct only the current top-level managers (a member left seated there after losing its team woke it on every answer). Failed and asking still wake it, and so does a post. A team it starts is told to answer its start brief withteam_post.What changes, as it now stands:
teamEventWakesManagerOf(root, …); the earlier per-member rule (quietEnding,tops) is gone, andteamRole.toponly chooses the role text.Known limit: the rule is judged when an event is read. Nothing depends on that now that it is root-wide.
🤖 Generated with Claude Code