docs(requirements): 095 to 099 and the 094 closer binding

095 compact agent message box, 096 silent reject of expired Match cards,
097 Match show filter in the right-click menu, 098 docked speech bubbles
with avatar and skip, 099 Match card headline capped at 120 characters.
094 gains the live test result, the 5 s close criterion and decision 6:
closes are bound to a per-session closer token. README describes the
094 hook protocol and the uncapped prune list.

🎯 Fix: 97 %
💥 Break: 1 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 96
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-28 01:49:02 +00:00
1 parent 6323f087bc
commit 38788b54a5
8 files changed
+383 -5

No files matched your search

+7 -3
View File
@@ -476,20 +476,24 @@ The Agents view "Hierarchy" draws the council's formal offices as a collapsible
The Tasks tab (key 4, `#tasks/list`, `#tasks/board`, `#tasks/rasci`) shows the `kvb-org-rasci` register as a list, a board by status and a RASCI matrix; queue jobs from `council/queue.json` appear as "waiting for a grant", and the filter "Waits on Operator" is the inbox, which the Inbox entry under Stream opens: every pending review, ask, rule request, operator row and choice card, with no Choices column of its own. The Tasks toolbar is one row that wraps on narrow screens (views, filter, estimation, sort and business value, trend on the burn view), the status chips the second; every list row shows its ETA, and `#tasks/3d` draws the tasks and their dependencies on the 3D engine. Its "Request choices" dropdown has one button per channel, post and call to the agents ticked in it, newsletter, broadcast, pan-pan, Sécurité and mayday to all, that sends the fixed request "send me your open decisions as choices" without a text field, one passkey assertion over every recipient (`/api/choices/sign`, then `/api/choices`). Agents answer with `decision_request`, shown as choice cards, and a click on an option is the passkey-signed answer: after the 3 s undo the hub verifies the signature and posts the answer to the asking agent, whose `decision_wait` returns it as `message` and `answer` for `operator_message`. A task's sheet pins its priority (`rasci.py set <task> --prio <n>`) or sets and drops the operator's WSJF estimate (`rasci.py estimate <task> Operator --value <fib> --complexity <fib>` or `--drop`) after a passkey signature; the hub writes an argv-only job, and the runner, started with `--rasci <rasci.py> --council <council root>`, verifies it like an operator command and runs `rasci.py` from `/` without a shell, killing it after 30 s. Agent order stays untouched. The install copies the fresh runner unit and restarts the runner when it is enabled, and only while the installed `council.py`, `nofollow.py` and `rasci.py` match this tree: otherwise it disables the runner and asks for `make install`. The home install and `orchestrator.sh install`, `stop` and `runner` refuse while `~/.local/state/kvb-orchestrator/runner-job.json` names a live runner pid, which the runner keeps only while it runs a hub row, because stopping the runner kills that row; run them in a terminal once no row runs, never as a hub row. A starting runner has the hub fail every job an earlier runner left running back to its agent (`/api/runner/restart`). The runner unit pins `PATH` to `/usr/bin:/bin`, so a signed command names any other program by its full path; a runner started without `--rasci` and `--council` keeps running signed commands and refuses task changes, and so does one whose council is a symlink or another uid's. Each worktree in the tree file may carry `"flow": {"pull": [...], "push": [...], "source": "file"}` or `null`, which the Tree, the Chord edges, the detail panel and the matching task show; a malformed flow shows as `invalid`. Worktrees and tasks with open work (uncommitted, unpushed, unmerged, task not done) carry a warning bar. The Tasks tab (key 4, `#tasks/list`, `#tasks/board`, `#tasks/rasci`) shows the `kvb-org-rasci` register as a list, a board by status and a RASCI matrix; queue jobs from `council/queue.json` appear as "waiting for a grant", and the filter "Waits on Operator" is the inbox, which the Inbox entry under Stream opens: every pending review, ask, rule request, operator row and choice card, with no Choices column of its own. The Tasks toolbar is one row that wraps on narrow screens (views, filter, estimation, sort and business value, trend on the burn view), the status chips the second; every list row shows its ETA, and `#tasks/3d` draws the tasks and their dependencies on the 3D engine. Its "Request choices" dropdown has one button per channel, post and call to the agents ticked in it, newsletter, broadcast, pan-pan, Sécurité and mayday to all, that sends the fixed request "send me your open decisions as choices" without a text field, one passkey assertion over every recipient (`/api/choices/sign`, then `/api/choices`). Agents answer with `decision_request`, shown as choice cards, and a click on an option is the passkey-signed answer: after the 3 s undo the hub verifies the signature and posts the answer to the asking agent, whose `decision_wait` returns it as `message` and `answer` for `operator_message`. A task's sheet pins its priority (`rasci.py set <task> --prio <n>`) or sets and drops the operator's WSJF estimate (`rasci.py estimate <task> Operator --value <fib> --complexity <fib>` or `--drop`) after a passkey signature; the hub writes an argv-only job, and the runner, started with `--rasci <rasci.py> --council <council root>`, verifies it like an operator command and runs `rasci.py` from `/` without a shell, killing it after 30 s. Agent order stays untouched. The install copies the fresh runner unit and restarts the runner when it is enabled, and only while the installed `council.py`, `nofollow.py` and `rasci.py` match this tree: otherwise it disables the runner and asks for `make install`. The home install and `orchestrator.sh install`, `stop` and `runner` refuse while `~/.local/state/kvb-orchestrator/runner-job.json` names a live runner pid, which the runner keeps only while it runs a hub row, because stopping the runner kills that row; run them in a terminal once no row runs, never as a hub row. A starting runner has the hub fail every job an earlier runner left running back to its agent (`/api/runner/restart`). The runner unit pins `PATH` to `/usr/bin:/bin`, so a signed command names any other program by its full path; a runner started without `--rasci` and `--council` keeps running signed commands and refuses task changes, and so does one whose council is a symlink or another uid's. Each worktree in the tree file may carry `"flow": {"pull": [...], "push": [...], "source": "file"}` or `null`, which the Tree, the Chord edges, the detail panel and the matching task show; a malformed flow shows as `invalid`. Worktrees and tasks with open work (uncommitted, unpushed, unmerged, task not done) carry a warning bar.
Every request has exactly one kind (requirement 093): expired (an ask or decision `lapsed_of()` keeps, listed as `lapsed` in the state), failed (an operator row whose last hub job failed or the runner refused), stale (a review whose staged tree or HEAD moved, a row whose merge preview moved off its Match snapshot) or open. The Stream shows open requests inline and a failed row once, its runner line folded into it; expired and stale requests only behind one collapsed footer line "N stale requests · n expired · n stale" that opens them in place. Tasks → Operator has the chips Open, Expired, Stale, Failed and All, each with its count and listing exactly its kind (All by default). The footer and every chip have "Select all" and "Delete N": one passkey assertion over a `dismiss` item per request (`/api/sign`, then `POST /api/requests/dismiss`), refused unsigned, for a request no longer listed (404), held, or of another kind than its chip (409), so an open request goes only from Open or All. The requests leave every browser's state, Match and the badge at once; `/api/inbox/undo/<batch>` brings them back within the undo window, after which `dismissals.json` in the hub state keeps them hidden while their command and hub job stay the same. No agent gets a message; an open ask is also denied without a reason, so its hook stops waiting, while every other request keeps its record.
The board marks what runs right now (requirement 074), one labelled chip per mark in this order: a running queue job of the task or the queue card's own (`bi-cpu`, accent, its kind and runtime) from the active entries of `council/queue.json`; an agent working (`bi-person-workspace`, ok, the agent and how long ago it beat) when the task's worker or one of its R beat within the last 5 minutes, read from the busy sessions of the host snapshot `agent-sessions.json` and the council claims (state field `beats`); a hub job running (`bi-terminal`, info, the command's head) while `runner-job.json` in the hub state dir names the task (state field `runner`, read without following a link and dropped once the hub records the job as ended). A marked card gets a 2 px border in its first mark's tone and a 3 s glow that animates opacity only; with `prefers-reduced-motion` the border stays and the glow stops. The board chip "Running" shows only marked cards, kept in the page like "Older Done". The board marks what runs right now (requirement 074), one labelled chip per mark in this order: a running queue job of the task or the queue card's own (`bi-cpu`, accent, its kind and runtime) from the active entries of `council/queue.json`; an agent working (`bi-person-workspace`, ok, the agent and how long ago it beat) when the task's worker or one of its R beat within the last 5 minutes, read from the busy sessions of the host snapshot `agent-sessions.json` and the council claims (state field `beats`); a hub job running (`bi-terminal`, info, the command's head) while `runner-job.json` in the hub state dir names the task (state field `runner`, read without following a link and dropped once the hub records the job as ended). A marked card gets a 2 px border in its first mark's tone and a 3 s glow that animates opacity only; with `prefers-reduced-motion` the border stays and the glow stops. The board chip "Running" shows only marked cards, kept in the page like "Older Done".
Without reinstalling the skills, `make orchestrator-install` installs, builds and starts only the hub, `make orchestrator-check` checks the installed hub (image, container, logs, HTTP, pinned keys, hook, runner, tree timer, disk; exit 1 on a failure), `make orchestrator-pin CREDENTIAL=<blob>` pins the passkey that "Register passkey" shows, `make orchestrator-runner` enables the runner service, and `make orchestrator-hook` registers the PermissionRequest hook in `~/.claude/settings.json`, replacing an earlier Agent Orchestrator entry and keeping the file mode, after a copy to `settings.json.before-kvb-orchestrator-hook` (Claude Code reads `~/.claude/settings.local.json` only in sessions started in the home directory). Agents that reach the Docker socket are root-equivalent: until the agent VMs of core requirement 093 isolate them, the signatures do not hold against such an agent. `make watch-check` shows whether the resource watch hook is stuck (running hooks, holders of the kept queue history, age of the stored stage). Without reinstalling the skills, `make orchestrator-install` installs, builds and starts only the hub, `make orchestrator-check` checks the installed hub (image, container, logs, HTTP, pinned keys, hook, runner, tree timer, disk; exit 1 on a failure), `make orchestrator-pin CREDENTIAL=<blob>` pins the passkey that "Register passkey" shows, `make orchestrator-runner` enables the runner service, and `make orchestrator-hook` registers the PermissionRequest hook in `~/.claude/settings.json`, waiting the minutes of Settings › Claude dialogs (1 to 60, default 60; 3600 s while the hub has saved none), beside the same client as closing hooks (async PostToolUse, Stop and UserPromptSubmit, and SessionEnd), replacing an earlier Agent Orchestrator entry and keeping the file mode, after a copy to `settings.json.before-kvb-orchestrator-hook` (Claude Code reads `~/.claude/settings.local.json` only in sessions started in the home directory). Agents that reach the Docker socket are root-equivalent: until the agent VMs of core requirement 093 isolate them, the signatures do not hold against such an agent. `make watch-check` shows whether the resource watch hook is stuck (running hooks, holders of the kept queue history, age of the stored stage).
The Controls › Queue tab lists the waiting queue jobs, the learnings `queue.py learned --json` prints (per kind the runs, shares, slot limit and caps, per signature the learned values, the last 20 history rows) and the settings `budget_percent`, `ram_cap_percent` and `slot_limits` per kind and `load_limits`. The hub runs `queue.py` read-only with the queue config mounted read-only at `/queue-config` and never writes the config. "Start now" on a waiting job, there and on the queue job rows of a Kanban card, signs `queue.py override <id>`; staged settings are signed together under one passkey assertion as one `queue.py config set <key> <value>` each (`POST /api/queue`). The runner, started with `--queue <queue.py> --council <council root>`, verifies each like a gate change and runs `queue.py` from `/` without a shell with the operator's HOME, refusing every argv but `override <id>` and `config set` of a known key with a plain number; queue.py itself refuses a value its config check rejects, leaving the file unchanged. An overridden job skips the band, slot limits, reservations and rank, never the live guard (`load_limits`) or the disk (`skills/kvb-org-queue/controls.md`). The Controls › Queue tab lists the waiting queue jobs, the learnings `queue.py learned --json` prints (per kind the runs, shares, slot limit and caps, per signature the learned values, the last 20 history rows) and the settings `budget_percent`, `ram_cap_percent` and `slot_limits` per kind and `load_limits`. The hub runs `queue.py` read-only with the queue config mounted read-only at `/queue-config` and never writes the config. "Start now" on a waiting job, there and on the queue job rows of a Kanban card, signs `queue.py override <id>`; staged settings are signed together under one passkey assertion as one `queue.py config set <key> <value>` each (`POST /api/queue`). The runner, started with `--queue <queue.py> --council <council root>`, verifies each like a gate change and runs `queue.py` from `/` without a shell with the operator's HOME, refusing every argv but `override <id>` and `config set` of a known key with a plain number; queue.py itself refuses a value its config check rejects, leaving the file unchanged. An overridden job skips the band, slot limits, reservations and rank, never the live guard (`load_limits`) or the disk (`skills/kvb-org-queue/controls.md`).
The Hardware chart of Resources draws the limits of `<council>/limits.json` (requirements 083 and 084): for the metric picked above the chart (CPU, RAM, swap, disk or PSI) a labelled line each for lower, upper, STOP and MAYDAY, and for CPU and RAM a thin line at the live AIMD target of `limits-target.json`. A click on a line opens the dial for that value; the Calm (band 50 to 70), Balanced (70 to 90) and Max (80 to 95) switch sets every value at once (`orchestrator/kvb_orchestrator/limiting.py`, `PROFILE_TABLE`), and the Limits sheet lists all of them in one table, each cell opening its dial. The hub checks every save with the installed `kvb-org-organize/scripts/limits.py` (a broken lower < upper < STOP < MAYDAY is refused, 400) and writes the file itself through `nofollow.py`, as the council root is mounted read-write. A value at or below the one in force saves at once (`POST /api/limits` with `{limits, proof: null}`); a higher one, or any save while no limits file is in force, needs a passkey signature over the whole limits object (`POST /api/limits/sign`), else nothing is written. The Hardware chart of Resources draws the limits of `<council>/limits.json` (requirements 083, 084 and 091): for the metric picked above the chart (CPU, RAM, swap, disk or PSI) a labelled line each for lower, upper, STOP and MAYDAY, and for CPU and RAM a thin read-only line at the live AIMD target of `limits-target.json`; each line's tooltip says what its level means and does. The lines move vertically by mouse or touch (pointer events) or, focused, by the arrow keys (1 point) and Page Up/Down (5); a moved line turns dashed and shows its new and old value, and the moves collect in a bar "Save N changes / Discard". Save sends every staged value in one request; an order break blocks it and names the line. The Limits menu holds a checkbox per level (lower, upper, STOP, MAYDAY, target) to show or hide its lines, the Calm (band 50 to 70), Balanced (70 to 90) and Max (80 to 95) profiles, which set every value at once (`orchestrator/kvb_orchestrator/limiting.py`, `PROFILE_TABLE`), and "Matrix…", the table of every value as number inputs that stage the same way; a right click on the chart opens it too. The View menu beside Panels shows or hides the legend, the queue markers, the wait bands and the limit lines (series stay on their legend chips); this browser keeps every such choice in `localStorage`. The hub checks every save with the installed `kvb-org-organize/scripts/limits.py` (a broken lower < upper < STOP < MAYDAY is refused, 400) and writes the file itself through `nofollow.py`, as the council root is mounted read-write. A batch whose every value stays at or below the one in force saves at once (`POST /api/limits` with `{limits, proof: null}`); one with a higher value, or any save while no limits file is in force, needs one passkey signature over the whole limits object (`POST /api/limits/sign`), else nothing is written. A GPU span without a reading names the first `nvidia-smi` error line the sampler kept (`gpus[].error`, such as "Failed to initialize NVML: Driver/library version mismatch") in its tooltip.
"Prune" on the board's toolbar opens the stale task prune: a checklist of every open register task without a register change for N days and without a running mark (N from the days field, 3 to start with; changing it recomputes the list, all ticked), and the answer window on the analog dial, one dial component shared with the undo window (1 to 60 minutes, 10 to start with). One passkey assertion signs two runner jobs (`POST /api/prune`): the announce job, which the runner runs at once as `radio.py send security`, naming every task and the deadline in local HH:MM and ISO 8601, and the apply job `rasci.py prune --since <epoch> <task>...`, whose signed `not_before` is the deadline: the runner leaves a job with a `not_before` ahead queued and unclaimed and runs the next one, never waiting on it. At the deadline `rasci.py prune` sets every listed task stopped that is still open, has no active queue job and no register change since the list was taken; an agent keeps a task before then with `rasci.py keep <task>`, which only touches its change time. The board shows a countdown chip until the deadline. The runner needs `--radio <radio.py>` beside `--rasci` and `--council` and refuses a prune without them, an argv of another shape, more than 50 tasks, an operator/ or hotfix/ row, an announce whose deadline passed or lies over an hour ahead, and an apply job before its deadline; its replay store accepts the approval's counter again for the apply job, which runs after later signatures moved the counter on. "Prune" on the board's toolbar opens the stale task prune: a checklist of every open register task without a register change for N days and without a running mark (N from the days stepper, 3 to start with; changing it recomputes the list, all ticked), grouped by the slug's prefix before the first "/" (slugs without one under "other"), each group collapsible with a tri-state checkbox and its count, each row with its owner's avatar and its age; a filter field narrows the rows and "Prune N" counts the ticked rows it shows, and a sticky footer keeps the dial and the Prune button in view; and the answer window on the analog dial, one dial component shared with the undo window (1 to 60 minutes, 10 to start with). One passkey assertion signs two runner jobs (`POST /api/prune`): the announce job, which the runner runs at once as `radio.py send security`, naming every task and the deadline in local HH:MM and ISO 8601, and the apply job `rasci.py prune --since <epoch> <task>...`, whose signed `not_before` is the deadline: the runner leaves a job with a `not_before` ahead queued and unclaimed and runs the next one, never waiting on it. At the deadline `rasci.py prune` sets every listed task stopped that is still open, has no active queue job and no register change since the list was taken; an agent keeps a task before then with `rasci.py keep <task>`, which only touches its change time. The board shows a countdown chip until the deadline. The runner needs `--radio <radio.py>` beside `--rasci` and `--council` and refuses a prune without them, an argv of another shape, no task or one named twice (no cap on their number beyond the hub's 1 MiB body limit), an operator/ or hotfix/ row, an announce whose deadline passed or lies over an hour ahead, and an apply job before its deadline; its replay store accepts the approval's counter again for the apply job, which runs after later signatures moved the counter on.
The Controls › Schedules tab is one table of every timer and cron on the host (requirement 068): Source (Skills, Hub, Claude, System, one filter chip each), Name, Schedule, Next, Last and On, with the reconciler's last run once in the header. A click on a schedule cell turns it into a field and Enter saves: daily times (`17:00, 21:30`) or a raw `OnCalendar` expression for a timer, whole hours for a reminder hook, a 5-field cron for a Claude task, which the hub checks, naming the field it refuses (400). Skills and Hub rows go into `schedules.json` without a passkey (`POST /api/schedules` with `{row, value}` or `{unit, value}`); a System timer or a Claude task needs a passkey signature over `schedules.py timer <unit> --on|--off|--reset|--calendar <expr>|--at <HH:MM>...` or `schedules.py cron <file> <id> --cron <expr>|--remove` (`{items, proof}`; 403 without a valid proof, nothing stored). The runner, started with `--schedules <schedules.py> --council <council root>`, verifies each like a queue change and runs `schedules.py` from `/` without a shell, refusing every other argv and every `kvb-orchestrator-*` unit; `schedules.py` writes the drop-in and reloads, or edits the task's cron keeping every other byte of the file, and refreshes the view. Reset removes only the drop-in; the hub never deletes a unit file. The Controls › Schedules tab is one table of every timer and cron on the host (requirement 068): Source (Skills, Hub, Claude, System, one filter chip each), Name, Schedule, Next, Last and On, with the reconciler's last run once in the header. A click on a schedule cell turns it into a field and Enter saves: daily times (`17:00, 21:30`) or a raw `OnCalendar` expression for a timer, whole hours for a reminder hook, a 5-field cron for a Claude task, which the hub checks, naming the field it refuses (400). Skills and Hub rows go into `schedules.json` without a passkey (`POST /api/schedules` with `{row, value}` or `{unit, value}`); a System timer or a Claude task needs a passkey signature over `schedules.py timer <unit> --on|--off|--reset|--calendar <expr>|--at <HH:MM>...` or `schedules.py cron <file> <id> --cron <expr>|--remove` (`{items, proof}`; 403 without a valid proof, nothing stored). The runner, started with `--schedules <schedules.py> --council <council root>`, verifies each like a queue change and runs `schedules.py` from `/` without a shell, refusing every other argv and every `kvb-orchestrator-*` unit; `schedules.py` writes the drop-in and reloads, or edits the task's cron keeping every other byte of the file, and refreshes the view. Reset removes only the drop-in; the hub never deletes a unit file.
For approvals the hub is only a relay: every approval of an ask, a staged commit or an operator command is signed end to end with a WebAuthn passkey held in KeePassXC (through KeePassXC-Browser, relying party `localhost`, origin `http://localhost:<port>`; ES256, EdDSA and RS256, so a hardware key can be pinned beside it). To register, open the hub at `http://localhost:<port>/` (WebAuthn needs the domain; on `127.0.0.1` the page links there), choose "Register passkey" in the settings and run the host command the page shows, `python3 ~/.local/share/kvb-orchestrator/client/approval.py pin --port <port> --approvers ~/.config/kvb-orchestrator/approvers.json --credential '<blob>'`, in a terminal outside every sandbox: it pins the key in `~/.config/kvb-orchestrator/approvers.json` with mode 0600, a file no sandboxed agent can write and the hub mounts read-only; the hub never pins. Each approval, or one bulk selection, is one signature over the hashes of every item, a nonce and an expiry; each auto-approval rule is signed once. In the inbox, an operator command run with "Run" shows the runner's output in a console under its row until "Close". "Deny" on an ask, an operator row or a rule request signs the denial with its channel and optional reason (a hash no approval shares) and, after the 3 s undo, tells the requesting agent by post or by the radio class picked, never mayday; the hub verifies that signature against the pinned keys before it stores or sends anything, the hook passes the reason on only when it verifies the signature too, and a denied operator row ends as `stopped`. Agents ask for an auto-approval rule with the MCP tool `rule_request` (the rules form's limits; a request stays open for the ask lifetime of one hour, at most 20 in all, and 3 per agent name, which only spreads the queue since MCP names no caller); its row shows a dry run over the last 7 days, and only "Accept" with the passkey stores it. The Controls › Rules tab lists the stored rules grouped as Ask, Review and Decision, each row with its on switch, pattern, directory, the agents it applies to, an expiry chip that turns red under 2 days, and how many of the last 50 asks, reviews or decisions of its kind the rule matcher would have granted; "New rule" opens the rules form in a sheet whose live count `POST /api/rules/match` answers for the draft with the same matcher, reading only and granting nothing, and the settings files, the never-granted patterns, the agent groups and the rule sets follow as sections collapsed by default. The hub stores no rule, of any kind, whose passkey assertion it cannot verify. The executors verify it themselves against the pinned keys and fail closed: the runner (`client/runner.py`, the `kvb-orchestrator-runner` user service) runs only signed commands, each signature once, recorded in `~/.local/state/kvb-orchestrator-approvals/runner.json`; the PermissionRequest hook (`client/permission_hook.py --port <port> --timeout <seconds> --approvers ~/.config/kvb-orchestrator/approvers.json --replay ~/.local/state/kvb-orchestrator-approvals/hook.json`) allows only a signed item that matches its own tool, command, cwd and session, else it leaves the decision to Claude Code's own prompt; it runs for every tool, and its command is a Bash call's command line, or for any other call, and for a Bash call that sets more than its command, description, timeout and background flag, the whole tool input as sorted JSON, so a signature never covers a value the hub did not show (over 4000 characters Claude Code asks itself); the inbox, the stream and Match show an ask like Claude Code's dialog, 1 Yes, 2 No and "Tell Claude what to do instead", whose text denies with it as the reason; it also turns each question of an AskUserQuestion call into a decision card that expires with its timeout, answering the call only once a pinned key signed the pick of every question (a multi-select card toggles options and sends them with one signature, and every such card also takes one signed line of "Other" text); the commit skills run `approval.py verify` on the staged tree before committing, else they ask in the terminal. With no key pinned, every executor refuses; review rejections and a decision a rule takes stay unsigned. A signed rule never covers a command holding `;`, `&`, `|`, a backtick, `$`, `<`, `>`, parentheses or a line break: such a command always asks. The hub page is trusted while it asks for a signature or shows the blob to pin: whoever controls the hub container can show one item and have another signed, or hand over a key of its own. Any local process, sandboxed agents included, can also send the unsigned operator actions (the bare decision choice `/api/decisions/<id>/choose`, which sends no answer, the priority order, settings that add no stream origin, review rejections, the bare ask denial `/api/asks/<id>/deny`, console dismissals) with the hub's guard headers, and the container reads the review pages from `pages/` of the councLine truncated For approvals the hub is only a relay: every approval of an ask, a staged commit or an operator command is signed end to end with a WebAuthn passkey held in KeePassXC (through KeePassXC-Browser, relying party `localhost`, origin `http://localhost:<port>`; ES256, EdDSA and RS256, so a hardware key can be pinned beside it). To register, open the hub at `http://localhost:<port>/` (WebAuthn needs the domain; on `127.0.0.1` the page links there), choose "Register passkey" in the settings and run the host command the page shows, `python3 ~/.local/share/kvb-orchestrator/client/approval.py pin --port <port> --approvers ~/.config/kvb-orchestrator/approvers.json --credential '<blob>'`, in a terminal outside every sandbox: it pins the key in `~/.config/kvb-orchestrator/approvers.json` with mode 0600, a file no sandboxed agent can write and the hub mounts read-only; the hub never pins. Each approval, or one bulk selection, is one signature over the hashes of every item, a nonce and an expiry; each auto-approval rule is signed once. In the inbox, an operator command run with "Run" shows the runner's output in a console under its row until "Close". "Deny" on an ask, an operator row or a rule request signs the denial with its channel and optional reason (a hash no approval shares) and, after the 3 s undo, tells the requesting agent by post or by the radio class picked, never mayday; the hub verifies that signature against the pinned keys before it stores or sends anything, the hook passes the reason on only when it verifies the signature too, and a denied operator row ends as `stopped`. Agents ask for an auto-approval rule with the MCP tool `rule_request` (the rules form's limits; a request stays open for the ask lifetime of one hour, at most 20 in all, and 3 per agent name, which only spreads the queue since MCP names no caller); its row shows a dry run over the last 7 days, and only "Accept" with the passkey stores it. The Controls › Rules tab lists the stored rules grouped as Ask, Review and Decision, each row with its on switch, pattern, directory, the agents it applies to, an expiry chip that turns red under 2 days, and how many of the last 50 asks, reviews or decisions of its kind the rule matcher would have granted; "New rule" opens the rules form in a sheet whose live count `POST /api/rules/match` answers for the draft with the same matcher, reading only and granting nothing, and the settings files, the never-granted patterns, the agent groups and the rule sets follow as sections collapsed by default. The hub stores no rule, of any kind, whose passkey assertion it cannot verify. The executors verify it themselves against the pinned keys and fail closed: the runner (`client/runner.py`, the `kvb-orchestrator-runner` user service) runs only signed commands, each signature once, recorded in `~/.local/state/kvb-orchestrator-approvals/runner.json`; the PermissionRequest hook (`client/permission_hook.py --port <port> --timeout <seconds> --approvers ~/.config/kvb-orchestrator/approvers.json --replay ~/.local/state/kvb-orchestrator-approvals/hook.json`) allows only a signed item that matches its own tool, command, cwd and session, else it leaves the decision to Claude Code's own prompt; it runs for every tool, and its command is a Bash call's command line, or for any other call, and for a Bash call that sets more than its command, description, timeout and background flag, the whole tool input as sorted JSON, so a signature never covers a value the hub did not show (over 4000 characters Claude Code asks itself); the inbox, the stream and Match show an ask like Claude Code's dialog, 1 Yes, 2 No and "Tell Claude what to do instead", whose text denies with it as the reason; it also turns each question of an AskUserQuestion call into a decision card that expires with its timeout, answering the call only once a pinned key signed the pick of every question (a multi-select card toggles options and sends them with one signature, and every such card also takes one signed line of "Other" text); the commit skills run `approval.py verify` on the staged tree before committing, else they ask in the terminal. With no key pinned, every executor refuses; review rejections and a decision a rule takes stay unsigned. A signed rule never covers a command holding `;`, `&`, `|`, a backtick, `$`, `<`, `>`, parentheses or a line break: such a command always asks. The hub page is trusted while it asks for a signature or shows the blob to pin: whoever controls the hub container can show one item and have another signed, or hand over a key of its own. Any local process, sandboxed agents included, can also send the unsigned operator actions (the bare decision choice `/api/decisions/<id>/choose`, which sends no answer, the priority order, settings that add no stream origin, review rejections, the bare ask denial `/api/asks/<id>/deny`, console dismissals) with the hub's guard headers, and the container reads the review pages from `pages/` of the councLine truncated
A hub card of a Claude dialog, an ask or an AskUserQuestion decision, lives as long as that dialog (requirement 094): Claude shows its own dialog at once while the hook waits, and whichever side answers first wins. Each closing hook sends one small `POST /api/asks/ran` with the `session_id` of its input and reads nothing back: PostToolUse closes the oldest open ask of its call and the decisions of an AskUserQuestion call, with the answers from its tool response, as "answered in Claude"; Stop and UserPromptSubmit close every still open card of the session's main agent (a denial or an interrupt in Claude), never a subagent's; SessionEnd closes every card of the session as "session ended". The route takes only the hub's local guard header and no foreign origin, validates every field and closes only cards of the session it names; it approves and denies nothing. Since the guard header alone proves no session, the hook keeps one random closer token per session id in a mode 0600 file beside its replay store (`~/.local/state/kvb-orchestrator-approvals/closers/<session>.token`), sends it as `closer` with every ask, hooked decision and closing report, and deletes it after its SessionEnd report; the hub keeps only the token's sha256 digest and closes a card only for a report whose token matches it, so another local process can neither end a session's cards nor write a choice into its decisions. A card an older hook registered without a token still closes by its call key on PostToolUse, without a choice, but never by Stop, UserPromptSubmit or SessionEnd. A card whose hook stopped waiting reads "open in Claude: answer it there" with the `IN CLAUDE` stamp, never stale or expired, counts as open in Tasks › Operator, and stays until a closing hook ends it or 24 hours pass; only a card of a registration without the closing hooks (no `--bound`) still expires as before. An open Match deck and the inbox poll `GET /api/match/closed` every 2 s while the tab is shown, a counter of closed cards that builds neither the state nor a card, and fetch at once when it moves, so a card answered in Claude leaves within about 3 s. After `make orchestrator-install`, run `make orchestrator-hook` and restart every Claude Code session; a changed wait applies after the next `make orchestrator-hook`.
Restart your agent afterwards so it loads the new skills. Restart your agent afterwards so it loads the new skills.
## Maintenance 🔧 ## Maintenance 🔧
+31 -2
View File
@@ -30,6 +30,25 @@ while its dialog in Claude is still open.
say). If the dialog only appears after the hook returns, the default wait say). If the dialog only appears after the hook returns, the default wait
stays at 110 s and decisions 3 and 4 still apply. stays at 110 s and decisions 3 and 4 still apply.
Rejected: a longer fixed wait without the binding. Rejected: a longer fixed wait without the binding.
**Result 2026-11-27** (operator, AskUserQuestion live test, second run):
the Claude dialog appears at once while the hook waits, so both run side
by side and the longer default wait of decision 2 applies.
6. **Closes bound to a session token** (operator, 2026-11-28, after a
skeptic found that any local process sending the guard header could end
another session's cards and forge an AskUserQuestion choice): the hook
keeps one `secrets.token_urlsafe(32)` closer token per session id in a
mode 0600 file beside its replay store
(`~/.local/state/kvb-orchestrator-approvals/closers/<session>.token`,
linked into place on first use, session id checked against
`signing.SESSION`), sends it as `closer` with every ask, every hooked
decision and every closing report, and deletes it after its
`SessionEnd` report. The hub keeps only its sha256 digest and closes a
card only when the digest matches (`hmac.compare_digest`); `Stop`,
`UserPromptSubmit` and `SessionEnd` never close a card without one, and a
PostToolUse records an answer as choice only for a matching one. A card
an older hook registered without a closer still closes by its call key
on PostToolUse, with no choice.
Rejected: signing each report with a passkey (a click per tool call).
## Approach ## Approach
@@ -61,18 +80,24 @@ flowchart TD
- [ ] An ask allowed in Claude leaves the hub's open cards within 5 s of - [ ] An ask allowed in Claude leaves the hub's open cards within 5 s of
its PostToolUse. its PostToolUse.
- [ ] An AskUserQuestion answered in Claude closes its hub decision with - [ ] An AskUserQuestion answered in Claude closes its hub decision with
the answers shown. the answers shown, and the card leaves an open Match deck within 5 s
of the answer, without waiting for the deck's refresh interval
(operator 2026-11-27: answered cards stayed far too long).
- [ ] A denial in Claude closes the session's open cards at its next `Stop` - [ ] A denial in Claude closes the session's open cards at its next `Stop`
or `UserPromptSubmit`. or `UserPromptSubmit`.
- [ ] `SessionEnd` closes every open card of the session. - [ ] `SessionEnd` closes every open card of the session.
- [ ] After a hook timeout the card reads "open in Claude" and carries no - [ ] After a hook timeout the card reads "open in Claude" and carries no
stale or expired stamp. stale or expired stamp.
- [ ] A closing report without the session's closer token, or with another
one, closes no card and records no choice; the hub stores only the
token's digest; a card of an older hook closes by its call key on
PostToolUse only (decision 6).
### Wait ### Wait
- [ ] Settings holds the wait (1 to 60 min); the hook's `--timeout` and its - [ ] Settings holds the wait (1 to 60 min); the hook's `--timeout` and its
settings.json timeout follow it after `make orchestrator-hook`. settings.json timeout follow it after `make orchestrator-hook`.
- [ ] The live test result is recorded in this document. - [x] The live test result is recorded in this document (decision 5).
### Tests ### Tests
@@ -82,6 +107,10 @@ flowchart TD
- Integration: - Integration:
- [ ] Each closing hook event through the HTTP handler closes exactly the - [ ] Each closing hook event through the HTTP handler closes exactly the
cards of its session and call key. cards of its session and call key.
- [ ] `tests/test_hub_dialog_bound_cards.py` `TestCloserBinding` and
`TestCloserToken`: no or a wrong closer closes nothing, the right
one only its own session's cards, no forged choice, older-hook
cards, a 0600 token file and refused session ids.
- E2E: - E2E:
- [ ] `tests/e2e/test_dialog_bound_cards_e2e.py`: a card closes on a - [ ] `tests/e2e/test_dialog_bound_cards_e2e.py`: a card closes on a
simulated PostToolUse, Stop and SessionEnd; the "open in Claude" simulated PostToolUse, Stop and SessionEnd; the "open in Claude"
@@ -0,0 +1,68 @@
# 095 - Compact Agent Message Box
## User Story
As the operator, I want the message box to one agent to be one compact
field with everything inside it, so that I write, attach and send without a
second file picker or explanation text in the way.
## Decisions (operator-confirmed 2026-11-27; do not re-litigate)
1. **One merged field** (operator): the message dialog to one agent
(`openAgent` in `orchestrator/templates/page-agent.js`) looks like the
radio composer of 066: text area on top, one footer row inside the same
frame.
2. **No second file picker** (operator): the native "Choose File" input
goes; the paperclip of 082 attaches files.
3. **Controls in the footer** (operator): Post/Call as a small segmented
switch on the left, paperclip, mic and the Send button on the right of
the field's footer.
4. **No explanation line** (operator): "Post arrives at the end of the
turn, ..." goes; the passkey and `operator_message` hint moves into the
Send button's tooltip, the Post and Call meaning into their tooltips.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["✉️ A · Message box"]
A1["🧩 Footer with Post/Call, paperclip, mic, Send"] --> A2["🗑️ File input and explanation line gone"]
A2 --> A3{"🧪 E2E green?"}
A3 -- "🔴 no: fix" --> A1
A3 -- "🟢 yes" --> AF{"💬 Operator feedback on screenshots?"}
AF -- "✏️ changes" --> A1
end
AF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Layout
- [ ] The agent message dialog holds no `input[type=file]` and no
explanation paragraph.
- [ ] Post/Call, paperclip, mic and Send lie inside the field's frame in
one footer row at 1366 and 390 px.
- [ ] Send's tooltip names the passkey signature and `operator_message`;
Post and Call each explain their delivery in their tooltip.
### Function
- [ ] A message with a pasted screenshot arrives with its `📎` path line;
Post and Call still choose the class.
### Tests
- Unit:
- n/a: layout only.
- Integration:
- n/a: no server change.
- E2E:
- [ ] `tests/e2e/test_agent_message_box_e2e.py`: no file input, footer
controls inside the frame, send as post and as call, screenshots
at 1366 and 390.
@@ -0,0 +1,70 @@
# 096 - Silent Reject of Expired Match Cards
## User Story
As the operator, I want Reject on an expired Match card to remove it at
once without a feedback dialog or a message, so that I clear expired cards
with one swipe each.
## Decisions (operator-confirmed 2026-11-27; do not re-litigate)
1. **No dialog, no message** (operator): Reject, A, ← or a left swipe on an
expired card (080) opens no feedback box and sends no radio message to
its agent; the card leaves the deck at once with the 086 fade. This
replaces 080's reject-by-radio for expired cards.
2. **Gone everywhere at release** (operator): the dropped card rides along
with the next release signature as a dismissal through the hub-wide
dismiss of 093, so it disappears in every browser; the usual undo window
applies. Rejected: dropping it only in this browser.
3. **Release card row**: until the release, each dropped expired card shows
on the release card as "Drop (expired)", without feedback text; Back to
the stack (092) brings it back.
4. **S undoes**: S right after the swipe puts the card back, as for any
other step.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["🗑️ A · Silent reject"]
A1["👋 Reject on expired drops at once"] --> A2["🔑 Dismissal rides the release signature"]
A2 --> A3{"🧪 Unit, integration and E2E green?"}
A3 -- "🔴 no: fix" --> A1
A3 -- "🟢 yes" --> AF{"💬 Operator feedback?"}
AF -- "✏️ changes" --> A1
end
AF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Reject
- [ ] Reject, A, ← and a left swipe on an expired card open no sheet and
the card leaves the deck within 300 ms.
- [ ] The release card lists it as "Drop (expired)" without feedback text.
- [ ] S right after the swipe brings the card back to the front.
### Release
- [ ] The release signs the dismissal together with the other decisions;
afterwards the card is gone in a second browser.
- [ ] No radio message reaches the card's agent.
- [ ] Undo within the window brings the card back.
### Tests
- Unit:
- [ ] The release plan puts a dropped expired card into the dismissals,
not into the radio rejects.
- Integration:
- [ ] A release with a dismissal through the HTTP handler dismisses the
card and sends no radio call.
- E2E:
- [ ] `tests/e2e/test_match_expired_e2e.py`: swipe left on an expired
card, no sheet, release, gone in a second page, no radio call.
@@ -0,0 +1,67 @@
# 097 - Match Show Filter in the Right-Click Menu
## User Story
As the operator, I want to choose in Match's right-click menu which card
kinds and states the deck shows, so that I work through one kind at a time.
## Decisions (operator-confirmed 2026-11-27; do not re-litigate)
1. **Kinds and states** (operator): a right click in Match (outside code
rows, where 078 line comments keep their own menu) opens the context
menu with a "Show" section: checkboxes Commit, Command, Ask, Decision,
Rule, then Expired, Stale and Greyed (running, queued, blocked), each with
its current count, and "Show all". Rejected: kinds only; saved profiles;
chips in the header.
2. **Per browser**: the choice is remembered in this browser and survives a
reload.
3. **Hidden, not gone**: hidden cards stay in the hub and on the release
card if already decided; the deck header reads "N hidden" next to the
card count, and a click on it reopens the menu.
4. **Never an empty trap**: when every card is hidden, the empty state says
"All N cards hidden by the Show filter" with a "Show all" button.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["👁️ A · Show filter"]
A1["☑️ Show section in the context menu"] --> A2["🔢 Counts, N hidden, Show all"]
A2 --> A3{"🧪 Unit and E2E green?"}
A3 -- "🔴 no: fix" --> A1
A3 -- "🟢 yes" --> AF{"💬 Operator feedback on screenshots?"}
AF -- "✏️ changes" --> A1
end
AF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Menu
- [ ] A right click on the Match deck outside code rows shows the Show
section with eight checkboxes and their counts.
- [ ] A right click on a code row still opens its line comment (078).
### Filter
- [ ] Unticking Ask removes every Ask card from the deck and the header
reads "N hidden"; a reload keeps it.
- [ ] With all cards hidden the empty state names the count and "Show all"
restores every card.
- [ ] A decided card that gets hidden stays on the release card.
### Tests
- Unit:
- [ ] The filter over kinds and states, the counts and "N hidden" (node).
- Integration:
- n/a: no server change.
- E2E:
- [ ] `tests/e2e/test_match_show_filter_e2e.py`: menu, untick, header
count, reload, all hidden, Show all, code row comment still works.
@@ -0,0 +1,73 @@
# 098 - Docked Speech Bubbles with Avatar and Close
## User Story
As the operator, I want a speech bubble that sits at the bottom screen edge
to show who speaks by their avatar and to close with one click, so that I
know the speaker without an avatar on screen and can skip a message I do not
need.
## Decisions (operator-confirmed 2026-11-28; do not re-litigate)
1. **Avatar inside the docked bubble**: a bubble that has no visible avatar
to point at sits in the bottom bar (`.bubble-bar`); there it shows the
speaker's avatar (the same `face()` as everywhere in the hub) on the left,
next to the name. A bubble anchored to an avatar keeps its tail and shows
neither the avatar nor the close icon. Rejected: avatar only without close;
a chat dock with history; a mini avatar in the top bar as anchor.
2. **Close icon on every docked bubble**: a visible × button (not only on
hover, so touch works), keyboard reachable, with a tooltip naming what it
does. Rejected: × on hover only; one × for the whole bar.
3. **× skips the message**: on the bubble being read aloud the voice stops
that message and goes on with the next; a silent bubble leaves with the
usual fade (086); a queued one leaves the queue. Rejected: hide the bubble
while the voice reads on; stop all speech.
4. **Own requirement**: 052 (bubbles beside modes) stays as it is.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["💬 A · Docked bubble"]
A1["🧑 Avatar in the docked bubble"] --> A2["✖️ Close button skips the message"]
A2 --> A3{"🧪 Unit and E2E green?"}
A3 -- "🔴 no: fix" --> A1
A3 -- "🟢 yes" --> AF{"💬 Operator feedback on screenshots?"}
AF -- "✏️ changes" --> A1
end
AF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Avatar
- [ ] A bubble in `.bubble-bar` shows the speaker's `.avatar[data-face]`
left of the name.
- [ ] A bubble anchored to an avatar shows no avatar and no close button.
- [ ] The avatar inside a bubble is never used as an anchor for a bubble.
### Close
- [ ] Every docked bubble has a `button` with an accessible name and a
tooltip; it takes clicks although the bubble layer ignores the pointer.
- [ ] A click on × of the message being read aloud stops its audio, and the
next pending message starts.
- [ ] A click on × of a silent bubble removes it through `vanish()`, and it
does not come back on the next poll.
- [ ] A click on × of a queued message removes it from the queue.
### Tests
- Unit:
- [ ] The skip of the current, a queued and a silent item (node).
- Integration:
- n/a: no server change.
- E2E:
- [ ] `tests/e2e/test_bubble_dock_e2e.py`: a docked bubble shows avatar
and ×, an anchored one neither, × removes the silent bubble.
@@ -0,0 +1,62 @@
# 099 - Match Card Headline Capped at 120 Characters
## User Story
As the operator, I want a Match card's headline cut to a fixed length while
its code box keeps the whole command, so that a long command does not fill
the card before I see its place, kind and buttons.
## Decisions (operator-confirmed 2026-11-28; do not re-litigate)
1. **Cut on the hub**: every Match card's `title` is at most 120 characters,
cut at the last word boundary before the limit and ended with "…"; the
headline, the peek row, the release card row, the reject sheet and every
toast use it. Rejected: a heuristic summary (program, subcommand, first
argument); a CSS line-clamp that leaves toasts and the release card long.
2. **Whole text stays**: the code box keeps the full `command`, and the
headline's tooltip names the full title when it was cut.
3. **Binding unchanged**: the card hash is computed from the uncut title and
command, so cutting changes no signature and no stale check.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["✂️ A · Headline cap"]
A1["✂️ headline() cuts every card title"] --> A2["🏷️ Tooltip with the full title"]
A2 --> A3{"🧪 Unit tests green?"}
A3 -- "🔴 no: fix" --> A1
A3 -- "🟢 yes" --> AF{"💬 Operator feedback on screenshots?"}
AF -- "✏️ changes" --> A1
end
AF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Cap
- [ ] A command card whose command has 900 characters carries a `title` of
at most 120 characters ending in "…" and its full `command`.
- [ ] A title of 120 characters or fewer stays unchanged.
- [ ] A word longer than the limit is cut inside the word.
- [ ] The card hash of a long command is the same as before the cap.
### Page
- [ ] The headline of a cut card has a tooltip with the full title.
### Tests
- Unit:
- [ ] `headline()` on short, long, single-word and exact-limit titles.
- Integration:
- [ ] A command card from the hub's Match view carries the cut title and
the full command.
- E2E:
- n/a: the existing Match E2E specs render the cut title; no new spec.
+5
View File
@@ -98,3 +98,8 @@ skill defines the format.
- [092 - Release Card Repairs](092-release-card-repairs.md) - [092 - Release Card Repairs](092-release-card-repairs.md)
- [093 - Stale Operator Requests in Stream and Tasks](093-stale-requests-triage.md) - [093 - Stale Operator Requests in Stream and Tasks](093-stale-requests-triage.md)
- [094 - Hub Cards Bound to Their Claude Dialog](094-dialog-bound-cards.md) - [094 - Hub Cards Bound to Their Claude Dialog](094-dialog-bound-cards.md)
- [095 - Compact Agent Message Box](095-compact-agent-message.md)
- [096 - Silent Reject of Expired Match Cards](096-silent-expired-reject.md)
- [097 - Match Show Filter in the Right-Click Menu](097-match-show-filter.md)
- [098 - Docked Speech Bubbles with Avatar and Close](098-docked-bubble-face-and-close.md)
- [099 - Match Card Headline Capped at 120 Characters](099-match-headline-cap.md)