Repository navigation
teams: hand-offs say what happened, pause and stop hold, one wake path, weak models are reported - #2897
Draft
ZeroPoint95 wants to merge 44 commits into
Draft
teams: hand-offs say what happened, pause and stop hold, one wake path, weak models are reported#2897ZeroPoint95 wants to merge 44 commits into
ZeroPoint95 wants to merge 44 commits into
Conversation
…d; proposal crews join on standby A manager told the person work was under way that never began. The measured case: a member the person had paused was handed two directives, team_send answered both with "starts a turn on it now", the member's turn was started and cut in the same second, and nothing told the manager. - Pause is kept on the team's own record (teams.Member.Paused), not in the app's file. A paused member is not opened or woken; a directive waits on the log and starts its turn when the person resumes it. A pause from an earlier build is carried over once. - team_send's answer to a directive says, per member, whether it started, is already in a turn, did not start and why, or has shown no sign of starting, after a wait of at most four seconds on the traffic. - A member turn the person stops ends "stopped by the person" and wakes its manager, which is told the work it handed out is not done. - team_status and the manager's digest show a member's role, "paused by the person", "on standby", and a directive it has not started on. - A crew made from a proposal joins on standby: each helper has its role and starts nothing until the manager's first directive, which hands it the role line marked as a standing role. - The app process answers the engine's open-a-member door by waiting for its own crew watcher, so one directive no longer logs "could not wake" and then "woke". Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- A stopped turn is said as the person's only when the person's door ended a turn that team traffic started and no manager's stop is on the log for it. The app, the terminal and a remote window all perform a manager's team_stop through the person's door, which made the manager's own stop wake it as the person's; a turn the person opened and stopped tells the manager nothing. - Standby and a held directive outlive a restart: a standby member starts reading just before its start line however old that is, and a hold writes the member's cursor down when there was none. - The pause is read afresh before a member's wake hands anything over, so a directive sent in the second after the Pause is held. - A pause holds the conversation in every team it is a member of, and the app no longer stops a turn the person's own words opened on a paused member. - Standby is cleared when the start line is handed over, so team_status shows "on standby" until then (it never showed before: a journal's age is never zero). "has not started on #N" is said only of a member that is not in a turn. - The delivery card reads the standing role line; the roster shows a role in parentheses; the traffic line prefixes are one set of constants. - With auto-wake off no hold is promised for a paused member. - The app's pause carry-over clears a flag only once it is carried or its crew or member is gone; standby applies only to a start the person's proposal made; a renamed role is renamed on the team record; a manager, and a manager's seat in All teams, carry no pause or standby. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- Whether a stop is the person's stop of handed-out work is decided per team by what the turn was handed, not by who opened it: a directive read inside a turn the person had started counts, a turn that carried only the person's request does not, and a manager's stop on the log since the hand-over still makes it the manager's. - The app's own stops no longer use the person's door: quitting cancels through StopByClosing and a paused member's stray wake through StopByWorkStopped, so neither is told to a manager as the person's choice. - A directive held for a paused member that nothing had open is found again after a restart from the sender's "held" line. - A standby member renamed before its first work still gets its role line: its start is its own by identity. - A conversation that manages a team is not paused; a resume lifts the pause in every team; the app shows a member paused in each of its crews. - The digest keeps "its last turn was stopped by the person" after the manager's own wake line, and says "has not started on #N" for a member whose last turn failed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A stop leaves background commands running, and a command's ending starts a turn. In a team the two undid the stop: a stopped member whose command later exited was woken and reported the stopped work done. From a stop of a running turn until a turn next begins, a conversation with a team role now keeps such an ending, and a watch's firing, as a record that starts no turn. The command is still left running, and a conversation in no team is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A member often starts a long command in the background, ends its turn and waits to be told how it ended. A stop found no turn to end, so the command's ending woke the member and it reported the stopped work done. A stop through the person's door that finds a command or watch still running now begins the same hold, and the manager that handed out what the last finished turn carried is told the work was stopped. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…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>
…ts worker, and when it lands A proposal gave a repository as its ground and named no file by path, so the task was a reference: an empty folder of its own, the repository left alone. The receipt said "It works in <ground>", the worker was told nothing, built the project in its own folder and reported it integrated, and the landing had no line. The conversation told the person to run it from the repository. All three now say the ground does not change and where the work is. A manager is also told a task is not a way round a member that did not start. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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 paused member woken by anything but team traffic read the held directive at its turn's opening, so Resume replayed nothing; a paused role's traffic now stays undelivered unless the person opened the turn. A hold left over after the person's own turn read the directive started a turn on a note at Resume. A manager's team_stop performed by the member's own session now holds as the person's stop does. A stop that finds no turn running tells the manager only when the member is waiting on a command. Resume says so in every crew the member sits in. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A reference that joined a writing run was told it only reads; a joined task is now told what is true of the run it joined. The receipt's remedy asked for file names that do not work unless given by full path. A reference no longer prints the in-place redirect, and a home-folder ground given as the proposal's ground gets the home sentence. A reference run now lands without calling the engine's landing, which failed on a folder that is not a repository and filed a failure note. 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>
A writing task that joined a run which only reads its ground was told it had named no file and to propose again; it now has its own sentence. The read-only note was kept in the brief a rerun re-reads, and the ground's path inside it made the rerun a writing task; the note now goes only to the workers. The manual no longer promises a receipt to a typed /task, and the landing line appears once on the run's page. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Handed work now lasts as long as the work does: across a turn that ends while the member waits on a command, and the turn that command starts. A stop of such a later turn, or of the person's own turn while the member waits on handed work, tells the manager once, so a hold never swallows the ending of handed work with nobody told. The manual says a task landing still starts a stopped conversation. The app's pause-kill, its quit door and the pause carry-over have tests. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…t-afi # Conflicts: # internal/manual/chat/team-manager.md
The time a hand-off is remembered at is now the latest hand-off's. Kept at the first one while work carried across turns, it let a manager's stop that had found the member idle pass for the stop of a turn a later directive started, and the person's stop of that turn told nobody. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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>
A reference run recovered after a crash before its landing no longer takes the git landing, which failed on a folder that is not a repository; it is accepted with the same line. The manual says when a task that names no file reads its repository and when it gets a branch. Tests cover a held run, a failed and a stopped run, a recovered run and a proposal's receipt through the real proposal road. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The reference branch added to acceptCompletedRun put it one decision over the task engine's ceiling of 15. The copy is read and the reference case decided in a small wrapper; the git landing is its own function. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The global manager and read-only task changes now land in this pull request with the hand-off, pause and standby changes, and the rule is one change entry per pull request. Their two entries are folded into this one, items and reasons unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
An Ollama model's row in models.list carried no window, so a model the server runs with 4,096 tokens looked like any other and the desktop app had nothing to warn about. A row may now carry limits (appwire.ModelLimit): small_window, with the window the server gives the model, how that is known (loaded, modelfile or default), what the app's prompts need and the most the model can hold; and no_tools, when the server's capability list lacks tools. The engine reports the facts and the app words them. The facts come from the Ollama service's own API (/api/ps and /api/show), asked by internal/ollamalimits on each models.list: 300 ms a question, 600 ms in all, inside the list's three seconds, and silence on any error. No other provider is asked, and the checks that read the list for a person's pick read the rows without the questions (offeredModels). A turn that ends on an Ollama model last listed on the server's default window emits models.changed once, since the server can then say the window it gave. The engine's 128,000 fallback, prompt choice and compaction are untouched. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The team's rules about starting a turn nobody typed were applied once per caller, and each caller wrote its own traffic line. The traffic watch's two wakes now ask one table of rules (team_wakedecide.go) and say the answer through one writer, and the engine's gate and the reason it gives are one function (wakeRefusalLocked) instead of a gate and a ladder that re-guessed it. No behaviour change: every line is written as before. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The traffic watch handed a directive over, moving the cursor past it, and only then asked whether a turn could start. A job refusing automatic work, or a seat that may not work, kept nothing of it, so the directive was lost. The decision now comes first: a refused wake says why, moves no cursor, and the next turn's own boundary hands the lines over. A wake that finds a turn already running no longer writes `woke @x`. That turn reads the lines at its next step, the watch looks again when it ends, and team_send answers that the member is in a turn. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… are A member its manager started had its own rules for its first turn, and said less than the traffic watch: held at its team's cap or by the person's pause it wrote nothing, and at the cap its brief was read off the log before the cap was asked. Its first turn now goes through the one decision, writes the line the watch writes for the same hold, and leaves the brief on the log until a turn may read it. The watch and TeamOpenPending also ask one predicate, teamEntryWakes, whether an entry starts a turn. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The hold was read before the agent's lock was taken and the ending queued under a second hold of it, so a command that ended in the instant of a stop found no hold, waited for the stop to let go and woke the stopped conversation. The hold is now a row of the wake table, decided by the note's cause under the lock the note is queued under, in the one function the three endings share. The record and the release of a parked worker stay one locked step, and the traffic is told nothing, as before. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A pause was decided before a turn started for team traffic only. A command ending, a watch firing, a task landing and news recorded as a turn ended each started the paused member's turn, and only the desktop app, where it held the member, ended that turn after it began. The engine now decides them by cause, in the wake table's standing holds: while a conversation is paused in any of its teams and no turn is running, what arrived is kept in the conversation as a record that starts no turn, with a sentence saying why, as the stop hold keeps a command's ending. The next turn reads it. The person's own words are never held, and the app's stop of a stray wake stays as a fallback. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…s a waiting member Under the stop hold a background task's landing still started the stopped conversation, which took the stopped work up again on the result. It is now kept as the task's quiet receipt with the sentence a held command's ending is given, and the person's next message or the manager's next hand-off reads it. A landing in a conversation nobody stopped, or in no team, is unchanged. A manager's team_stop held only a turn that was running: a member's own session read the stop only while a turn ran, so a member with no window that waited on a command was woken by its ending. Its idle watch now reads the stop and begins the same hold. Nothing is written for it and the manager is not woken by its own stop. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A model that was not loaded and set no num_ctx was listed as small_window with source default and no figure. Ollama decides that window when it loads the model, from the machine's memory or OLLAMA_CONTEXT_LENGTH and its settings slider, so on a larger machine or a raised setting the warning was false and its advice did not clear it. The engine now remembers, per Ollama address and model, the context_length last seen in /api/ps (in memory for the life of the process: a restart of the app is often a restart of Ollama or follows a change to its setting, so a figure kept on disk would be one nobody has measured since). A model that is not loaded and sets no num_ctx is reported with that window and source last_loaded, and with no small_window when it has not been seen running. A loaded model always reports its live window and updates the memory. The default source is gone from appwire's enum, PROTOCOL.md and the change entry. The models.changed after a turn now keys on "the server was not running the model at the last list", so it still fires when an unloaded model carries no limit. A list that runs out of time before it can ask about a model (its budget spent, or the 600 ms cap) repeats that model's limits from the last list that could, and keeps whether it was unloaded, so the warning does not blink and the post-turn refresh is not lost. A test drives the whole road through the app's doors against an Ollama stub: ListModels with nothing loaded, a turn's end raising exactly one models.changed, the loaded window on the next list and last_loaded after the server unloads the model. It fails without ListModels' addModelLimits, pump's modelLoadedBy or watchModelCompletions' tellModels. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the holds A task graph's result reached the conversation through the mailbox with no cause, so neither the pause nor the stop held it: a paused or stopped member was started on it. It now carries the landing cause and is kept as its task's receipt, keeping its task's identity and what settles its delivery. A background task's landing decided its hold, let the agent's lock go and queued its wake under a second hold, so a stop in between let it wake a stopped conversation. It is now decided and queued in one locked step through enqueueNote, and its own receipt is written once the lock is let go. A pause is temporary. News it held (a command's ending, a watch firing, a landing, a turn-end re-wake) is now owed a turn, and Resume starts one that reads it even when no directive waited; what a stop holds still starts nothing. The pause is read afresh where a turn ends and where a command's wake clock fires. With auto-wake off, the look for a manager's stop moved the watch's own cursor past a directive, which then woke nobody once auto-wake was turned on. It has a cursor of its own. A refusal by one of the engine's gates is said for every wake it refuses again, as before this branch; only a first turn's is said once per entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…etting reaches the list A loaded model whose Modelfile sets num_ctx was listed with source loaded, so the app advised raising Ollama's setting, which the Modelfile overrides; once unloaded the same model read modelfile and the advice changed. Such a model now reads modelfile whether or not it is loaded, with the running window as the figure when it is loaded. A turn's end asked for a new list only for a model unloaded at the last list, so a model loaded at 4,096 tokens kept its warning after the person raised Ollama's setting and the next turn reloaded it larger. A turn on a model last listed with a small window now asks for one new list too; a turn asks at most once. A server too old to say a running model's window, or one that unloads at once (keep_alive 0), made every Ollama turn ask for a list. A model listed as running without a window is no longer read as unloaded, and one the asked-for list still finds unloaded is not asked about again until a list sees it running. A model whose capability list lacks completion (an embedding model, which Ollama lists beside its chat models and the picker does not filter by name) now carries no limits, rather than no_tools as if it were a weak chat model. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
… the work on The app's Pause stopped a member's turn through the person's Stop, so it began the stop hold: what arrived next was kept as stopped work, the manager was told "stopped by the person", and Resume started nothing. Pause now ends the turn through StopByPause (the app's members.pause, and the "paused" stop line wherever the app or a terminal reads it back). It begins no hold and tells no manager anything; a turn it cuts on handed work keeps that work, and Resume starts one turn told why it began. A stop of the paused member withdraws that turn and ends the work. A program landing a hold kept said its limit twice with two notices and wrapped the hold's sentence inside the program's note; it is said once and the sentence follows the note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ive before it A seat or factory gate that closed after the wake was decided threw away lines the boundary had already handed over; they are kept as an ordinary line for the next turn. A manager's stop read in the same look as the directive before it no longer starts a turn on that directive. A note in a conversation with no team seat no longer reads the teams file for a pause. Tests cover these and a pause between a failed command's ending and its wake's clock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolves one conflict in cmd/codeaf/appwakes.go: dev's hosted chats are not the app's to stop, and this branch's paused-member stop ends only a turn nobody's words opened, through the app's own door. Both rules kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed small window asks for one list A model whose Modelfile sets num_ctx is judged by that figure, loaded or not: the engine's requests set no window, so its next turn loads the model with the Modelfile's figure, and a running window may be another client's. The figure is judged clamped to the most the model can hold, as Ollama clamps it, and reported as the Modelfile's own. A small window marks its model for a re-list only when it differs from the one the first list after the last notice read, so turns on an unchanged small window no longer emit models.changed each time. A hosted chat's turn no longer marks local Ollama models. The process's memory of windows and readings keeps at most 512 models each, dropping the oldest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… is bounded A Stop of a paused member now also ends the directives the pause held, so Resume starts nothing on them; one sent after the stop still starts the member. The turn Resume owes keeps to the hour's wake limit and the daily cap and stays owed while they or a gate refuse it. A turn the Pause cut is owed whatever opened it, and what its end drained is read at Resume; a follow-up the person queued is no longer dropped by Pause. Pause carries the Stop's bound through its own door (InterruptWithinFor, Within honoured for the pause door). Lines kept after a late seat or factory refusal drop the wake's lead, which was false when the next turn is the person's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
One pull request for the engine side of the crew delegation work. It now also carries what #2906 (the global manager) and #2909 (read-only tasks) held; those two are closed in favour of this one. Desktop side: Agent-Field/codeaf-desk#896.
Why
Three things measured in the desktop app on 2026-11-23 and 2026-11-24.
A manager reported work that never began. In the MacStats crew a member the person had paused was handed two directives.
team_sendanswered both with "a member that is idle starts a turn on it now", the member's turn was started and cut in the same second, nothing told the manager, and its view of the crew read "idle". It reported the work as started twice. Creating that crew had also started all three helpers at once on their proposal lines, one of which began work the person had not asked for.The global manager was woken for nothing. 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, and that started the global manager's turn. With the person talking to two crew managers directly, it was woken 22 times in one afternoon: 803,496 input tokens (531,200 read from cache), 333 output tokens, all 22 answers[no change]. The day before, one such wake had it send the person's own request back to a manager as a directive.A task went round the crew and wrote nowhere. The member had not started, so the manager proposed a task with
groundset to the person's repository and a brief that named no file by path. The engine reads that as work that only reads its ground (TaskModeReference), and nothing said so: the receipt read "It works in ", the worker was told nothing, the landing had no line. The worker built the project in its own folder and reported it "Integrated", and the manager told the person to run it from a repository nothing had been written to.What changes
Pause is the team's record
teams.Member.Paused, set byFile.SetPaused. The app'smembers.pauseandmembers.resumewrite it; a pause from an earlier build'screws.jsonis carried over once.File.PausedAnywhere), and a resume from any of them lifts it.TeamOpenPending) or woken. The directive is not consumed while it waits, across a restart too, and Resume starts the member on it.A directive's answer says what happened
team_sendwaits up to four seconds on the traffic and says, per member: started, already in a turn, waiting on the person, did NOT start and why, or no sign of starting yet.held @x: the person paused it; …line per directive.team_statusand the per-turn digest show a member's role,paused by the person; …,on standby; no work handed out yet,has not started on #N, andits last turn was stopped by the person.A stop holds, and reaches the manager
stopped by the person, wakes that team's manager once, and tells it the work is not done and not to hand it out again unless the person asks. Handed work lasts across the turns it takes.stoppedand wakes nobody. The app's two stops now cancel throughStopByClosingandStopByWorkStopped.internal/session/team_stophold.go: for a conversation with a role in a team, from a stop of a running turn until a turn next begins, a background command's ending and a watch's firing are kept as a record and start no turn. The stop still leaves the command running, as everywhere. A conversation in no team is unchanged.Proposal crews join on standby
teams.Member.Standbyandteams.Member.Role. A helper of an accepted proposal starts nothing on its start line; the manager's first directive starts it and hands it that line marked◆ your standing role from manager.team_startandmembers.startstill start a member on its brief at once.The global manager is not woken by a turn ending in
All teamsteamEventWakesManagerOf(root, …), used by the watch that wakes an open manager and by the path that opens a closed one. InAll teams, of a member's events onlyfailedandaskingstart the global manager's turn. Ateam_postto it, a decision packet and a declared conflict wake it as before.team_sendandteam_startsay that a manager answers a directive or a start brief withteam_post, and that the global manager never sends a manager the person's own request back as a directive.A task that only reads its ground says so
propose_task) is not a member; use one only for work no member is here for, or when the person asks for a task, and never to get round a member that did not start.One wake path, and Pause is not a Stop
internal/session/team_wakedecide.go: one function decides whether a turn nobody typed starts, and one writer says so. The traffic watch, a fresh member's first turn, a command's or watch's ending, a task's result (belt landing and task-graph result) and the turn-end re-wake all go through it. No new kind of traffic line; every existing line is kept word for word.woke @xis no longer written for a turn that was already running.held @x: …line the watch writes, and keeps its brief.StopByPause, bounded like the person's Stop. It begins no stop hold and tells the manager nothing; the turn ends with plainstopped. While paused, nothing nobody typed starts a turn: what arrives is kept in the conversation with "This arrived while the person had this conversation paused, so it started no turn. It is a record of what happened." Resume carries on: one turn, opening with "The person paused this conversation and has now resumed it, which started this turn. Carry on with the work you were on; anything above that arrived while it was paused is a record of what happened meanwhile.", whatever the cut turn was on, under the same hour limit and cap as any wake. A follow-up the person had queued is kept and runs as their own turn.team_stopof a member that is idle and only waits on a command begins the same hold.A listed model says where it falls short
models.listrows gainlimits:small_window(window,needs,most,sourceofloaded,modelfileorlast_loaded) andno_tools. Only models of an Ollama source are asked, through Ollama's own/api/psand/api/show, 300 ms per request and 600 ms in all; any failure reports nothing; a model that cannot chat (embedding-only) reports nothing.num_ctx(judged by its own figure, clamped to what the model holds, since it is what the app's next load gets), or the last window this engine saw it loaded with (kept in memory, at most 512 entries). A model never seen loaded gets nosmall_window.needsis the lean threshold (32,000). Prompt selection and compaction are unchanged: the engine still treats an unknown window as 128,000. This only reports.models.changedonce so the app re-lists; an unchanged small window stays quiet. Hosted chats never trigger it.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.
Not in this change
Checks
After the wake-path work (branch at
17c5e1e19), tried by hand in the built app: a paused member whosesleep 75ended started no turn and the ending was kept as a record; a hand-off to it was held and Resume started it two seconds later; Stop on the crew row with both members waiting onsleep 120wrotestopped by the persontwice, woke the manager once, and neither member started when the commands ended. Not tried by hand: a task landing in a stopped conversation.go vet, the team tests ofinternal/session(175 pass in 47 s),internal/teams,internal/tui3 -run Team,make fmt-check changelog-check manual-gates test-laws: pass. The wholeinternal/sessionpackage did not finish inside 15 minutes on the author's Mac under load from system daemons; CI's session shards are the check for it.New tests:
internal/session/team_pause_test.go,team_stophold_test.go,task_reference_test.go, additions toteam_nest_test.go,internal/teams/digest_test.go,cmd/codeaf/appproposalaccept_test.go,cmd/codeaf/appcrewstops_test.go.On the combined branch: the session, teams and remote packages, the crew, member, proposal, wake and stop tests of
cmd/codeaf, andmake fmt-check test-laws manual-gates changelog-checkpass.Tests that fail on this Mac the same way without this change:
TestTheSpendingTabIsTheSevenRowsAndNothingElse(only in a wholeinternal/tui3run), four git filter tests (TestAUsedFilterRefusesALandWithItsPaths,TestAnUnusedFilterDoesNotRefuseALand,TestConfigurationALandWillNotMergeUnder,TestFilterFactsChangingAfterAPlanRefuseTheLand), and two timing-sensitive factory tests incmd/codeaf.Tried by hand in the built desktop app, before the review repairs:
held @…line and no turn; the manager said it did not start; the pause survived a restart; Resume started the member on it.stopped by the person, woke the manager once, and nothing was handed out again. Two members waiting onsleep 100were stopped, and neither restarted when its command ended.finishedinAll teamswoke nobody; itsteam_postwoke the global manager, which told the person the result.groundand no file by path said on its receipt, to its worker and at landing that the repository was not changed; the repository was unchanged.Tried by hand again after the review repairs (this branch at
475dca2f9, in the built app): a hand-off to a paused member was held and Resume started the member on it one second later; with both members idle and waiting onsleep 200, Stop on the crew row wrotestopped by the personfor both, woke the manager once, and neither member started a turn when the commands exited; the crew manager finished eight turns and the global manager was woken by none of them.Not tried by hand: a read-only task after its review repairs; a member stopped mid-turn with a background command still running; a top-level manager's question or failure waking the global manager; the manager's new law steering it away from a task. Each is covered by tests.
Final review
Phases 1 to 4. Three impartial review rounds on each part, each by a fresh reviewer, with a repair round after each. No round found a blocker.
team_stopby the member's own session set no hold; a stop that found no turn told the manager finished work was not done; Resume was said in one crew only; handed work now lasts across turns; a manager's earlier stop no longer passes for the stop of a later turn.team_sendtold the global manager that endings wake it; a directive it sends is answered withteam_post; the rule became root-wide.groundstill got "It works in"; the landing called the git landing on a folder that is not a repository; a rerun turned into a writing task; a recovered reference run is accepted with the same line.One wake path and the model limits. Three more impartial rounds (fresh Opus reviewers), with a repair round after each.
Known limits, left as they are:
team_sendto a paused member in a turn the person opened still says it did not start, though that turn reads the directive at its next step.🤖 Generated with Claude Code