Skip to content

Release 0.16.0: a team of ten, FACTORY x herdr up front with real screenshots, and the fixes from three review rounds - #61

Merged
flujo-app merged 20 commits into
mainfrom
readme-team-of-ten
Dec 3, 2026
Merged

flujo-app merged 20 commits into
mainfrom
readme-team-of-ten

Conversation

@flujo-app

Copy link
Copy Markdown
Owner

Release 0.16.0. The README now shows a team of ten (a lead, eight builders and a reviewer) and puts FACTORY x herdr up front, with real screenshots. It also fixes the FACTORY and herdr bugs found in three review rounds.

README and guide

  • The example request asks for a team of ten. "Watch your team in herdr" comes right after "Try it" and has two real screenshots:
    • assets/herdr-team.webp: a real team-of-ten run led by Claude Code (record: evidence/local-team-1plus9-20261202.json, FACTORY 0.16.0, accepted in 2 min 43 s).
    • assets/herdr-fleet.webp: a real Docker fleet of 2 × 10 Claude Code agents.
  • Includes the optional herdr sidebar setting, the Codex note (factory-herdr team after the workers are started), and what a check sees (only the handed-in files; use $node, not npm).

Fixes

  • Teams with a lead finish on their own. The lead is woken to put the whole together once every child task is accepted. Team members stay while the lead's job is open. Failed turns are retried.
  • herdr panes:
    • Each pane gets the agent's name as soon as it is opened, and is used only while it has that name.
    • FACTORY never types into a pane where another program runs. This is checked against what herdr 0.9.5 really reports.
    • On Windows, a follower is started again only in a fresh shell.
    • A failed first start is retried.
    • A slow herdr answer no longer opens a second tab.
    • The panes form an even grid for ten agents and more.
  • Checks (gates):
    • A check runs on a fresh copy of exactly the handed-in files, under one clear run name.
    • Its copies are removed once it has a result, or when it is refused.
    • A leftover copy is never reused.
  • Hand-ins: they never include the board's own files (database, store, logs, runs, other hand-ins). These are left out only where they actually are, so a project folder with the same name further down is still handed in.
  • Fleets: files are replaced safely on Windows while someone reads them. The fleet watcher stops on a permission error that does not go away.
  • Dependencies: npm audit fix --omit=dev for new advisories (lock file only).

Local CI (public-sdk.yml steps on a clean LF snapshot of 824abc6)

Platform Node npm ci audit focused tests python package + MCP smoke evidence
Windows 10 22.17.0 ok ok 398 / 398 ok 2 / 2 7 / 7
Windows 10 24.22.1 ok ok still running at release time (64 passed, none failed so far; the PC was at 100% CPU) – – –
Linux (Docker, bookworm-slim) 22.17.0 ok ok 397 / 398 (1 Windows-only skip) ok 2 / 2 7 / 7
Linux (Docker, bookworm-slim) 24.22.1 ok ok 397 / 398 (1 Windows-only skip) ok 2 / 2 7 / 7

Real runs

  • A team of ten led by Claude Code (Sonnet) in herdr 0.9.5, in a Linux container: accepted. See the evidence file above.
  • A Docker fleet of 2 × 10 agents: every agent took turns, claimed work and sent messages. The fleet was retired with no containers, volumes or networks left.

Not covered

  • A third review round on the last fix commit (824abc6) was stopped early to get the release out. Its findings, if any, go into 0.16.1.
  • The cloud-lite-flujo test "no stop receipt…" failed once under heavy load earlier. It passed 10 times out of 10 on both this branch and main.

When the agent runs the team, a task with objective checks (gates) sat in
'verification' forever after the reviewer accepted it: no worker may run a
gate, the supervisor was never told to, and running one in the shared work
folder always failed because that folder also holds the board and other files.

- factory_verification now needs no folder for handed-in files: the exact
  frozen files are written into a fresh folder next to the board
  (workflow-runs/<runId>/candidate) and the gate is checked there.
- runId defaults to <candidateId>-<gateId>, so asking again picks up the
  first run instead of starting a second one.
- The supervisor's instructions now say to run each gate of an objective
  task once it is handed in, and that a failing gate sends the work back.
