Repository navigation
Teams that work end to end: fixes from a live run, a tick that wakes on mail, desktop tasks that reach the team - #623
Conversation
The duo team was run live through the relay provider with the model played by hand (bench/teamboard/LIVE.md). The review loop held; what broke was around it: - task create dropped "assignee" silently, so the lead's tasks had no owner and the developer was told nothing was ready. create takes it. - ready work nobody owns, on a board with no takers, stalled the team with nobody woken. An unowned dependent tells the lead when it becomes ready, and the tick reports unowned ready work after a cadence. - assigning a task told nobody; the owner was found at the next cadence. The board now messages the new owner when the task can be started, and the lead's role no longer messages assignees as well. - an agent's progress note replaced the lead's brief. Agent notes are added under the author's name; the listing trims long trails. - the kickoff did not name the team (the lead's first call listed every agent, role prompts and all); it does, and agent list carries each role's first line. agent send takes to/message, and says what it needs. - pasclaw team up did not warn when the board or agent tools were off. - every mail-driven handoff still waited out the tick's 30 s sleep. Queueing mail for an idle agent now signals the tick (at most one mail-driven pass a second). Stall reports, the done-board count and the cadence stamp move on cadence passes only -- a stall report is itself mail, and was re-sent on every pass the lead had not acted on. Same decisions, before and after: 36 -> 29 provider calls, 1.32 MB -> 0.96 MB of requests. Replayed with no think time (make bench-teamboard, new), the run takes 5.3 s of harness time instead of 180 s. Each fix is revert-checked; full make test passes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KYD1zZPD7GuM8pF1btwi2U
A task added to a team's board after kickoff used to reach nobody: it had no owner, the built-in teams take no unassigned work, and it sat until the lead happened to look -- or, once the board was done and the team had parked itself, forever. And the desktop could only make a title. - New work is news at once. AnnounceNewTask, called by POST /v1/projects/<p>/tasks and the task tool's create: ready work nobody owns reaches the board's takers, or its leads when nobody takes; owned work has already told its owner; work that waits is news when what it waits on is done. Not the lead's own tasks, and not the desktop's checklist mirror (the chat agent's own steps -- "source":"checklist"). - A team the board parked goes back on. The tick marks its own parks (auto_parked); new work on that board re-enables the team, due at once, and nudges the tick. A team the operator parked (team down, CLI or HTTP) stays parked. - The desktop's New task... and each row's Edit open one form: title, notes, owner, acceptance checks, waits on. POST takes "assignee"; edits send only what changed. Long titles ellipsize so the row's buttons stay in the pane; the tooltip has the whole line. Each rule is revert-checked (eleven of eleven caught); the form was driven in Chromium against a live gateway; make bench-teamboard still matches its recording; full make test passes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KYD1zZPD7GuM8pF1btwi2U
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: df6e9d5121
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let agents = [], tasks = []; | ||
| try { agents = (await api("/v1/agents")).agents || []; } catch {} | ||
| try { tasks = (await api(`/v1/projects/${project}/tasks`)).tasks || []; } catch {} |
There was a problem hiding this comment.
Preserve task fields when form data cannot be loaded
If either lookup request fails, the edit form silently treats the unavailable roster or dependency list as empty. Saving then interprets the missing controls as intentional edits: a failed /v1/agents request clears the existing assignee, and a failed tasks request clears waits_on, potentially making dependent work runnable prematurely. Executing the form with both requests failing produces {"assignee":"","waits_on":[]} even when Save is clicked without changing anything. Disable saving until these lookups succeed, or preserve the existing values for fields that could not be loaded.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Confirmed and fixed in ba13f27. I took the "preserve existing values" route rather than disabling Save:
- The task's own owner and prerequisites always appear in the form. If a lookup failed, they're marked "(roster not loaded)" / "(board not loaded)".
- The same marking covers deleted agents and tasks. An owner that's no longer an agent, or a prerequisite no longer on the board, shows as "(not on the roster)" / "(not on the board)". That case had the same hole by another route.
- The form says which lookup failed.
- An untouched Save sends nothing.
Reproduced in Chromium against a live gateway with both lookups aborted:
- Before: an untouched Save sent
{"assignee":"","waits_on":[]}and cleared both fields. - After: no PATCH is sent, and the task keeps
assignee: devandwaits_on: ["T0001"].
The normal create/edit flow behaves as before, and make test-desktop passes.
Generated by Claude Code
…ites" Codex on #623: the edit form loads the agent list and the board to build its owner and waits-on controls, and treated a failed lookup as an empty one. The task then showed no owner and no prerequisites, and Save sent those as edits -- {"assignee":"","waits_on":[]} on an untouched form -- unassigning the task and making waiting work ready. The task's own owner and prerequisites are now always offered, marked "(roster not loaded)" / "(board not loaded)" when they could not be checked -- or "(not on the roster)" / "(not on the board)" when the agent or task is gone, the same hole by another route -- and the form says which lookup failed. An untouched Save sends nothing. Reproduced in Chromium against a live gateway with both lookups failing: before, the PATCH above and both fields cleared; after, no PATCH and both kept. The normal create/edit flow re-run unchanged; make test-desktop passes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KYD1zZPD7GuM8pF1btwi2U
A follow-up to #622 in two commits. #622 built the team board's rules; this makes a team actually run on them.
The
duoteam (Foreman + 10x Developer) was run live through the relay provider, with the model played by hand. The method, the numbers and the remaining ideas are inbench/teamboard/LIVE.md. The review loop worked. What broke was the plumbing around it: handoffs, ownership and timing.288799a— fixes from the live run, and a tick that wakes on mailtask createsilently droppedassignee. The lead's tasks had no owner, and the developer was told nothing was ready. Create now takes it and says(assigned to dev).duo,software-team). Now:agent list.agent listreturns each role's first line instead of every full role prompt (8 KB in the live run).agent sendacceptsto/message, and says which fields it needs.pasclaw team upwarns when the board or agent tools are off. Without that, the lead woke with notasktool.df6e9d5— work added on the desktop reaches the teamPOST /v1/projects/<p>/tasksor thetasktool:"source":"checklist", the chat agent's own steps).auto_parked). A team the operator parked (team down, CLI or HTTP) stays parked.POSTtakesassignee, and edits send only what changed. Long titles end in "…" so the row's buttons stay in the pane; before, long rows scrolled the whole list sideways.Numbers
Run 1 and run 2 made the same decisions before and after the fixes:
New
make bench-teamboard(not part ofmake test): it replays the recorded run's 29 answers through a fresh gateway with no think time. The 30 s tick took 180.4 s and the mail-signalled one takes 5.3 s. Each handoff dropped from 29.5–29.9 s to 0.5–0.8 s.Testing
make testpasses under FPC 3.2.2.team_board_tests: handoffs, new work, the agent tool's field names and lean roster.team_review_testsandteams_tests: setups adjusted for owners now being told.desktop_routes_tests: stall reports once per cadence, the mail signal, new work through the route, park and resume.team downwere checked by hand. The tick thread's loop is covered by the replay bench.Known and not changed
LIVE.md.team up --projectcarries an emptyGoal:line. That predates this PR.LIVE.md:Generated by Claude Code