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,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.
|
||||
Reference in new issue
Block a user