- New test/objective-gates.test.mjs drives root, builder and reviewer through
  the MCP server: a passing gate gets the task accepted, a failing one sends
  it back. Added to the focused list in public-sdk.yml.

Refs #51
On Windows, replacing a file fails with EPERM while another process has it
open, even for the moment `factory-herdr fleet` takes to read
observation.json or fleet.json. That ended supervise(), stopping its login
refresh and deadline shutdown, and left a stray .next file behind.

- New replaceFile helper (src/cloud-lite/replace-file.mjs): on Windows it
  tries a busy replacement (EPERM, EACCES, EBUSY) again with a short backoff
  for about 1.5 s; if it still fails it removes the temporary file and
  throws.
- Used for observation.json, the fleet.json journal, the Docker and Sprites
  stand-in state and secrets files, and local worker records.
- supervise() no longer ends when observing fails on a local file: it
  records an 'observe.failed' event, still keeps the shutdown deadline, and
  observes again at the next interval.
- New test/replace-file.test.mjs, added to the focused public SDK list.

Refs #51
Panes
- The pane list moves out of the worker record folder (<board>.workers/herdr/layout.json),
  and list() only counts real worker records, so no phantom 'lost' worker and no pane
  for agent 'undefined'. A herdr.json left by 0.15.0 is moved over.
- New panes split the group's largest pane along its longer side (a cell counts about
  twice as tall as wide), and each pane's share of the tab is kept in the list: ten agents
  get an even grid instead of panes a few characters wide.
- A saved pane is checked with process-info: when only its shell runs (follower quit, or
  herdr restored the pane), the follower is started again; nothing is typed into a pane
  running another program; a list from another herdr session is not used.
- Opens run one at a time per list: a queue inside the process plus a lock file next to
  the list (stale when its process is gone or after two minutes), so workers started
  together share one tab and all stay in the list.
- Only herdr's 'pane not found' counts as a closed pane, not a slow answer.
- Each pane is renamed after its agent (best effort).
- Quoting: typographic single quotes are doubled for PowerShell; cmd quotes & ^ | < > ( )
  % ! (a set %NAME% cannot be fully protected in cmd); any shell that is not known as
  POSIX gets PowerShell quoting on Windows; the shell is the process shell_pid names.
- A state or label herdr did not accept is sent again next time.

Followers
- A worker started again is read from the start of its new log (its requestedAt changed).
- The board's tasks are read through a read-only connection, only when the worker's
  state or log changed or every 5 seconds: the follower no longer writes to the board.
- A worker whose program ended with an error, or whose turns ran out with work open,
  needs you; one stopped on purpose shows as stopped.
- A fleet agent stopped by the operator shows as stopped, a failed turn shows its error
  code, and a turn cut off by a restart says so instead of 'its last turn failed'.
- Every fleet agent's activity goes to its file even while its pane is not open, and
  activity waits for the first status report instead of being skipped.
- Traces are read in bounded pieces (8 MB), so a huge traces.jsonl no longer crashes.
- A stopped or retired fleet, or one whose status report is over two minutes old, shows
  its agents as idle ('fleet stopped', 'no news since 14:02'); a stopped fleet is not
  asked, and a repeated error is printed once.
- --observe makes the fleet object again while its journal was missing or named no
  machine, so a follower started during the deploy catches up; --flujo-cloud <folder>
  gives --observe cloud its flujo-cloud folder; a missing fleet folder is refused.

Refs #51
A lead with eight builders and one reviewer, started together as local
workers, used to stall in several places. Each is fixed here:

- factory_create accepts a lead and its team in one call: an agent's
  parentId may name a lead listed before it.
- Root may factory_assign the whole job to a lead (and reads every
  event), as the supervisor at the top of the tree. A lead may also
  assign to a lead directly below it.
- The lead is woken once all its child tasks are accepted: the next
  actions now say "integrate" then, and nothing while the children are
  still open, so the lead spends no turns waiting.
- Builders and the reviewer under a lead wait while the lead's own task
  is open, instead of ending after a first turn that found nothing yet.
- Opening the board waits for a passing lock from the first statement,
  and the worker runner tries again on a lock instead of failing.
- A failed turn (for example a usage limit) is tried again after a
  pause; three in a row end the worker. Only turns that changed nothing
  on the board count against the turn limit, so the team's one reviewer
  is not cut short by real work.
