Files
skills/docs/requirements/062-lean-agent-output.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

99 lines
4.7 KiB
Markdown

# 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.