Skip to content

Teams that work end to end: fixes from a live run, a tick that wakes on mail, desktop tasks that reach the team - #623

Merged
FMXExpress merged 3 commits into
mainfrom
claude/pasclaw-desktop-plan-uapzcp
Oct 29, 2026
Merged

FMXExpress merged 3 commits into
mainfrom
claude/pasclaw-desktop-plan-uapzcp

Conversation

@FMXExpress

Copy link
Copy Markdown
Owner

A follow-up to #622 in two commits. #622 built the team board's rules; this makes a team actually run on them.

The duo team (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 in bench/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 mail

  • task create silently dropped assignee. The lead's tasks had no owner, and the developer was told nothing was ready. Create now takes it and says (assigned to dev).
  • Unowned ready work stalled the team with nobody woken on boards where no agent takes unassigned work (duo, software-team). Now:
    • an unowned task that becomes ready tells the lead;
    • the tick reports unowned ready work to the lead after a cadence.
  • Assigning a task told nobody. The owner only found out at the next cadence (15 min by default). Now the board messages the new owner once the task can start, and the lead's role no longer messages assignees as well.
  • A progress note replaced the lead's brief. Agent notes are now added under the author's name; the board listing trims long histories.
  • Smaller fixes:
    • The kickoff names the team, so the lead's first call was no longer agent list.
    • agent list returns each role's first line instead of every full role prompt (8 KB in the live run).
    • agent send accepts to/message, and says which fields it needs.
    • pasclaw team up warns when the board or agent tools are off. Without that, the lead woke with no task tool.
  • Every mail-driven handoff still waited out the tick's 30 s sleep. Queueing mail for an idle agent now wakes the tick, capped at one mail-driven pass a second.
  • A stall report re-sent itself every pass until the lead acted, because it is itself mail. Reports, the done-board count and the cadence clock now move only on cadence passes.

df6e9d5 — work added on the desktop reaches the team

  • New tasks are announced as soon as they're saved, whether from POST /v1/projects/<p>/tasks or the task tool:
    • ready unowned work goes to the board's takers, or to its leads if nobody takes unassigned work;
    • owned work has already told its owner;
    • work that waits is announced when what it waits on is done.
    • Not announced: the lead's own tasks, and the desktop's checklist mirror ("source":"checklist", the chat agent's own steps).
  • A team the board parked goes back on when new work arrives. The tick now marks its own parks (auto_parked). A team the operator parked (team down, CLI or HTTP) stays parked.
  • Desktop: New task… and a new Edit on each row open one form: title, notes, owner, acceptance checks and waits on. POST takes assignee, 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:

before after
provider calls 36 29
request bytes 1.32 MB 0.96 MB (Foreman −43%)
tool errors 1 0
kickoff → board done 20 m 22 s, stalled until a restart 3 m 36 s

New make bench-teamboard (not part of make 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 test passes under FPC 3.2.2.
  • New and updated tests:
    • team_board_tests: handoffs, new work, the agent tool's field names and lean roster.
    • team_review_tests and teams_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.
  • For each fix I disabled it in the code and confirmed its test failed: 25 of 25 caught. The CLI warning and CLI team down were checked by hand. The tick thread's loop is covered by the replay bench.
  • The task form was driven in Chromium (Playwright) against a live gateway. Owner, checks and waits-on were saved, the owner and the lead got their notices, and a board-parked team came back on.
  • Not compiled with Delphi (dcc64). Only FPC is available here. The new code avoids FPC-only calls. The mail event is made on first use, because on FPC/Linux it needs the thread manager, which some single-threaded test programs don't link.

Known and not changed

  • Request bytes vary about 0.3% run to run on the same binary (one in six replays). Not traced yet; noted in LIVE.md.
  • Mail queued by another process (the CLI's kickoff) still waits for the next 30 s slice.
  • The kickoff for team up --project carries an empty Goal: line. That predates this PR.
  • Next candidates, from LIVE.md:
    • tool schemas are 65% of request bytes, so per-role tool sets;
    • agent sessions grow across wakes;
    • the system prompt changes 14 times in 29 calls.

Generated by Claude Code

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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T17:29:24.135395Z df6e9d5 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/pkg/gateway/desktop.html Outdated
Comment on lines +4100 to +4102
let agents = [], tasks = [];
try { agents = (await api("/v1/agents")).agents || []; } catch {}
try { tasks = (await api(`/v1/projects/${project}/tasks`)).tasks || []; } catch {}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: dev and waits_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
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.

2 participants