- Handing in again after a review sent the work back reopens the task
  first, as the builder's instructions already promised.
- The lead's instructions name parentTask, ask for all child tasks up
  front, and say how to integrate and hand in. Root's instructions teach
  a team with a lead and starting everyone at once.

New test/lead-team.test.mjs runs a 1+9 team end to end with the real
engine, runner and MCP server and a stand-in agent program.

Refs #51
…wording, npm note, missing evidence link

scripts/local-team-smoke.mjs gets --team 1+9: one sentence asks for a small book written by a team of ten, and the record keeps every handed-in Markdown text. Docs: the self-host price includes the reserved CPU and memory, the old 'no npm publication' note is dated, and a link to a record that was never kept is removed.

Refs #51
# Conflicts:
#	.github/workflows/public-sdk.yml
# Conflicts:
#	.github/workflows/public-sdk.yml
#	bin/factory-mcp.mjs
…ale panes

- A lead whose whole job is sent back and who hands out more child work is
  woken again once that work is accepted (it used to wait forever).
- Work that waits for an agent whose turn ended without doing it (a program
  that gave up after a tool error) is offered again after a while, each time
  twice as late; such turns count as turns that changed nothing.
- The runner's state file is replaced with the Windows-safe file replace.
- supervise() keeps going only for files that are busy for a moment
  (EPERM, EACCES, EBUSY), not for a missing journal or a full disk.
- herdr: a reused pane is typed into only while it still has the name FACTORY
  gave it (after a herdr restart its id can name someone's own shell); a
  stop receipt only counts for the turn it stopped; a worker's start waits at
  most 20 seconds for another process opening panes; a lock is taken over as
  stale only after 10 minutes, or at once when its process ended.

Refs #51
When Claude Code leads, it picks the names; the record now reads the lead, the reviewer and the builders from the board instead of assuming them.

Refs #51
…art clean

A builder whose work waits for its review showed 'waiting for work'; it now shows 'handed in chapter-1'. A follower clears its pane when it starts, so the command typed to start it does not stay at the top.

Refs #51
…hots

- The front page asks for a team of ten: a lead who splits the work, eight
  builders and a reviewer who checks every piece and the whole. The code
  example builds the same team.
- A real herdr screenshot opens the page, and the herdr section now comes
  right after "Try it", with a second real screenshot of a Docker fleet
  (two machines, a lead and nine Claude Code agents each), the sidebar
  setting that shows each agent's job, the Codex and fleet-watcher notes.
- The headline number is a new real run: one sentence to Claude Code, a
  team of ten, a small book written, every chapter reviewed and the whole
  put together in about two minutes (evidence/local-team-1plus9-20261202.json).
  The old link pointed to a record that was never committed.
- "No worker can act as the boss" was more than the code holds: it now says
  what the board connection guarantees, and that workers still have full
  access to their computer.
- The guide covers teams with a lead, factory_wait, running gates, and the
  herdr changes (grid, restarts, stale fleets, --flujo-cloud).
- docker-fleet-smoke: a model alias such as "haiku" answers as its full
  name, such as "claude-haiku-5-5"; the check no longer fails on that.

Refs #51
Version 0.16.0 in package.json and package-lock.json; the guide's install lines point to v0.16.0 and say what is new.

Refs #51
…dvisories

npm audit --omit=dev reported a critical advisory in cross-spawn (command injection on Windows when spawning batch files) and moderate ones in hono and @hono/node-server, all pulled in by the MCP SDK. npm audit fix moves them to fixed versions within their allowed ranges; only package-lock.json changes.

Refs #51
…dy their copies; hand-ins never carry the board's own folders
…me, never typed into while another program runs (and never twice on Windows); the fleet watcher ends on a lasting permission error; the runner reads the board once per look; docs say what a check sees
…erdr answers keep the group's panes, Windows restarts a follower only in a fresh shell; hand-ins leave out the board's own files only where they are; gate copies are always fresh and always removed; check advice that works on Windows
@flujo-app
flujo-app merged commit 6407ebe into main Dec 3, 2026
2 checks passed
@flujo-app flujo-app mentioned this pull request Dec 3, 2026
3 of 4 tasks
@flujo-app
flujo-app deleted the readme-team-of-ten branch December 3, 2026 01:06
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.

1 participant