Repository navigation
GUIDE SDD v1.16.0
v1.16.0 — static analysis, mutation testing, real seam checkers (per SDD-amend-v1.16.0, 2026-10-07)
No invariant change; still ten. The bank now checks the code beyond the suite.
static_check(closes #7): a new generic gate, ps1/sh twins. It runscheckCmd(lint + type-check + format check), which is mandatory likesuiteCmd: unset is exit 2, and"none"opts out on the record.staticCheck.findingRegex+baselinegive the brownfield ratchet: findings above the baseline FAIL, below it PASS with a note to lower it, a non-zero exit with no matching line FAILs, and so does an exit code outsidestaticCheck.findingExitCodes(default 0, 1): a crash after some findings is not a count.run_allruns it beforesuite_green; Stage 6 closes on it; Validation re-runs it.- Per-edit feedback (Claude Code plugin):
hooks/static-feedback.sh, PostToolUse on Edit/Write/MultiEdit. It runsstaticCheck.fileCmdon the edited file underfileGlobs(defaultpaths.code) and hands the findings back at once (exit 2); the edit stands. - Rule kind
command(closes #8): any rule gate (constitution_lint,seam_conformance,qa_import_ban) can run a real checker (import-linter, dependency-cruiser, ArchUnit, NetArchTest, go-arch-lint). Exit 0 passes; a failure prints the last 10 output lines. mutation_check(closes #9): a new optional gate, ps1/sh twins.mutation.cmdruns with{base}set to the QA-frozen SHA, so it can mutate only the diff. WithscoreRegex, the score is compared withminScore; without it, the exit code decides; unset prints "not configured". Validation's verification-gap lens reads the surviving mutants: each in changed code is atestfinding, routed to QA.- Integrity: the default
testGlobsnow lists linter, mutation and architecture-checker config files, so they freeze with the tests. The docs say to ban inline suppressions with aconstitutionRulesrow. - INIT §5 proposes
checkCmd,fileCmd,mutation.cmdand seam checkers per detected stack (table ingates/README.md). Project Details gainsTOOL-7(static check) andTOOL-8(mutation). - Updating: the config merge adds
checkCmdas a placeholder, sostatic_checkexits 2 and the bank stops until you set it (or set"none"). - Hardened before release, after an adversarial review:
- Configured commands run with stdin closed, so a command that reads stdin can no longer swallow the later rules and PASS.
- Invalid
findingRegex/scoreRegexvalues, inline flags and lazy quantifiers are config errors (exit 2), never a silent count. to_ererewrites\d/\w/\sinside brackets ([\d.]->[0-9.]), so both twins read them alike.false, oversized and.-only numbers are rejected identically in both twins.- Multi-line commands are refused, because
cmd /cruns only the first line. - The hook strips the root correctly on non-ASCII paths.
- Each fix has a smoke negative control on both twins.
flow.html: an animated flow map (route x host tier x deployment x coverage, plus the gate switches), published on GitHub Pages beside the landing page, which links to it.