Files
skills/docs/requirements/047-one-code-box.md
T
Kevin Veen-BirkenbachandClaude Opus 5.5 0fad1bfae3 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>
2026-11-26 08:44:15 +00:00

3.3 KiB

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

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.