Skip to content

Plans and nodes ​

A plan is a DAG of work across repositories. Nodes are the pieces; edges are dependencies; and a node's status is derived from what critterstack observes, never from someone marking it done.

That last part is the whole design. Nobody maintains a status column, nobody can mark something finished that isn't, and a plan cannot quietly go stale — because there is nothing in it to go stale.

A plan, whole ​

yaml
schema: 1
plan: critter-parity
title: Fisher 1.10 across the stack
anchor: JasperFx/fisher#120
repos:
  fisher: JasperFx/fisher
  critterstack: JasperFx/critterstack
nodes:
  - id: fix-codegen
    kind: issue
    repo: fisher
    issue: 120
    brief: |
      Keep the public signature; the fix belongs in the parser.
  - id: ship-fisher
    kind: publish
    package: Fisher
    bump: minor
    depends_on: [fix-codegen]
  - id: critterstack-takes-fisher
    kind: consume
    repo: critterstack
    package: Fisher
    depends_on: [ship-fisher]
  - id: critterstack-green
    kind: test-run-gate
    title: critterstack's suites green on the new Fisher
    repo: critterstack
    steps:
      - id: tests
        run: dotnet test --solution stoat.slnx
    depends_on: [critterstack-takes-fisher]

Read top to bottom, that is the work: fix an issue in Fisher, publish a minor release, have critterstack pin it, and prove critterstack's suites green on it. Each node is done when critterstack observes it done (the issue closed, the version on nuget.org, the pin committed, the steps passing), so ship-fisher is ready only once the issue is actually closed.

The header:

Field
schemaAlways 1.
planThe slug: lower-case kebab, the plan's identity everywhere.
titleWhat the board shows; defaults to the slug.
anchorThe GitHub issue the plan belongs to, org/repo#n. Optional.
colorThe plan's colour on the board; one is assigned when it is left out.
reposAliases for repositories, alias: org/name, or the mapping form with the branch a pin is read from; see Repositories.
branchThe plan's integration branch: where its finished work is gathered before one PR to the default branch. Never main. Consume pins are read from it; see Repositories.
resourcesInfrastructure parallel nodes take turns on, postgres: { capacity: 1 }, or the whole machine's with scope: machine; see Shared resources.
modelThe model a session working the plan's nodes is asked to use, under a node's own.
skillsThe skills the plan's work uses, for a node that names none. See Which skills a node's work uses.

Node kinds ​

KindSatisfied by
issueA GitHub issue being closed. The number is optional — a node without one is unrealized, and bind_plan_node materializes it once the issue exists.
prA pull request. Merge policy is manual-review (default) or merge-on-green; see The merge policy.
publishA package version being genuinely downloadable. Declare a bump (fix/minor/major) or an exact version; the feed defaults to nuget.org, and feed: npmjs.org makes it an npm package. On a local folder feed it is done when a pack of the release is in the folder, and rehearses: names the real publish it stands in for; see Local packs.
consumeA repository taking an upstream package version — its committed pin reaching what the publish shipped. manifest names the file the pin is read from; without one, Central Package Management's Directory.Packages.props. branch names the branch it is read from, over the one its repo declares, which is over the plan's integration branch:; see Repositories.
test-run-gateA suite passing: a Bobcat run under its BOBCAT_RUN_TAG, or a command run through critterstack gate exec, or (where a person allowed it) an agent's asserted result. Optional steps declare what the gate consists of, and an optional repo says which checkout they run in; see below.
sliceAn Event Modeling slice, with a pattern of command/view/automation/translation/query. Its bound {Feature}/{Scenario} specs going green is the node's done; empty specs derive as unrealized.
reviewA review of the plan's integration branch as a whole, before its PR. Done when a person has decided every finding the reviewer submitted, or signed off a review that found none; see Deciding a review.
personA step a person does, with nothing on GitHub behind it: recording a demo, publishing by hand. No agent claims it, and it is done when a person presses mark done on its card. See Nodes a person does.

Every kind also takes:

  • brief: the author's Markdown instructions for whoever works the node: what a session that takes the node reads with get_node. It never changes status. Stored with \n line endings and no trailing whitespace, so a YAML | block's last newline or a CRLF save is no change.
  • agent: cloud: keep the node for a cloud agent.
  • uses: the shared resources it holds while it is worked.
  • model (issue, slice, test-run-gate, review): the model a session working this node is asked to use, over the plan's model:. For a hard node that needs a bigger one. get_plan carries it; the session decides.
  • skills: the skills this node's work uses, over the plan's skills:.
  • assignee: person (issue, slice, test-run-gate, review): keep the node for a person. No agent claims it and it needs no go-ahead; see Nodes a person does.
  • exclusive: machine (issue, slice, test-run-gate, review): the node keeps the machine to itself while it is claimed; see A node that runs alone. uses: [heavy] is the lighter form: heavy work runs one at a time across every plan, while light work carries on.

