Repository navigation
fix(server): group members build on the lead's answer instead of racing it - #143
Conversation
…ng it A message to everyone started every member at once, each told to give its own view, so a group answered one question several times in parallel and then traded agreements in reaction rounds. A message to everyone now starts only the thread's own model. Its reply wakes the others, who see the question and that answer and add only a correction, a risk, evidence, or work nobody has done, or reply PASS. The lead owns the answer: it can hand part of the work to someone with a final handle line, and when someone adds something it says briefly what changes and closes with @user. Naming members with @ still starts them all at once. A seat woken by the lead's reply also receives the user's attachments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
ScriptedAlchemy
left a comment
There was a problem hiding this comment.
Audit of 1237645cdcb9b099d1de948dda68ca78194998a5; fixes pushed in this pass.
The lead-first path could drop the original user's attachments and composer context when a text-only clarification arrived before the lead finished. The fix carries evidence from all unseen user source messages, deduplicates it, and keeps the existing delivery cursors. I also reproduced a follow-on dispatch failure when those messages collectively exceeded the composer-context limit. The final implementation keeps the newest referenced records within the existing count/serialized-size limits and projects omitted references as unavailable, so omitted project-memory links cannot fail later as stale context.
Validation: 179 unique tests passed across group policy/integration, composer-context contracts, deterministic eval graders/simulations, and the other gate-selected server paths. The attachment, context, and aggregate-limit cases were observed failing before their fixes. Final native build, formatting, lint, both Knip scans and GraphQL checks passed. Direct typechecks passed for server/contracts (after the final edit) and evals/scripts. The cached typecheck launcher was blocked by this environment's seccomp supervisor; I am not claiming all 37 affected packages were typechecked locally.
Validation gap: the repository's test-t3-app skill requires the built-in T3 Browser preview tools and explicitly stops UI verification if those tools are absent. They are absent here, so I could not independently repeat the integrated browser/live-model demonstration. No model-facing prompt was changed by this audit fix; deterministic eval tests are not a live-model quality rerun. Fresh GitHub CI is being checked before merge.
In a group, a message to everyone started every member at once, and each was told to "give your own view". Both models answered the same question in parallel, often running the same commands. The reaction rounds that followed were mostly "I agree with you on…" plus a restatement.
Fix
@still starts them all at once, since the user asked for that. (ThreadGroupDecider.resolveGroupAudience)PASS, which clients already show as "had nothing to add".@user.GROUP_PARALLELis unchanged. It now only decides whether several woken seats react at once in groups of three or more.Evidence
Real models in the web client (dev server, Claude Haiku 5.5 as lead, Codex GPT-6-Luna invited). Run timeline from the dev database: the lead ran 07:03:33 → 07:03:49, and the seat was first requested at 07:03:50, after the lead's reply.
The screenshot's own topic, "should memory search auto-generate synonyms and retry?": Luna added one new risk in two sentences ("a genuine 'no results' can turn into a misleading near-match"), with no agreement preamble. The lead folded it in and closed.
Evals (
evals/group-conversation, freemorph-kimik31, judgemorph-kimik3, 3 samples):seat-adds-nothing-to-complete-answer(new, from the screenshot)seat-corrects-lead(new)lead-folds-in-correction(new)The edit cases (
ordinary-edit,seat-joins-main-edit,public-reply-after-edit) fail on this model in the harness itself. Kimi writes absolute paths (/home/user/app/notes.txt), which the simulated file store rejects.ordinary-edituses no group text and fails the same way. Not changed here.Tests: the group integration tests now assert that seats wait for the lead, that a seat's first turn contains the lead's reply, and that the user's attachment reaches that seat. The attachment assertion fails without the
Orchestratorchange. 10 existing tests encoded the parallel first hop; they now either sequence the lead first or name members explicitly where they test several members running at once (stop, steer, reactor convergence).vp run check:changedpasses.Fallback validation:
vp run check:changedpasses: 185 tests across eight files, affected-package typechecks (37 packages), formatting, lint, knip, and GraphQL checks. Eight integration cases cover a failed or empty lead reply, PASS, consecutive failures, all members passing, an unavailable provider, and explicit-primary addressing. The five original fallback regressions failed before the fix; the removed-provider case also failed before attempted deliveries were persisted. The existing eval simulation now expects each member to get one chance when all replies are PASS.In additional browser runs, the Kimi lead was instructed to return PASS, the existing Luna seat failed authentication, and the newly invited Morph DeepSeek V4.1 Flash seat answered the question. The final run answered “23 plus 19 is 42.” and closed with the requested
@usermarker; the persisted discussion state wasnull, closed assettled. A plain seat reply can still start the normal collaboration round; fallback attempts and those later reactions share the same budget. This browser run used available free models because the saved Haiku/Luna configuration was unauthenticated after restarting the dev server.Surfaces: the shared server scheduler applies to web, desktop, mobile, MCP, and local/remote connections. The contract gains an optional discussion field for attempted members; older stored discussions remain readable. The user guide explains lead-first answers and bounded fallback.
Initial implementation: Claude Opus 5.5 in Claude Code via T3 Code. Fallback implementation: GPT-6-Astra in the Codex harness via T3 Code.