Skip to content

A person's controls ​

Agents do the work; some decisions stay a person's. This page is where those decisions live: what is waiting on you, how to answer an agent, and the controls on a card that only a person can use.

That last part is deliberate. Every control below is recorded on the plan with who and when. An agent that could approve its own issue, put its own PR on merge-on-green, jump its own node up the queue or decide its own review's findings would make each of those a formality, so no worker and no undeclared agent can use one. Plan authoring over MCP cannot reach them either: none is part of a plan's YAML except the merge policy, and add_plan_node / change_plan_node / import_plan refuse to turn that one on.

The one exception is the plan's lead agent, the session you work the plan through: it may relay a decision you made in your conversation with it. Each control has an MCP twin only it may call while it is alive, naming you in relayFor; the decision is recorded as yours with the lead beside it, and the Activity says both ("approved for agents, relayed by net11-lead · Jeremy D. Miller"). A lead is refused on a node it holds a claim on itself. The tools are listed in the MCP reference.

A plan's Table view gives and withdraws go-aheads in bulk: see The table.

Who you are ​

critterstack has no sign-in. Every control on this page records a name: the one in the topbar's You field, kept in this browser. Set it once; until you do, what you do is recorded as critterstack-ui (an earlier Stoat recorded stoat-ui, which the page never shows as a name either).

On its own machine that is all there is to it. On a server told to serve other machines, anyone who can open the page can use every control here: there are no accounts or per-person permissions, and the name recorded is whatever that person's browser says. Keep such a server where only the team can reach it.

What is waiting on you ​

These places say it, and they read the same list, so they never disagree.

  • The top bar, on every page: a waiting on you count. Questions come first, since an agent is stopped on each, then go-aheads, merges and partial work, and nodes of your own. Clicking a question opens the chat below.
  • The ready board's "needs a human" strip (the landing page): questions for a person, issue nodes waiting for a go-ahead, PRs open under manual-review, partial work to accept, and nodes of yours that have come ready.
  • A plan's page: what the plan needs from you, at the top, grouped by action (answer a question, give a go-ahead, fix a red default branch, merge, accept partial work, decide findings, a node of yours, publish to the real feed, bump a package, align a version, bind an issue), with a "stalled" banner when work is ready and nothing is running; and the ✋ You lens, which mutes every other card (see Reading the plan page).

A plan with ready work and nothing running is stalled. When it owes you something, the panel says "Nothing is running, and work is ready. To continue:" with the actions; when it owes you nothing, it says "Nothing is running. Ready work waits for an agent to claim it." plan_status carries the same answer as needs, so an agent reads what you read.

Work through them one at a time. The top bar's ⚑ menu lists each item, and Work through them opens a queue: one item at a time, with Previous / Next (← →, or j / k). A question shows the chat, a go-ahead has Approve, a node of yours has Mark done with its brief, and anything else opens where it is handled. An item that arrives while you read never moves you off the one in front of you.