The plan's header takes model: and skills: the same way, through create_plan / change_plan and the plan routes too.

An issue, pr or consume node takes merge (manual-review or merge-on-green; a consume's applies to the pin-bump PR it rides), a consume takes bumped_by: <node> when another node (a release PR, say) moves its pin, so its card names that node and no person is asked to bump it, and a test-run gate takes steps (below), an optional repo (the checkout its steps run in, below) and reverify: on-branch-change (Verifying again).

Authoring ​

Either tool by tool —

create_plan(slug: "critter-parity", agent: "my-agent", title: "…")
add_plan_node(slug: "critter-parity", id: "fisher-1-10", kind: "publish", agent: "my-agent", package: "Fisher", bump: "minor", …)
link_plan_nodes(slug: "critter-parity", node: "critterstack-bump", dependsOn: "fisher-1-10", agent: "my-agent")

— or in bulk, as a YAML document (schema 1):

import_plan(yaml: "…", agent: "my-agent")

import_plan diffs rather than replacing: it creates the plan, or folds the document into an existing one so only what actually changed is recorded. Re-importing the same document records nothing.

Authoring is guarded rather than trusting. link_plan_nodes is refused if it would make a cycle. add_plan_node is refused, with the reason, for an unknown dependency, a cycle, or a field that does not belong to the kind. remove_plan_node is refused while anything still depends on it — dropping an edge is a decision, not a side effect of deleting something else.

Note that change_plan_node replaces a node wholesale: pass the complete node as you want it, because anything omitted is cleared. For edges alone use link/unlink; for the GitHub binding alone use bind_plan_node.

Gate steps ​

A test-run gate can declare its steps, so critterstack knows what the gate consists of before anyone claims it:

yaml
- id: providers
  kind: test-run-gate
  title: Provider suites green
  repo: wolverine
  steps:
    - id: build
      run: dotnet build wolverine.slnx
    - id: postgres
      title: PostgresqlTests
      run: dotnet test --project src/Persistence/PostgresqlTests
      timeout: 20m
    - id: http
      run: dotnet test --project Wolverine.Http.Tests -f net9.0
      cwd: src/Http
      env:
        CI_JOB_NAME: http
        ConnectionStrings__postgres: Host=localhost;Port=5433
      timeout: 00:30:00
    - id: sqlserver

A gate may name its repo (a repos alias or org/name). In a plan spanning several repositories it is which checkout the steps run in: critterstack gate run runs a gate that names a repository only from a checkout of that repository, and refuses it with in JasperFx/marten, not this checkout otherwise. A gate naming none runs from any checkout.

Each step may also say cwd (a directory relative to the repository root, forward slashes, never climbing out), env (a map of variables the command gets on top of its own environment) and timeout (a duration: 20m, 90s, 1h30m, or 00:20:00). critterstack gate exec applies them when it runs the step — as --cwd, --env NAME=VALUE and --timeout, which critterstack gate run reads from the plan — and a dotnet test step's project is checked from its cwd. critterstack still stamps BOBCAT_RUN_TAG itself, as {plan}/{node}/{step}, so a step whose env sets BOBCAT_RUN_TAG is refused when the plan is written. A step that runs past its timeout is killed, tree and all, and its run is recorded as timed out: the gate reads step postgres timed out (limit 20m) after 20m 3s, never a bare exit code, and is failed. Every problem with a step (a cwd with .., an env name that is not one, a timeout that is not a duration) is reported with the rest of the document's, all at once.

How a step is decided ​

With steps declared, critterstack gate exec evidence proves the gate only when every step has a passing run under its own --step <id>. Two green steps of three is waiting, naming the one not run; a failing step fails the gate. A run under some other step id stands in for none of them. run is the step's command; the node's zoom and get_node give it already wrapped in critterstack gate exec --step <id> -- …. That command runs under the step's own tag, BOBCAT_RUN_TAG={plan}/{node}/{step}, so a suite that reports to Bobcat records a per-step run. A step's newest evidence decides it, whichever channel saw it: the Bobcat run a gate exec --step wrapper launches starts after the wrapper's own record and knows which tests ran, so it decides; a later gate exec --step re-run decides over an older Bobcat run. A Bobcat run under the gate's own bare tag names no step, so on a gate that declares steps it is shown on the node's detail as unassigned and never counts. The card shows a chip per step, coloured by where it stands, and its tooltip says which evidence decided it.

A step that runs a Bobcat Gate publishes one run per unit. The Gate takes the step's tag as its prefix, so its runs are tagged {plan}/{node}/{step}/{project}.{framework}. The step is the worst of its units: running while any unit runs (or the gate exec wrapping them is still going), failed if any unit failed, passed when every unit passed. A wrapper that exits red fails the step even when every unit it published passed, since a unit whose test host never started publishes nothing. The zoom view shows a card per unit. Nothing extra is declared: the step's run is just the command that starts the Gate.

On the board ​

A gate with a step running shows an in-progress widget where its state pill would be: a turning ring and "3 of 12 steps, 1 failed", counting the steps with a verdict. Once nothing runs the pill is back with a compact tally beside it, 4✓ 1✗ 7○. While a step's Bobcat run is in flight the card's small bar follows that run live, without a reload. The zoom view lists the steps: each one's state (pending, running, passed, failed, timed out at its declared timeout, or that it ran another command), what decided it, its latest run with its duration and a link to its page in the run console, the exact critterstack gate exec {plan}/{node} --step <id> [--cwd …] [--env …] [--timeout …] -- <command> that runs it again with the step's declared flags, and, while its run is going, a progress bar coloured by the verdict split Bobcat's supervisor sends (passed, failed, retried, workers busy) with the elapsed time. A finished step keeps its result. A run whose publisher reports dropping events under load says "per-test detail incomplete" on its card: its counts are complete, the scenarios under it may not be. A gate that declares no steps shows the same bar and card for its one run.

A running gate also shows how far its Bobcat run has got ("37 / 120 · 2 stalled"). That count is live only: critterstack stores when a run starts and finishes, not its progress.

Checked when it is written, and when it runs ​

The command is compared. A passing run whose recorded command is not the step's run:, word for word as a shell would split it, is a mismatch, and never passes the step. Either the step was declared wrong (edit it to what ran) or the agent ran something else (run the declared command).

A dotnet test step is checked when it is written: the project exists, is a test project, and targets the -f framework, read from the project and the Directory.Build.props above it. That needs a checkout to read: the one the author names (checkout on the MCP tools and the REST bodies, ?checkout= on an import). What is wrong comes back as warnings beside the result; a warning never refuses the save, and with no checkout nothing is checked.

npm packages ​

An npm package is the same release train, read from two different places:

yaml
nodes:
  - id: ship-renderer
    kind: publish
    package: "@jasperfx/event-model-vue"
    feed: npmjs.org
    version: 0.2.0
  - id: take-renderer
    kind: consume
    repo: JasperFx/CritterWatch
    package: "@jasperfx/event-model-vue"
    manifest: src/CritterWatch.FrontEnd/package.json
    depends_on: [ship-renderer]
  • The publish is done when the version is on the registry, not when the workflow that published it went green. critterstack never runs npm publish; that stays in the owning repository's GitHub Actions.
  • The consume is done when the committed package.json reaches it. A range pins its floor: ^0.2.0, ~0.2.0 and >=0.2.0 all guarantee 0.2.0, so that is what is compared. A spec with no single floor (*, latest, 1.x, a two-sided or || range, a git or workspace: source) is reported verbatim and waits, rather than guessing that an open range caught up.
  • A manifest the repository does not have is missing, the way an unconfigured feed is on a publish node. A typo'd path must surface, not wait forever.
  • One read never retracts a version. Registry metadata is CDN-fronted, so a read can be stale. A version critterstack has already seen stays seen, so a publish node cannot fall back from done and re-block what it released.

A multi-package publish is one publish node per package, and each consumer waits on exactly the package it pins, so a package on a separate version line is never caught in someone else's wait.

manifest is not npm-only: any other file is read as MSBuild XML, so a NuGet consumer can name the one .csproj that pins it.

Local packs, and the replay ​

A release train builds and tests everything on local packs before anything reaches nuget.org. Give the train a folder feed (CritterStack__Feeds__local__Path=~/code/local-nuget), run critterstack setup once so NuGet on this machine sees it, and write each package twice: the real publish, and a local pack that rehearses it.

yaml
repos:
  jasperfx: { repo: JasperFx/jasperfx, branch: '3.0' }
  marten: { repo: JasperFx/marten, branch: '10.0' }
nodes:
  - id: rel-jasperfx
    kind: publish
    package: JasperFx
    version: 3.0.0
  - id: jfx-pack
    kind: publish
    package: JasperFx
    feed: local
    repo: jasperfx
    rehearses: rel-jasperfx
  - id: marten-takes-jasperfx
    kind: consume
    repo: marten
    package: JasperFx
    depends_on: [jfx-pack]
  • The pack. The publish node on the folder feed says what to pack: its status carries pack, with the next version (3.0.0-local.N, one past the highest on the feed), the feed's folder and the repository's recorded way of packing (declare_repository_pack, a command with {version} and {feed}). A session in a checkout of JasperFx/jasperfx runs that command from the 3.0 branch; with none recorded it works one out and records it. The node is done when the package is in the folder, never because a command exited 0.
  • The promotion. The consume is done when the pin on 10.0 of JasperFx/marten, as GitHub has it, reaches that version, so downstream work can start. A session moves the pin and pushes the branch.
  • The replay. rel-jasperfx, the real publish, is a person's step, listed as a publish need once its rehearsal is packed. Once it is on nuget.org, each pin that took the rehearsal reads 3.0.0 is published: move this pin to it and is a bump need until the pin reaches the real version. The node's pin says where it stands: local, due or replayed.

A local publish without rehearses: is packed the same way, and its pins stay local.

A pin-bump pull request is recorded on the consume nodes it carries (POST /api/plans/{slug}/nodes/{id}/bump-pr, with the repository, number and URL). critterstack then observes it like any PR, and each node shows it as its PR line, under its own merge: (manual review by default): while it is open, the person's action is the merge, not a bump; closed without merging, the bump is back.

A consume is measured against the newest release. Its target is the newest real release any publish of its package shipped, in its plan or a plan it borrows from, within the linked release's major. And when a repository takes an upstream that needs a newer version of a package than the repository itself pins (a version diamond), the pin's card says so, with an align a version need, though its status does not change.

Repositories, and the branch a pin is read from ​

repos: declares the repositories a plan spans, each under the alias node bodies use. The plain form is the alias and its org/name; the mapping form adds the branch a consume node's pin is read from:

yaml
repos:
  jasperfx: JasperFx/jasperfx
  wolverine:
    repo: JasperFx/wolverine
    branch: net11
nodes:
  - id: wolverine-takes-jasperfx
    kind: consume
    repo: wolverine
    package: JasperFx
    depends_on: [ship-jasperfx]
  - id: wolverine-takes-events
    kind: consume
    repo: wolverine
    package: JasperFx.Events
    branch: net11-events
    depends_on: [ship-events]

A release train's pins move on a per-repo integration branch (net11 in every repository of the .NET 11 train) for weeks before anything touches main, and a consume node reading main would sit at waiting the whole time the work is in fact done. So a consume node reads its pin from the first of these that applies:

  1. the node's own branch:;
  2. its repository's branch: in repos:;
  3. the plan's integration branch:, in every repository of the plan, since one train uses the same branch name in each;
  4. the remote's default branch.

A plan with no branch: anywhere reads the default branch, which is right for a plan delivered as one PR. The repository's branch belongs to the repository, so a node writing repo: JasperFx/wolverine in full reads the same branch as one using the alias. main is allowed in repos: and on a node, since reading it by name is harmless, where the plan's own integration branch: refuses it.

An integration branch that is not cut yet falls back. A repository gets the integration branch only when work first lands there, so for a while most repositories of a train do not have it. A pin read through the plan's branch: (step 3) then comes from the default branch, and the detail says so: pinned 2.37.0 on main (integration branch net11 not created in JasperFx/marten yet), waiting for 2.38.0. Once the branch exists, the next sweep reads it. A branch somebody named, on the node or on the repo, gets no fallback: if it does not exist, the node reads it as having nothing, pinned nothing on net11, and a named manifest is missing there, because a typo'd branch has to surface rather than quietly read main.

Where the pin was read is part of the fact. A pin on main and a pin on net11 are recorded separately, so a stale read of one never hides behind the other, and the node's detail says which it is: 2.38.0 has shipped: bump this pin (pinned 2.37.0 on net11). A manifest the branch does not have is missing on that branch, named: src/Wolverine/Wolverine.csproj not found on net11 of JasperFx/wolverine.

A pin is read from GitHub. A branch that exists only in a checkout on this machine has not moved any pin as far as critterstack can see: push it.

Over REST and MCP the same declaration is repoBranches, alias or org/name → branch, on create_plan / change_plan and the plan header routes, and branch on a consume node.

Derived status ​

plan_status gives each node one of:

unrealized · unknown · missing · open · claimed · pr-open · abandoned · done · waiting · running · failed · mismatch · partial · stale · findings · fixing

stale is a gate whose pass no longer counts: a person asked for it to be verified again, or the pass was on a dirty tree (A pass on a dirty tree). It is ready again. findings and fixing are a review's (findings waiting on a person, then accepted fix nodes not yet done), and findings is also a red gate's whose holder diagnosed it (A red gate becomes findings). partial is an issue whose worker reported what it left out, closed or not. Apart from a stale gate, none of these is ready.

An issue node can also read done while its PR is still open (its issue was closed by hand, or a person accepted it as partial): the card says done · landing #790, and its dependents wait until the PR merges or is closed.

Two distinctions worth keeping straight:

  • unrealized vs missing. Unrealized means the node was never bound to a real thing — the issue has not been filed yet. Missing means it was bound and the thing is not there.
  • unknown is not missing. "No run yet" and "we cannot see whether there was a run" are different facts, and a plan that conflated them would report confidence it does not have.

An issue's pull requests ​

An issue or pr node also carries prs: one entry per pull request (an issue's closing PRs, open, merged and closed; a pr node's own), with its number and URL, its state (open, draft, merged, or closed without merging), its CI verdict and counts with the failing checks named, GitHub's review decision (approved, changes_requested, review_required), whether it can merge (mergeable: mergeable / conflicting; mergeState: clean, behind, dirty, …), its head commit and when it merged. The plan card shows each as one line, the number linking to the PR:

⇄ #587  open · CI ✓ 6/6 · review: approved
⇄ #585  draft · CI ✕ 1 failed (test)
⇄ #586  open · conflicts with main · CI ✓ 6/6
⇄ #584  merged 16:28

plan_status and next_ready_nodes return the same list, so an agent reads exactly what the person sees. State, review, mergeability and head commit are stored. The CI counts, the failing checks' names and the merge state change with every finished check, so critterstack keeps them in memory only, and they are empty for up to a minute after critterstack restarts. While GitHub recomputes mergeability after the base branch moves, critterstack keeps the last answer it had. A PR turning conflicting, or a review decision, is a line in the plan's Activity.

Reading the plan page ​

A plan's page is built to answer "what needs me, and what is everything else waiting on" before anything else.

Every card is in one of five classes, from the server, so the card, the needs panel and an agent reading plan_status (stance and stanceWhy on each node) agree:

ClassMeans
✋youA person owes it something: a go-ahead, an answer, a merge, a review, a partial to accept, a bump, a node of yours. Exactly the cards the needs panel lists.
⨯brokenA failed gate, red CI, a conflict, or a node GitHub cannot be read for.
⏸heldHeld by a control: kept for a cloud agent, waiting on a machine resource, or the machine reserved for an exclusive node.
⟳movingBeing worked: a live claim, a running gate, CI running. An agent still on a red PR reads moving.
waitingWaiting on its dependencies, or ready for an agent to claim.

A waiting card names its root blocker. Rather than "waiting", its detail leads with what it is ultimately waiting on, walked upstream across plans: waits on p0-sdk (✋ your go-ahead). The needs panel ranks its items by how many waiting cards each one holds ("unblocks 12").

The views. Graph (the default), Table, Activity and YAML share one switcher, and the choice rides the URL (?view=table). The table lists the same cards as rows, what needs you first, and gives and withdraws go-aheads in bulk; see The table.

Bands per repository. The graph keeps its dependency columns, and stacks each repository's cards in a band, upstream repositories first (a repository whose cards others depend on, or whose packages others consume, goes higher). Each band's header is that repository's: how many of its cards are done and how many are ready, its CI toggle, and approve all N for the cards that can take a go-ahead. A band lays out only the columns its own cards use, so a wide plan stays narrow. ▼ / ▶ folds a band, and Expand all / Collapse all fold them together.

The lens. All · ✋ You · ⨯ Stuck · ⟳ Moving mutes every card outside the class. Clicking a muted waiting card traces its path to what blocks it. A stalled plan opens in ✋ You, once per visit. A band with no lit card folds to its header, and the ‹ › counter steps through the lit cards.

What the plan needs from you stands at the top: every action you owe the plan, grouped, with a "stalled" banner when work is ready and nothing is running. It stays reachable as a one-line bar as you scroll. Merges are listed in the order they should land (see What is waiting on you).

The header carries the plan's own controls: the title's ✎ renames the plan (the title only; the slug is its identity) and its lead. The views row beside the view switcher has Expand all / Collapse all and ⌕ find.

On a card, 🔎 is manual review and 🤖 merge-on-green, ⛰ marks heavy work, 🔒 exclusive work, ☁ a node kept for a cloud agent, and 👤 a person's step.

The table ​

The Table view lists the same cards as the board, as rows, with the same cues: the class icon, status colour, what a person owes, who holds it, the PR line with its checks, a gate's steps, and the go-ahead. Rows come in three groups, each in the board's reading order, and the lens filters them the same way it mutes the board:

  1. Needs you or stuck: a go-ahead, a merge, a partial, a question, a failed gate or a hold.
  2. Being worked: claimed, running, or with a PR open.
  3. Everything else, in band order, repository by repository, upstream first.

Select rows with their boxes to give or withdraw go-aheads in bulk. The bar above the table also selects every card awaiting a go-ahead, or every card approved and not done. A bulk go-ahead names every card it covers and asks first, exactly like a band's approve all, and it is one request recording one go-ahead per card. A selected card that cannot take a go-ahead (not an issue, done, a person's own node, or another plan's card) is left out, and the bar says how many.

Finding a card ​

⌕ find searches the plan as you type, on the node id (wv-hc-api-identity, or fuzzily, wvhc), words from the title, and an issue or PR number (5139, #5139, wolverine#5139 or JasperFx/wolverine#5139; a PR number finds the card whose PR it is). ↵ focuses the card and opens its detail, and ⇧↵ only focuses it. The search finds cards a lens mutes, and says which lens mutes each.

To link to a card from a chat message or another session, use /plans/{plan}/nodes/{id}, which opens the card; /plans/{plan}?focus={id} focuses it without opening it.

Repository icons ​

A repository that has an icon of its own is shown with it, beside its name, wherever critterstack names it: band headers, cards, the needs panel's chips, the plans list's pills, the Table's repository column, the Repositories page and the ready board's rows. Nothing is configured per repository.

The icon is the repository's favicon: a favicon.ico, favicon.svg or favicon.png anywhere in its tree, its docs site's preferred when there are several. Icons under sample, scratch, test or old folders, and the stock ASP.NET and Vue template icons, are ignored, so a repository whose only favicon came with a template shows none. The server looks for each repository it knows (registered, or named by an active plan) through the GitHub sweep's token, over REST: one tree read per repository a day (CritterStack:RepositoryIconRefreshHours), and the file itself only when it changed. It stands down while GitHub's rate limit is spent, and with no GitHub token there are no icons. Icons are kept on disk (CritterStack:IconsPath), never in the store: they are a cue, and nothing derives from them.

Zooming into a node ​

A card answers "where does this node stand?" in one line. Clicking it (on the plan page or the ready board) zooms in: a modal with everything critterstack knows about the node, and the GitHub text it is about, in one place.

  • Header: id, kind, status, why it is or is not ready (waiting on `marten-takes-rc1` , ready, awaiting a go-ahead), and the binding as a link.
  • The work: the author's brief, then GitHub's own text, rendered as Markdown: the issue's title, body, labels, milestone and most recent comments (collapsed past a few), and for each PR its description, state, review, mergeability, diff stat and every check. A failing check shows its summary, its first annotations and, for a GitHub Actions job, the tail of its log. The text is fetched when the modal opens, through the GitHub sweep's token, and kept a minute; it is never stored in the plan. Raw HTML in an issue body shows as the text it is.
  • What is happening now: the claim (who, since when, the session it named, how long its lease has left), the agent's last report, its declared steps with the run tag each names, and its open question, answerable in place. A ready node nobody holds shows a line to copy that starts a session on it.
  • Test runs (a gate): its steps as a list, each with its state, its latest run, its progress bar while the run is going, and the command that runs it again; see Gate steps.
  • Bobcat runs: every run the console holds that is tagged for the node (BOBCAT_RUN_TAG {plan}/{node}), for one of its gate steps ({plan}/{node}/{step}), for a unit under either, or with a run tag the holder declared on a claim step, newest first: its suite, the step it ran for, its verdict, a live bar (scenarios finished, green, red) while it is in flight, and a link to the run on the console.
  • History: this node's lines of the Activity, people's notes, a review's findings, a gate's critterstack gate exec runs.
  • Neighbourhood: what it depends on and what it unblocks, across plans, each a link that zooms to that node, plus the repository notes and memories an agent starting it would recall.
  • Actions: the card's own buttons, repeated: approve for agents, the merge policy pill, allow asserted, re-verify, a note, and open in GitHub.

The modal is live: it follows the same pushed status the board does, and reloads its detail when the node changes. It is deep-linkable as /plans/{slug}/nodes/{id}, so a chat message or an ask_person link can open straight onto it. An agent gets the same view from get_node, and anything else from GET /api/plans/{slug}/nodes/{id}.

Finding work ​

next_ready_nodes()

Ready means: every dependency is done — wherever it lives, including in another plan — and the node is not itself done, missing or running (or a review waiting on its findings or fixes). Results are sorted by leverage: how many nodes finishing this one unblocks. A node kept for a person is left out.

Each ready node nobody holds also says whether it is free to take, as launch:

launchMeans
nextNothing holds it: an agent can claim it.
go-aheadAn issue node waiting for a person's go-ahead before an agent may claim it.
machine-resourceA machine resource it uses is full; the detail names who holds it.
exclusiveThe machine is reserved for an exclusive node that is running alone.

Read it before claiming. plan_status, next_ready_nodes, get_node and the card all carry the same answer.

Claims ​

A claim is how one agent tells the others it is working on something.

claim_node(plan: "critter-parity", node: "fisher-1-10", agent: "…")
report_node(…, note: "reproduced; the fix is in the parser")
release_node(…)
  • A claim is a lease, default 30 minutes, and its expiry is derived at read time rather than written down — so a session that dies without releasing does not hold a node forever, and nothing has to sweep.
  • Claiming a taken node is refused with the holder's name, and claiming a done node is refused outright.
  • Releasing changes no status. Finishing the work is proven by the issue closing, the version appearing, the suite passing — not by saying so.

A claim names who holds it, as the claimant said, and the session it passed, if any. critterstack watches no agent session: a claim is held while its lease is live, and an agent that stops renewing it lets the node go when the lease runs out.

An agent holding a node can also say the steps it means to take with declare_node_steps, and report each one as it goes. The agent view then shows what is and is not complete: the agent's own word for each step, and beside it, for a step that names a runTag, what the tagged run actually observed. Steps never change a node's status. A repository's own gates (a ./build.sh CommitGate, say) are recorded with declare_repository_gate, so a step can say which gate it ran and what it returned.

Shared resources ​

Parallel sessions in one repository share its infrastructure: one Postgres, one Docker daemon, one port. A plan can say what it has and how many nodes may hold each at once:

yaml
plan: wolverine-providers
resources:
  postgres: { capacity: 1 }
  docker-fleet: { capacity: 1, scope: machine }
nodes:
  - id: postgres-tests
    kind: test-run-gate
    uses: [postgres]
  - id: full-gate
    kind: test-run-gate
    uses: [heavy]

declare_plan_resources and PUT /api/plans/{slug}/resources set the same map, replacing it. A node's uses must name a declared resource (or heavy), and a resource something still uses cannot be removed.

A plan's own resource is a declaration. get_plan gives each node's uses and the plan's capacities, for the sessions working the plan to read and honour: do not start postgres-tests while another node using postgres is being worked. critterstack does not refuse a claim over it.

A machine resource is held by the server. A resource declared with scope: machine is the whole machine's, and heavy is built in: uses: [heavy] needs no declaration and runs one at a time across every plan and repository, while light work carries on beside it. Two plans declaring different capacities for one machine resource share the smaller.

A node holds a machine resource while it has a live claim, or while a critterstack gate exec of it is still running on this machine, claim released or not. A claim on another node using it is refused with who holds it ("waiting on heavy, held by polecat/pc-gate for 41 minutes"), its card reads held, its launch says machine-resource with waitingOn naming the resource, and the plan's status lists the holders. A critterstack gate exec start waits for room and says who holds it every five minutes; --no-wait records at once.

A node that runs alone ​

Some work has to be the only thing on the machine: a memory stress test, a benchmark, anything another agent's build or suite would spoil. Mark it exclusive: machine (the card shows 🔒):

yaml
  - id: marten-stress-run
    kind: test-run-gate
    repo: marten
    exclusive: machine
  • Its claim waits for the machine to drain. A claim on it is refused until every other live claim and every running critterstack gate exec on this machine has finished, and the refusal names what is still running. Work already running is never stopped.
  • While it holds a claim, the machine is reserved. Every other ready node, in every plan, says exclusive ("ready, but the machine is reserved for marten-train/marten-stress-run, which is running alone"), and a claim on one is refused with that reason.
  • Unclaimed, it reserves nothing. A ready exclusive node nobody has claimed holds nobody back.

A gate run by hand is never refused, since gate exec never fails the command. It says on stderr that the machine is reserved, and goes ahead.

Partial work ​

An issue closes on Fixes #n whatever the pull request delivered, and missing work breaks no test. So a session that did only part of an issue writes Part of #n in its PR, and reports what is left with report_node (leftOut, with scopeDone and scopeTotal). A brief adds to an issue; it never shrinks it.

A node with reported leftovers reads partial, even if its issue closed, and what depends on it waits. It is a need of yours, and says what was left out. To go on anyway, press accept on the card (c): the node counts as done, and what was left out stays on it. send back takes an acceptance back, and the node reads partial again. A session that finishes the rest reports leftOut: [], which clears it. A report newer than your acceptance holds the node again.

A session's word can only hold a node back, never finish one.

A pull request that names no closing keyword is invisible to GitHub's issue link, so report_node takes its number as pr (or POST /api/plans/{slug}/nodes/{id}/linked-pr): critterstack then observes it and shows it on the node like a closing PR. A linked PR never closes the node; the issue closing does.

Nodes a person does ​

Some work belongs on the plan because other nodes depend on it, but no agent should do it: a manual review, recording a demo. Mark an issue, slice, gate or review node with assignee: person, or use kind: person for a task with no issue behind it. next_ready_nodes does not offer it, claim_node refuses it, and it needs no go-ahead. When it is ready it shows in the top bar as an action for you, with how many nodes it unblocks. An assignee: person issue is done when its issue closes, or when you press mark done on the card. A kind: person node is done when you press it. Nothing else can be marked done: every other node is done by what critterstack observed. An agent cannot take assignee: person off a node.

Unbound issue nodes ​

An issue node does not have to be bound to a GitHub issue first. Unbound, it reads unrealized, and when it is ready it is a bind need: file the issue and bind it (bind_plan_node). It takes its go-ahead once it is bound, since the go-ahead covers the issue a person read.

Which skills a node's work uses ​

Installed skills are only a list a session may or may not look at. So a node says what its work uses, and each session that takes it is told. skills: on a node wins, then skills: on the plan, then a default for the kind: a slice's is critterstack-sdd-code-from-specs, and the other kinds have none.

yaml
plan: storefront
skills: [critterstack-sdd-bobcat-authoring]   # for a node that names none
nodes:
  - id: import-board
    kind: issue
    repo: JasperFx/storefront
    skills: [critterstack-sdd-event-model-import]

claim_node, next_ready_nodes and get_node all carry the answer as skills, the zoom's line that starts a session on a node names them. It is a request, not a force: the session decides. critterstack setup says which skills your plans use that are not installed.

A merge that turned main red ​

When the GitHub sweep saw a repository's default branch turn red exactly at a plan node's merge, the card that merged it says so (merged #819 · main red since 7c438f1 (build)) and the plan has a fix a red default branch need. add the fix node (on the card, the needs panel, the zoom, or the plan's lead relaying it with propose_base_fix) adds one fix node per repository and red commit: an unbound issue node on manual review, with a brief naming the failing checks and tests, the merge and its PR. Every node whose open PR is red only because of the default branch is linked to depend on it, so those cards name the fix as what they wait on. It takes a go-ahead like any issue node, and asking again answers the existing fix. The need clears when the branch is green or the fix node exists. critterstack never reverts a merge.

A PR whose only failing checks also fail on the red default branch says so on its PR line.

When a repository's CI is off on purpose ​

Turning CI off for a day, so the Actions queue gates only the release, is a decision critterstack needs to know about. Otherwise everybody waits on checks that will never run. Each repository's band on the plan page has a CI toggle in its header: turning it off asks why, and the reason shows on hover. A plan's live lead can relay it with set_repository_ci.

While a repository's CI is off:

  • Its issue and pr nodes say so. Each carries ciOff with the reason, the repository's commit gate and the gate's scope, and the PR line says CI off where it would show checks. A session proves its change locally with that gate, scoped to what it changed, says in a PR comment what it ran, and finishes at the open PR. Give the gate a scope with declare_repository_gate so a session knows which part of a long gate covers which code.
  • Your review stays yours. A manual-review card's PR is in front of you at once. It removes the wait, never the review.
  • A conflict resolution says it is untested. When a PR's head changes while it conflicts (a rebase, or a merge made in GitHub's web editor), its PR line says resolved at 1a2b3c4, not tested until the commit gate passes on that head: critterstack gate run <plan>/<node> --step <gate>, or a scoped run recorded under that step (critterstack gate exec <plan>/<node> --step <gate> -- <command>).

Turning it back on puts it back: PRs are read by their checks again.

Waiting without polling ​

The cross-repo case that motivated all of this: a downstream agent needs an upstream publish.

await_package_version(feed: "nuget.org", package: "Fisher", minVersion: "1.10.0")
await_dependencies(plan: "critter-parity", node: "critterstack-bump")

Each blocks until the fact changes, and costs one open request. await_package_version queries the feed directly, so it works for any package — not only ones a plan happens to declare, and on npm too (feed: "npmjs.org").

History and Activity ​

plan_history returns every change ever made, oldest first, with who made it and what it was: plan_created, node_added, node_changed, node_removed, dependency_added, dependency_removed, node_bound, the plan header changes, and every person's decision (a go-ahead, a merge policy, a note). The plan is an event stream, so this is the stream, not a log somebody remembered to write.

The plan page's Activity (GET /api/plans/{slug}/timeline) is wider: the plan's stream joined with each node's claim, gate-run and GitHub streams and the Bobcat runs tagged for its nodes, newest first, one line per change naming its node, who (with the session for a claim), and whether it was asserted (an agent or a person said so) or observed (GitHub, a feed, a run). Only news: a lease renewal is a line when its note changed, a GitHub sweep only for what moved. A claim's declared steps and each step its holder reports are lines (the holder's word, never a status). A Bobcat run tagged for a node is a line when it starts and one when it finishes or is orphaned, linking to the run; while it is in flight its line carries the live count, and the runs filter shows only these. A person's note (+ note, on the plan's strip) is a line of its own.

A run starting, progressing or finishing for a node also goes out as activity on that node, pushed to the page as node_run_activity (the node view and the Activity fetch again when a run starts or finishes). It is never stored: the start and the finish are on the Activity anyway, and progress lives in the console's memory. The supervisor event stream (critterstack#8) is to carry the same activity.

Editing and archiving ​

A plan is edited through the commands above, over MCP or REST; the plan page shows it and does not edit its nodes. Archiving takes a plan out of the active set and keeps its stream; an archived plan can be purged for good.

The store is the master copy. YAML is an import and export format only: export_plan (the plan page's YAML view) writes a document that, imported back, records nothing; the CritterStack:PlansPath directory only ever seeds a plan the store has never had, so an edit made over the API is never undone by a stale file.

See also ​