🧪 Test / 🧪 Lock + lint (push) Canceled after 0s
064 Code Review: kvb-code-review in skills as wrapper and manager (target, standards, harness review skills, skeptics, memory, stamp, push hook, signed waiver) over Quality's kvb-quality-review, the eighth skill of quality 003; interim lenses until the quality tag. 065 Accounts Spreadsheet Round Trip: CSV/TSV export of the stored account fields and import with column and format mapping, per-row conflict choice, preview then atomic apply, parsed on the hub server with Python's csv module. 022: kvb-quality-performance replaces the speed and efficiency moves (measure.py), tokens.py stays as kvb-skill-tokens; decision 10 keeps block.py in skills under kvb-git-commit-no-verify with its shared constants from quality.agent.score. 🎯 Fix: 99 % 💥 Break: 1 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 98 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8.5 KiB
8.5 KiB
022 - Analysis Skills from Quality
User Story
As the operator, I want the skills make install to install Quality's
kvb-quality-* analysis skills at a pinned version and every skill here to
call them by their new names, so that analysis lives once in Quality and
this repository only orchestrates.
Decisions (operator-confirmed 2026-11-18; do not re-litigate)
- Trigger:
scripts/install.shclones or updates~/Repositories/github.com/infinito-nexus/qualityat the pin and runs itsmake install, asscripts/tokeneconomizer.shdoes for TokenEconomizer. A failed Quality install failsmake installand names Quality, because radio, queue, rasci and other skills import Quality's helpers (decision 9). Rejected: copying Quality's files here; redirect skills under the old names; warning and going on (those skills would break at their first run). - Pin: one Quality tag in
plugins-lock.json; raising it is a reviewed change. - Old names leave: the skills Quality 003 decision 1 takes over
leave
skills/(operator 2026-11-26:kvb-check-security,-legal,-principles,-score,-confidence,-break-risk, and the CPU, RAM and wall-clock half ofkvb-check-efficiency(measure.py, which already absorbedkvb-check-speedin0fad1bf) as ONE skill,kvb-quality-performance, replacing bothkvb-quality-speedandkvb-quality-efficiency;kvb-quality-reviewis new, not a move); the skill-token half (tokens.py) stays askvb-skill-tokens;kvb-check-gatestays here askvb-org-gate(operator 2026-11-18: it orchestrates queue, register and hotfix runs). One script renames every reference (611 files today); its dry run is reviewed before it writes. - Installed leftovers:
kvb-skill-cleanup'slegacy.pyreports each old folder aslegacywith its successor, andmake installremoves it. - Newsletter:
kvb-org-updatenames each rename once, so running agents re-read the new skills. - Release pair: Quality's release first, then this repository's release raising the pin; neither alone.
- First contracts:
.quality/architecture.ymlhere declares contracts for Quality 005 decision 3 only after an import-graph read confirms them; an existing violation becomes a decision for the operator. - Hub reads every block: the hub's score parser in
orchestrator/reads the Quality 006 block and every older form (one line joined with·, lines withoutMetrics:); Match cards show eight metric chips (🎯 💥 💸 ⏱️ 🛡️ ⚖️ 🏛️ 🏆) and the gate. Moved here from Quality 006: the hub lives in this repository. - Helpers from Quality's package (operator 2026-11-18: skills depends
on Quality, never the reverse, nothing twice):
kvb-org-organize'snofollow.pyleaves forquality.agent.nofollow;councilroot.pykeeps its migration and settings logic but takes the root rule fromquality.agent.state;kvb-code-clean'sdefaults.pyleaves once Quality'sclean.default-valuereaches recall 1.0 on core (Quality 003), andkvb-code-cleanthen reads that rule fromquality check --staged --json; until thendefaults.pytakes its diff parser fromquality.agent.diff.kvb-code-cleanstep 3 runskvb-quality-architecture, whose limits live in Quality'srules/clean.yml(Quality 005 retiresprinciples.pyforquality --staged --json), instead of naming its own. Every script that uses a helper importsquality.agentand starts with#!/usr/bin/env kvb-quality-python(Quality 003 decision 8); this repository's tests run under that interpreter. Hook commands in settings files that call such a script withpython3change too, as operator rows. - The commit block stays here (Quality 2026-11-26, from Quality 003
decision 8):
kvb-check-score/scripts/block.pyandtests/test_block.pystay in this repository, because block.py runstokens.py(kvb-skill-tokens) andgate.py(kvb-org-gate); it moves tokvb-git-commit-no-verify/scripts/block.py, the skill that prints the block into the commit message, and calls~/.claude/skills/kvb-quality-score/scripts/score.py,kvb-quality-performanceandkvb-quality-securityby their installed paths. The constants it shares with score.py (DASH,NEW,UNKNOWN,percent) come fromquality.agent.score(decision 9; Quality's score.py imports them from there too), never from an import out of a Quality skill folder. Every other file ofkvb-check-scoremoves (score.py, journal.py, backfill.py, labels.json, tables.md, journal.md); a movedSKILL.md(score, confidence) names no script of this repository. Rejected: block.py in Quality (it would call into this repository); besidekvb-org-gateorkvb-skill-tokens(each owns only one of its inputs).
Approach
flowchart TD
subgraph A["🔗 A · Install"]
A1["📌 Pin, trigger, helpers from quality.agent"] --> A2{"🧪 Fresh HOME passes, missing Quality fails loud?"}
A2 -- "🔴 no: fix" --> A1
end
A2 -- "🟢 yes" --> B1
subgraph B["🏷️ B · Rename"]
B1["🔍 Rename script dry run"] --> BF{"💬 Operator reviews the dry run?"}
BF -- "✏️ changes" --> B1
BF -- "👍 fits" --> B2["✍️ Rename, legacy.py successors"]
B2 --> B3{"🧪 Grep empty, suite green?"}
B3 -- "🔴 no: fix" --> B2
end
B3 -- "🟢 yes" --> C1
subgraph C["🚀 C · Land"]
C1["🧾 Commit flow and Match cards show ⚖️ and 🏛️"] --> C2{"🧪 Parser and e2e green?"}
C2 -- "🔴 no: fix" --> C1
C2 -- "🟢 yes: screenshots" --> CF{"💬 Operator feedback?"}
CF -- "✏️ changes" --> C1
end
CF -- "👍 fits" --> D1["🏁 Release pair, newsletter, hand-over"]
Acceptance Criteria
Install
- On a fresh
HOME,make installleaves~/.claude/skills/kvb-quality-score/SKILL.mdand no~/.claude/skills/kvb-check-score. - With the Quality clone unreachable,
make installexits non-zero and its last line names Quality.
Helpers
git ls-files skills/kvb-org-organize/scripts/nofollow.py skills/kvb-code-clean/scripts/defaults.pyprints nothing.git grep -n 'def open_below' -- 'skills/**/*.py'finds no safe-IO definition, andgit grep -n 'AGENTS_COUNCIL_ROOT' -- 'skills/**/*.py'finds no second root rule, andgit grep -n 'def added_lines' -- 'skills/**/*.py'no second diff parser.git grep -n -- '--ccn' -- skills/kvb-code-cleanprints nothing.git grep -l 'quality.agent' -- skillslists only files whose first line is#!/usr/bin/env kvb-quality-python.
Rename
git grep -nE 'kvb-check-(security|legal|principles|score|confidence|break-risk|gate|speed|efficiency)' -- ':!docs/requirements' ':!CHANGELOG.md'prints nothing.kvb-git-commit-no-verify,kvb-git-commit-next,kvb-org-swarm,kvb-dreamandkvb-optimizenamekvb-quality-*.legacy.pylistskvb-check-scoreaslegacywith successorkvb-quality-score, andkvb-check-gatewith successorkvb-org-gate.skills/kvb-org-gate/SKILL.mdcarries the frontmatter namekvb-org-gate, andqueue.pyandhotfix.pyload its scripts.skills/kvb-git-commit-no-verify/scripts/block.pyandtests/test_block.pyexist;git grep -nE '^(from score|import score)' -- skillsprints nothing and block.py importsfrom quality.agent.score; Quality's installedkvb-quality-score/SKILL.mdandkvb-quality-confidence/SKILL.mdname noblock.py.
Commit flow
- A staged fixture commit through
kvb-git-commit-no-verifyprints the block of Quality 006 with ⚖️ and 🏛️.
Hub
- Match cards show the eight metric chips and the gate, both from a Quality 006 block and from a commit message written before 2026-11-18.
Tests
- Unit: rename script tests with a negative control (a left-over
reference fails the grep criterion);
legacy.pysuccessor test; hub parser tests per block form, negative control: a block withoutMetrics:and without·yields no chips. - Integration: install into a temporary
HOMEfrom a local Quality clone at a test tag; ascore.py --message-blockoutput reads back through the hub parser to the same values. - E2E: one commit in a scratch repository through the commit skill shows ⚖️ and 🏛️, and a fixture legal blocker stops it with exit 4; the Match card e2e shows the ⚖️ and 🏛️ chips at 1920, 1366 and 390.