Merges are listed in the order they should land: a PR comes after every open PR upstream of it, in any plan, and one that depends on an open PR says so (after #790 (weasel-tfm): this depends on it) on the plan's needs, its card, its table row and the strip. critterstack cannot stop a merge out of order on GitHub; it says the order instead.

Answering an agent ​

An agent that needs a person asks with ask_person and parks until it is answered, its lease renewed while it waits. One call parks for about four minutes at most, under the time an MCP client allows a tool call; then it answers pending and the agent calls again with the question's questionId, so a long wait is several calls on one open question. The agent says what it would do if nobody answers (recommended), which the chat shows as its default, and it is told not to carry on with that while the question is pending, unless its question said it would. A question never changes the node's status, and it lives on the claim: it is answerable while the claim is live.

Clicking a question opens a chat with that agent: the question with its options and default, the agent's last report, every question and answer on the node so far, and a reply box. The reply goes to the question parked on the claim (POST /api/plans/{slug}/nodes/{id}/conversation), and the agent carries on at once. A cloud agent asks through ask_person or its REST twin like any other.

The card's ? answer answers a parked question in place, and so does the node's zoomed-in view.

A lead agent ​

A plan is usually worked through a supervising session. critterstack makes that role explicit: an agent takes the lead of a plan with lead_plan, and is then the first responder for its workers' questions marked needs: agent. It parks on them with await_questions, answers with answer_question, or hands one to you with escalate_question, after which it is yours for good. A question left unmarked goes to the lead while one is alive, else to a person.

  • The lead is never the authority. A question marked person is never answerable over MCP, by the lead or anyone, and the lead holds none of the controls below of its own: it relays the ones you decide (approve_for_agents, set_merge_policy, accept_partial and the rest), recorded as yours with its name beside them, and only while it is alive.
  • A lead is alive while it keeps calling: lead_plan, await_questions, an answer, an escalation or a relay, within ten minutes. critterstack watches no session itself. A lead not heard from for ten minutes leaves no question unrouted: everything it held is a person's until it calls again.
  • The plan header shows the lead, and its × clears it (DELETE /api/plans/{slug}/lead), alive or not. Only one lead at a time, and taking the lead is refused while another lead is alive.

critterstack routes to the lead and never depends on it, and never starts one. How to run one is on Working a plan with a supervising agent.

The controls on a card ​

ControlWhat it doesMore
approve for agentsThe go-ahead: an issue node waits for one before an agent may claim it. Cleared when the node changes or is rebound, since it covered what you saw.The go-ahead
approve all N / withdraw allThe same, for every card in a repository's band that can take one (or a selection of rows in the Table view), after a confirm naming each card. A card that went done, lost its binding or was approved meanwhile is skipped and named.The table
🔎 / 🤖 (🔎 manual review / 🤖 merge on green in the zoom)The merge policy pill: manual-review or merge-on-green. Asks before turning review off; keeps the go-ahead.The merge policy
allow assertedLet an agent's report_gate_result decide this gate. Cleared when the node changes.Asserting a result
⟲ re-verifyMake a done gate's earlier passes stop counting, so it is run again. Its steps read pending until each runs again.Verifying again
accept as it standsOn a gate whose pass is stale because it ran on a dirty tree: let that pass count, so its dependents go on. A newer run replaces it; ✓ accepted stale takes it back.A pass on a dirty tree
accept / send backOn a partial node: let what it delivered count as done, with what was left out still said; or take that back.Partial work
mark doneOn a node of yours: the only node anyone can mark done.Nodes a person does
+ noteA person's note on the plan or a node. The card shows the latest as ✍, every note is a line of the Activity, and nothing derives from it.
CI on / offOn a repository's band: turn its CI off on purpose, with a reason, so nobody waits for checks that will not run. Your review stays yours.CI off
stand in for CIOn the Repositories page: let a repository's commit or push gate stand in for CI for a merge-on-green PR.A repository's own gates
add the fix nodeOn a card whose merge turned the default branch red (and in the needs panel and the zoom): adds an unbound issue node for the fix, as you, ahead of the nodes whose open PRs are red only because of it. It still waits for your go-ahead.A merge that turned main red

None of them is exported, apart from the merge policy (merge:), which is part of the node. The go-ahead is cleared by a change to the node or a rebind, and the asserted-results grant by a change.

A card also shows what the plan says about the node, as marks rather than controls: ☁ for a node the plan keeps for a cloud agent (agent: cloud), ⛰ for heavy work and 🔒 for a node that keeps the machine to itself (uses: [heavy], exclusive: machine). They are set where the plan is authored; see Shared resources and Cloud agents.

The go-ahead ​

An issue's scope is whatever its text says, so starting on one is a decision. An issue node that is ready and not yet approved says so (launch: go-ahead, "ready, and waiting for a person's go-ahead before an agent may claim it"), on its card and to every agent reading plan_status or next_ready_nodes. approve for agents (POST /api/plans/{slug}/nodes/{id}/approve) records the go-ahead on the plan with who and when. It is never part of an export, and it is cleared if the node is changed or rebound: it covered what you saw. Slices, gates and reviews take none, since what proves them is fixed by the plan.

Many at once: approve all N in a repository band's header approves every card in the band that can take a go-ahead (an issue node that is bound, not done and not yet approved) after a confirm that names each card. The plan's Table view does the same for any selection of rows. It is one request (POST /api/plans/{slug}/approve with { "nodes": [...], "by": "..." }) and one approval per node with the same who and when. A card that went done, lost its binding or was approved by someone else after you confirmed is skipped and named, never approved behind your back. withdraw all takes the band's go-aheads back. Which cards can take one is the server's call (approvable on each node's status, beside approvedForAgents), so the page and every agent read the same answer.

The merge policy ​

An agent's work on an issue ends at a pull request, and the agent never merges it. The node is done when GitHub observes the issue closed. Each issue, pr and consume node carries a merge policy:

  • manual-review (the default, 🔎 on the card): a person reviews and merges. The open PR is a merge need of yours, listed in the order merges should land.
  • merge-on-green (🤖 on the card): the PR may be merged with no review once critterstack observes its checks green. It is your statement that no review is needed; the open PR is no need of yours.

critterstack merges nothing. The policy is read by whoever does: you, or a session you told to. Only a person turns merge-on-green on (the card's pill, POST /api/plans/{slug}/nodes/{id}/merge, or the lead relaying your word with set_merge_policy); plan authoring by an agent is refused for any node moving to it. Changing the policy keeps the go-ahead.

Cloud agents ​

Some work suits a cloud agent better than this machine: long-running, self-contained work, work in another repository, or anything that would compete for the box's databases. The plan says so with agent: cloud on the node (the card shows ☁), exported like any field and changed by editing the node.

  • Not for a session on this machine. The node's status carries cloud, its card reads held ("kept for a cloud agent"), and it is given no launch. A person or the lead starts the cloud agent.
  • Tracked like any claim. The cloud agent claims with where: "cloud" and its session's page as link, and the card says ☁ cloud beside the holder and links the session. Nothing on the critterstack machine can see it, so it renews its own lease with report_node (up to 240 minutes), and its claim's health reads unlinked, which says why.

Changing a plan ​

The plan page shows a plan; it does not edit its nodes. A plan is authored over MCP (add_plan_node, change_plan_node, link_plan_nodes, bind_plan_node, import_plan) or through the same commands' REST endpoints, usually by the agent you are planning with, and the page shows each change as it lands. A change to a node's own fields replaces the node, and so clears its go-ahead and asserted-results grant; a rewire or a new binding clears nothing. See Authoring.

Deciding a review ​

A review node is a review of the plan's integration branch as a whole, by a session that claims it and changes nothing. The reviewer submits its findings (submit_review), each a title, a brief and optionally a severity and steps. Each finding is then yours:

  • Accept it: a fix node (a test-run gate by default, titled and briefed by the finding; edit it first if you like) is added to the plan, and the review is linked to depend on it, so whatever comes after the review waits for the fix too.
  • Reject it, with a reason.
  • A review that found nothing is done only when you sign it off.

The review reads waiting (nothing submitted; claimable), then findings (yours to decide; not ready), then fixing (accepted fix nodes not done), then done. The card's findings button opens them. A red gate's findings are decided in the same dialog; see A red gate becomes findings.

Archiving and purging ​

Archiving takes a plan out of the active set and keeps its stream: its history, and everything it ever said. Purging (the plans page's archived list) deletes an archived plan for good, with its claims and publish baselines, after writing its YAML to CritterStack:PurgedPath (~/.critterstack/purged/{slug}-{timestamp}.yaml); importing that file is the only way back. It is refused while an active plan depends on one of its nodes, and the plans directory never brings a purged plan back from its file. See POST /api/plans/{slug}/purge.

See also ​