Skip to content

v0.3.3

Choose a tag to compare

@github-actions github-actions released this 16 Oct 18:14
· 70 commits to main since this release

What's changed

Removed

  • Seats are gone. Drive jobs run named launches (swarm run --job J --name N --role R --brief B), concurrency is per job, agents share a workdir, roles are prompt text; the seat vocabulary is renamed to launches everywhere (the credential jail remains).

Fixed (drive: jobs no longer get stuck)

  • An interrupted or exhausted launch is re-queued; a judge that ends without a verdict is re-queued and then escalated (DRIVER-ESCALATE), never closed "mechanical: unreachable" (F03).
  • A re-queue restarts the attempt counter, a reopen starts a new generation and queues the lead, and every skipped launch says why (DRIVER-SKIP) (F03b).
  • The lead's swarm done is recognised as a hand-off; a ruling not_met keeps the job active and re-queues the lead; the judge Stop hook no longer blocks on a false "board unavailable"; the codex command is configurable and refused up front when missing (F03c).
  • A driver step exception escalates instead of scheduling a ruling; tracebacks go to driver.log; hand-offs without an artifact are tolerated (F03d).
  • A job with no landing destination completes on met; met on unlanded work is never unreachable; a person can always complete a met job (F03e).
  • Budget, session, wall-clock and attempt exhaustion escalate and hold for a person instead of ruling unreachable; an unchanged head is never re-ruled (F03f).
  • The learnings hold survives a budget hold; launch homes carry the standing-rules cache (F03g).
  • A same-sha hand-off is "no progress", the goal judge runs once per head, and a hand-off no longer cancels the lead's engineers (F03h).
  • swarm pause/swarm resume keep the drive ledger consistent; stale resume handles are dropped; the judge backoff holds only the judge (F03i).
  • Seeded cache directories are 0700 and repaired; fix rounds never target the judge; the per-head judge cap covers fix rounds (F03j).
  • Ruling holds are distinct from budget holds, stale ruling deadlines clear, and engineers run after a per-head ruling (F03k).
  • A met verdict clears every hold; every hold is visible as waiting on: in swarm status; settle_halt saves a fresh ledger (F03l).

Added

  • swarm await --job J: the orchestrator's wake-up. It blocks until something needs the orchestrating session and prints one line per item (kind, key, age, action), then exits: an open question or blocker (answer Q492), a post addressed to the orchestrator or its role, a BRANCH READY, INFRA REQUEST, VERDICT or ORDER post, or a job state change. --once prints the open items without blocking; --timeout S exits with no items after S seconds; --poll S (default 5) sets the check interval; --remind S (default 60) reports an open item again once it was last reported S seconds ago, so a dropped wake-up comes back on the next call. Items collapse by key (one per question, per branch@sha) and stay open until resolved, not merely read. The await keeps its own cursor per (job, session) in the board's metadata, so it never consumes the messages a read or another await would see.
  • The orchestrator is woken for its own job. An orchestrating session that activated a non-drive job is told on each tool call, until it runs one, to start swarm await --job J as a background command; one await runs per session and job, and it is restarted after each exit. swarm doctor shows orchestrator wake: armed or NOT ARMED per owned job.
  • PM-STALL: a job never silently waits on its orchestrator. A blocker or a message addressed to the orchestrator (or its role, @PM) that stays unhandled for [job] orchestrator_stall_minutes (default 5, 0 = off) gets a PM-STALL <item> age=<m> board post, once, then again every that many minutes while it is unhandled. [job] notify_on_stall = true also tells the person through [notify] (push_url, or telegram_token and telegram_chat). swarm status and swarm watch show waiting on ORCHESTRATOR since <age>, distinct from a wait on a person.
  • Seat continuity. swarm activate on a closed job puts the reopening session back on the board in its previous role (for example project_manager) under its previous name. swarm post --to @PM (or any @role) with nobody in the seat is queued instead of refused and delivered to the next holder that joins. swarm join --judge and the spawn and seat-request paths refuse a second judge with judge seat held by <name> (joined <age> ago), and the not-met brief names a judge that still holds the seat.
  • Stale blockers are flagged. swarm blockers marks an open blocker POSSIBLY STALE when its subject is resolved: its PR landed or merged, or a later message names the same branch with another sha. blocker resolve takes several ids in one call (nothing is resolved if one id is unknown).
  • swarm answer works for the orchestrating session without a join. The session that owns an open job (its activation marker is bound to it) answers as its previous board name, else as orchestrator, instead of failing with "no active board identity".
  • Addressed posts are delivered whole. A --to post longer than the board's message cap keeps its head on the board and puts the full text in a file under the swarm data dir (~/.local/share/swarm/posts/<job>/), named in the message. Broadcasts keep the cap.

Changed

  • Memory: no periodic recall, no timed reminder. An agent gets one start recall, scoped to its job's subject tags and topic; after that it asks with swarm recall "<query>", which searches every subject (--tags/--bank narrow it). Migration: [hindsight] recall_minutes and remember_nudge_minutes are gone; configs that still have them keep working (the keys are ignored), delete them.
  • Memory tags are subjects, never ids. A job carries subject tags (swarm activate --tags swarm,astro-loom; swarm job tags --job J --add/--remove/--set, any time, posted on the board); swarm remember and swarm learn stamp exactly those (plus --tags), read at the moment they run. The job, agent, session and host go into metadata only; job:/agent: tags are no longer written. Memories already stored are not rewritten.
  • Learnings are mandatory. An agent cannot stop normally until it stored a memory or declared none (swarm remember --none "<reason>"): the stop is blocked once. Agents that end abnormally are marked unharvested, with no LLM call. swarm deactivate is refused until every agent is harvested and something was stored (swarm learn --job J --harvest, then swarm learn ... - or --none); a person may waive it with --no-learn "<reason>". Drive jobs run the step through a learner seat before they close.

Full changelog: https://github.com/fcarucci/Swarm/blob/main/CHANGELOG.md

Install

curl -fsSL https://raw.githubusercontent.com/fcarucci/Swarm/main/install.sh | bash

Upgrade every host that shares a board together (swarm upgrade); see README.md, Upgrading.