docs(requirements): 085 to 094 hub UX round and release card hotfix

085 calm Match deck, 086 motion language, 087 clock readout, 088 grouped
prune dialog without the 50-task cap, 089 one-row task toolbar, 090 card
state colour and avatar, 091 limits dragged on the chart (replaces 084
decisions 1 and 2), 092 release card repairs (hotfix), 093 stale requests
in Stream and Tasks, 094 hub cards bound to their Claude dialog.

🎯 Fix: 95 %
💥 Break: 1 %
💸 Tokens: -
⏱️ Velocity: -
🛡️ Security: 100 %
🏆 Score: 94
🚦 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-27 20:50:55 +00:00
1 parent f356083a24
commit b0ee62dd0b
12 files changed
+801

No files matched your search

@@ -7,6 +7,9 @@ charts, so that I steer the queue and the alarms without config files.
## Decisions (operator-confirmed 2026-11-27; do not re-litigate) ## Decisions (operator-confirmed 2026-11-27; do not re-litigate)
Decisions 1 and 2 are replaced by [091](091-limits-on-the-chart.md): the lines
are dragged, and the dial goes.
1. **Lines** (operator): every hardware chart (CPU, RAM, swap, disk, PSI) 1. **Lines** (operator): every hardware chart (CPU, RAM, swap, disk, PSI)
shows labelled lines for the lower and upper limit, STOP and MAYDAY from shows labelled lines for the lower and upper limit, STOP and MAYDAY from
the limits file of 083, plus a thin line for the live target. Rejected: the limits file of 083, plus a thin line for the live target. Rejected:
@@ -0,0 +1,85 @@
# 085 - Calm Match Deck Layout
## User Story
As the operator, I want the Match deck to show only what helps me decide and
to treat the release card like every other card, so that I swipe through the
deck without hunting for a special button.
## Decisions (operator-confirmed 2026-11-27; do not re-litigate)
1. **No header hourglass** (operator): the hourglass next to "Match" in the
page header goes; the card count stays. An hourglass shows bottom right
only in the countdown dialog that follows a release (the undo window).
2. **Bare empty state** (operator): the hourglass between cards stays, as
icon and text only, without the dashed frame, centred horizontally and
vertically in the deck container.
3. **Release card is a deck card** (operator): no "Release N decisions"
button inside the card. The card has the deck's normal action row: a
Release button bottom right, a Skip button and on the left the red Cancel
of 092, which drops the unreleasable rows and is greyed while there are
none. Swipe right, D or → releases; swipe left, A or ← skips; S undoes,
exactly as on every other card.
4. **Held stays held**: while a risk exception is open (081 rule) Release
stays greyed with the held note as its tooltip.
5. **Fixed card height** (operator): in the widget view and on the page
every card has the same height, the deck container's; a longer card
scrolls inside. Reject, Skip and Accept sit at the same place for every
card, anchored to the outer container, so the hand never searches.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["🃏 A · Deck layout"]
A1["⌛ Header hourglass gone, bare empty state"] --> A2["🔑 Release card with Release, Skip, greyed Cancel"]
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
### Header and empty state
- [ ] The Match page header holds no hourglass icon; the undo countdown
dialog after a release shows one in its bottom-right corner.
### Card height and buttons
- [ ] In the widget at 390 x 900 and on the page at 1366, a short and a long
card have the same height; the long one scrolls inside.
- [ ] The Reject and Accept buttons' bounding boxes are identical (within
1 px) for a short and a long card.
- [ ] The empty deck shows hourglass and text with no border, their centre
within 4 px of the deck container's centre on both axes.
### Release card
- [ ] The release card holds no button labelled "Release N decision(s)".
- [ ] Its action row shows Release (bottom right), Skip and the Cancel of
092 on the left.
- [ ] Swipe right, D and → release; swipe left, A and ← skip to the next
card; S undoes.
- [ ] With a held risk card Release is disabled and its tooltip names the
held card.
### Tests
- Unit:
- n/a: layout only; the release plan logic is unchanged.
- Integration:
- n/a: no server change.
- E2E:
- [ ] `tests/e2e/test_match_release_card_e2e.py`: action row, greyed
Cancel, keys and swipe, held state.
- [ ] `tests/e2e/test_match_empty_state_e2e.py`: no header hourglass,
centred bare empty state at 1920, 1366 and 390.
@@ -0,0 +1,88 @@
# 086 - Hub Motion Language
## User Story
As the operator, I want every element to leave with a short fade, working
things to beat like a heart and confetti to fall over the whole screen, so
that I see at a glance what changed, what works and what is done.
## Decisions (operator-confirmed 2026-11-27; do not re-litigate)
1. **Nothing vanishes abruptly, everywhere** (operator): one shared
`vanish(el)` helper fades and collapses an element in about 180 ms before
it leaves the DOM (cards, toasts, modals, chips, rows, menus); list
re-renders run through View Transitions so leaving items fade too. A lint
test refuses a bare `.remove()` or `replaceChildren()` on a visible
element outside the helper. `prefers-reduced-motion` removes at once.
Rejected: ghost clones kept in every render (more code, same effect).
2. **Heartbeat for working objects** (operator): one shared CSS class marks
anything that works right now (running task, running queue job, busy
agent, live deploy): a double beat ("lub-dub") about every 1.2 s of a
slight scale and a soft glow in its state colour. Queued, waiting,
stale and dead objects stay still. Reduced motion keeps the glow without
the beat.
3. **Confetti over the whole screen** (operator): it starts just below the
top control bar, spreads over the full viewport width, falls to the
bottom edge, lies there, and fades to transparent after a few seconds.
Rejected: confetti only inside the deck.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["🌫️ A · Fade-out"]
A1["🧩 vanish() helper and View Transitions"] --> A2["🔁 Every removal site through it"]
A2 --> A3["🚫 Lint test against bare removal"]
A3 --> A4{"🧪 Tests green?"}
A4 -- "🔴 no: fix" --> A1
end
A4 -- "🟢 yes" --> B1
subgraph B["💓 B · Heartbeat and confetti"]
B1["💓 Shared working class"] --> B2["🎊 Full-screen confetti that lands and fades"]
B2 --> B3{"🧪 Tests green?"}
B3 -- "🔴 no: fix" --> B1
B3 -- "🟢 yes" --> BF{"💬 Operator feedback on screenshots?"}
BF -- "✏️ changes" --> A1
end
BF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Fade-out
- [ ] A removed card, toast, modal, menu and list row keeps an opacity
between 0 and 1 for at least 100 ms before it leaves the DOM.
- [ ] With `prefers-reduced-motion: reduce` it leaves at once.
- [ ] The lint test fails on a template with a bare `.remove()` of a
visible element outside `vanish()`.
### Heartbeat
- [ ] Running tasks, running queue jobs and busy agents carry the working
class; queued, waiting, stale and ended ones do not.
- [ ] The working class animates scale and box-shadow; under reduced
motion only the box-shadow.
### Confetti
- [ ] Confetti pieces start below the bottom edge of the top control bar
and spread over at least 90 % of the viewport width.
- [ ] Pieces come to rest at the bottom edge and reach opacity 0 within
10 s, after which no confetti node or canvas remains.
### Tests
- Unit:
- [ ] The lint test over every template (`tests/test_page_motion.py`).
- Integration:
- n/a: no server change.
- E2E:
- [ ] `tests/e2e/test_hub_motion_e2e.py`: a dismissed toast and a
released card fade, a running task beats, confetti lands and fades,
reduced motion removes at once.
+58
View File
@@ -0,0 +1,58 @@
# 087 - Time Readout on Every Analog Clock
## User Story
As the operator, I want every analog clock in the hub to print its time
below the pivot while its hand keeps sweeping, so that I read the exact value
without estimating the hand's angle.
## Decisions (operator-confirmed 2026-11-27; do not re-litigate)
1. **Readout under the pivot** (operator): every analog clock (match clock,
undo dial, prune dial, schedule and limits dials, any later one) prints
its value inside the face, centred just below the hand's pivot.
2. **Countdown where it counts down** (operator): a clock that runs out (the
green answer window of the prune dialog, undo) shows the remaining time
as m:ss; a wall clock shows the time of day.
3. **Always animated** (operator): the hand moves continuously and smoothly,
not in jumps; the readout updates every second.
4. **One component**: all clocks share one clock component, so the readout
cannot be missing on one of them.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["🕰️ A · Clock"]
A1["🧩 One clock component with readout"] --> A2["🔁 Every clock uses it"]
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
### Readout
- [ ] Every analog clock on every page holds a readout element inside the
face below the pivot.
- [ ] The prune dialog's clock reads m:ss and decreases by one each second.
- [ ] The hand's angle changes between two frames 100 ms apart.
### Tests
- Unit:
- [ ] The readout format for wall time and countdown (node).
- Integration:
- n/a: no server change.
- E2E:
- [ ] `tests/e2e/test_clock_readout_e2e.py`: match clock, undo dial and
prune dial show and update their readout.
@@ -0,0 +1,72 @@
# 088 - Grouped Prune Dialog
## User Story
As the operator, I want the stale tasks in the prune dialog grouped and
searchable and pruned in one go however many there are, so that I keep the
overview with hundreds of tasks.
## Decisions (operator-confirmed 2026-11-27; do not re-litigate)
1. **Grouped by prefix** (operator): the tasks group by their prefix (`ci/`,
`cluster/`, `work/`, `fix/` and so on), each group collapsible with a
tri-state group checkbox and its count; inside, one row per task with its
owner's avatar and its age as a chip. Rejected: a sortable table, age
buckets.
2. **Search and stepper**: a filter field narrows the rows; the stale age is
a number stepper without a mic button.
3. **Sticky footer**: the clock of 087 and "Prune N" stay visible while the
list scrolls.
4. **No 50-task cap** (operator: drop it without a reason): 075 never asked
for it; 258 task slugs take about 12 KB of the hub's 1 MiB body limit. The
check keeps distinct, valid slugs outside `operator/` and `hotfix/`; the
body limit is the only bound. Rejected: batches (no constraint needs
them).
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["🧹 A · Prune dialog"]
A1["🗂️ Groups, search, stepper, sticky footer"] --> A2["♾️ Cap removed in hub and runner"]
A2 --> A3{"🧪 Unit, integration 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
### Dialog
- [ ] The tasks show in one group per prefix with count and group checkbox;
unticking one row sets its group checkbox to indeterminate.
- [ ] Typing in the filter hides rows that do not match and updates "Prune
N".
- [ ] The footer with clock and Prune button stays in view after scrolling
the list to its end.
- [ ] The stale age field has no mic button.
### Cap
- [ ] A signed prune of 300 distinct tasks passes `pruning.checked_tasks`
and the runner.
- [ ] Duplicates, invalid slugs and `operator/` or `hotfix/` tasks are still
refused.
### Tests
- Unit:
- [ ] `checked_tasks` with 300 tasks and the refusals.
- Integration:
- [ ] A prune of 300 tasks through the HTTP handler and the runner.
- E2E:
- [ ] `tests/e2e/test_stale_prune_e2e.py`: groups, tri-state, filter,
sticky footer, 258 tasks pruned in one signature.
@@ -0,0 +1,59 @@
# 089 - One-Row Task Toolbar
## User Story
As the operator, I want the task board's toolbar in one calm row with every
function still one or two clicks away, so that I find a function without
scanning two crowded rows.
## Decisions (operator-confirmed 2026-11-27; do not re-litigate)
1. **One row, two menus** (operator): view switcher, search field, a Filter
menu and an Actions menu, then the task count. Rejected: a filter sidebar.
2. **Filter menu**: the status tabs (All, Open, Open work, Waits on
Operator, Waiting for a grant, Ended) as one radio group with their
counts, and the toggles Running, Stale, Queue line and Queue jobs. The
active filter shows as one removable chip next to the menu.
3. **Actions menu**: Prune stale, Request choices, Undo with its timer, and
every other action button of today's two rows.
4. **Nothing lost**: every control of today's toolbar is reachable in at
most two clicks; keyboard shortcuts stay.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["🧰 A · Toolbar"]
A1["📋 Inventory every control of today's toolbar"] --> A2["🧭 One row, Filter and Actions menus"]
A2 --> A3{"🧪 E2E green?"}
A3 -- "🔴 no: fix" --> A2
A3 -- "🟢 yes" --> AF{"💬 Operator feedback on screenshots?"}
AF -- "✏️ changes" --> A2
end
AF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Layout
- [ ] At 1920 and 1366 px the toolbar is one row; at 390 px it wraps to at
most two.
- [ ] Every control in the inventory of today's toolbar is reachable within
two clicks (listed in the E2E spec).
- [ ] A chosen filter shows as a chip; its ✕ resets to All.
### Tests
- Unit:
- n/a: layout only.
- Integration:
- n/a: no server change.
- E2E:
- [ ] `tests/e2e/test_task_toolbar_e2e.py`: one row, every inventoried
control reachable, filter chip, screenshots at 1920, 1366 and 390.
@@ -0,0 +1,67 @@
# 090 - Task Card State Colour and Owner Avatar
## User Story
As the operator, I want each task card's colour to mean exactly one state
and to carry its agent's avatar, so that I see whose card it is and how it
stands without reading it.
## Decisions (operator-confirmed 2026-11-27; do not re-litigate)
1. **Border = state** (operator): the whole card border carries the state
colour, one colour per meaning: green running, amber waits on the
operator, blue queued or waiting for a grant, red blocked or failed, grey
dashed stale, muted ended. Chips stay neutral. Rejected: a left stripe.
2. **Soft glow** (operator): a slight, shiny glow in the border colour
fades around the card; on running cards it beats with the heartbeat of
086.
3. **Avatar** (operator): every kanban card shows its owner agent's avatar
top left, the same avatar the agents page uses; a card without an owner
shows a neutral placeholder.
4. **Legend**: the board's info button lists the colours with their
meaning.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["🎨 A · Card identity"]
A1["🎨 State to border colour, one map"] --> A2["✨ Glow"]
A2 --> A3["🧑 Avatar on every card"]
A3 --> A4{"🧪 Unit and E2E green?"}
A4 -- "🔴 no: fix" --> A1
A4 -- "🟢 yes" --> AF{"💬 Operator feedback on screenshots?"}
AF -- "✏️ changes" --> A1
end
AF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Colour
- [ ] One map from state to colour exists; every card's border colour comes
from it.
- [ ] No two states share a border colour; a running card and a stale card
never look alike.
- [ ] The info legend lists every entry of the map.
### Avatar
- [ ] Every kanban card holds an avatar image of its owner or the
placeholder.
### Tests
- Unit:
- [ ] The state map is total over the register's states (node).
- Integration:
- n/a: no server change.
- E2E:
- [ ] `tests/e2e/test_task_card_identity_e2e.py`: one card per state with
its colour, glow and avatar, screenshots.
@@ -0,0 +1,95 @@
# 091 - Limits Dragged on the Resources Chart
## User Story
As the operator, I want to drag the limit lines on the Resources chart,
switch limits, legend and markers on and off, and read what each limit
does, so that I steer the queue from one clear chart. This replaces
decisions 1 and 2 of 084 (no drag, a dial per line).
## Decisions (operator-confirmed 2026-11-27; do not re-litigate)
1. **Drag the lines** (operator): lower, upper, STOP and MAYDAY of the shown
metric are lines on the chart that move vertically by mouse or touch. A
moved line turns dashed with its new value and old value.
2. **Stage, then one Save** (operator): moved lines collect in a bar "Save N
changes / Discard"; one passkey signature covers every loosening value,
tightening only saves without one (084 decision 4 stays). An order
break (lower < upper < STOP < MAYDAY) blocks Save and names the line.
3. **Limits menu** (operator): the toolbar's Limits button becomes a menu
with a checkbox per level (lower, upper, STOP, MAYDAY, target) to show or
hide its lines, the profiles, and "Matrix…" for the full table; a right
click on the chart opens the same matrix. The dial goes.
4. **Tooltips that explain** (operator): hovering a level's name or line
says what it means and what it does, for example "upper: the queue
starts no job whose footprint would lift the load above it".
5. **Clear chart** (operator): a View menu toggles the legend, the queue
markers, the wait bands and the limit lines; series stay toggled by their
legend chip. Every toggle is remembered per browser.
6. **Readable unknowns**: a GPU span without a reading names its cause in
its tooltip (`nvidia-smi` error line, for example "driver/library version
mismatch: reboot") instead of only "unknown". Found 2026-11-27: the
userspace driver 620.70.06 against kernel module 615.71.09 since 14:14 UTC.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["📏 A · Drag and save"]
A1["🖱️ Draggable lines"] --> A2["💾 Staged changes, one Save, passkey to loosen"]
A2 --> A3{"🧪 Unit and integration green?"}
A3 -- "🔴 no: fix" --> A1
end
A3 -- "🟢 yes" --> B1
subgraph B["🧭 B · Menus and clarity"]
B1["☑️ Limits menu and right-click matrix"] --> B2["💬 Tooltips per level"]
B2 --> B3["👁️ View toggles, GPU cause"]
B3 --> B4{"🧪 E2E green?"}
B4 -- "🔴 no: fix" --> B1
B4 -- "🟢 yes" --> BF{"💬 Operator feedback on screenshots?"}
BF -- "✏️ changes" --> B1
end
BF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Drag and save
- [ ] Dragging the upper line of CPU from 90 to 85 shows a dashed line at
85 and "Save 1 change".
- [ ] Save of a tighter value writes `limits.json` without a passkey; a
looser one asks once for all staged changes; Discard restores the
lines.
- [ ] Dragging upper above STOP disables Save and names the line.
### Menus and tooltips
- [ ] The Limits menu hides and shows each level's lines; "Matrix…" and a
right click open the matrix.
- [ ] Each level name and line has a tooltip with its meaning and effect.
- [ ] The View menu toggles legend, queue markers, wait bands and limit
lines, and the choice survives a reload.
### GPU cause
- [ ] `resources.py` keeps the first `nvidia-smi` error line of a failed
read in the sample; the unknown span's tooltip shows it.
### Tests
- Unit:
- [ ] Pixel to value and back, staged change classification (node);
`resources.py` error capture.
- Integration:
- [ ] The limits endpoint takes a batch of staged changes, one passkey
proof for the looser ones.
- E2E:
- [ ] `tests/e2e/test_resource_limits_e2e.py`: drag, stage, save,
passkey, order break, menus, right click, tooltips, view toggles,
screenshots at 1920, 1366 and 390.
@@ -0,0 +1,92 @@
# 092 - Release Card Repairs
## User Story
As the operator, I want the release card to name and drop the rows that can
no longer be released, to let me change a decision right in its row and to
send a card back behind the release card, so that one expired card never
blocks the whole release.
## Decisions (operator-confirmed 2026-11-27; do not re-litigate)
1. **Hotfix** (operator): lands before 085 to 091. Cause found 2026-11-27: an
Ask accepted while pending expired before the release; the hub refused the
whole batch with `409 {"id": "b63ce250…", "status": "expired"}` and the
toast showed that raw JSON.
2. **Check first, name the row** (operator): before signing, every row is
checked. A row that cannot be released (an accepted card that expired, a
card blocked now, a row the hub refused last time) turns red with a plain
reason, for example "expired 20:41: can no longer be granted; reject or
drop it". Release stays greyed with the reasons as its tooltip. When the
hub still refuses, the toast names the card's title and the reason, never
raw JSON, and marks that row. Rejected: releasing the rest silently.
3. **Cancel drops the unreleasable** (operator): a red Cancel button on the
left of the release card's action row removes every unreleasable row from
the release and its card from the deck in this browser; the remaining
rows release normally. Greyed while no row is unreleasable. Rejected:
dropping every reject too; clearing every decision.
4. **Verdict pill opens a menu** (operator): a click on a row's verdict pill
opens a menu with each option of a decision card, Accept, Reject (opens
the feedback box) and Back to the stack; an impossible entry is greyed
with its reason, for example Accept on an expired card. Rejected: only
the row buttons of today.
5. **Back to the stack goes last** (operator): Back to the stack puts the
card behind the release card, as the last card of the deck, instead of
opening it at once.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["🚑 A · Hotfix"]
A1["🔍 Row check and named refusal"] --> A2["🗑️ Cancel drops the unreleasable"]
A2 --> A3["📋 Verdict menu"]
A3 --> A4["🔚 Back to the stack goes last"]
A4 --> A5{"🧪 Unit and E2E green?"}
A5 -- "🔴 no: fix" --> A1
A5 -- "🟢 yes" --> AF{"💬 Operator feedback?"}
AF -- "✏️ changes" --> A1
end
AF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Check and refusal
- [ ] A release card holding an accepted, now expired Ask shows that row red
with its expiry time and greys Release with the reason as tooltip.
- [ ] A 409 from `/api/inbox/approve` shows a toast naming the card's title
and status, and the row turns red.
### Cancel
- [ ] Cancel is enabled only while a row is unreleasable; a click removes
those rows and their cards, and Release is enabled for the rest.
### Verdict menu
- [ ] A click on a verdict pill opens the menu; picking another option of a
decision changes the row's label; Accept on an expired card is greyed
with its reason.
### Back to the stack
- [ ] After Back to the stack the release card stays in front, and the
card is the last id of the deck order, after the release card.
### Tests
- Unit:
- [ ] Row check reasons and the order after Back to the stack (node).
- Integration:
- n/a: no server change; the hub's 409 stays the backstop.
- E2E:
- [ ] `tests/e2e/test_match_release_repairs_e2e.py`: expired accepted Ask
row red, Release greyed, Cancel drops it, verdict menu, Back to the
stack order.
@@ -0,0 +1,84 @@
# 093 - Stale Operator Requests in Stream and Tasks
## User Story
As the operator, I want to see the expired, stale and failed requests next
to the open ones, each in the view where it matters, and delete many of them
at once, so that I clear the backlog in a minute without drowning the live
view.
## Decisions (operator-confirmed 2026-11-27; do not re-litigate)
1. **All four kinds** (operator): expired asks, expired decisions, stale
operator rows and failed or refused rows show besides the open requests.
2. **Context split** (operator, option A): the Stream (`#stream`) shows open
requests inline and failed or refused rows inline once, as news; expired
and stale requests only as one collapsed footer line ("41 stale requests
▸" with the count per kind) that opens them in place. Tasks → Operator
(`#tasks/operator`) gets the chips Open · Expired · Stale · Failed · All,
each with its count. Rejected: one stale group in both views; a separate
cleanup sheet.
3. **Bulk delete** (operator): every chip, and the opened footer, has a
select-all checkbox and "Delete N". Delete dismisses the requests in the
hub for every browser; agents get no message. One passkey signature, then
the usual undo window.
4. **Nothing clipped** (operator): a request in the Stream is never cut off;
a long command box scrolls inside instead of hiding its rest. Found
2026-11-27: `.code-box[data-open="false"] > .code-body` capped 12 lines
with `overflow: hidden`.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["🗂️ A · Views"]
A1["✂️ Code box scrolls instead of clipping"] --> A2["📰 Stream: failed inline, stale footer"]
A2 --> A3["🏷️ Tasks → Operator: status chips with counts"]
A3 --> A4{"🧪 Tests green?"}
A4 -- "🔴 no: fix" --> A1
end
A4 -- "🟢 yes" --> B1
subgraph B["🗑️ B · Bulk delete"]
B1["☑️ Select all and Delete N"] --> B2["🔑 Signed dismiss with undo"]
B2 --> B3{"🧪 Unit, integration and E2E green?"}
B3 -- "🔴 no: fix" --> B1
B3 -- "🟢 yes" --> BF{"💬 Operator feedback on screenshots?"}
BF -- "✏️ changes" --> A1
end
BF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Views
- [ ] A Stream request with a 40-line command shows every line by scrolling
inside its box; no element of the request is hidden.
- [ ] A failed operator row appears once inline in the Stream; expired and
stale requests appear only behind the footer line, which names the
count per kind.
- [ ] Tasks → Operator shows the five chips with counts; each chip lists
exactly its kind.
### Bulk delete
- [ ] Select all plus "Delete N" on the Expired chip dismisses every expired
request after one passkey signature; they are gone in a second browser.
- [ ] Undo within the window brings them back.
- [ ] An open request is never deleted by a chip other than Open or All.
### Tests
- Unit:
- [ ] Kind classification of a request (open, expired, stale, failed).
- Integration:
- [ ] The signed dismiss endpoint takes a list of requests, refuses an
unsigned call, and the undo restores them.
- E2E:
- [ ] `tests/e2e/test_stale_requests_e2e.py`: footer line, chips and
counts, select all, delete, undo, unclipped long command.
@@ -0,0 +1,88 @@
# 094 - Hub Cards Bound to Their Claude Dialog
## User Story
As the operator, I want a hub card for a Claude dialog (an ask or an
AskUserQuestion) to live exactly as long as that dialog and to close the
moment either side answers, so that I never see a card expire or go stale
while its dialog in Claude is still open.
## Decisions (operator-confirmed 2026-11-27; do not re-litigate)
1. **Cause** (found 2026-11-27): the PermissionRequest hook waits
`HOOK_TIMEOUT=110` s (`scripts/orchestrator.sh`) for the hub; then the
card expires while Claude's own dialog stays open as long as the operator
takes. The operator rejected several such cards as "expired in hub".
2. **One lifecycle per dialog** (operator): the card and the dialog share
the call key of 080. The hook keeps waiting while the dialog lives, up
to a timeout adjustable in Settings (default 60 min, at most the hook
timeout Claude Code allows); whichever side answers first wins.
3. **Claude's answer closes the card at once** (operator): PostToolUse (an
allowed call, an AskUserQuestion with its answers) closes it as "answered
in Claude"; the session's next `Stop` or `UserPromptSubmit` closes every
still open card of that session (a denial or an interrupt in Claude);
`SessionEnd` closes the session's cards.
4. **Timer only as fallback** (operator): a card whose hook timed out while
its dialog may still be open shows "open in Claude: answer it there",
never stale or expired; it closes by decision 3.
5. **Test first** (operator): before the wait grows, a live test settles
whether Claude shows its dialog while the hook waits (the docs do not
say). If the dialog only appears after the hook returns, the default wait
stays at 110 s and decisions 3 and 4 still apply.
Rejected: a longer fixed wait without the binding.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> T1
subgraph T["🔬 T · Live test"]
T1["⏱️ A 3-minute ask: does the dialog show while the hook waits?"] --> T2{"💬 Operator confirms what they saw?"}
end
T2 -- "📋 result recorded" --> A1
subgraph A["🔗 A · Binding"]
A1["🪝 PostToolUse, Stop, UserPromptSubmit, SessionEnd close cards"] --> A2["⏳ Adjustable wait, 'open in Claude' fallback"]
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
### Binding
- [ ] An ask allowed in Claude leaves the hub's open cards within 5 s of
its PostToolUse.
- [ ] An AskUserQuestion answered in Claude closes its hub decision with
the answers shown.
- [ ] A denial in Claude closes the session's open cards at its next `Stop`
or `UserPromptSubmit`.
- [ ] `SessionEnd` closes every open card of the session.
- [ ] After a hook timeout the card reads "open in Claude" and carries no
stale or expired stamp.
### Wait
- [ ] Settings holds the wait (1 to 60 min); the hook's `--timeout` and its
settings.json timeout follow it after `make orchestrator-hook`.
- [ ] The live test result is recorded in this document.
### Tests
- Unit:
- [ ] Card state over the lifecycle: open, answered in hub, answered in
Claude, open in Claude.
- Integration:
- [ ] Each closing hook event through the HTTP handler closes exactly the
cards of its session and call key.
- E2E:
- [ ] `tests/e2e/test_dialog_bound_cards_e2e.py`: a card closes on a
simulated PostToolUse, Stop and SessionEnd; the "open in Claude"
state after a timeout.
+10
View File
@@ -88,3 +88,13 @@ skill defines the format.
- [082 - Attachments in Every Text Field](082-field-attachments.md) - [082 - Attachments in Every Text Field](082-field-attachments.md)
- [083 - Self-Tuning Queue Admission](083-self-tuning-queue.md) - [083 - Self-Tuning Queue Admission](083-self-tuning-queue.md)
- [084 - Limits on the Resources Board](084-resource-limits-board.md) - [084 - Limits on the Resources Board](084-resource-limits-board.md)
- [085 - Calm Match Deck Layout](085-match-deck-calm-layout.md)
- [086 - Hub Motion Language](086-hub-motion-language.md)
- [087 - Time Readout on Every Analog Clock](087-clock-readout.md)
- [088 - Grouped Prune Dialog](088-prune-dialog-groups.md)
- [089 - One-Row Task Toolbar](089-task-toolbar-one-row.md)
- [090 - Task Card State Colour and Owner Avatar](090-task-card-identity.md)
- [091 - Limits Dragged on the Resources Chart](091-limits-on-the-chart.md)
- [092 - Release Card Repairs](092-release-card-repairs.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)