feat: hub and skills requirements 032 to 063
Hub: send in the field (032), coherent speak box (033), stream head band (034), Match at full width with its pile (035, 036), Home without the outer box (037), badge to Match (038), rejects that survive a changed or withdrawn card (039), the release card (040), code marks in the review diff (041), why Deny is off (042), the undo window clock (043), widgets without inner boxes (044), the Artifacts head on one line (045), accepting a red gate's risk (046), one code box (047), done rows greyed and folded (048), one control height (049), menus that stay open (050), radio settings in the Device card (051), bubbles beside the modes (052), agent settings on every face and name (053), pin only by menu (054), WASD in Match (055), the flowing card edge (056), Schedules in Controls (057) and the hub poll cost (059). Skills: the coach leaves for its own repository kevinveenbirkenbach/coach (058; test_install pins its four skills in skills-lock.json and stays red until that repository is published and pinned), hooks and timers start fewer processes (060), council files on hot paths stay bounded and mirror by marker instead of mtime (061), scripts and hooks hand agents less output (062), and block.py builds the commit table and message block in one run (063). Requirement documents 032 to 063 with their implementation amendments. MEDUSA false positives accepted after kvb-think-criticize (36 lines): MM-SCAN-058 (pla inside replace or plan), JB-SCAN-616/641 (the local clip helper), CODEGEN-SCAN-001 (drop-in paths), CGS-SCAN-029 (systemctl argv from constants), CGS-SCAN-040 (runner poll loop), FLA-SCAN-055 (feedback), WM-SCAN-354, AI-BACKDOOR-006, GENAI-SCAN-1270, B604 (runner shell path for passkey-verified commands), TC004, EXA002, EXA006, EXA010 and WEB-SSRF. 🎯 Fix: 92 % 💥 Break: 8 % 💸 Tokens: 89 % ⏱️ Velocity: – 🛡️ Security: ~100 % 🏆 Score: 95 🚦 Gate: ⛔ break 8 % > 5 Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e5fd70e183
commit
0fad1bfae3
265 files changed
+10434
-2242
No files matched your search
@@ -0,0 +1,69 @@
|
||||
# 032 - Send in the Field
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want a one-line answer field, its microphone and its Send
|
||||
button to read as one field, so that answering is one control instead of a
|
||||
field with buttons beside it.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Order and look**: field, then mic, then Send, all inside one frame with
|
||||
one border and one radius; the parts are separated only by 1 px vertical
|
||||
lines. This extends 031's one-line frame by a last segment.
|
||||
2. **Scope**: every one-line field with a mic whose form has its own submit
|
||||
button, among them the choice "Other" answers. A one-line field without a
|
||||
submit button keeps 031's frame unchanged.
|
||||
3. **One helper**: the mic component (`page-mic.js`) moves the form's submit
|
||||
button into the frame as the segment after the mic; no form places it by
|
||||
hand.
|
||||
4. **Timing**: 032 to 038 are implemented in order; tests are written per
|
||||
requirement and run once after 038, then screenshots go to the operator.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🎙️ A · Send segment"]
|
||||
A1["🧩 Mic helper takes the submit button as last segment"] --> A2["✍️ Unit and E2E tests written"]
|
||||
end
|
||||
A2 --> C1
|
||||
subgraph C["🧪 C · All of 032 to 038"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Frame
|
||||
|
||||
- [ ] A DOM scan finds, in every form that holds a one-line mic field and a
|
||||
submit button, the field, the mic and the submit button as the
|
||||
frame's children in this order.
|
||||
- [ ] The mic and Send segments span the frame's inner height (within 1 px),
|
||||
and a 1 px divider sits before each of them.
|
||||
- [ ] The Send segment draws no border or radius of its own; the frame's
|
||||
right corners round it.
|
||||
|
||||
### Behaviour
|
||||
|
||||
- [ ] Enter in the field and a click on Send submit the same answer as
|
||||
before (choice "Other" answer reaches its agent once).
|
||||
- [ ] A redraw of the stream keeps the typed text, focus and caret (026).
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: the helper moves the submit button behind the mic and keeps a
|
||||
single copy across repeated sweeps.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: the "Other" field of a decision in the stream at 1366 and 390:
|
||||
order and geometry probes; screenshots.
|
||||
@@ -0,0 +1,82 @@
|
||||
# 033 - Coherent Speak Box
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want the radio speak box to be one coherent control, so
|
||||
that writing, recording and sending read as one piece in the Radio view and
|
||||
as a Home widget.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **One frame** (operator pick 2026-11-25): Channel and To on top as one
|
||||
segmented row, the message textarea, and a footer row with Record on the
|
||||
left and the mic, the PTT split and the MAYDAY toggle on the right, all
|
||||
in one border and separated only by 1 px lines. Rejected: a messenger
|
||||
composer with recipient chips, a rounded pill and a round send button,
|
||||
which adds a second visual language beside the frames of 031 and 032.
|
||||
2. **No extra labels**: no inner "Speak" heading where a box or widget title
|
||||
already names the box; no channel hint as a tooltip on the Channel select
|
||||
or the textarea (025's "no hint text" covers tooltips too).
|
||||
3. **Fit**: in widget mode the box fills the widget body; the textarea takes
|
||||
the free height and the footer with PTT and MAYDAY stays fully visible at
|
||||
every widget size the Home grid allows.
|
||||
4. **Behaviour unchanged**: hold-to-talk, the PTT test menu and the inline
|
||||
MAYDAY confirmation keep working as today.
|
||||
5. **Timing**: as 032.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["📻 A · Speak box"]
|
||||
A1["🧩 One frame: channel row, textarea, footer"] --> A2["📐 Widget fit"]
|
||||
A2 --> A3["✍️ Unit and E2E tests written"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 032 to 038"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Frame
|
||||
|
||||
- [ ] One frame element holds the channel row, the textarea and the footer;
|
||||
the footer's children are Record, a spacer, the mic, the PTT split and
|
||||
the MAYDAY toggle in this order.
|
||||
- [ ] Inside the frame the parts are divided by 1 px lines and draw no
|
||||
borders of their own.
|
||||
|
||||
### Labels
|
||||
|
||||
- [ ] No visible "Speak" text in the box apart from the box or widget title.
|
||||
- [ ] No text of `CHANNEL_HINTS` (page-composer.js) reaches a `title`
|
||||
attribute inside the composer.
|
||||
|
||||
### Fit
|
||||
|
||||
- [ ] As a Home widget at every height from 3 to 8 rows and every width
|
||||
from 4 to 12 columns, the PTT split and the MAYDAY toggle lie fully
|
||||
inside the widget body.
|
||||
|
||||
### Behaviour
|
||||
|
||||
- [ ] Hold-to-talk, the test menu and the MAYDAY confirmation pass the
|
||||
existing composer tests.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: the composer's DOM order and the absence of hint titles.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: Radio view and Home widget at 1920, 1366 and 390; geometry
|
||||
probes; screenshots.
|
||||
@@ -0,0 +1,63 @@
|
||||
# 034 - Stream Head Band
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want the stream's view buttons, search and filters in one
|
||||
head band separated from the list, so that I see where the controls end and
|
||||
the entries start.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Head band** (operator pick 2026-11-25): the stream's top row (view
|
||||
buttons, search, filter menu, entry count) is the box head band of 023:
|
||||
flush under the box's top border, tinted like the other box heads, with a
|
||||
1 px line below it. Rejected: a plain 1 px line, which scrolls away and
|
||||
differs from the other box heads.
|
||||
2. **Sticky**: the band stays at the top of the stream box while the list
|
||||
scrolls.
|
||||
3. **Timing**: as 032.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🧭 A · Head band"]
|
||||
A1["🧩 Filter row becomes the box head band"] --> A2["📌 Sticky while the list scrolls"]
|
||||
A2 --> A3["✍️ E2E test written"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 032 to 038"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
- [ ] The band is the first child of the stream box; its top edge equals the
|
||||
box's inner top edge (within 1 px).
|
||||
- [ ] The band has a 1 px bottom border in `var(--line)` and the background
|
||||
of a Home widget, under which its title bar sits, so the list never
|
||||
shows through it.
|
||||
|
||||
### Sticky
|
||||
|
||||
- [ ] After the list scrolls by 600 px the band's top edge is unchanged
|
||||
(within 1 px).
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: layout only.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: band geometry and the scroll probe at 1920, 1366 and 390;
|
||||
screenshots.
|
||||
@@ -0,0 +1,58 @@
|
||||
# 035 - Match Full Width
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want to enlarge a Match card to the full width, so that I
|
||||
can read long diffs and commands without scrolling sideways.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Toggle**: a ⤢ button in the card head switches the card between its
|
||||
normal width (at most 960 px) and the full width of the Match area; ⤡
|
||||
switches back.
|
||||
2. **Kept**: the choice is stored per browser, like the Next cards toggle,
|
||||
and applies to the following cards too.
|
||||
3. **Widget**: in a Home widget the full width is the widget's width.
|
||||
4. **No gain, no button**: where the Match area is at most 960 px wide the
|
||||
button is hidden.
|
||||
5. **Timing**: as 032.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🔍 A · Full width"]
|
||||
A1["🧩 Toggle in the card head"] --> A2["💾 Kept in ViewStore"]
|
||||
A2 --> A3["✍️ E2E test written"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 032 to 038"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Toggle
|
||||
|
||||
- [ ] After a click on ⤢ the card's width equals the Match area's inner
|
||||
width (within 2 px); after a click on ⤡ it is at most 960 px.
|
||||
- [ ] After a reload the chosen width is kept.
|
||||
- [ ] → ← ↑ and swiping work unchanged at both widths.
|
||||
- [ ] At 390 px viewport width the button is absent.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: layout and a stored flag.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: toggle, reload and keys at 1920 and 1366, button absence at 390;
|
||||
screenshots.
|
||||
@@ -0,0 +1,63 @@
|
||||
# 036 - Match Pile
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want the waiting Match cards to lie behind the top card
|
||||
like a pile of playing cards, so that I see at a glance that more cards
|
||||
wait.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Pile** (operator pick 2026-11-25): the next two waiting cards lie
|
||||
behind the top card at full card size, lifted by 8 and 16 px and drawn
|
||||
2 % and 4 % smaller, tilted by −1.5° and +1°, dimmed; their colour band
|
||||
(the gradient top bar) peeks out above the top card. Rejected: a fan like a hand of
|
||||
cards, which needs room at the sides and covers neighbouring panels in
|
||||
widget mode.
|
||||
2. **Inert**: the layers behind show nothing beyond their band, take no
|
||||
focus and no clicks.
|
||||
3. **Count**: as many layers as further waiting cards, at most two; none
|
||||
behind the last card.
|
||||
4. **Replaces** the 40 px slivers (`.match-behind`) of today.
|
||||
5. **Reduced motion**: no animation when the pile reorders.
|
||||
6. **Timing**: as 032.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🃏 A · Pile"]
|
||||
A1["🧩 Full-size layers behind the top card"] --> A2["🎨 Band of each layer peeks out"]
|
||||
A2 --> A3["✍️ E2E test written"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 032 to 038"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Layers
|
||||
|
||||
- [ ] With three or more waiting cards, two layers lie behind the top card,
|
||||
each the top card's size (within 2 px) with a lower z-index.
|
||||
- [ ] Each layer's band starts above the top card's top edge.
|
||||
- [ ] The layers have `pointer-events: none` and `aria-hidden="true"`.
|
||||
- [ ] With two waiting cards one layer shows; with one card none.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: layout only.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: layer count, size and band position for 3, 2 and 1 waiting
|
||||
cards at 1920, 1366 and 390; screenshots.
|
||||
@@ -0,0 +1,59 @@
|
||||
# 037 - Home without Box
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want the Home widgets to stand directly on the sky, so
|
||||
that the page shows the widgets and no box around them.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **No outer box**: on Home the main container draws no background, border,
|
||||
shadow or frame padding; the widgets sit on the page background with the
|
||||
grid's gap between them.
|
||||
2. **Other screens keep their box.**
|
||||
3. **Empty state**: "Nothing pinned yet" stays readable as a card of its
|
||||
own.
|
||||
4. **Timing**: as 032.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🏠 A · Home"]
|
||||
A1["🧩 Main container without box on Home"] --> A2["✍️ E2E test written"]
|
||||
end
|
||||
A2 --> C1
|
||||
subgraph C["🧪 C · All of 032 to 038"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Home
|
||||
|
||||
- [ ] On Home the main container's computed background is transparent and
|
||||
it has no border and no box-shadow.
|
||||
- [ ] The widgets' left edge lines up with the navigation bar's left content
|
||||
edge (within 2 px).
|
||||
- [ ] With no pins the empty state shows on its own card.
|
||||
|
||||
### Other screens
|
||||
|
||||
- [ ] The stream screen's box keeps its background, border and shadow.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: layout only.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: Home with pins, Home empty and the stream at 1920, 1366 and 390;
|
||||
screenshots.
|
||||
@@ -0,0 +1,54 @@
|
||||
# 038 - Badge to Match
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want a click on the blue count of open operator tasks to
|
||||
take me straight to the Match view, so that I start deciding with one click.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Target**: a click on the count on the Tasks navigation button opens the
|
||||
Match screen; a click on the rest of the button keeps opening Tasks.
|
||||
2. **Own control**: the count becomes a focusable control of its own next to
|
||||
the Tasks icon, not a button nested in the Tasks button, named "N open
|
||||
operator tasks: open Match".
|
||||
3. **Hidden at zero**: as today, no count shows when nothing waits.
|
||||
4. **Timing**: as 032.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🔢 A · Badge"]
|
||||
A1["🧩 Count as its own control opening Match"] --> A2["✍️ E2E test written"]
|
||||
end
|
||||
A2 --> C1
|
||||
subgraph C["🧪 C · All of 032 to 038"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Navigation
|
||||
|
||||
- [ ] A click on the count sets the location hash to `#tasks/match`; a
|
||||
click on the Tasks icon opens the Tasks screen.
|
||||
- [ ] Enter on the focused count opens Match.
|
||||
- [ ] The count's `aria-label` names the number and Match.
|
||||
- [ ] The count and the Tasks icon keep their positions (within 1 px).
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: one navigation handler.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: click and keyboard on the count and the icon at 1366 and 390.
|
||||
@@ -0,0 +1,62 @@
|
||||
# 039 - Match Rejects Survive
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want a reject I swiped to stay until the release even
|
||||
when the agent changes or withdraws the card, so that my feedback always
|
||||
reaches the agent.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Key**: a reject is kept by card id, not by `id@hash`; an accept stays
|
||||
bound to the exact hash, because it signs that tree. Rejected: dropping
|
||||
the reject visibly with a toast, which loses the feedback.
|
||||
2. **Changed card**: the release card shows such a reject with the note
|
||||
"card changed since your reject"; the feedback goes out unchanged.
|
||||
3. **Withdrawn card**: a reject whose card is gone is still sent at the
|
||||
release, by radio call to the card's agent with title and feedback; the
|
||||
card data needed for that is kept when the reject is made.
|
||||
4. **Accept on a changed card**: dropped as today, but a toast names the
|
||||
card ("changed since your accept: decide it again").
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🛠️ A · Rejects survive"]
|
||||
A1["🔑 Reject keyed by id, accept by id@hash"] --> A2["🏷️ Changed note, withdrawn call"]
|
||||
A2 --> A3["✍️ E2E test written"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 046"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Rejects
|
||||
|
||||
- [ ] Reject card X, then serve X with a new hash: the release card still
|
||||
lists X as rejected with the note "card changed since your reject".
|
||||
- [ ] Reject card X, then serve a list without X: the release sends exactly
|
||||
one radio call to X's agent containing X's title and the feedback.
|
||||
- [ ] Accept card X, then serve X with a new hash: the decision is gone and
|
||||
one toast names X.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: the decision logic lives in page JS without a unit harness;
|
||||
E2E covers it.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: the three cases above against a mocked `/api/match`, the radio
|
||||
call captured on `/api/radio`.
|
||||
@@ -0,0 +1,66 @@
|
||||
# 040 - Release Card
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want the release to arrive as the front card of the
|
||||
Match deck once I have decided everything, so that I release the same way
|
||||
I decide.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **When**: once every card that can be decided now is decided, the release
|
||||
card is the front card; greyed cards (stale or blocked) do not hold it
|
||||
back.
|
||||
2. **Content**: the list of today's overview (each decision changeable or
|
||||
back to the stack), the release-block note and the Release button.
|
||||
3. **Gestures** (operator: "1 und 2"): swiping right or the right arrow
|
||||
starts the passkey release exactly like the button; swiping left or the
|
||||
left arrow returns to the stack.
|
||||
4. **Behind it**: cards that arrive meanwhile and the greyed cards lie behind
|
||||
the release card as the pile layers of 036; they never jump in front.
|
||||
5. **Early**: the Decisions button (tally) still opens the release card
|
||||
before everything is decided.
|
||||
6. **Replaces** the overview section that takes the deck's place today.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🃏 A · Release card"]
|
||||
A1["🧩 Release as deck card"] --> A2["👉 Swipe and arrows"]
|
||||
A2 --> A3["✍️ E2E test written"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 046"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Card
|
||||
|
||||
- [ ] With all decidable cards decided, `.match-deck .match-card.front` is
|
||||
the release card and contains `.match-release`.
|
||||
- [ ] Swiping the release card right or the right arrow runs the same
|
||||
release as the button: exactly one submit with every decision.
|
||||
- [ ] Swiping it left or the left arrow shows the open stack again.
|
||||
- [ ] A card arriving while the release card is front lies in
|
||||
`.match-layer`; the release card stays front.
|
||||
- [ ] A stale or blocked open card does not prevent the release card and
|
||||
lies behind it as a layer.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: page JS.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: the five checks above at 1920 and 390; screenshots.
|
||||
@@ -0,0 +1,59 @@
|
||||
# 041 - Code Marks in the Review Modal
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want to mark code lines in the review modal's diff as I
|
||||
can in Match, so that I point the agent at exact lines when I deny or
|
||||
approve.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Scope**: the review modal only. Rejected: every diff view, more surface
|
||||
than asked for.
|
||||
2. **Mechanism**: Match's marking is reused, not rebuilt: select or click
|
||||
lines, attach a comment.
|
||||
3. **Flow**: Deny prefills its reason with the marks as `path:line` plus
|
||||
comment; Approve sends them to the agent as notes by radio post, as
|
||||
Match does after a release.
|
||||
4. **Persistence**: marks are kept per review id until the review is
|
||||
decided, like Match's marks.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🖍️ A · Review marks"]
|
||||
A1["🧩 Match marking on the modal diff"] --> A2["📝 Marks into deny reason and approval notes"]
|
||||
A2 --> A3["✍️ E2E test written"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 046"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Marks
|
||||
|
||||
- [ ] In the review modal, marking a diff line and adding the comment "c"
|
||||
shows the mark in the modal.
|
||||
- [ ] Deny opens with a reason containing `<path>:<line>` and "c".
|
||||
- [ ] Approve sends one radio post to the agent containing `<path>:<line>`
|
||||
and "c".
|
||||
- [ ] Closing and reopening the modal for the same review keeps the mark.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: page JS.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: the four checks above; screenshot.
|
||||
@@ -0,0 +1,54 @@
|
||||
# 042 - Why Deny Is Off
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want a disabled Deny button to tell me on hover why it
|
||||
is off, so that I do not guess what is missing.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Hover and focus**: a wrapper around the button carries the reason as
|
||||
tooltip, because a disabled button fires no hover in Chrome; the button's
|
||||
`aria-describedby` gives keyboard users the same text.
|
||||
2. **Reasons**: "Pick the agent to tell: a post or call needs a recipient"
|
||||
(deny sheet) and "No agent to tell: the item names no recipient" (the
|
||||
split Deny button, `page-deny.js` `denySplit`).
|
||||
3. **Enabled again**: once the reason is gone the tooltip names the action.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["💬 A · Deny reason"]
|
||||
A1["🧩 Wrapper with title and aria-describedby"] --> A2["✍️ E2E test written"]
|
||||
end
|
||||
A2 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 046"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Tooltip
|
||||
|
||||
- [ ] In the deny sheet with channel Call and no recipient, the wrapper of
|
||||
the disabled Deny button has a `title` naming the missing recipient.
|
||||
- [ ] The button's `aria-describedby` points to an element with that text.
|
||||
- [ ] After a recipient is picked, Deny is enabled and the title no longer
|
||||
names a missing recipient.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: page JS.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: the three checks above.
|
||||
@@ -0,0 +1,71 @@
|
||||
# 043 - Undo Window on a Clock
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want to set on a clock dial from 0 to 60 s how long a
|
||||
grant, deny or release waits before it takes effect, so that the undo
|
||||
window fits my pace.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Range**: whole seconds from 0 to 60; 0 takes effect at once without an
|
||||
undo toast; default 3 s, today's value. Rejected: 1 to 30 s and fixed
|
||||
choices (operator pick: 0 to 60).
|
||||
2. **Dial**: an analog clock face in Settings with 60 ticks and one hand;
|
||||
dragging the hand, clicking a tick, the arrow keys (±1 s) and Page Up and
|
||||
Down (±5 s) set it; a readout shows "N s"; ARIA `slider`.
|
||||
3. **Server**: the value is stored with the hub settings; `batches.py` reads
|
||||
it per new batch instead of the constant `UNDO = 3.0`; a running batch
|
||||
keeps its due time.
|
||||
4. **One source**: every text that says "3 s" today (deny note, release
|
||||
title, inbox deny note) shows the set value.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["⏱️ A · Undo clock"]
|
||||
A1["🧩 Setting read per batch"] --> A2["🕰️ Clock dial"]
|
||||
A2 --> A3["📝 Texts from the setting"]
|
||||
A3 --> A4["✍️ Unit, integration and E2E tests written"]
|
||||
end
|
||||
A4 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 046"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Setting
|
||||
|
||||
- [ ] With 10 s saved, a new batch's `due` lies 10 s (±0.5) after its
|
||||
creation.
|
||||
- [ ] With 0 saved, a new batch applies at once and no undo toast appears.
|
||||
- [ ] The server refuses −1, 61 and 2.5 with 400.
|
||||
|
||||
### Dial
|
||||
|
||||
- [ ] The dial has `role="slider"`, `aria-valuemin="0"`,
|
||||
`aria-valuemax="60"` and `aria-valuenow` equal to the readout.
|
||||
- [ ] The right arrow raises the value by 1, Page Up by 5, capped at 60.
|
||||
|
||||
### Texts
|
||||
|
||||
- [ ] With 10 s set, the deny sheet note and the release button title say
|
||||
"10 s".
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: settings validation for 0, 60, −1, 61 and 2.5.
|
||||
- [ ] Integration: batch due time for 0 and 10 through the HTTP API.
|
||||
- [ ] E2E: the dial and text checks above; screenshot of the dial.
|
||||
@@ -0,0 +1,68 @@
|
||||
# 044 - Widgets without Inner Boxes
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want a widget's content to fill the widget instead of
|
||||
sitting in a second box, so that the Home widgets look calm and use their
|
||||
space.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **General rule**: when a widget's content root is itself a box (a card
|
||||
with its own border, background or padding), it loses border,
|
||||
background, radius and outer padding and fills the widget body; named
|
||||
examples Radio log, Radio device, Radio speak and Tasks Gantt. Rejected:
|
||||
rules per widget, which every new widget would need again; 033's
|
||||
speak-only rule folds into the general one. Amended 2026-11-26 after the
|
||||
e2e run: the walk also enters the one box of a wrapper that holds only
|
||||
it and `.legend` rows, so a Gantt or RASCI box beside its legend is
|
||||
flattened at any size; the legend stays under it, and the box with the rows
|
||||
after it fill the body; a text field inside the flattened box (the
|
||||
Radio speak input) keeps its frame.
|
||||
2. **Titles**: an inner title that repeats the widget's title bar ("HISTORY"
|
||||
under "Radio log", "DEVICE" under "Radio device") is hidden in widget
|
||||
mode; section labels that add information stay.
|
||||
3. **Full view unchanged**: outside widget mode the boxes stay as they are.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["📦 A · Unboxed widgets"]
|
||||
A1["🧩 One rule for the content root"] --> A2["🏷️ Repeated inner titles hidden"]
|
||||
A2 --> A3["✍️ E2E test written"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 046"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Widgets
|
||||
|
||||
- [ ] For every widget kind on Home, the first box element inside
|
||||
`.home-tile` below the title bar has a computed `border-width` of 0
|
||||
and a transparent background.
|
||||
- [ ] Its bottom edge lies within 2 px of the widget body's content
|
||||
bottom.
|
||||
- [ ] Radio log and Radio device show no visible inner title repeating the
|
||||
widget title.
|
||||
- [ ] Outside widget mode the same panels keep a 1px border.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: CSS.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: the checks above for all widget kinds at 1920 and 390;
|
||||
screenshots of Radio log, Radio device, Radio speak and Gantt.
|
||||
@@ -0,0 +1,58 @@
|
||||
# 045 - Artifacts Head on One Line
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want the Artifacts head on one tidy line, so that the
|
||||
controls and the status do not break apart.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **One line**: from 1024 px width, view switch, picker, toolbar and count
|
||||
sit on one line; no word breaks.
|
||||
2. **Count**: "97 repositories · as of 14:02" truncates with an ellipsis
|
||||
when space runs short; the full text sits in `title`.
|
||||
3. **Delete blocked**: leaves the count text and becomes a warning chip
|
||||
beside the delete button; chip and disabled delete button (042's
|
||||
wrapper) carry the reason as tooltip.
|
||||
4. **Narrow**: below 1024 px at most two lines, still no word broken.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🧱 A · Artifacts head"]
|
||||
A1["🧩 One-line head"] --> A2["⚠️ Delete-blocked chip"]
|
||||
A2 --> A3["✍️ E2E test written"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 046"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Head
|
||||
|
||||
- [ ] At 1920 and 1366 the Artifacts head is one line: its height equals a
|
||||
single control row (±2 px).
|
||||
- [ ] The count element has `text-overflow: ellipsis` and a `title` with
|
||||
the full text.
|
||||
- [ ] Without a GitHub token a warning chip beside the delete button names
|
||||
the reason and the count text holds no "Delete blocked".
|
||||
- [ ] At 390 the head takes at most two lines.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: page JS and CSS.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: the four checks above; screenshots at 1920, 1366 and 390.
|
||||
@@ -0,0 +1,66 @@
|
||||
# 046 - Accept the Risk of a Red Gate
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want a button on a commit with a red gate that accepts
|
||||
its risk explicitly, so that it is released with my other decisions instead
|
||||
of blocking them.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Button, not warning**: each accepted commit without a green gate shows
|
||||
"Accept risk: gate not green" in the release card (040); the release-block
|
||||
warning goes. Rejected: today's hard blocker ("release it alone").
|
||||
2. **Until clicked**: the Release button stays usable for everything else; a
|
||||
risky commit whose risk is not accepted is left out of the release and
|
||||
stays in the stack; the release card names it.
|
||||
3. **Signature** (operator pick): each risk-accepted red-gate commit gets
|
||||
its own passkey signature, one after the other, then the rest one
|
||||
signature, as the inbox bulk grant does; the server rule
|
||||
(`approving.py`: a red-gate review is approved only on its own) stays, so
|
||||
every red-gate approval keeps an individual signature as proof.
|
||||
Rejected: one signature with a `risk: accepted` flag per item, which
|
||||
would weaken that rule.
|
||||
4. **Take back**: an accepted risk can be withdrawn until the release.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["⚠️ A · Accept risk"]
|
||||
A1["🧩 Risk button per red-gate accept"] --> A2["🔑 Own signature each, then the rest"]
|
||||
A2 --> A3["✍️ E2E test written"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 046"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Risk
|
||||
|
||||
- [ ] No `.match-release-block` exists; a red-gate accept shows a
|
||||
`.match-accept-risk` button.
|
||||
- [ ] Without the click the release submits every decision except the risky
|
||||
commit, which stays in the stack.
|
||||
- [ ] With the click the release sends the risky commit in its own submit
|
||||
before one submit with the rest.
|
||||
- [ ] Withdrawing the accepted risk before the release leaves the commit out
|
||||
again.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: page JS.
|
||||
- [ ] Integration: n/a: the server rule is unchanged and keeps its tests.
|
||||
- [ ] E2E: the four checks above with the submits captured on `/api/inbox`.
|
||||
@@ -0,0 +1,79 @@
|
||||
# 047 - One Code Box
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want every piece of code in the hub to sit in the same
|
||||
box with an eye button and its actions at the bottom edge, so that Stream,
|
||||
Waits on Operator, Match and Tasks feel like one tool.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **One component**: every command box and diff block in Stream, Waits on
|
||||
Operator (`#tasks/operator`), Match cards and Tasks is one code box; an
|
||||
item's command and its diff files form one box.
|
||||
2. **Eye toggles in place** (operator pick 2): the eye grows the box to its
|
||||
full height and shrinks it back to its preview. Rejected: a modal viewer
|
||||
with zoom for every box; a second viewer button beside the inline toggle.
|
||||
3. **Defaults per place** (operator): Stream and Waits on Operator show a
|
||||
12-line preview; Match cards show the box open and scroll inside the card
|
||||
body; Tasks show it closed, and the eye opens it in a modal above.
|
||||
4. **Footer** (operator pick): copy, eye, then Grant ✓ and Deny ✗▾ sit in one
|
||||
bar at the box's bottom edge; snooze and pin stay to the right of the
|
||||
item's actions row. Match keeps Accept and Reject under the deck, its
|
||||
footer holds copy and eye. Rejected: buttons attached below the box;
|
||||
actions left where they are.
|
||||
5. **Review entries**: the eye of a review entry in the Stream loads its diff
|
||||
into the box on the first click instead of opening the View diff modal.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["📦 A · Code box"]
|
||||
A1["🧩 One code box component"] --> A2["👁️ Eye defaults per place"]
|
||||
A2 --> A3["🦶 Footer with copy, eye, Grant, Deny"]
|
||||
A3 --> A4["✍️ E2E test written"]
|
||||
end
|
||||
A4 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 050"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Box
|
||||
|
||||
- [ ] Every `.command` and every diff block in `#stream`,
|
||||
`#tasks/operator`, `#tasks/match` and `#tasks/list` lies inside one
|
||||
`.code-box` per item, whose last child is its `.code-foot`.
|
||||
- [ ] `.code-foot` holds a copy button and a `.code-eye` button carrying
|
||||
`aria-expanded`; in Stream and Waits on Operator it also holds the
|
||||
item's Grant and Deny.
|
||||
|
||||
### Eye
|
||||
|
||||
- [ ] Stream and Waits on Operator: a box taller than 12 lines starts
|
||||
clipped (`aria-expanded="false"`); the eye shows its full height, a
|
||||
second click clips it again.
|
||||
- [ ] Match: the box starts open; the card body scrolls, the page does not.
|
||||
- [ ] Tasks: the box starts closed; the eye opens a sheet with the full code,
|
||||
Esc closes it.
|
||||
- [ ] Stream review entry: the eye loads its diff into the box; no sheet
|
||||
opens.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: page JS.
|
||||
- [ ] Integration: `test_hub_operator_tasks` and `test_hub_grant_mode`
|
||||
follow the footer.
|
||||
- [ ] E2E: the Box and Eye checks at 1920 and 390 in Chromium; screenshots.
|
||||
@@ -0,0 +1,65 @@
|
||||
# 048 - Done Rows Greyed and Folded
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want finished rows in Waits on Operator clearly greyed
|
||||
and out of the way, without a checkbox, so that I see at a glance what still
|
||||
waits on me.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Done** means signed and inside its undo window (`held`) or its job
|
||||
ended. Such a row is greyed (opacity at most 0.5, grayscale), carries a
|
||||
"done" pill and moves under a "Done (n)" fold at the bottom, closed by
|
||||
default. Rejected: greyed in place; hidden at once, which leaves the undo
|
||||
window only in the toast.
|
||||
2. **No checkbox** (operator: the green check already does it): in Select
|
||||
mode the selection shows as the highlighted row (`aria-selected="true"`)
|
||||
and the pressed green check; `x` still selects. Rejected: keeping the
|
||||
checkbox.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🗂️ A · Done fold"]
|
||||
A1["🧩 Done rows greyed under a fold"] --> A2["☑️ Checkbox out, selection on the row"]
|
||||
A2 --> A3["✍️ E2E test written"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 050"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Done
|
||||
|
||||
- [ ] A held row and a row whose job ended lie in a closed
|
||||
`details.inbox-done` at the end of `#tasks/operator`, each with
|
||||
`data-done`, a "done" pill and a computed opacity of at most 0.5.
|
||||
- [ ] Its summary reads "Done (n)" with n the number of such rows.
|
||||
|
||||
### Selection
|
||||
|
||||
- [ ] `.inbox-list .item` holds no `input[type="checkbox"]`.
|
||||
- [ ] In Select mode the green check of a row sets `aria-selected="true"` on
|
||||
the row and `aria-pressed="true"` on the check; a second click clears
|
||||
both; `x` toggles the same.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: page JS.
|
||||
- [ ] Integration: the checkbox test in `test_hub_operator_tasks` becomes the
|
||||
selection check; `test_hub_grant_mode` follows.
|
||||
- [ ] E2E: the Done and Selection checks at 1920 and 390; screenshots.
|
||||
@@ -0,0 +1,61 @@
|
||||
# 049 - One Control Height
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want every control in every head bar at one height, so
|
||||
that buttons, search field and filters line up on every page.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **36 px** (operator pick) for every control in a `.box-head`: icon
|
||||
buttons, the search field with its mic, the filter button, chips and
|
||||
selects, from one CSS token. Rejected: 32 px, which shrinks the search
|
||||
field; 40 px, which grows every button.
|
||||
2. **Design pass**: every view is screenshotted at 1920 and 390; each misfit
|
||||
found (alignment, wrapping, spacing) is fixed under this requirement and
|
||||
listed in the hand-over.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["📏 A · Control height"]
|
||||
A1["🧩 One height token"] --> A2["🔎 Design pass over every view"]
|
||||
A2 --> A3["✍️ E2E test written"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 050"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Height
|
||||
|
||||
- [ ] `style-ui.css` defines `--control-h: 36px`, and every head-bar control
|
||||
rule uses it.
|
||||
- [ ] In every view of `test_box_heads_e2e.py`, every visible control in
|
||||
`.box-head` is 36 ± 1 px high at 1920 and 390.
|
||||
- [ ] Stream head: icon buttons, search field, filter button and count text
|
||||
share one vertical centre ± 1 px.
|
||||
|
||||
### Design pass
|
||||
|
||||
- [ ] The hand-over lists every misfit found with its fix and its
|
||||
before/after screenshot.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: CSS.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: `test_box_heads_e2e.py` extended by the Height checks.
|
||||
@@ -0,0 +1,53 @@
|
||||
# 050 - Menus Stay Open
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want the filter menu to stay open while I click its
|
||||
chips, so that I set several filters in one go.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Stay open**: clicks inside the Stream filter menu, and inside every hub
|
||||
menu whose entries are toggle chips, never close it. A menu entry that
|
||||
runs an action still closes its menu.
|
||||
2. **Close** (operator): 3 s after the pointer leaves the menu, cancelled when
|
||||
it comes back; at once on a click outside or Esc.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["📂 A · Menus"]
|
||||
A1["🧩 Chip clicks keep the menu"] --> A2["⏲️ Close 3 s after leave, outside click, Esc"]
|
||||
A2 --> A3["✍️ E2E test written"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 050"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Menu
|
||||
|
||||
- [ ] After clicks on three kind chips of the Stream filter menu, the menu is
|
||||
open and all three chips show their new state.
|
||||
- [ ] After the pointer leaves, the menu is open at 2.5 s and closed at
|
||||
3.5 s; a return at 2 s keeps it open.
|
||||
- [ ] A click outside or Esc closes it at once.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: page JS.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: the Menu checks in Chromium; screenshots.
|
||||
@@ -0,0 +1,79 @@
|
||||
# 051 - Radio Settings in the Device Card
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want every notification and radio setting, including the
|
||||
GNOME desktop popups, in the Device card of the radio, so that I switch how
|
||||
the hub reaches me in one place.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Device card** (operator): the notification channels, the GNOME popups
|
||||
and the internet radio stations move out of the general Settings into the
|
||||
Device card of the radio spot. The general Settings keep Ambience,
|
||||
Location, Appearance, Music and Passkey. Rejected: a card of their own; a
|
||||
gear sheet in the radio bar.
|
||||
2. **GNOME popups per source** (operator picks 1 and 2): resources
|
||||
(`watch.py`), MAYDAY (`radio.py`) and the dream reminder
|
||||
(`kvb-dream/hooks/notify.sh`), each on or off and each snoozable for 1 h
|
||||
or until 8 am tomorrow. Rejected: one switch for all three, which mutes
|
||||
MAYDAY with the rest.
|
||||
3. **Bridge**: every signed settings save writes `notify.json` into the
|
||||
council directory; the three senders read it before `notify-send`. A
|
||||
muted source still reaches the Stream and the radio, only the popup goes.
|
||||
A missing or unreadable file means on, so a broken file never silences an
|
||||
alarm.
|
||||
4. **Signed**: the switches change through the passkey like every setting.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["📻 A · Device card"]
|
||||
A1["🧩 Settings move into the Device card"] --> A2["🔔 GNOME switch and snooze per source"]
|
||||
A2 --> A3["🌉 notify.json read by the three senders"]
|
||||
A3 --> A4["✍️ Unit, integration and E2E tests written"]
|
||||
end
|
||||
A4 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 053"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Device card
|
||||
|
||||
- [ ] The Settings sheet has no "Notifications" and no "Internet radio"
|
||||
section.
|
||||
- [ ] The Device card holds `.radio-settings` with the channel switches,
|
||||
three `.notify-source` rows (resources, mayday, dream) and the
|
||||
stations.
|
||||
|
||||
### Popups
|
||||
|
||||
- [ ] Saving resources off writes `notify.json` with
|
||||
`{"resources": {"on": false, "until": 0}, ...}` into the council
|
||||
directory.
|
||||
- [ ] Snooze 1 h writes `until` = now + 3600; the source sends no popup
|
||||
before it and sends again after it.
|
||||
- [ ] `watch.py`, `radio.py` and `notify.sh` run `notify-send` only for a
|
||||
source that is on and not snoozed; a missing or broken `notify.json`
|
||||
counts as on.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: each sender with `notify.json` on, off, snoozed, expired,
|
||||
missing and broken, against a fake `notify-send`.
|
||||
- [ ] Integration: a signed settings save writes `notify.json`; an unsigned
|
||||
one is refused.
|
||||
- [ ] E2E: the Device card switches and snooze in Chromium; screenshots.
|
||||
@@ -0,0 +1,54 @@
|
||||
# 052 - Bubbles Beside the Modes
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want the chat bubbles switch beside the radio modes, so
|
||||
that I set how messages reach me in one row.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Toggle beside the modes** (operator): the bubbles switch sits in the
|
||||
mode row next to Auto, Quiet, Silence, Morse and Gibberlink, set apart as
|
||||
an on/off toggle, while the modes stay a choice of one. Rejected: a
|
||||
bubbles card in the radio spot; a bubbles spot of its own.
|
||||
2. **One setting**: it switches the same `bubbles` setting as the header
|
||||
toggle, which stays as the quick switch; both always show the same state.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["💬 A · Bubbles toggle"]
|
||||
A1["🧩 Toggle in the mode row"] --> A2["🔗 Same setting as the header toggle"]
|
||||
A2 --> A3["✍️ E2E test written"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 053"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Toggle
|
||||
|
||||
- [ ] The mode row holds a `.radio-bubbles` button with `aria-pressed`
|
||||
equal to the `bubbles` setting, separated from the mode buttons by a
|
||||
divider.
|
||||
- [ ] Clicking it flips bubbles; the active mode stays the same and
|
||||
`#bubbles-toggle` shows the new state.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: page JS.
|
||||
- [ ] Integration: n/a: the setting exists.
|
||||
- [ ] E2E: the Toggle checks in Chromium; screenshots.
|
||||
@@ -0,0 +1,61 @@
|
||||
# 053 - Agent Settings on Every Face and Name
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want every agent's avatar and name to open that agent,
|
||||
with settings of its own, so that I tune one noisy agent without touching
|
||||
the rest.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Always clickable** (operator): every agent avatar and every agent name
|
||||
in the hub opens the agent popover (`openAgent`). Today names built by
|
||||
`person()` do; avatars and names written as plain text do not.
|
||||
2. **Per-agent settings** (operator): the popover gains the agent's own
|
||||
switches for sound, read aloud and bubbles, each on or off for this agent
|
||||
only, stored in the signed settings.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🧑 A · Agent settings"]
|
||||
A1["🧩 Faces and names open the agent"] --> A2["🎚️ Sound, read aloud, bubbles per agent"]
|
||||
A2 --> A3["✍️ Integration and E2E tests written"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 053"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Clickable
|
||||
|
||||
- [ ] In Stream, Waits on Operator, Match, Tasks and the radio log, every
|
||||
`.avatar[data-face]` and every agent name sits in a button that opens
|
||||
the agent popover; dragging a Match card by its head still works.
|
||||
|
||||
### Settings
|
||||
|
||||
- [ ] The agent popover holds `.agent-settings` with three switches.
|
||||
- [ ] Sound off: no tone for that agent's radio; read aloud off: its
|
||||
messages are not spoken; bubbles off: no bubble for it. Other agents
|
||||
stay as they were.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: page JS.
|
||||
- [ ] Integration: the settings schema accepts the per-agent map and refuses
|
||||
unknown keys.
|
||||
- [ ] E2E: the Clickable and Settings checks in Chromium; screenshots.
|
||||
@@ -0,0 +1,61 @@
|
||||
# 054 - Pin Only by Menu
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want no favourite stars on the boxes and pinning only
|
||||
through the context menu, so that the heads stay calm and pinning still
|
||||
works from everywhere.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **No stars** (operator): no `.star` button anywhere in the hub; the star
|
||||
slots and star rows go. Rejected: hiding them by CSS, which leaves them
|
||||
focusable.
|
||||
2. **Menu only** (operator): "Pin to Home" and "Unpin from Home" stay in the
|
||||
context menu: right-click, a touch long press, or the menu key of the
|
||||
focused box. Existing pins 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 · Pin by menu"]
|
||||
A1["🧩 Stars out"] --> A2["📋 Pin through the context menu only"]
|
||||
A2 --> A3["✍️ E2E tests moved to the menu"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 055"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Stars
|
||||
|
||||
- [ ] Every view of `test_box_heads_e2e.py` and Home hold no `.star` and no
|
||||
`.star-row` element.
|
||||
|
||||
### Menu
|
||||
|
||||
- [ ] Right-clicking a box head that a star used to pin shows "Pin to Home";
|
||||
running it adds the box to Home, and the same menu then shows "Unpin
|
||||
from Home".
|
||||
- [ ] A pin made before the change is still on Home.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: the panels tests drop the star button and keep `targetOf` and
|
||||
`add`.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: the bookmark tests pin through the context menu; the Stars and
|
||||
Menu checks in Chromium.
|
||||
@@ -0,0 +1,72 @@
|
||||
# 055 - WASD in Match
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want to swipe the Match deck with W, A, S and D in an
|
||||
endless round with the release card coming up in between, so that I decide,
|
||||
skip, undo and release without leaving the keyboard's home row.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Keys** (operator): D accepts, A rejects, W skips to the next card, S goes
|
||||
back to the last card and undoes what happened to it: a decision is taken
|
||||
back, a skip is reversed. Each further S steps one action further back,
|
||||
down to the last release. The arrows keep working. Rejected: S undoing a
|
||||
single step only.
|
||||
2. **Release card** (operator): the same keys work on the release card of
|
||||
040: D releases, A goes back to the stack, W skips on, S brings back the
|
||||
last card.
|
||||
3. **Endless round** (operator): W cycles through every open card, greyed
|
||||
ones included, without end; while at least one decision waits, the
|
||||
release card is one place in that round and comes up once per lap.
|
||||
4. **Precedence**: on the Match screen W, A, S and D go to the deck before
|
||||
any global key; in a text field they type as usual. The help (`?`) lists
|
||||
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 · WASD"]
|
||||
A1["🧩 Keys to accept, reject, skip"] --> A2["↩️ Undo stack for S"]
|
||||
A2 --> A3["🔁 Release card in the endless round"]
|
||||
A3 --> A4["✍️ E2E test written"]
|
||||
end
|
||||
A4 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 055"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Keys
|
||||
|
||||
- [ ] D on the front card decides it as accept, A opens its reject feedback,
|
||||
W puts it at the back; the arrows still do the same.
|
||||
- [ ] After D, W, D, three S bring back the cards in reverse order, the two
|
||||
decisions undone and the skipped card in front again.
|
||||
- [ ] Typing W, A, S or D in a text field of the Match screen types the
|
||||
letter and moves no card.
|
||||
|
||||
### Round
|
||||
|
||||
- [ ] With one decision made and two open cards, pressing W cycles card,
|
||||
card, release card, card, and so on.
|
||||
- [ ] On the release card D releases, A shows the stack, W shows the next
|
||||
card, S brings back the last card.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: page JS.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: the Keys and Round checks in Chromium; screenshots.
|
||||
@@ -0,0 +1,57 @@
|
||||
# 056 - Flowing Card Edge
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want the colour bar on top of a Match card to flow into
|
||||
the card instead of sitting on it as a strip, so that the card reads as one
|
||||
piece.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Flowing bar** (operator, screenshot): the bar is full colour at the very
|
||||
top edge and fades into the card head within 22 px, following the card's
|
||||
rounded corners; the head's pattern fades in under it instead of starting
|
||||
at a hard line. Rejected: today's 6 px strip with a hard lower edge.
|
||||
2. **No scrollbar through the edge**: the card itself no longer scrolls, only
|
||||
its body does, as 047 sets for Match cards; no scrollbar runs through the
|
||||
top corner.
|
||||
|
||||
## 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 edge"]
|
||||
A1["🧩 Bar as a fading overlay"] --> A2["📜 Only the body scrolls"]
|
||||
A2 --> A3["✍️ E2E edge check updated"]
|
||||
end
|
||||
A3 --> C1
|
||||
subgraph C["🧪 C · All of 039 to 056"]
|
||||
C1["🧪 All tests 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
|
||||
|
||||
### Edge
|
||||
|
||||
- [ ] The front card's `::before` is 22 px high, painted with the card's
|
||||
gradient and masked from opaque at 0 px to transparent at 22 px.
|
||||
- [ ] The head pattern's mask starts transparent at 0 px.
|
||||
- [ ] The front card computes `overflow-y: hidden`; its `.match-body`
|
||||
scrolls.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: n/a: CSS.
|
||||
- [ ] Integration: n/a: no server change.
|
||||
- [ ] E2E: the edge check of `test_box_heads_e2e.py` asserts the Edge
|
||||
checks for every pattern in Chromium and Firefox; screenshots.
|
||||
@@ -0,0 +1,130 @@
|
||||
# 057 - Schedules in Controls
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want one list of every automatic hook and timer in
|
||||
Controls, so that I switch each one off or retime it with one click and
|
||||
nothing spends tokens or machine time behind my back.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Placement** (operator): a fourth Controls tab, Schedules, right of
|
||||
Groups (`#stream/schedules`), also pinnable on Home. Rejected: a panel in
|
||||
Resources; a section of the Settings sheet.
|
||||
2. **Flag file** (operator): `<council>/schedules.json` is the one store of
|
||||
the rows; the Schedules tab writes one row per change through
|
||||
`POST /api/schedules`, and `schedules.py set` writes the same file on the
|
||||
host. Every first-party hook and timer script reads it on each run. A
|
||||
missing, linked or malformed file means the defaults. Rejected: adding and
|
||||
removing hook entries in `~/.claude/settings.json` per toggle, which needs
|
||||
a passkey-signed host writer. Amended during implementation (2026-11-25):
|
||||
the first draft kept the rows in the hub settings and mirrored them to the
|
||||
file, as `notify.json`; `/kvb-coach-on` (058) runs in an agent sandbox that
|
||||
cannot reach the hub, and the next settings save would have overwritten
|
||||
its change, so the file became the store. Amended 2026-11-25 after a
|
||||
timing run: the hub keeps the store as `schedule_settings`, since a field
|
||||
`schedules` shadowed `Sources.schedules(claims, now)`, the cron rows of
|
||||
the event stream, and made every `/api/events` call fail.
|
||||
3. **Rows** (operator): coach reminder (hook, every N hours, default 1, off),
|
||||
dream reminder (hook, every N hours, default 12, off), dream popup (timer,
|
||||
daily at HH:MM, default 17:00, off), queue cleanup (timer, list of HH:MM,
|
||||
default 00:00 and 12:00, on), code graph (service, on or off, on), and
|
||||
every other relevant entry found automatically: each further user timer
|
||||
and each further hook command in `~/.claude/settings.json`. The hub's own
|
||||
`kvb-orchestrator-*` units show read-only, because the hub needs them.
|
||||
A foreign row shows its schedule and next run and offers its exact off
|
||||
command to copy; the hub never switches a foreign unit.
|
||||
4. **Host reconciler**: `kvb-org-organize/scripts/schedules.py`, started by
|
||||
`kvb-schedules.path` (on a change of `schedules.json`) and
|
||||
`kvb-schedules.timer` (every 5 minutes), writes
|
||||
`<council>/schedules-view.json` (timers from `systemctl --user
|
||||
list-timers --all --output=json`, hooks from `~/.claude/settings.json`)
|
||||
and applies the first-party rows: `systemctl --user enable --now` or
|
||||
`disable --now`, and a retime as the drop-in
|
||||
`~/.config/systemd/user/<timer>.d/schedule.conf` with the validated
|
||||
`OnCalendar`. Rejected: each script polling hourly, which cannot stop a
|
||||
daemon and finds no foreign timer.
|
||||
5. **Dream off by default** (operator): the dream reminder and the dream
|
||||
popup start off, to save tokens; the installer copies the units and the
|
||||
reconciler enables them only when switched on.
|
||||
6. **No passkey**: a schedule switches an automation, not an alarm; the
|
||||
MAYDAY and resource popups stay under 051. Residual: an agent that can
|
||||
write the council directory can switch a first-party row, as with
|
||||
`notify.json`.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🗓️ A · Schedules"]
|
||||
A1["🧩 schedules setting + schedules.json"] --> A2["🛰️ schedules.py view + reconcile"]
|
||||
A2 --> A3["🔌 coach, dream and cleanup scripts read the flags"]
|
||||
A3 --> A4["🖥️ Controls tab Schedules"]
|
||||
A4 --> A5["✍️ Tests written, not run"]
|
||||
end
|
||||
A5 --> C1
|
||||
subgraph C["🧪 C · All of 057 and 058"]
|
||||
C1["🧪 Unit, then e2e 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
|
||||
|
||||
### Setting and file
|
||||
|
||||
- [ ] `schedules.ROWS` (hub) and `schedules.py` `ROWS` (host) hold the five
|
||||
first-party rows with the defaults of decision 3; both `valid_row`
|
||||
refuse an unknown row, an hour count outside 1 to 24, a time that is
|
||||
not `HH:MM`, more than 6 cleanup times and a non-bool `on`.
|
||||
- [ ] `POST /api/schedules` writes `<council>/schedules.json` with the changed
|
||||
row and every other row as stored, and needs no passkey;
|
||||
`schedules.py set` does the same on the host.
|
||||
|
||||
### Scripts
|
||||
|
||||
- [ ] The coach and dream `reminder.sh` print nothing while their row is off
|
||||
or the file is missing, and use the row's hour count while on.
|
||||
- [ ] `kvb-dream/hooks/notify.sh` sends no popup while the dream popup row is
|
||||
off.
|
||||
|
||||
### Reconciler
|
||||
|
||||
- [ ] `schedules.py view` turns a fixture of `list-timers` JSON and a
|
||||
settings file into rows: name, unit file, `OnCalendar`, next and last
|
||||
run, owner `skills`, `hub` or `other`, and for hooks the event and
|
||||
command.
|
||||
- [ ] `schedules.py apply` calls exactly `enable --now` or `disable --now`
|
||||
per first-party timer and service and writes the drop-in for a retime;
|
||||
it never names a foreign or `kvb-orchestrator-*` unit.
|
||||
- [ ] `scripts/install.sh` installs `kvb-schedules.path` and
|
||||
`kvb-schedules.timer` and no longer enables `kvb-dream-notify.timer`.
|
||||
|
||||
### Controls tab
|
||||
|
||||
- [ ] Controls shows Tools, Rules, Groups, Schedules in that order;
|
||||
`#stream/schedules` opens it.
|
||||
- [ ] Each first-party row switches on or off and retimes; the change reaches
|
||||
`schedules.json` after one click.
|
||||
- [ ] Foreign and hub rows show their schedule and next run, have no switch,
|
||||
and a foreign row offers its off command to copy.
|
||||
- [ ] The Schedules panel pins on Home through the context menu (054).
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: row validation on both sides; `schedules.py view` and `apply`
|
||||
against fixtures and a fake runner; both reminders and `notify.sh` with
|
||||
the flag on, off and missing.
|
||||
- [ ] Integration: a `HubCase` `POST /api/schedules` writes `schedules.json`
|
||||
and the state carries the rows and the host view.
|
||||
- [ ] E2E: Chromium at three widths: the tab order, a coach switch on and
|
||||
off reaching the file, a dream popup retime reaching the file, a
|
||||
foreign row without a switch, the pin on Home.
|
||||
@@ -0,0 +1,96 @@
|
||||
# 058 - Coach Repository
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want the coach in a repository of its own with commands
|
||||
to switch it on and off, so that the skills repository stays lean and the
|
||||
coach costs no tokens until I switch it on.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Own repository** (operator): `github.com/kevinveenbirkenbach/coach`,
|
||||
public, cloned at `~/Repositories/github.com/kevinveenbirkenbach/coach`.
|
||||
`kvb-coach` (with `scripts/coach.py` and `hooks/reminder.sh`),
|
||||
`kvb-coach-meditation` (with `scripts/meditation.py` and
|
||||
`assets/meditation.html`) and their tests move there with their code. The
|
||||
first commit names the skills commit they came from. Rejected: a private
|
||||
repository, which needs `gh auth` on every host. Until the operator
|
||||
creates the GitHub repository the clone is built in the gitignored
|
||||
`.state/coach` of the skills repository, which the agent sandbox may
|
||||
write; the lock entries follow the push, written by `npx skills add`,
|
||||
which computes each `computedHash`.
|
||||
2. **Commands** (operator): `/kvb-coach` coaches on demand as today;
|
||||
`/kvb-coach-on` switches the hourly reminder on, `/kvb-coach-off` off;
|
||||
`/kvb-coach-meditation` stays.
|
||||
3. **Flag, not hook edits** (operator): on and off set the `coach` row of
|
||||
`<council>/schedules.json` (057), the same row the Schedules tab switches.
|
||||
The reminder hook stays registered and prints nothing while off. When the
|
||||
hook is missing, `/kvb-coach-on` hands the operator the install command
|
||||
instead of editing `~/.claude/settings.json`.
|
||||
4. **Installed by default, off** (operator): `skills-lock.json` pins the four
|
||||
coach skills at a commit of the coach repository; the installer registers
|
||||
the reminder hook; the row starts off.
|
||||
5. **Removed from skills**: `skills/kvb-coach*`, `tests/test_coach.py` and
|
||||
`tests/test_meditation.py` leave the skills repository; every reference
|
||||
in other skills, the README and the tests points to the coach repository.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> O1
|
||||
subgraph O["🧑 O · Operator"]
|
||||
O1["🌐 Create the public repo coach"] --> O2["🔓 Sandbox write for its clone"]
|
||||
end
|
||||
O2 --> A1
|
||||
subgraph A["🧘 A · Coach repository"]
|
||||
A1["📦 Move skills, code and tests"] --> A2["🔛 kvb-coach-on and kvb-coach-off"]
|
||||
A2 --> A3["🔒 Lock entry in skills"] --> A4["🧹 Remove from skills"]
|
||||
A4 --> A5["✍️ Tests written, not run"]
|
||||
end
|
||||
A5 --> C1
|
||||
subgraph C["🧪 C · All of 057 and 058"]
|
||||
C1["🧪 Unit, then e2e once"] --> C2{"🟢 Green?"}
|
||||
C2 -- "🔴 no: fix" --> C1
|
||||
C2 -- "🟢 yes" --> CF{"💬 Operator feedback?"}
|
||||
CF -- "✏️ changes" --> A1
|
||||
end
|
||||
CF -- "👍 fits" --> D1["🏁 Review, commit and push with operator OK, hand-over"]
|
||||
```
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
### Coach repository
|
||||
|
||||
- [ ] The repository holds `skills/kvb-coach`, `skills/kvb-coach-on`,
|
||||
`skills/kvb-coach-off`, `skills/kvb-coach-meditation`, `tests/`, a
|
||||
README, the licence of the skills repository and a `make test` target.
|
||||
- [ ] `coach.py schedule on` and `schedule off` write only the `coach` row
|
||||
of `schedules.json` and keep every other row byte for byte.
|
||||
- [ ] `reminder.sh` prints nothing while the row is off or the file is
|
||||
missing.
|
||||
|
||||
### Skills repository
|
||||
|
||||
- [ ] `skills-lock.json` lists the four coach skills with `source`
|
||||
`kevinveenbirkenbach/coach` and one commit; `make install` installs
|
||||
them into `~/.claude/skills`.
|
||||
- [ ] `git grep -n kvb-coach` in skills finds only the lock, the installer's
|
||||
reminder list, the README pointer to the coach repository, the
|
||||
`coach` row's hook path in `schedules.py` (057), the tests of those and
|
||||
the CHANGELOG history. Amended during implementation (2026-11-25): the
|
||||
first draft forgot the 057 row and the history.
|
||||
- [ ] `skills/kvb-coach*`, `tests/test_coach.py` and `tests/test_meditation.py`
|
||||
are gone.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit (coach repository): `test_coach.py` and `test_meditation.py`
|
||||
moved; a test for `schedule on` and `off` and for the silent reminder.
|
||||
- [ ] Integration: skills `test_install.py` checks the lock entries and the
|
||||
registered reminder.
|
||||
- [ ] E2E: n/a: no page change beyond the Schedules row of 057.
|
||||
@@ -0,0 +1,91 @@
|
||||
# 059 - Hub Poll Cost
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want the hub to rebuild and send only what changed, so
|
||||
that an open page costs little CPU, memory and bandwidth.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Register cache** (operator): `read_register` keeps the parsed
|
||||
`rasci.json` keyed by its (inode, size, mtime_ns), as `History.rows`
|
||||
does; one shared, read-only dict serves the state, the events, the rates
|
||||
and the runner's previews.
|
||||
2. **Unused fields go** (operator): the state drops `register`, which no
|
||||
page module reads, and the radio rows' `speech`, which `word` and `rest`
|
||||
already carry.
|
||||
3. **Cached polls** (operator): `/api/state` without `to` shares
|
||||
`live_state` by `from` rounded to the cache TTL and caches the encoded
|
||||
bytes with the dict; `/api/events` answers 304 to an `If-None-Match`
|
||||
that matches the window's digest; `drawStream` keeps its rows when the
|
||||
shown ids are unchanged. Amended 2026-11-25 in the implementation: the
|
||||
kept rows also need unchanged content and inbox items, since a review or
|
||||
decision changes its status under the same id; only the polls skip, every
|
||||
other redraw (a diff, a grant, a filter) still draws.
|
||||
4. **Hidden tab** (operator): the sky, relayout and radio-sync intervals
|
||||
skip while `document.hidden` and run once on `visibilitychange`; the
|
||||
music graph stops while `musicLevel()` is 0 and restarts when it rises.
|
||||
Amended 2026-11-25 in the implementation: the radio sync keeps switching
|
||||
a playing station on its schedule in a hidden tab and skips only the
|
||||
station drawing, since a station is mostly heard with the tab in the
|
||||
background; the sky draws once on `visibilitychange` through the state
|
||||
load the event already starts.
|
||||
5. **Measured**: one state build and one events build are timed before and
|
||||
after on the same council (`kvb-check-efficiency` velocity); the numbers go into the
|
||||
hand-over. The skeptic's figures were estimates from file sizes.
|
||||
Measured 2026-11-25 on a copy of the live council (3.4 MB `rasci.json`,
|
||||
185 KB `news.jsonl`), HubCase with TTL 0, median of 10 polls:
|
||||
`/api/state` 155.0 → 72.9 ms and 1,248,250 → 828,740 bytes,
|
||||
`/api/events` 65.7 → 10.7 ms at 201,454 bytes. The run also found a
|
||||
057 field shadowing the cron rows of `/api/events` (057 decision 2).
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🖥️ A · Server"]
|
||||
A1["⏱️ Time state and events builds"] --> A2["🗃️ Register cache"]
|
||||
A2 --> A3["✂️ Drop register and speech"] --> A4["♻️ Shared builds and 304"]
|
||||
end
|
||||
A4 --> B1
|
||||
subgraph B["🌙 B · Page"]
|
||||
B1["🙈 Hidden-tab intervals"] --> B2["🔇 Music off at level 0"]
|
||||
B2 --> B3["📜 Stream keeps unchanged rows"] --> B4["✍️ Tests written, not run"]
|
||||
end
|
||||
B4 --> C1
|
||||
subgraph C["🧪 C · Verification"]
|
||||
C1["🧪 Unit, then e2e 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
|
||||
|
||||
### Server
|
||||
|
||||
- [ ] Two `/api/state` calls on an unchanged `rasci.json` parse it once.
|
||||
- [ ] The state holds no `register` key and no radio row holds `speech`.
|
||||
- [ ] Two polls within the TTL share one build and one encoding.
|
||||
- [ ] `/api/events` with the current ETag answers 304 without a body.
|
||||
|
||||
### Page
|
||||
|
||||
- [ ] A hidden tab draws no sky for 60 s; `visibilitychange` draws once.
|
||||
- [ ] Music level 0 stops the audio graph; a rise restarts it.
|
||||
- [ ] `drawStream` replaces no row when the shown ids are unchanged.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: the parse counter, the absent fields, the ETag and fake-timer
|
||||
page probes.
|
||||
- [ ] Integration: a `HubCase` state and events with and without changes.
|
||||
- [ ] E2E: Chromium at three widths: Stream keeps its rows across polls,
|
||||
a hidden tab stops the sky, the music stops at level 0.
|
||||
@@ -0,0 +1,84 @@
|
||||
# 060 - Host Hook and Timer Load
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want the skills' hooks and timers to start as few
|
||||
processes as they need, so that agents and the machine stay fast.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **One dispatcher** (operator): `kvb-org-organize/scripts/hooks.py
|
||||
pre-bash` and `post-bash` import radio, watch, queue, graph and log once
|
||||
and run each handler in its own `try`; the first exit 2 wins;
|
||||
`enable-plugins.js` registers it instead of the six Bash entries and
|
||||
rewrites old ones. Each handler keeps its own script for direct calls.
|
||||
Amended 2026-11-25 in the implementation: the radio block keeps its
|
||||
entry for `Edit|Write|MultiEdit|NotebookEdit` and the code graph hook its
|
||||
entry for `Read|Edit|Write|MultiEdit|NotebookEdit|Grep|Glob`, the tools
|
||||
whose input names a path; a crash counts as exit 0 so the other handlers'
|
||||
JSON answers survive.
|
||||
2. **Runner ledger** (operator): a running job's output stays in memory or
|
||||
in one file per job; `jobs.json` is written on a status change only;
|
||||
finished and dismissed jobs are pruned; git toplevels are cached per
|
||||
directory until HEAD, a ref or `packed-refs` moves; the previews poll
|
||||
every 10 s, the jobs stay at 2 s.
|
||||
3. **Token scan** (operator): resources `tokens` gets its own timer every
|
||||
10 minutes; `sample` stays at 60 s and starts `queue.py` only while the
|
||||
queue holds a waiting or active entry.
|
||||
4. **Timers** (operator): the firewall view gets the tree heartbeat
|
||||
`ExecCondition` and writes only on a change; the sessions snapshot runs
|
||||
every 30 s and skips an unchanged write; the graph supervisor checks
|
||||
every 120 s. Amended 2026-11-25 in the implementation: the firewall also
|
||||
runs while a signed job waits; an unchanged sessions snapshot is still
|
||||
rewritten every 120 s, since the hub drops one older than five minutes.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🪝 A · Hooks"]
|
||||
A1["🔀 hooks.py dispatcher"] --> A2["🧩 enable-plugins.js rewrites the entries"]
|
||||
end
|
||||
A2 --> B1
|
||||
subgraph B["⏲️ B · Runner and units"]
|
||||
B1["📒 Ledger on status change"] --> B2["🌳 Cached git toplevels"]
|
||||
B2 --> B3["🔟 Token timer, lean sample"] --> B4["🧭 Firewall, sessions, graph intervals"]
|
||||
B4 --> B5["✍️ Tests written, not run"]
|
||||
end
|
||||
B5 --> C1
|
||||
subgraph C["🧪 C · Verification"]
|
||||
C1["🧪 Unit and integration"] --> C2{"🟢 Green?"}
|
||||
C2 -- "🔴 no: fix" --> C1
|
||||
C2 -- "🟢 yes" --> CF{"💬 Operator feedback?"}
|
||||
CF -- "✏️ changes" --> A1
|
||||
end
|
||||
CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
|
||||
```
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
### Hooks
|
||||
|
||||
- [ ] One Bash call starts one Python per hook event, counted by a fake
|
||||
interpreter; every handler's exit 2 and output stay as before.
|
||||
- [ ] A crash in one handler leaves the other handlers running.
|
||||
|
||||
### Runner and units
|
||||
|
||||
- [ ] A running job with output writes `jobs.json` 0 times until it ends.
|
||||
- [ ] The unit files hold the intervals and conditions of decisions 3
|
||||
and 4.
|
||||
- [ ] `sample` with an empty queue starts no `queue.py`.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: dispatcher order, exit codes and crash isolation; ledger
|
||||
writes; `sample` without a queue; the unit file pins.
|
||||
- [ ] Integration: `enable-plugins.js` rewrites the six Bash entries to
|
||||
two.
|
||||
- [ ] E2E: n/a: no page change.
|
||||
@@ -0,0 +1,81 @@
|
||||
# 061 - Bounded Council Files
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want the council files on hot paths to stay small and be
|
||||
read only when they changed, so that every prompt and Bash call stays cheap
|
||||
as the weeks pass.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Queue histories** (operator): `kvb-org-queue-cleanup` trims both queue
|
||||
histories to 30 days (`WINDOW_SECONDS`); `learned()` is memoized per
|
||||
process on both files' (mtime_ns, size). Amended 2026-11-25 in the
|
||||
implementation: the trim opens every round, before the chair check; a
|
||||
line that is no history row stays, and rows appended during the rewrite
|
||||
follow into the new file; the memo also keys on the inode and the
|
||||
config's learning keys.
|
||||
2. **Alerts** (operator): the `alerts.jsonl` read is skipped while its size
|
||||
and mtime match the seen marker; rows past `ALERT_TTL` are dropped on
|
||||
append; a memory stage is entered at once and left only after 2 samples
|
||||
below it; "recovered" lines go to the chair only. Amended 2026-11-25 in
|
||||
the implementation: the marker also holds the inode; an alert row carries
|
||||
`chair`, and the disk "recovered" line is chair-only too.
|
||||
3. **Mirror tail** (operator): the mirror stores the source's (inode, size)
|
||||
and appends only the grown tail; a shrunk file or a new inode takes the
|
||||
full merge. Amended 2026-11-25 in the implementation: the marker is
|
||||
`.<name>.mirrored` beside the kept copy, and the stored size ends at the
|
||||
last complete line, so a row still being written waits for the next
|
||||
mirror. Amended 2026-11-25 after `make test`: an unchanged source is
|
||||
skipped by the marker (same inode, marked size equal to its size), not
|
||||
by an equal mtime; a copy created or a row appended in the source's
|
||||
timestamp tick shared its mtime and lost those rows.
|
||||
4. **Queue hold** (operator): the signal handler sets a `threading.Event`,
|
||||
and a waiting hold waits on it for `POLL_SECONDS` instead of 0.2 s
|
||||
ticks. Amended 2026-11-25 in the implementation: `Event.set()` inside a
|
||||
signal handler can deadlock when the signal lands while the main thread
|
||||
holds the event's lock in `Event.wait()`; the hold uses
|
||||
`signal.set_wakeup_fd` on a pipe and `select` for `POLL_SECONDS`
|
||||
instead, which wakes at once on a signal the same way.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🗄️ A · Files"]
|
||||
A1["✂️ Trim queue histories"] --> A2["🧠 Memoized learned()"]
|
||||
A2 --> A3["🚨 Alerts skip, TTL, hysteresis"] --> A4["🪞 Mirror tail"]
|
||||
A4 --> A5["⏳ Event wait in the hold"] --> A6["✍️ Tests written, not run"]
|
||||
end
|
||||
A6 --> C1
|
||||
subgraph C["🧪 C · Verification"]
|
||||
C1["🧪 Unit and integration"] --> C2{"🟢 Green?"}
|
||||
C2 -- "🔴 no: fix" --> C1
|
||||
C2 -- "🟢 yes" --> CF{"💬 Operator feedback?"}
|
||||
CF -- "✏️ changes" --> A1
|
||||
end
|
||||
CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
|
||||
```
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- [ ] A cleanup round leaves no history row older than 30 days and keeps
|
||||
every newer row byte for byte.
|
||||
- [ ] Ten prompts with an unchanged `alerts.jsonl` read it once.
|
||||
- [ ] A memory value flapping around its threshold sends one alert per
|
||||
stage change, not per sample; a non-chair gets no "recovered" line.
|
||||
- [ ] A grown source mirrors only its new rows; a rewritten one merges.
|
||||
- [ ] A waiting hold wakes at most once per `POLL_SECONDS` without a
|
||||
signal, and at once on one.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: trim, memo, alert skip and hysteresis, mirror tail and merge,
|
||||
event wait.
|
||||
- [ ] Integration: a cleanup round on a fixture council.
|
||||
- [ ] E2E: n/a: no page change.
|
||||
@@ -0,0 +1,98 @@
|
||||
# 062 - Lean Agent Output
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want scripts and hooks to hand agents only what they
|
||||
use, so that sessions spend fewer tokens and fewer turns.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **Short dumps** (operator): `rasci.py show` lists the top 30 by rank
|
||||
plus "N more (show --all)", and the rasci skill summarizes instead of
|
||||
reprinting; `radio.py show --since <duration> --summary` prints the
|
||||
counts per class and peer and the last row of each; `kvb-org-matrix`
|
||||
and the radio hint use it. Amended 2026-11-25 in the implementation: the
|
||||
table keeps its two head lines and the gaps line, which names the shown
|
||||
rows only, so 30 rows print at most 34 lines, 33 without a gap; the
|
||||
radio hint reads `radio.py show --all --since 1d --summary`.
|
||||
2. **Quieter hooks and tools** (operator): call receipts alone never exit 2
|
||||
and ride the next context as "read by X HH:MM" without the text;
|
||||
`enable-plugins.js` narrows the codebase-memory-mcp PreToolUse matcher to
|
||||
`Grep|Glob` and drops its PostToolUse `Read` entry after the install;
|
||||
`operator.py list` shows each command once and `add` dedupes by
|
||||
directory and command; `security.py` prints `critical <n>` by default and
|
||||
the skill drops `--json`. Amended 2026-11-25 in the implementation:
|
||||
- Receipts alone wait at the Stop hook and ride the next prompt hook as
|
||||
`MAIL CALL read by X HH:MM (your call of HH:MM)`; with a letter pending
|
||||
the Stop mailbox takes them along, oldest first.
|
||||
- `scripts/graph-hooks.js` narrows the graph hooks in
|
||||
`~/.claude/settings.json` right after the codebase-memory-mcp installer
|
||||
in `install.sh`: `enable-plugins.js` runs earlier and writes
|
||||
`settings.local.json`, which never holds the installer's hooks. It also
|
||||
drops the duplicate entries every reinstall adds; an entry mixing the
|
||||
graph binary with another hook stays as it is.
|
||||
- A second `add` of an open command in the same directory by another
|
||||
session joins that row as one more A and keeps its session; the same
|
||||
session may record one command for two steps on purpose, as the
|
||||
existing operator tests do. `list` prints `step N` in the table and the
|
||||
command once in its bash block.
|
||||
- The line reads `🛡️ security <n> % critical <c> (medusa: ...)`.
|
||||
3. **Trims** (operator): `budget.py` fails a `MEMORY.md` over 400 words; the
|
||||
Capacity section of `kvb-org-organize` moves to `capacity.md`;
|
||||
`kvb-check-speed` folds into `kvb-check-efficiency`; `kvb-skill-silence`
|
||||
names the compact window `enable-plugins.js` writes (300000). Amended
|
||||
2026-11-25 in the implementation: `budget.py --memory <path>` takes the
|
||||
index, repeatable, a missing file counting as empty; `kvb-org-organize`
|
||||
keeps a two-line Capacity pointer to `capacity.md`, and its schedules
|
||||
moved into their own `## Schedules` section.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes" --> A1
|
||||
subgraph A["🤫 A · Output"]
|
||||
A1["📋 Short rasci and radio dumps"] --> A2["📨 Receipts without a turn"]
|
||||
A2 --> A3["🕸️ Narrow graph hooks"] --> A4["🧾 operator.py and security.py lines"]
|
||||
end
|
||||
A4 --> B1
|
||||
subgraph B["✂️ B · Trims"]
|
||||
B1["🧮 MEMORY.md cap"] --> B2["📦 Capacity to capacity.md"]
|
||||
B2 --> B3["🔗 speed into efficiency"] --> B4["✍️ Tests written, not run"]
|
||||
end
|
||||
B4 --> C1
|
||||
subgraph C["🧪 C · Verification"]
|
||||
C1["🧪 Unit and integration"] --> C2{"🟢 Green?"}
|
||||
C2 -- "🔴 no: fix" --> C1
|
||||
C2 -- "🟢 yes" --> CF{"💬 Operator feedback?"}
|
||||
CF -- "✏️ changes" --> A1
|
||||
end
|
||||
CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
|
||||
```
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- [ ] `rasci.py show` on 600 open rows without gaps prints at most 33
|
||||
lines, the last `570 more (show --all)`.
|
||||
- [ ] `radio.py show --summary` prints one line per class and peer.
|
||||
- [ ] A batch of receipts alone exits 0 and prints nothing.
|
||||
- [ ] After the install the graph hooks match `Grep|Glob` only and no
|
||||
`Read` entry is left.
|
||||
- [ ] `operator.py list` prints each command once; `add` twice keeps one
|
||||
row.
|
||||
- [ ] The default `security.py` output names the critical count in one
|
||||
line.
|
||||
- [ ] `budget.py` exits 1 on a 401-word `MEMORY.md`; `kvb-check-speed` is
|
||||
gone and every reference points to `kvb-check-efficiency`.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: each script output above; the `budget.py` memory cap.
|
||||
- [ ] Integration: `graph-hooks.js` on a settings fixture with the graph
|
||||
hooks (`tests/test_lean_output.py`); the naming test without
|
||||
`kvb-check-speed`.
|
||||
- [ ] E2E: n/a: no page change.
|
||||
@@ -0,0 +1,83 @@
|
||||
# 063 - One Commit Block
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want one script to build a commit's score table and
|
||||
message block, so that a commit loads three skills instead of eleven.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
||||
|
||||
1. **One script** (operator): `kvb-check-score/scripts/block.py --repo
|
||||
<tree> --fix <n> --break <n>` runs `tokens.py`, `measure.py`, the speed
|
||||
check, `security.py` (the critical count) and `gate.py status`, then
|
||||
prints the commit table and the `--message-block` paragraph; its exit
|
||||
codes are `score.py`'s (4 critical, 1 below 90/5, 3 ask again, 0 pass).
|
||||
Amended 2026-11-25 in the implementation:
|
||||
- `--base <ref>` is required as for every script it runs; `tokens.py`
|
||||
runs on `--transcripts <dir>` (skill text changed, with `--saves` and
|
||||
`--evidence` passed on as its `--value`), `measure.py` on
|
||||
`-- <command...>` (runnable code changed), the higher tokens figure
|
||||
counting when both ran; without either, tokens and velocity are `-`.
|
||||
The speed check is `measure.py`'s velocity since 062 folded
|
||||
`kvb-check-speed` into `kvb-check-efficiency`.
|
||||
- Figures are read by their shape (`<n> %`, `new`, `<n> % critical <c>`,
|
||||
`value <n:n>`), never by a label, so `labels.json` stays the one place
|
||||
for labels.
|
||||
- The output adds the `gate.py status` verdict between table and block,
|
||||
and an `after the commit:` line with the `score.py --commit-table
|
||||
--commit <hash>` call, so the table after the commit reuses the
|
||||
measured figures instead of measuring again.
|
||||
- A script that exits outside its result codes or prints no figure
|
||||
stops the run with exit 2 and `block: <script> exited <code>: <last
|
||||
line>` before anything is printed.
|
||||
2. **Shorter chain**: `kvb-git-commit-no-verify` calls `block.py`;
|
||||
`kvb-check-confidence` keeps the calibration rules; the score,
|
||||
efficiency and security skills keep their scripts for direct use.
|
||||
Amended 2026-11-25 in the implementation: `kvb-git-commit-next` and
|
||||
`kvb-check-confidence` point to step 2 of `kvb-git-commit-no-verify`
|
||||
instead of restating the chain, and `kvb-check-score` names `block.py`
|
||||
in one sentence. The three skills count the scoring chain; the clean,
|
||||
legal and hub-approval passes of step 1 and 3 stay their own concerns.
|
||||
3. **Judgement stays**: fix confidence and break risk stay the agent's
|
||||
inputs (`kvb-check-break-risk`); `block.py` never estimates 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 · Commit block"]
|
||||
A1["🧪 Golden output of today's chain"] --> A2["🧩 block.py"]
|
||||
A2 --> A3["🔗 commit-no-verify calls it"] --> A4["✂️ confidence keeps calibration"]
|
||||
A4 --> A5["✍️ Tests written, not run"]
|
||||
end
|
||||
A5 --> C1
|
||||
subgraph C["🧪 C · Verification"]
|
||||
C1["🧪 Unit and integration"] --> C2{"🟢 Green?"}
|
||||
C2 -- "🔴 no: fix" --> C1
|
||||
C2 -- "🟢 yes" --> CF{"💬 Operator feedback?"}
|
||||
CF -- "✏️ changes" --> A1
|
||||
end
|
||||
CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
|
||||
```
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- [ ] `block.py` on a fixture repository prints the same table and block as
|
||||
today's chain of single scripts (golden test).
|
||||
- [ ] Its exit codes match `score.py`'s for a critical finding, a 90/5
|
||||
miss, an over-budget ask and a pass.
|
||||
- [ ] The commit path names `block.py` and loads at most three SKILL.md
|
||||
files: commit-no-verify, confidence and break-risk.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: the golden output, the exit codes, a failing sub-script named
|
||||
(`tests/test_block.py`).
|
||||
- [ ] Integration: `block.py` with fake tokens, measure, security and gate
|
||||
scripts beside the real `score.py`.
|
||||
- [ ] E2E: n/a: no page change.
|
||||
@@ -35,3 +35,35 @@ skill defines the format.
|
||||
- [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)
|
||||
- [032 - Send in the Field](032-send-in-the-field.md)
|
||||
- [033 - Coherent Speak Box](033-coherent-speak-box.md)
|
||||
- [034 - Stream Head Band](034-stream-head-band.md)
|
||||
- [035 - Match Full Width](035-match-full-width.md)
|
||||
- [036 - Match Pile](036-match-pile.md)
|
||||
- [037 - Home without Box](037-home-without-box.md)
|
||||
- [038 - Badge to Match](038-badge-to-match.md)
|
||||
- [039 - Match Rejects Survive](039-match-rejects-survive.md)
|
||||
- [040 - Release Card](040-release-card.md)
|
||||
- [041 - Code Marks in the Review Modal](041-review-code-marks.md)
|
||||
- [042 - Why Deny Is Off](042-why-deny-is-off.md)
|
||||
- [043 - Undo Window on a Clock](043-undo-window-clock.md)
|
||||
- [044 - Widgets without Inner Boxes](044-widgets-without-inner-boxes.md)
|
||||
- [045 - Artifacts Head on One Line](045-artifacts-head-one-line.md)
|
||||
- [046 - Accept the Risk of a Red Gate](046-accept-red-gate-risk.md)
|
||||
- [047 - One Code Box](047-one-code-box.md)
|
||||
- [048 - Done Rows Greyed and Folded](048-done-rows-folded.md)
|
||||
- [049 - One Control Height](049-one-control-height.md)
|
||||
- [050 - Menus Stay Open](050-menus-stay-open.md)
|
||||
- [051 - Radio Settings in the Device Card](051-radio-settings-in-device.md)
|
||||
- [052 - Bubbles Beside the Modes](052-bubbles-beside-modes.md)
|
||||
- [053 - Agent Settings on Every Face and Name](053-agent-settings-on-faces.md)
|
||||
- [054 - Pin Only by Menu](054-pin-only-by-menu.md)
|
||||
- [055 - WASD in Match](055-wasd-in-match.md)
|
||||
- [056 - Flowing Card Edge](056-flowing-card-edge.md)
|
||||
- [057 - Schedules in Controls](057-schedules-in-controls.md)
|
||||
- [058 - Coach Repository](058-coach-repository.md)
|
||||
- [059 - Hub Poll Cost](059-hub-poll-cost.md)
|
||||
- [060 - Host Hook and Timer Load](060-host-hook-timer-load.md)
|
||||
- [061 - Bounded Council Files](061-bounded-council-files.md)
|
||||
- [062 - Lean Agent Output](062-lean-agent-output.md)
|
||||
- [063 - One Commit Block](063-one-commit-block.md)
|
||||
Reference in new issue
Block a user