Skip to content

0.9.88 — a law can be retired; a candidate is a rule two roles said

Latest

Choose a tag to compare

@apbodrov apbodrov released this 26 Nov 18:03
  • A law can be retired. Laws were only ever added: the section is never rotated, and
    hub_context hands 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> (MCP hub_law with verdict retire) 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 --json now 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 lint warns 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/*.md only. 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-driver now puts resources/*.md under the driver
    too; hub doctor names 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-line key: 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 needs why: what was checked and what it showed. hub task done <id> --why "...", hub task update --status done --why, and why in hub_task_update; an empty
    one, a bare id or a "done" is refused with what is wanted. In a report, a DONE: line closes on
    the ground the report's other lines give (FACT:, DECIDE:, notes); a report of DONE: alone
    closes nothing and says to add a FACT: line (doneNoGround). The ground is kept on the task
    (task get shows 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-1473 to have an open task to hang a done report on, after the task they meant was
    closed. A report needs no open task: a DONE: 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 with DONE: <id> or name #<id> in a note, or reopen with status: open.

0.9.85 — 2026-11-21

  • Reactions, run by the MCP server. hub watch --exec reacts to the journal only while a
    process of its own runs, and somebody has to keep it running. The rules in
    <hub>/reactions.json run 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; node pins a rule to one node. Each firing is a journal entry of kind
    reaction. hub reactions shows the rules; hub reactions run makes one pass.
    HUBD_REACTIONS=0 turns it off. Example 09 in examples/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 with rules.json, and
    hub watch --exec deleting a branch once its ACCEPT is merged. sh examples/team/run.sh runs
    them all, each on a fresh hub demo in a temporary folder; npm test runs them too. They ship
    in the package.
  • hub task update. Reassigning a task had no verb outside MCP, while hub lint told the
    reader to run exactly this. hub task update <id> --assignee <role> --by <you> now does, with
    -i, -d, --text, --status and --needs as hub_task_update takes 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: off is flagged by hub 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_onboarding and hub_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 brief and hub agenda now open
    with two lists. unowned holds open high tasks with no assignee for over an hour, not held.
    deadlocks holds open tasks whose depends_on chain 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 pool hub now --for hands out); none of them ends a chain. Over MCP: unowned and deadlocks in
    hub_brief and hub_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,
    nobodyRepeatS in sense.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 add and hub_task_add/hub_task_update warn
    when the text names an open task and depends_on is 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 (tag epic) without being one: the epic waits on its parts, so the link belongs on the
    epic. The write goes through either way. hub task get and hub_task_get show what holds a
    task (holding): each open task it waits on, who has it or NOBODY, 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 send and hub_queue_send now 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 asked hub 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 --for the 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 on task:<id>). The owner's tasks and tasks assigned to another role are
    never handed out. --only-tags a,b takes only free work carrying one of the tags; a task
    assigned to the role is not narrowed by it. --skip-tags a,b is 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, and why names it (assigned to dev-api; skipped own: oak-9 (epic)) so the mistake is seen. why says why the task was picked, or where the ready
    tasks went when none was; --json prints {task, why, eligible, ready, skipped: {assigned, claimed, tags, owner}, skippedOwn}.
    Without --for the answer is the one it was. Over MCP: hub_next with for,
    onlyTags, skipTags. The choice itself is a pure function (pickForRole: ready tasks,
    live claims, owner roles and dates in, the task out), checked against a table of cases.
  • hub claim --task <id> --exclusive refuses a task another agent holds. Without it a
    second claim on the same task is written with a warning, so two workers that picked the same
    task both started it. With it the claim is checked under the claims lock: if another agent
    holds a live claim on the area, the command exits 1 and nothing is written. Two workers that
    ask hub now --for at the same moment get the same task, one of them holds it, and the
    other gets the next one on its next round. Works for an area claim too, and over MCP
    (hub_claim with exclusive: {ok: false, refused: true, holder}).
  • The board says it is loading. The page stayed blank until the first answer came, which
    on a large hub is a second or two and reads as an empty board. Every view now shows
    "loading..." until its data arrives, and a failed task list shows the error instead.
  • Tutorials match what the code prints again. hub plan in tutorial 2 still showed the
    owner's decision as ready work, and the law dictated in tutorial 6 was close enough to the
    law already accepted that it was refused as the same rule.

0.9.80 — 2026-11-15

  • A head can dictate a law, not only accept a grown one. A candidate for a
    project's laws has to have been said three times, or by two roles, before the head
    can accept it; a project whose roles never reflected had no candidate to accept at
    all, which is why a head's own word had to come in through the back door of
    hub section add, which wrote a line no law reader could take. hub reflect --law "<the rule>" --project <proj> --by <head> now writes the rule the head
    dictates as a law of the project: the same line in the card's Laws section, the same
    right (the project's head, or a fleet role's), and a journal decision that says it was
    dictated, not grown. Said again it is refused with the law the card already holds, so the
    card keeps one line per rule; a worker of the project may not dictate, a head may.
    hub section add with the laws section writes a law through the same door, with the
    head's name, and refuses --set, which would have dropped the others.

0.9.79 — 2026-11-14

  • hub init scaffolds your hub, not the folder you stand in. With no path it took the
    current directory and refused only inside a git checkout, so a newcomer who ran it from
    their home directory got AGENTS.md, INBOX.md, queues/, specs/ and .gitignore
    in ~. With no path it now scaffolds the hub base (~/.hubd, or what HUBD_DIR
    names), making the folder if it is not there, which is the folder hub doctor,
    hub serve and the hints those print already mean by hub init. hub init <folder>
    is as it was, and so is --here, which now stands for "this directory" and nothing
    else. The checkout refusal is gone with the default that needed it: a bare init in a
    repo writes nothing there. If HUBD_TEAM_DIR names a team root apart from the hub
    base, a bare init says so and gives the command for the other folder. Changed:
    cd folder && hub init now scaffolds the hub base; use hub init . or
    hub init --here.

Full history: CHANGELOG.md.