|
|
03b8885b6e
|
chore(llm-security): v7.7.2 — language consistency pass
~/.claude/CLAUDE.md specifies English for code and documentation,
Norwegian for dialog only. Norwegian had crept into surface text
across v7.5-v7.7. Translated to English in eight surfaces.
No scanner, hook, or behavior changes — purely surface text.
- 18 skill commands: the HTML Report-step now reads "HTML report:
[Open in browser]" instead of "HTML-rapport: [Åpne i nettleser]"
- scripts/lib/report-renderers.mjs: key-stat labels, lede defaults,
table headers, maturity-ladder descriptions, action-tier labels,
clean buckets, dry-run/apply copy, and JS comments. Regex
alternations /^high|^høy/ and /resolution|løsning/i preserved.
- playground/llm-security-playground.html: same renderer changes
mirrored bit-identical, plus playground-only UI strings (catalog,
breadcrumb aria-label, theme toggle, builder-modal hint,
guide-panel "no projects yet", delete confirmation, alert/copy).
Demo-state fixture content for dft-komplett-demo preserved
(intentional Norwegian persona).
- agents/skill-scanner-agent.md + agents/mcp-scanner-agent.md:
Generaliseringsgrense + Parallell Read-strategi sections translated
to Generalization boundary + Parallel Read strategy.
- README.md: playground architecture prose + Recent versions table
(v7.5.0 — v7.7.1).
- CLAUDE.md: v7.7.1 highlights translated, new v7.7.2 highlights
added.
- ../../README.md: llm-security v7.5.0 — v7.7.1 bullets.
- ../../CLAUDE.md: llm-security catalog entry.
- docs/scanner-reference.md: six runnable-examples table cells.
- docs/version-history.md: new v7.7.2 entry. v7.5-v7.7 narrative
sections left in original language (deferred per operator).
- Version bumped 7.7.1 → 7.7.2 in package.json,
.claude-plugin/plugin.json, README badge + Recent versions,
CLAUDE.md header + state, docs/version-history.md, playground
renderHome hardcoded string, root README + CLAUDE.md llm-security
entries.
Tests: 1820/1820 green. CLI smoke-test: 18/18 commandIds produce
>138 KB self-contained HTML. Browser-dogfood verified.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-19 06:47:44 +02:00 |
|
Kjell Tore Guttormsen
|
d3b1157a08
|
docs(scoring): unify scan/audit/mcp-scanner/posture-assessor to v2 formula
Closes the v7.1.1 out-of-scope item: commands/scan.md:113-114 retained
the v1 formula. Exploration found two more v1 surfaces that v7.1.1
missed: commands/audit.md:46 and agents/mcp-scanner-agent.md:419, plus
agents/posture-assessor-agent.md:376 (caught by the new doc-consistency
test). Four files unified to v2 in one atomic commit.
Three-way → four-way verdict-divergence is now closed:
- scanners/lib/severity.mjs (v2, BLOCK ≥65, WARNING ≥15) — authoritative
- agents/skill-scanner-agent.md (v2 since v7.1.1)
- templates/unified-report.md (v2 since v7.1.1)
- commands/scan.md (v2 — this commit)
- commands/audit.md (v2 — this commit)
- agents/mcp-scanner-agent.md (v2 — this commit)
- agents/posture-assessor-agent.md (v2 — this commit)
New: tests/lib/doc-consistency.test.mjs walks commands/ + agents/ and
asserts NO file contains v1 formula tokens. Pinned regex set:
- score >= 61, score >= 21, score ≥ 61, score ≥ 21
- critical * 25, Critical × 25
- min(100, critical*25 ...)
Plus three v2-cutoff anchors asserting commands/scan.md, commands/audit.md,
and agents/mcp-scanner-agent.md document the v2 BLOCK ≥65 cutoff (or
reference riskScore() helper).
Tests: 1523 → 1551 (+28 from doc-consistency: 25 file walks + 3 anchors).
All green.
|
2026-04-29 13:58:25 +02:00 |
|