Repository navigation
Releases
Releases · bzdOS/hubd
0.9.88 — a law can be retired; a candidate is a rule two roles said
- A law can be retired. Laws were only ever added: the section is never rotated, and
hub_contexthands every law to every role of the project, so one card reached 116 laws,
17 KB, read at the start of every session.hub reflect --retire <id|text> --reason "<why>" --project <p> --by <head>(MCPhub_lawwith verdictretire) moves a law's line to the
project's history with its reason, under the same right as accepting one; the journal says so,
and the rule is no candidate again until it is said after the retirement.hub reflect --laws --jsonnow gives each law its id. - A candidate is a rule two roles said. A rule one role said three times was a candidate too;
a role repeating itself is that role's habit, not a law for every role.hub reflect --promote
now lists only rules said by two roles in the window. hub lintwarns when a card's Laws pass 8 KB (laws-too-long), with how to retire one.
Also in this npm release, since 0.9.78
npm went from 0.9.78 to 0.9.88; the versions between were released in git only.
0.9.87 — 2026-11-21
- Resource cards merge like project cards. The card driver covered
projects/*.mdonly. A
resource card is rewritten from two nodes as well: a rollout stamps its card on every run while
a person adds a field on another node, and git's text merge stopped that node's sync for five
hours on one- set:line.hub card merge-drivernow putsresources/*.mdunder the driver
too;hub doctornames a node that has the old install. Run it again on every node. - Frontmatter merges field by field. A rollout rewriting
rolled:and a person adding a field
on the next line were one clash to a line merge, kept twice and marked. Each field now takes the
side that changed it, and a field new on one side is added. One field given two new values, or a
field that is not a one-linekey: value, falls back to the line merge and its mark.
0.9.86 — 2026-11-21
- A task is closed on a ground. Heads closed sixteen tasks in a minute with nothing said,
one of them with two of its five frames made, and a prompt rule asking for a measurement did
not stop it. Closing now needswhy: what was checked and what it showed.hub task done <id> --why "...",hub task update --status done --why, andwhyinhub_task_update; an empty
one, a bare id or a "done" is refused with what is wanted. In a report, aDONE:line closes on
the ground the report's other lines give (FACT:,DECIDE:, notes); a report ofDONE:alone
closes nothing and says to add aFACT:line (doneNoGround). The ground is kept on the task
(task getshows it), journaled beside the close, and cleared when the task is reopened. - A task whose whole text is a task id is refused. Agents filed tasks reading only
pine-1473to have an open task to hang a done report on, after the task they meant was
closed. A report needs no open task: aDONE:line on a closed one is taken as already
closed, and the report's other lines are written.hub_task_add(and a text edit in
hub_task_update) now refuses a text made only of task ids, and the refusal says both ways
out: report withDONE: <id>or name#<id>in a note, or reopen withstatus: open.
0.9.85 — 2026-11-21
- Reactions, run by the MCP server.
hub watch --execreacts to the journal only while a
process of its own runs, and somebody has to keep it running. The rules in
<hub>/reactions.jsonrun inside the MCP server instead, on a 30 s tick: a rule on a journal
entry (on: {kind, project, agent, match}) or on an interval (every: 10m), its output to a
role's queue or a heartbeat. A rule names a command declared in the same file, never a command
line, and journal text reaches the command only on stdin. Rules are declared by an owner role,
a fleet role or the project's live head; others are refused. One runner per rule per node,
through a lease that passes on when its holder dies;nodepins a rule to one node. Each firing is a journal entry of kind
reaction.hub reactionsshows the rules;hub reactions runmakes one pass.
HUBD_REACTIONS=0turns it off. Example 09 inexamples/team, and docs/recipes.md section 10.
0.9.84 — 2026-11-21
- Team organization, as runnable examples.
examples/team/holds eight scripts, each one
rule of how a team of agents is run and the scar it came from: laws a head dictates, the role
registry and lint, handing a project to a new head, the head's sensor without a model, the
queue as the channel, readiness by heartbeat--ttl, the audit withrules.json, and
hub watch --execdeleting a branch once its ACCEPT is merged.sh examples/team/run.shruns
them all, each on a freshhub demoin a temporary folder;npm testruns them too. They ship
in the package. hub task update. Reassigning a task had no verb outside MCP, whilehub linttold the
reader to run exactly this.hub task update <id> --assignee <role> --by <you>now does, with
-i,-d,--text,--statusand--needsashub_task_updatetakes them.- A head switched off has handed its project over. It no longer rules on the project's laws
(hub reflect --law,hub_law); the live head does. An open task assigned to any role with
status: offis flagged byhub lint(assignee-outside-roster) like one assigned to no
role: no loop reads it.
0.9.83 — 2026-11-21
- The tips are said once. Over stdio every tool result carried two tips, to call
hub_onboardingandhub_whatsnew, until the session called them; an agent with no reason to
call them read both lines on every call. Each is now said on the first result of a session
and not again.
0.9.82 — 2026-11-20
- Work nobody holds is said apart. An open high task with no assignee sat four days among
the other open tasks: every list showed it, none said it was nobody's. A task waiting on it
looked busy, and nothing woke anyone for three days.hub briefandhub agendanow open
with two lists.unownedholds open high tasks with no assignee for over an hour, not held.
deadlocksholds open tasks whosedepends_onchain ends on a task nobody holds, or loops
back on itself, each with the path (waits on #b, which nobody has held for 30 h (via #c)).
A held task is not nobody's, nor one an agent has claimed, nor one under an hour old (that is
the poolhub now --forhands out); none of them ends a chain. Over MCP:unownedanddeadlocksin
hub_briefandhub_agenda. The head of the project (hub sense <head>) is woken for each
case in its project once, and reminded every six hours while it stands (nobodyMin,
nobodyRepeatSinsense.json). Assigning work is the head's job, so the case is never
escalated to the fleet. A wait said only in a blocked report's prose is not read: put it in
depends_on. - Links in data, not prose.
hub task addandhub_task_add/hub_task_updatewarn
when the text names an open task anddepends_onis empty: a wait said in prose ("after the
merge of X") is seen by no list, plan or sensor. They also warn when a task depends on an
epic (tagepic) without being one: the epic waits on its parts, so the link belongs on the
epic. The write goes through either way.hub task getandhub_task_getshow what holds a
task (holding): each open task it waits on, who has it orNOBODY, and when it last moved
(its newest attempt or journal line naming it). - A change handed in twice is said to be a copy. One edit lay in a canon under six branch
names, and another under two, all already in its base; each came to the head for acceptance.
hub sense <head>now reads the patch-id of each task branch against the base. Of branches
with one patch-id the first by name is kept and the others are duplicates of it; a branch
whose every commit is already in the base under another sha is a duplicate of the base.
A duplicate is not raised for acceptance: the head is told once that it is a copy, with the
command to delete it. Patch-ids are kept per branch and base sha, so a pass reads only what
moved. - A role that reads but never acks is said to be one. A send reported over six hundred
unacked blocks for a role whose read mark was current on every shard: it read everything and
had never acked once, so the count was its whole history, not a stopped consumer.hub queue sendandhub_queue_sendnow say so (ackNote) when the role has never acked a block.
0.9.81 — 2026-11-20
hub now --for <role>: the first ready task this role may take. A worker with
nothing of its own askedhub now <project>, looked at the one top task and gave up when
it was assigned to someone else, while unassigned work sat further down the same list:
three workers on one project said "no ready task" over and over, with a third of the ready
tasks assigned to nobody. With--forthe command walks the same urgency order and hands
out the role's own task first, else a task with no assignee that no other agent has started
(a live claim ontask:<id>). The owner's tasks and tasks assigned to another role are
never handed out.--only-tags a,btakes only free work carrying one of the tags; a task
assigned to the role is not narrowed by it.--skip-tags a,bis a ban: a task carrying any
of the tags is never handed out, the role's own included, so an epic or a held task that
landed on a worker is not picked up, andwhynames it (assigned to dev-api; skipped own: oak-9 (epic)) so the mistake is seen.whysays why the task was picked, or where the ready
tasks went when none was;--jsonprints{task, why, eligible, ready, skipped: {assigned, claimed, tags, owner}, skippedOwn}.
Without--forthe answer is the one it was. Over MCP:hub_nextwithfor,
onlyTags,skipTags. The choice itself is a pure...
0.9.54 — a project's laws, from its roles' reflections
- A project's laws, from its roles' reflections. A reflection's rule was a proposal nobody
turned into a rule: one hub's rules file held one law while 36 hours wrote 949 reflections.
hub reflect --promote --project <p>lists the candidates: a rule said 3 times by one role, or
by 2 roles, in the window (default 7 days), each with an id, its count per role and its other
wordings. The head rules on each withhub reflect --accept <id>or--reject <id> --reason "<why>", signed--by <head>(MCPhub_law); a project with a head on record as a role card
is that head's to rule on, or a fleet role's. An accepted rule is a line of the card's new Laws
section,- <when> (<head>): <rule>, never rotated out:hub_contextreturns the laws as
laws,hub whereamiprints them,hub reflect --lawslists them. A rejection is a journal
line, and the rule stays off the list until it is said again after it. On two days of one
project's journal: 19 candidates. - One rule in other words counts as one. Counted by exact wording, a rule restated from turn
to turn read as several rules said a few times each, below any line a head draws. Wordings that
share 40% of their words (a word by its first five letters, a number a word of its own) are one
rule now:hub reflectandhub_reflectlist the others under it asvariants. A wording
joins the most repeated one it resembles, never a chain. - A reflection is checked for its own rules, not only the lists. Refused in the
reflect
field and named a problem in the text:result: nowithobstacle: none;instead: none
anywhere but a done turn with no obstacle; arulethat joins several with;outside
backticks. AREFLECTmarker followed by no key this reads (keys in another language, or
misspelt) is a reflection with one problem that says so, no longer prose. The fragment asks for
the values in the dispatch's language and the keys as written. - A turn that found no work takes no reflection. Its report is the one line "waiting for a
dispatch"; with a reflection, in the field or the text, it is refused, so a loop can tell it
from a step that skipped the block. DONE:takes the id as people write it.DONE: #471orDONE: 471closes the one task
whose id ends in -471; of several, the one in the report's project; if still several, none, and
the reply lists them asdoneAmbiguous. A line that reads as closing a task but is not the form
(#471 DONE,DONE #471,pine-471 done) refuses the report before anything is written: it
was filed as a note and closed nothing. The CLI's warning names each id not closed, and why.- A block's id is one block in the whole hub. Headers end in
· id <node>-<N>, N counted by
the node across all its queues, under a lock, as task ids are. It was a bare number counted per
file, and one hub had "id 39" in twelve headers of four queues.hub_queue_acktakes the
string; a bare number names an old block, or the one new id ending in it. Escalations and their
answers are keyed by it. Upgrade every node together: an older hubd reads no block in a header
with the new id. - A full queue refuses with a code. The refusal carries
queue-full(Error [queue-full]:
over MCP, exit 4 fromhub queue send) and leaves a line in the sender's project journal, at
most one per sender and role in ten minutes. A role of rankfleetis never refused, since an
escalation must go;hub doctorlists its queue as OVER THE LIMIT. hub whereamigives the inventory script 30 s, not 5: 5 killed a one-line echo on a loaded
machine. A script it stops says so in the output.
0.9.53 — mesh-sync fetches again after a lost push race
mesh-syncfetches again when another node's push lands first. Every node pushes to one
mirror about once a minute, and a push that lands between this node's fetch and its push wins:
git refuses ours ("fetch first"), or the mirror cannot lock the branch it is moving. One node
lost one run in six that way, about 90 a day, each a minute of delay and a failed unit in
systemd's log. That failure, and only that one, now goes back to the fetch in the same run, up
toHUBD_SYNC_PUSH_TRIEStimes in all (default 3). Any other failed push is left to the next
run, as before.- A node's presence snapshot says when hubd last ran there.
presence.<node>.jsonwas
written on heartbeat only, so a node whose sessions never heartbeat (people at a terminal, not
agents in a loop) kept the one it wrote weeks before: from every other node it looked silent
for 24 days while it wrote to the mesh every minute. Any MCP tool call now refreshes it too, at
most every 5 minutes. A hub that has never published one gets none. hub doctorwaits for the hub's git. Its checks read git with an 8 s bound and took a read
that ran out as an empty answer: with every core busy,git ls-filesonce took longer, and a
case-colliding pair came back as no pair. Reads of the hub's own repository now get a minute;
reads of project repositories keep 8 s.
0.9.52 — doctor says when a merge driver will not run
hub doctorsays when a merge driver will not run. The drivers live in the node's own
.git, and a missing one or one whose path went stale fails without a word: the merge just
falls back. On a node that syncs, doctor now names each driver that is not installed, lacks an
attribute line, or names a file that is gone, says what a merge does instead, and counts it as
a warning. A command set by hand is not checked.- The driver command names
nodeas PATH has it. It named the binary with every link
resolved, which on one node was/usr/bin/node-22: gone with the next major version, while
/usr/bin/nodestays. Now the firstnodeon PATH that is the same binary is named. Run
hub card merge-driveragain on each node to repoint it.
0.9.51 — a file one node rewrites whole merges by its time
- A file one node rewrites whole no longer stops the mesh.
snapshot.<node>.json,
presence.<node>.json,sense.<node>.jsonand the read marks inqueues/read/have one
writer each, so two versions meet only after history was repaired or rebased, or when one node
name is in two clones. git's text merge then stopped on every line with a time in it: one
node's snapshot stopped another node's sync until its history was realigned by hand.
hub card merge-drivernow also installs a driver for these files that takes the version with
the later time (ts,written, or the latest read-markat), whole. Ours and theirs swap
between a merge and a rebase; the time does not, so both keep the same version. A version whose
time does not read loses; equal times pick the same version on every node. If the driver's path
goes stale, the file keeps git's ours. Run the command again on each node to get it.
0.9.50 — mesh-sync packs the hub itself, in the foreground
mesh-syncpacks the hub itself, once a run, in the foreground. git packs after a commit,
a fetch or a merge, in a process it forks into the background. On macOS that process crashed
after the fork and left.git/gc.log.lock, and every background gc after it stopped on that
lock without a word: one hub went seven weeks unpacked, 86000 loose objects and 3.75 GiB, and
every run redid the part of gc that comes before the fork, once for each command that started
one. git's own gc is now off for the script's commands (maintenance.auto=false, read by git
2.31+), and onegit gc --autoruns after the push, its errors in the sync's log. A failed
push still packs. A foreground gc never takes the lock, so a hub that has one needs nothing
done to it; its first run packs the backlog, whichgit -C <hub> gcby hand does ahead of time.
0.9.49 — a queue read elsewhere no longer counts full
- A queue read on another node no longer counts full there. The send limit took a block as
read only by its own ack, so blocks written before ids, which no ack can name, and header lines
quoted inside a body stayed unread for ever. A reader hands its file out in order, so a file
now counts as read up to the last block its ack log names, every block above it included. - A reader publishes its position even when nothing new came. A reader that read its queue
to the end on a hubd from before read marks left none, and its cursor never leaves its node:
every other node counted that queue unread until the next message, which a queue counted full
refused. Each wait now writes the cursor's watermark as the read mark where the two differ. - The hub sets the send limit in
limits.json.{"queue": {"msgs": N, "bytes": N, "exempt": [role, ...]}}travels with the mesh;HUBD_QUEUE_MAX_MSGSand
HUBD_QUEUE_MAX_BYTESset on a node still win there. A role inexemptis never refused nor
listed as near full: one whose reader reads the file itself, leaving no cursor, mark or ack.
hub doctornames the exempt roles.
0.9.48 — deliveries are mail, a row of their own
- Artifact deliveries are mail, a row of their own. A mail relay (a fleet tool) records each
delivery that succeeded as a journal entry of kinddelivery, throughhub report -k delivery:<sender> → <recipient>: <name> <bytes> B sha256 <hex>(the byte unit may be the
Cyrillic one, the arrow->). Live shows the newest 20 in a Mail row above Activity, which no
longer lists them;/api/kanbanandhub_kanbangainmail, each delivery read into
from, to, name, bytes, sha256beside its whole text. On the Summary each track has the newest
20 whose recipient is one of its roles (/api/summarygainsmailper track, and
mailLimit). An entry of the kind whose text does not read so is kept whole with the parts
null: Live shows it, and no track claims it.hub reporttakes any kind, so the relay needs
no change.
0.9.47 — the Summary shows each node from its own snapshot
- The Summary shows each node as its own snapshot states it. A node's fleet tool writes
snapshot.<node>.json(v1: sessions, disks, relays) into the hub directory, and the mesh
carries it likepresence.<node>.json; hubd only reads it./api/summarygainsnodes, one
row per file, andsnapshotStaleMinanddiskFullPct. The page lists each node's snapshot
age, disks and relays, and a table of sessions: session, node, role, state, minutes since the
hub, minutes since motion. In red: a snapshot over 5 minutes old (or with no time), a disk at
90% or more, a relay failed or not active. Fields it does not know are ignored; a file that
does not parse, is not an object or is not v1 is a row "snapshot unreadable" with its node and
the reason.
0.9.46 — an escalation waits until an answer quotes its key
- An escalation to the fleet waits until it is answered, and the board says which. An
escalation is a block with an id in the queue of afleetrole, and its key is its header,
<date> · from <role> · id N. It is answered when an entry of the fleet card's Owner decisions
section quotes that key; the entry's stamp is the answer's time. Matching is by the key alone:
"id 3" is not "id 32", and no author or wording is read for an answer. Entries the section cap
moved to the project's history still answer, and of two answers to one key the later stands. - "Waiting for you" lists every unanswered escalation, however old, and those answered in the
last 24 hours with the answer, inhub board, the Tracks view and the Summary
(/api/summarygainsescalations: {fleet, waiting, answered}andansweredHours). Each
carries its key, who sent it to which role, its text, how long it waited and, once answered,
when and what. Queue files are read whole for this, not their last 256 KB. This replaces the
window of escalations and of the fleet role's own replies, which said nothing about whether
the owner had answered. - A section key
owner-decisions(## Owner decisions), not in new cards, localised by
sections.jsonlike any other:hub section add <fleet project> owner-decisions "<key> — <answer>" --by <you>.