feat(hub): requirements 023 to 031 and line comments on grant-time code

023 box heads: one head band per box under its top border; in widget mode
its controls join the widget title band.
024 Match card content: merge cards show their diff (the runner previews a
review's tree against its worktree HEAD), every card carries legal and
architecture scores, the null under command cards is gone.
025 Radio speak card: no hint text, a rounder flowing card, a MAYDAY toggle
beside push to talk.
026 widget zoom: zoom a widget's content by keyboard and the context menu.
027 slash skill suggestions: every field that messages agents suggests
skills after a slash, from a skills index the tree timer writes.
028 Resources accounts: an Accounts panel (provider, renewal, resets, usage
and remaining, host-local, emails never in git) and panel checkboxes.
029 Controls layout: Rules and Groups pages laid out.
030 Yes/No answers as buttons, and nothing hides: rows the runner cannot
run stay greyed with the reason.
031 mic in fields.
Line comments (operator 2026-11-24): wherever code waits for a grant
(Waits on Operator, the stream, the review overlay) selected lines or a
right-clicked row take a comment that marks its lines and collects on the
card; Deny opens with them as the reason and Call preselected, Grant sends
them after the signed grant as one post. Requirement 003 decision 4 and
its contract follow.

Tests are written for every requirement and run once on this head.

🎯 Fix: 80 %
💥 Break: 20 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: ~95 %
🏆 Score: 61
🚦 Gate: ⛔ fix 80 % < 90, break 20 % > 5; security ~95 % < 100: ask the operator before the commit

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-25 01:22:03 +00:00
1 parent 7d1926e3de
commit 2722cda1b5
120 files changed
+5372 -486

No files matched your search

+32 -14
View File
@@ -29,9 +29,17 @@ changed and what it costs, and a gate means something again.
2026-11-11). A commit that reads the working tree (`-a`, `--all`, `-i`,
`-o`, `-p`, a pathspec, a chain or a wrapper) is not approvable here: the
hook sends no Ask and Claude Code asks instead.
4. **Inline feedback**: selected lines of a diff or a command go back to the
agent as one radio `post` with path, line range, quote and text, through
the right-click menu, the key `f` or a button at the selection.
4. **Inline feedback** (changed by the operator 2026-11-24): selected lines of
a diff or a command, or the code row a right-click hits, take a comment
through the right-click menu, the key `f` or a button at the selection,
wherever code waits for a grant (Waits on Operator, the stream, the review
overlay). The comments collect on their card, mark their lines and go out
with its decision: Deny opens with them as the reason and Call
preselected, so the requesting agent reads them at once; after Grant they
follow as one post `Granted: <title>. Notes:` with one
`<path>:<lines>: <comment>` per comment. Rejected: one immediate post per
selection, which scattered the feedback over many messages and reached
the agent before it knew whether its change was granted.
5. **Kanban**: columns Waiting, Running and Done; Blocked and Stopped become
labels; `operator/*` rows stay off the board; swimlanes P1, P2, P3, P4+ and
Unpinned (by WSJF), collapsible; Done older than 24 h hidden by default.
@@ -210,10 +218,17 @@ flowchart TD
`git ls-files -s -z`, read without writing the index or running a hook;
a different tree at approval
turns it into a deny "staged tree changed since the preview".
- [ ] Selecting lines in a diff or a command and choosing Feedback (right-click
menu, key `f`, or the button at the selection) posts one radio `post` to
the requesting agent with path, line range, quote and text; the feedback
shows under the card.
- [ ] Selecting lines in a diff or a command, or right-clicking a code row,
and choosing Comment (right-click menu, key `f`, or the button at the
selection) saves a comment on the card without sending it: the lines
carry a mark, the comment shows under them and in the card's list,
which can remove it.
- [ ] Deny on a card with comments opens Deny via … with Call preselected
and the comments as the reason; the signed denial carries them to the
requester and clears them.
- [ ] Grant on a card with comments sends them after the signed grant as one
post `Granted: <title>. Notes:` to the requester and clears them; a
failed signature keeps them.
### W2 Kanban
@@ -374,9 +389,11 @@ The work packages meet only through these interfaces:
cap and for withheld content), note empty or "content withheld". An Ask
for a `git commit` carries the same `diff` from `permission_hook.py`; a
body past the hub's limit goes without it.
- **Feedback**: a feedback is a message to the requesting agent through the
existing signed message flow, text `Feedback on <ref> <path>:<from>-<to>:
"<quote>" <text>`.
- **Feedback**: line comments `<path>:<from>[-<to>]: <comment>`, joined by
`;` and a line break, travel as the reason of a signed denial (channel
Call) or, after a signed grant, as the text `Granted: <title>. Notes:` and
the comments of one post through the existing signed message flow. Posts
`Feedback on <ref> …` from before 2026-11-24 still show under their card.
- **Resources**: the host unit writes `samples.jsonl` (`{t, disks: [{mount,
used, total}], cpu, ram, swap, load, gpus: [{name, util, vram_used,
vram_total} | {name, asleep: true}], queue: {waiting, active}}`),
@@ -445,8 +462,8 @@ The work packages meet only through these interfaces:
parents derive; receipt tree sha with unstaged and untracked files;
hook pass and refuse; queue wait on `after`.
- [x] Resources sample parsing on fixtures (df, meminfo, nvidia-smi, asleep
GPU); token offsets; retention fold; diff cap and masking; feedback
payload.
GPU); token offsets; retention fold; diff cap and masking; line
comment text.
- [x] W4 part of the item above: sample parsing on fixtures (df, meminfo,
CPU ticks between runs, nvidia-smi, asleep and unread GPU); token
offsets, a message counted once across fork transcripts; retention
@@ -467,8 +484,9 @@ The work packages meet only through these interfaces:
- [x] The sampler writes rows in a scratch HOME.
- E2E, headless Chromium and Firefox at 1920, 1366 and 390 px:
- [ ] Tasks badge, no Inbox entry, operator cards with bulk actions, review
diff expanded, feedback by right-click and `f` reaching the radio
store.
diff expanded, line comments by right-click and `f` reaching the
requester in the Deny call and the Grant post, kept when signing
fails.
- [ ] Kanban lanes, no Blocked or Stopped column, drags to column, lane and
dependency, Apply with a test passkey, arrows and the dashed queue
line, card popup; forecast two lines and ∞.
+86
View File
@@ -0,0 +1,86 @@
# 023 - Box Heads
## User Story
As the operator, I want every view's controls in one head band right under
its box's top border, the way Home widget title bars sit today, so that
controls never float as a separate card and a widget shows one head.
## Decisions (operator-confirmed 2026-11-23; do not re-litigate)
1. **Head band**: every view whose controls sit in a `.card.controls` box
today (Match, Tasks, Resources, Agents, Artifacts, Kanban, Controls)
gets a `.box-head` band instead: first child of the view's box, flush
with its top and side borders, one line below it, height, padding and
button size of `.home-head`. Rejected: title and controls on one line
without a band (operator: a separate section like the widgets); a sticky
bar inside the box (two bars in widget mode).
2. **Widget mode**: on a Home tile the band's controls move into the tile's
`.home-head`, as Match does today, so a tile has one head; a control
that does not fit stays reachable through the tile's context menu.
3. **Card top edge**: the Match card's gradient bar and head pattern reach
the card's top edge and both rounded corners, with no plain strip.
4. **One helper**: one function builds the band for every view (SPOT).
5. **Timing**: 023 to 031 are implemented serially in number order; tests
are written per requirement and run once after 031 (operator
2026-11-23).
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["🧱 A · Band"]
A1["🧩 Band helper"] --> A2["🪟 Every view uses it"]
A2 --> A3["✍️ Unit and E2E tests written"]
end
A3 --> B1
subgraph B["🏠 B · Widgets and card edge"]
B1["🧩 Tile heads take the controls"] --> B2["🎨 Card top edge flush"]
B2 --> B3["✍️ Tests written"]
end
B3 --> C1
subgraph C["🧪 C · After 030"]
C1["🧪 All tests of 023 to 030 once"] --> C2{"🟢 Green?"}
C2 -- "🔴 no: fix" --> C1
C2 -- "🟢 yes" --> CF{"💬 Operator feedback on screenshots?"}
CF -- "✏️ changes" --> A1
end
CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Band
- [ ] A DOM scan of Match, Tasks, Resources, Agents, Artifacts, Kanban and
Controls finds one `.box-head` per view as the first child of its box
and no `.card.controls`.
- [ ] Per view the band's top, left and right edges equal the box's inner
edges (0 px apart) at 1920, 1366 and 390.
- [ ] At 1920 a one-row band's height and its button size equal
`.home-head`'s within 1 px; at narrower widths the band wraps into
rows of that height.
### Widget mode
- [ ] Each of these views pinned to Home has no `.box-head` inside
`.home-body`; its controls sit in `.home-head` or its context menu.
### Card edge
- [ ] A computed-style probe of the front Match card finds, for all five
patterns, a 0 px top border, the 6 px bar as the card's own first
background layer, the head flush with the card top and the hatch
mask starting at 6 px.
### Tests
- [ ] Unit: the band helper renders title, count and controls in order.
- [ ] Integration: n/a: client layout only, no server change.
- [ ] E2E: Chromium and Firefox at 1920, 1366 and 390: the scans and the
probe; screenshots per view and tile.
@@ -0,0 +1,92 @@
# 024 - Match Card Content
## User Story
As the operator, I want every Match card to show what it changes and no
stray text, so that I can decide a merge from its card.
## Decisions (operator-confirmed 2026-11-23; do not re-litigate)
1. **Merge diff**: a commit card whose stage shipped no diff gets the diff
of its staged tree against its worktree's HEAD (for a merge: the change
onto the first parent), computed by the hub the way the command card's
merge preview is, bound to the card's tree; "No diff shipped with this
stage." stays only when the tree cannot be read, with the reason.
Rejected: making agents ship merge diffs (old cards stay empty).
2. **No stray text**: the "null" under the Match buttons goes; no text of
the Match view or its Home tile reads "null" or "undefined"; a reason
that is empty or `-` shows no reason line.
3. **Legal and architecture chips**: the score labels gain ⚖️ Legal and
🏛️ Architecture (022 decision 8); a card shows them when its score text
carries them, in the order 🎯 💥 💸 ⏱️ 🛡️ ⚖️ 🏛️ 🏆. The values come from
022 with Quality 004 to 006. Rejected: the hub computing them (operator:
022 owns them).
4. **One count**: the Tasks tab badge and the page title count exactly
the open cards Match shows, from the same server list, and follow every
state poll; today the badge counts unsettled inbox items (operator rows
included) and showed 3 while Match said "0 cards wait" (operator
2026-11-23).
5. **Timing**: 023 decision 5.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes, after 023" --> A1
subgraph A["🔀 A · Merge diff"]
A1["🧩 Diff of the staged tree for diffless commit cards"] --> A2["✍️ Unit and integration tests written"]
end
A2 --> B1
subgraph B["🧹 B · Text and chips"]
B1["🧩 Stray null gone"] --> B2["⚖️ 🏛️ chips in the label file"]
B2 --> B3["✍️ Tests written"]
end
B3 --> C1
subgraph C["🧪 C · After 030"]
C1["🧪 All tests of 023 to 030 once"] --> C2{"🟢 Green?"}
C2 -- "🔴 no: fix" --> C1
C2 -- "🟢 yes" --> CF{"💬 Operator feedback on screenshots?"}
CF -- "✏️ changes" --> A1
end
CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Merge diff
- [ ] A review of a fixture merge commit with a tree and no diff yields a
card whose files hold the merge's changed files with their hunks.
- [ ] The card turns stale when HEAD moves after it was added.
- [ ] A review whose tree is missing shows "No diff shipped with this
stage." plus the read error.
### Stray text
- [ ] A DOM scan of the Match view and its Home tile over fixture cards of
every kind finds no text node equal to "null" or "undefined".
- [ ] A command card with reason `-` or empty has no `.match-reason`.
### Chips
- [ ] A score text with ⚖️ and 🏛️ values yields eight chips in decision 3's
order; one without them yields no empty ⚖️ or 🏛️ chip.
### Count
- [ ] With fixture state holding three operator rows that are no Match card
and one ask, the badge reads 1 and Match "1 card waits".
- [ ] Answering that ask drops the badge to hidden and the title count away
within one state poll, without a reload.
### Tests
- [ ] Unit: merge diff on a fixture repo (merge, plain commit, missing
tree), chip order, the badge equals the open card count.
- [ ] Integration: `/api/match` serves the merge card with its files and
marks it stale after a HEAD move.
- [ ] E2E: a merge card shows its diff; the text scan; screenshots.
+68
View File
@@ -0,0 +1,68 @@
# 025 - Radio Speak Card
## User Story
As the operator, I want a calm, rounded Speak card with MAYDAY next to PTT,
so that I write without fine print and raise or lift a mayday where I send.
## Decisions (operator-confirmed 2026-11-23; do not re-litigate)
1. **No hint line**: "Post arrives at the end of the turn. Your passkey
signs every message." goes; each channel's meaning moves to its option's
title, the signature note to PTT's tooltip.
2. **MAYDAY toggle**: one button right of the PTT split button. Without an
active mayday it reads MAYDAY, asks in an in-page confirm and sends the
typed text as mayday to all; with one active it is pressed, reads
"Cancel mayday" and lifts it (`clear-mayday`). Mayday leaves the channel
select; the separate cancel button goes. Rejected: Mayday in the select
(two ways to one alarm).
3. **Flowing shape**: one surface without inner boxes: Channel and To as one
joined pill row, the textarea below, footer Record, mic, MAYDAY and PTT
in one row; card radius 14 px, fields 10 px; usable at 390.
4. **Timing**: 023 decision 5.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes, after 024" --> A1
subgraph A["📻 A · Speak card"]
A1["🧹 Hint line gone, titles on the options"] --> A2["🆘 MAYDAY toggle beside PTT"]
A2 --> A3["🎨 One flowing surface"]
A3 --> A4["✍️ Unit and E2E tests written"]
end
A4 --> C1
subgraph C["🧪 C · After 030"]
C1["🧪 All tests of 023 to 030 once"] --> C2{"🟢 Green?"}
C2 -- "🔴 no: fix" --> C1
C2 -- "🟢 yes" --> CF{"💬 Operator feedback on screenshots?"}
CF -- "✏️ changes" --> A1
end
CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
- [ ] The Speak card holds neither hint sentence.
- [ ] The channel select has no mayday option; every option has a title.
- [ ] MAYDAY is the next sibling of the PTT split button.
- [ ] MAYDAY opens the in-page confirm; Confirm sends one mayday row with
the typed text, Cancel sends nothing.
- [ ] With an active mayday the button has `aria-pressed="true"` and reads
"Cancel mayday"; confirming clears it and it reads MAYDAY again.
- [ ] `grep -n 'window.confirm' orchestrator/templates/page-composer.js`
finds nothing.
- [ ] The card has no descendant `.card`; its radius is 14 px, its fields'
10 px.
- [ ] At 390 the footer fits the card width without horizontal scroll.
### Tests
- [ ] Unit: toggle state from `state.silence`; the select without mayday.
- [ ] Integration: n/a: the server's mayday and clear paths are unchanged.
- [ ] E2E: raise and cancel a mayday, the layout probes at 1920, 1366 and
390; screenshots.
+69
View File
@@ -0,0 +1,69 @@
# 026 - Widget Zoom
## User Story
As the operator, I want to zoom a widget's content in and out, so that a
small tile shows more and a large one stays readable.
## Decisions (operator-confirmed 2026-11-23; do not re-litigate)
1. **Per tile**: each Home pin keeps a zoom of 50 to 200 % in 10 % steps,
default 100 %, in the hub view store (like 017's legend state); it scales
the tile body, never the head. Rejected: browser zoom (whole page); tile
size (the resize handle exists).
2. **Keys**: with a tile focused outside a text field, `+` zooms in, `-`
out, `0` resets; Ctrl+wheel over the body zooms; `?` lists them.
Rejected: Ctrl+plus (browser zoom).
3. **Right-click**: the tile's context menu gets Zoom in, Zoom out and
Reset zoom with the current percent.
4. **Redraw**: charts redraw at the zoomed size; above 100 % the body
scrolls.
5. **Timing**: 023 decision 5.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes, after 025" --> A1
subgraph A["🗄️ A · State"]
A1["🧮 View store key for the tile zoom"] --> A2["✍️ Unit and integration tests written"]
end
A2 --> B1
subgraph B["🔍 B · Zoom"]
B1["⌨️ Keys and Ctrl+wheel"] --> B2["🖱️ Context menu entries"]
B2 --> B3["📈 Charts redraw at the zoomed size"]
B3 --> B4["✍️ E2E tests written"]
end
B4 --> C1
subgraph C["🧪 C · After 030"]
C1["🧪 All tests of 023 to 030 once"] --> C2{"🟢 Green?"}
C2 -- "🔴 no: fix" --> C1
C2 -- "🟢 yes" --> CF{"💬 Operator feedback on screenshots?"}
CF -- "✏️ changes" --> A1
end
CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
- [ ] Three `+` on a focused tile set its body zoom to 130 %; the head keeps
its size.
- [ ] `0` resets to 100 %; `-` stops at 50 %, `+` at 200 %.
- [ ] Ctrl+wheel up zooms in one step per notch; the plain wheel scrolls.
- [ ] The context menu lists Zoom in, Zoom out and "Reset zoom (130 %)",
each acting as its key.
- [ ] The zoom survives a reload and shows in a second browser; the view
store refuses values outside 50 to 200 or off the 10 % grid with 400.
- [ ] A zoomed chart's SVG width equals the body width divided by the zoom.
- [ ] The `?` help lists the zoom keys.
### Tests
- [ ] Unit: view store validation of the zoom key; key handling.
- [ ] Integration: the zoom persists across a hub restart.
- [ ] E2E: keys, wheel, menu and persistence at 1920, 1366 and 390;
screenshots.
@@ -0,0 +1,83 @@
# 027 - Slash Skill Suggestions
## User Story
As the operator, I want skill suggestions when I type "/" in any message to
agents, so that I call a skill by its exact name without looking it up.
## Decisions (operator-confirmed 2026-11-23; do not re-litigate)
1. **Source**: a host timer writes a skills index (name, description,
source) next to `branch-tree.json`, from `~/.claude/skills`,
`~/.agents/skills` and every repository of the pkgmgr tree
(`.claude/skills`, `.agents/skills`); the hub serves it at `/api/skills`
with name, description and source only. In a field tied to an agent or
card, the skills of its repository rank first. Rejected: mounting every
repository into the hub.
2. **Fields**: every field whose text reaches an agent: radio composer,
agent message, Match feedback and line comments, choice "Other" answers,
reject feedback, rule request replies, diff feedback; one shared helper
attaches to each.
3. **Trigger**: "/" at the field's start or after whitespace opens a list
filtered by the typed prefix (name matches first); ↑/↓ move, Enter or Tab
inserts `/<name>` and a space, Esc closes; "/" inside a word or path
opens nothing;
the global "/" search key keeps working outside text fields.
4. **No send**: picking only inserts text.
5. **Timing**: 023 decision 5.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes, after 026" --> A1
subgraph A["📚 A · Index"]
A1["🗂️ Host timer writes the skills index"] --> A2["🌐 /api/skills"]
A2 --> A3["✍️ Unit and integration tests written"]
end
A3 --> B1
subgraph B["⌨️ B · Suggestions"]
B1["🧩 Shared slash helper"] --> B2["🔗 Attached to every agent field"]
B2 --> B3["✍️ E2E tests written"]
end
B3 --> C1
subgraph C["🧪 C · After 030"]
C1["🧪 All tests of 023 to 030 once"] --> C2{"🟢 Green?"}
C2 -- "🔴 no: fix" --> C1
C2 -- "🟢 yes" --> CF{"💬 Operator feedback on screenshots?"}
CF -- "✏️ changes" --> A1
end
CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Index
- [ ] The index lists fixture skills of all three sources with their
source; a name in two sources shows once per source.
- [ ] `/api/skills` serves name, description and source only, sorted by
name; no path and no body.
- [ ] A new skill folder shows in `/api/skills` after the next timer run,
without a hub restart.
### Suggestions
- [ ] In each field of decision 2, "/kvb-org-r" lists kvb-org-radio first;
Enter inserts "/kvb-org-radio " at the caret.
- [ ] In a field tied to a core card, a core project skill ranks above a
global one with the same prefix.
- [ ] "a/b" opens no list; Esc closes the list and keeps the text.
- [ ] A test enumerates decision 2's fields and finds the helper on each.
### Tests
- [ ] Unit: frontmatter parser (missing description, no `SKILL.md`), filter
and rank order.
- [ ] Integration: the timer's index over fixture dirs, `/api/skills`,
refresh.
- [ ] E2E: every field of decision 2; screenshots.
@@ -0,0 +1,90 @@
# 028 - Resources Accounts
## User Story
As the operator, I want Resources to show my provider accounts with renewal,
weekly reset and usage, and to pick its panels, so that I see which account
to work on and when the next one resets.
## Decisions (operator-confirmed 2026-11-23; do not re-litigate)
1. **Host only**: accounts are entered in the hub (add, edit, remove) and
stored as `accounts.json` with mode 0600 in the hub's state dir; never in
git, the view store, the radio or a commit; fixtures use example.org.
2. **Fields**: provider, email, renewal (weekday, time), weekly reset
(weekday, time), resubscribe date, autorenew, optional weekly token
limit, optional note; local time.
3. **Active account**: a SessionStart hook writes the session id and
`oauthAccount.emailAddress` from `~/.claude.json` (that field only) into
the council; the hub maps each session's token rows to its account.
Rejected: mounting `~/.claude.json` into the hub (it holds more than the
email); a provider usage API (subscriptions have none).
4. **Usage**: per account: since the last weekly reset, today, total;
remaining = limit minus used since reset, only with a limit; unmapped
sessions count as "unassigned".
5. **Panel picker**: a Panels menu in the Resources head (023) with
checkboxes Hardware, Tokens, Combined and Accounts; one stays on; stored
in the view store.
6. **Order**: rows sort by next weekly reset; the active account is marked.
7. **Timing**: 023 decision 5.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes, after 027" --> A1
subgraph A["🔐 A · Accounts store"]
A1["🗄️ accounts.json 0600 and its API"] --> A2["🪝 SessionStart hook maps session to email"]
A2 --> A3["✍️ Unit and integration tests written"]
end
A3 --> B1
subgraph B["📊 B · Panel"]
B1["🧮 Usage per account since reset"] --> B2["🗂️ Accounts panel and Panels menu"]
B2 --> B3["✍️ E2E tests written"]
end
B3 --> C1
subgraph C["🧪 C · After 030"]
C1["🧪 All tests of 023 to 030 once"] --> C2{"🟢 Green?"}
C2 -- "🔴 no: fix" --> C1
C2 -- "🟢 yes" --> CF{"💬 Operator feedback on screenshots?"}
CF -- "✏️ changes" --> A1
end
CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Store
- [ ] Adding an account writes `accounts.json` with mode 0600; the skills
repo stays clean; the radio and view store files hold no account
email (grep).
- [ ] The API refuses a bad email, weekday, time or a negative limit with
400.
### Mapping and usage
- [ ] The hook on a fixture `~/.claude.json` writes one mapping line with
session and email and no other field.
- [ ] Fixture token rows of two mapped sessions give each account's used
since reset, today and total equal to the fixture sums; remaining is
limit minus used; without a limit it shows "—"; unmapped rows count
as "unassigned".
- [ ] Rows sort by next reset; the active account carries a marker.
### Panel picker
- [ ] The Panels menu hides and shows each panel; the last checked box
cannot be unchecked; the choice survives a reload.
### Tests
- [ ] Unit: validation, next-reset arithmetic across a DST change, usage
aggregation, hook extraction.
- [ ] Integration: accounts API and file mode; hook to mapping to usage.
- [ ] E2E: add, edit and remove an account, the panel picker at 1920, 1366
and 390; screenshots.
+67
View File
@@ -0,0 +1,67 @@
# 029 - Controls Layout
## User Story
As the operator, I want the Controls tabs (Tools, Rules, Groups) laid out
like the other views, so that I find their forms at once and the settings
list shows what matters.
## Decisions (operator-confirmed 2026-11-23; do not re-litigate)
1. **Head**: Controls with its Tools, Rules and Groups switch sits in the
023 box head, not floating beside the content.
2. **Width and alignment**: the Groups and Rule sets cards span the content
width; form labels share one baseline; the mic button sits inside its
field's end, as 031 builds it.
3. **Settings list**: files whose folder does not exist hide behind a "show
N missing" toggle; rows with an error chip come first, then by path.
4. **Chips**: group members and set rules are checkbox chips (members with
faces) instead of multi-select boxes; an empty rule list says how to
create a rule.
5. **Timing**: 023 decision 5.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes, after 028" --> A1
subgraph A["🎛️ A · Controls"]
A1["🧱 Switch in the box head"] --> A2["📐 Full width, aligned labels, mic inside"]
A2 --> A3["🗂️ Missing files folded, errors first"]
A3 --> A4["☑️ Member and rule chips"]
A4 --> A5["✍️ Unit and E2E tests written"]
end
A5 --> C1
subgraph C["🧪 C · After 030"]
C1["🧪 All tests of 023 to 030 once"] --> C2{"🟢 Green?"}
C2 -- "🔴 no: fix" --> C1
C2 -- "🟢 yes" --> CF{"💬 Operator feedback on screenshots?"}
CF -- "✏️ changes" --> A1
end
CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
- [ ] On every Controls tab the switch sits in `.box-head` at the box's top
edge.
- [ ] The Groups and Rule sets cards are as wide as the Rules card (within
1 px).
- [ ] Per form all labels share one top offset (within 1 px); each mic
button lies inside its field.
- [ ] With 40 fixture paths of which 30 lack their folder, the list shows
10 rows and "show 30 missing", which reveals them; error rows first.
- [ ] Checking two member chips and saving signs a group of those two.
- [ ] `grep -n 'multiple' orchestrator/templates/page-rules.js` finds no
multi-select.
### Tests
- [ ] Unit: settings list filter and order.
- [ ] Integration: n/a: the signed group and rule set APIs are unchanged.
- [ ] E2E: the layout probes and a group creation at 1920, 1366 and 390;
screenshots.
+127
View File
@@ -0,0 +1,127 @@
# 030 - Yes/No Answers as Buttons
## User Story
As the operator, I want to answer a plain yes/no question with the Accept
and Reject buttons I already have, and to see every real choice in the
Stream, so that I do not read a numbered form for a single decision and no
decision hides from me.
## Decisions (operator-confirmed 2026-11-23; do not re-litigate)
1. **Boolean cards**: permission asks (allow, deny) and choices whose only
options are Yes and No. Choices with named options or multi-select keep
the full numbered form with its Other answer. Rejected: every
two-option card (named options are real choices).
2. **Match**: a boolean card shows no form; Accept answers Yes, Reject
answers No through the existing feedback dialog, whose optional text
reaches the agent as what to do instead.
3. **Stream, Waits on Operator, Home**: a boolean item shows the existing
green grant button with bulk selection (020) and a decline button with
an optional comment; no numbered form.
4. **Real choices in the Stream**: every open choice with named options or
multi-select (decision rows and `decision_request` cards) shows in the
Stream with its full numbered form, not only in Match and Waits on
Operator (operator 2026-11-23: the tasks must not hide there).
5. **Answered and running in the Stream**: the Stream also keeps granted,
declined and answered items, each with its outcome pill, and an operator
command the hub runner executes shows its live output box there, as in
Waits on Operator (operator 2026-11-23).
6. **Same answers**: the signed answers stay as today; only the controls
change.
7. **Timing**: 023 decision 5.
8. **Nothing hides** (operator 2026-11-23, after Match dropped every row
with an open hub job): every open item `operator.py list` shows, and
every review, ask and decision, appears in Match, the Tasks views
(list, board, Waits on Operator), the Stream and on Home tiles of those.
Where an area cannot act on it (a hub runner job queued or running for
it, no command or no absolute directory, a view that only shows), the
item stays visible, greyed out, its buttons disabled, and a tooltip on
it names the reason (for a queued job: how long, and which job the
runner runs meanwhile). Rejected: hiding such items; a separate list
of hidden items.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes, after 029" --> A1
subgraph A["🔘 A · Boolean answers"]
A1["🧮 Boolean classifier"] --> A2["🃏 Match: Accept and Reject only"]
A2 --> A3["✅ Stream and Home: grant and decline"]
A3 --> A4["✍️ Unit and integration tests written"]
end
A4 --> B1
subgraph B["🗳️ B · Real choices"]
B1["📜 Open choices shown in the Stream"] --> B2["✍️ E2E tests written"]
end
B2 --> C1
subgraph C["🧪 C · All of 023 to 030"]
C1["🧪 All tests of 023 to 030 once"] --> C2{"🟢 Green?"}
C2 -- "🔴 no: fix" --> C1
C2 -- "🟢 yes" --> CF{"💬 Operator feedback on screenshots?"}
CF -- "✏️ changes" --> A1
end
CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Boolean answers
- [ ] A boolean ask card in Match has no numbered form; Accept sends allow,
Reject sends deny, with its feedback text when one is typed.
- [ ] A Stream ask shows grant and decline and no numbered form; three
selected asks are granted at once through the 020 bulk path.
- [ ] Decline with a comment delivers it to the agent; without one, a plain
deny.
- [ ] A Yes/No choice renders as boolean; a choice with "Commit B11" and
"Don't commit" and a multi-select choice keep the form with Other.
### Real choices
- [ ] An open fixture decision row with four named options shows in the
Stream with its numbered form and Other answer; picking one there
settles it in Match and Waits on Operator too.
### Answered and running
- [ ] A granted ask stays in the Stream with a "granted" pill, a declined
one with "declined" and its comment, an answered choice with its pick.
- [ ] While the hub runner executes an operator row, its Stream entry shows
the live output box, and its lines grow with each state poll, as in
Waits on Operator.
### Same answers
- [ ] The signed records for allow, deny and deny with text equal today's
(fixture comparison).
### Nothing hides
- [ ] For a fixture register of open operator rows (free, one with a
queued hub job, one with a running job, one without an absolute
directory, one decision row), the set of row ids in Match, Tasks
list, Waits on Operator and the Stream each equals the set
`operator.py list --json` prints.
- [ ] The rows with a job or without an absolute directory render greyed
(`data-blocked`), Accept and Reject disabled, and their tooltip names
the reason; keyboard and swipe refuse them with the same reason.
- [ ] The queued row's reason names its minutes in the queue and the job
the runner runs meanwhile.
- [ ] The Match badge counts only cards that can act.
### Tests
- [ ] Unit: the boolean classifier (asks, Yes/No, named options,
multi-select); the blocked reason of a queued, a running and a free
row.
- [ ] Integration: allow, deny and deny with text through the API give
today's signed records; a Stream pick settles the decision row; the
row sets of the nothing-hides fixture per area.
- [ ] E2E: Match and Stream at 1920, 1366 and 390, including the greyed
cards and their tooltips; screenshots.
+93
View File
@@ -0,0 +1,93 @@
# 031 - Mic in Fields
## User Story
As the operator, I want the microphone joined into every text field it
serves, so that field and mic read as one control instead of a loose button
beside or below it.
## Decisions (operator-confirmed 2026-11-23; do not re-litigate)
1. **One-line fields**: the mic is a segment at the right end inside the
field's frame, the field's height, divided from the text by a 1 px line;
field and segment share one border and radius. Applies to every one-line
field with a mic, among them the Stream search, the command line, rule
and group forms and choice "Other" answers.
2. **Textareas: footer strip** (operator pick 2026-11-23): the textarea and
a slim footer row share one frame, divided by a 1 px line; the mic sits
at the footer's right end; the footer's left side holds what belongs to
the field (Record in the radio composer, a character count where a limit
exists). Rejected: a floating corner button (covers text next to the
resize handle); a top-right corner button (collides with the first
line); the mic in the label line (no longer joined); a full-height side
segment (clunky when tall).
3. **One helper**: the shared mic component (`page-mic.js`) builds both
frames for every field it serves, the automatic sweep included; no
field places its mic by hand. 025's composer footer and 029's forms use
it.
4. **States**: the segment and the footer button keep the mic's idle,
recording and transcribing looks; the frame's focus ring covers field
and mic together.
5. **Timing**: implemented after 030, before the one test run of 023 to
031.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes, after 030" --> A1
subgraph A["🎙️ A · Frames"]
A1["🧩 Mic helper builds the one-line frame"] --> A2["🧩 Footer strip frame for textareas"]
A2 --> A3["🔗 Every mic field uses the helper"]
A3 --> A4["✍️ Unit and E2E tests written"]
end
A4 --> C1
subgraph C["🧪 C · All of 023 to 031"]
C1["🧪 All tests of 023 to 031 once"] --> C2{"🟢 Green?"}
C2 -- "🔴 no: fix" --> C1
C2 -- "🟢 yes" --> CF{"💬 Operator feedback on screenshots?"}
CF -- "✏️ changes" --> A1
end
CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### One-line fields
- [ ] A DOM scan finds every mic of a one-line field inside the same frame
element as its field, as its last child.
- [ ] Per one-line field the mic segment's top and bottom equal the field
frame's inner edges (within 1 px), its right edge the frame's inner
right edge, and a 1 px divider sits between text and mic.
- [ ] Typed text never runs under the mic segment (text box right edge
left of the divider).
### Textareas
- [ ] Every textarea with a mic sits in a frame with a footer row below it,
divided by a 1 px line; the mic is the footer's last child.
- [ ] The radio composer's footer holds Record on the left and the mic on
the right (025).
- [ ] Resizing the textarea by its handle keeps the footer attached and the
mic visible.
### States
- [ ] Recording shows the recording look on the segment or footer button;
focus in the field draws one ring around the whole frame.
- [ ] `grep -nE "micButton\(" orchestrator/templates/*.js` finds no caller
outside `page-mic.js` that inserts the button itself.
### Tests
- [ ] Unit: the helper builds the one-line frame and the footer frame and
keeps the button state.
- [ ] Integration: n/a: no server change.
- [ ] E2E: the scans and geometry probes on Stream, Match, radio, agent
page, Controls and the command line at 1920, 1366 and 390;
screenshots.
+10
View File
@@ -25,3 +25,13 @@ skill defines the format.
- [019 - Reveal withheld diff content](019-reveal-withheld-diff.md)
- [020 - Bulk grant mode and continuous diff](020-bulk-grant-mode.md)
- [021 - TokenEconomizer by default](021-tokeneconomizer-by-default.md)
- [022 - Analysis Skills from Quality](022-analysis-skills-from-quality.md)
- [023 - Box Heads](023-box-heads.md)
- [024 - Match Card Content](024-match-card-content.md)
- [025 - Radio Speak Card](025-radio-speak-card.md)
- [026 - Widget Zoom](026-widget-zoom.md)
- [027 - Slash Skill Suggestions](027-slash-skill-suggestions.md)
- [028 - Resources Accounts](028-resources-accounts.md)
- [029 - Controls Layout](029-controls-layout.md)
- [030 - Yes/No Answers as Buttons](030-yes-no-answers.md)
- [031 - Mic in Fields](031-mic-in-fields.md)