Repository navigation
speccheck 1.26.0
speccheck checks a spec-driven build mechanically: it maps every spec ID to the code and tests that cite it. This release ships with the spec-writing, spec-review, spec-plan, spec-model, spec-proof, spec-build and spec-proposal skills, spec2pdf.sh, and install.sh. The code is MIT-licensed and the documents are CC BY 4.0.
This release implements all of SPEC.md v1.26: 356 spec IDs, 225 tests.
speccheck (mock): CONFORMING - 356/356 passing (100.0%), 0 failing, 0 skipped, 0 weak, 0 unverified, 0 untested, 0 uncited; 0 dangling, 0 stale; judge=mock; hazards: 10/10 verified
speccheck (llm): NOT CONFORMING - 355/356 passing (99.7%), 0 failing, 0 skipped, 1 weak, 0 unverified, 0 untested, 0 uncited; 0 dangling, 0 stale; judge=llm; hazards: 10/10 verified
Phase A, the deterministic gate, is clean. It now also runs with speccheck's own tool risk file, so the summary line ends hazards: 10/10 verified.
Phase B, the LLM judge, ran four times with openai/gpt-6-luna-pro via OpenRouter at --judge-concurrency 16. Each run downgraded a different single ID:
- Two were real test gaps, both fixed in this release.
- R-115: nothing exercised the known-anomaly filter.
- I-020: the v1.25 manifest-determinism test never compared identical inputs.
- Two were judge errors.
- E-13: a malformed response.
- E-46: a wrong verdict on an unchanged test that asserts every clause of E-46. Other runs rated the same test
ASSERTS.
The final run's E-46 downgrade was reviewed by hand, and the adjudication was approved. Its unknown_rate was 0.0104 over 1,154 judged edges. All four runs, and the run-to-run agreement (91.7% and 92.9% of verdicts on identical edges), are recorded in SPEC_BUILD_REPORT.md §0q. Re-running until a run came back clean would have been choosing evidence.
This release completes §3.1 of docs/plans/ISO13485_READINESS_PLAN.md, the validation pack. It also delivers §3.5, the development process document, and §3.6, the IEC 62304 templates, and writes up §3.4, what controlling the LLM judge would take.
Package tree SHA-256 (for installation qualification)
package_tree_sha256 d1272546bd055dce34e40e0a61e73a266ff895e0bd241b524547b6da9f9a1748 (64 files)
Three computations of this value agree:
shasum -a 256over the files ofgit archive v1.26.0 src/speccheck;- the value
speccheck qualifyreports for the attached wheel, installed into a fresh environment:qualify: QUALIFIED - IQ 64 files, tree d1272546bd05; OQ 5/5 cases; - the value recorded in
SPEC_BUILD_REPORT.md§0q.
The attached wheel and sdist were built from a clean export of the tag; their SHA-256 sums are in SHA256SUMS.
What is new in 1.26.0 (SPEC.md v1.25 → v1.26)
The intended use (R-110)
SPEC.md §0 now states what a regulated user may rely on:
- Validated function:
check,verifyandimpactwith--judge noneor--judge mock, plus--self-checkandqualify. - Advisory only:
--judge llm,--jev-pre-triageandexplain. They may be used, but their output is not verification evidence.
The same text is packaged in the tool and printed in every qualification record.
speccheck qualify — installation and operational qualification (R-111..R-113)
speccheck qualify --out qualification
# qualify: QUALIFIED - IQ 64 files, tree d1272546bd05; OQ 5/5 cases-
IQ: hashes the installed package into the tree hash above, and checks every hash in the distribution's
RECORD. It readsRECORDdirectly, becauseimportlib.metadatasilently drops entries for deleted files on Python 3.12+. It also records the Python version, the platform and the installed dependency versions. -
OQ: runs five packaged cases, each in a temporary copy of a packaged fixture, under a socket guard:
- the golden fixture (every status);
- the Swift fixture;
--manifest, thenverifybefore and after a one-byte edit;--risk-file, with one hazard eachVERIFIED,NOT_VERIFIEDandUNCONTROLLED;impact.
Each case names the tool hazards it challenges.
-
The record:
qualification.jsonandQUALIFICATION_REPORT.md. They contain the intended use, the environment, the IQ and OQ results, the ten tool hazards, this version's known anomalies, the verdict, and an empty Executed by / Reviewed by signature table. -
Under
uv runin a checkout,qualifyexits1withnot an installed wheel (no hashed RECORD): an editable install cannot be qualified.
speccheck checks its own risk assessment (R-114)
The ten ways the validated function could report a false PASSING, or let a change escape revalidation (TH-01..TH-10), are a v1.25 risk file packaged as speccheck/_qualify/tool_risk.json. The 31 requirements that control them carry *(controls: TH-nn)* markers in SPEC.md, and the build gate runs with --risk-file. A retired or failing control turns the build red.
Known anomalies ship with the code (R-115)
speccheck/_qualify/known_anomalies.json is append-only, and qualify prints every anomaly not yet fixed in the running version. The five open anomalies at 1.26.0:
- KA-01: a row cut by an unescaped
|that keeps its cell count is silent. - KA-02: citation is literal.
- KA-03: the manifest proves which results file was read, not where it came from.
- KA-04: the Lean model predates the v1.25
UNCONTROLLEDexit rule. - KA-05: no OQ case covers the JS/TS adapter.
Documents
docs/validation/: the intended use, the tool risk assessment, the IQ/OQ protocol, the change-control rule and the development process (including its known gaps).docs/templates/: aSPEC.mdprofile for IEC 62304 (safety-class header, SOUP table, the 5.2.2 content map), a traceability matrix generated fromspeccheck.json, and a verification report.docs/plans/JUDGE_CONTROL_ANALYSIS.md: what controlling the LLM judge would take, measured on this build.
Also in this release
- Unchanged commands.
check,impact,explain,verifyand--self-checkwrite and print exactly what 1.25.0 did (I-023). - CI.
.github/workflows/phase-a.ymlruns the Phase A gate on every push and pull request. Phase B stays a manual release step. - PDF links.
spec2pdf.shnow links a label outside the spec's ID families (TH-01,KA-01) to its own definition row, instead of to the start of the section the row sits in. - Spec fixes. Three spec defects found while building were fixed: F-901, F-902 and F-903.
Validation impact (since v1.25.0), from tools/validation_impact.py v1.25.0
Validation impact (since v1.25.0)
Package tree SHA-256 of this release: d1272546bd055dce34e40e0a61e73a266ff895e0bd241b524547b6da9f9a1748 (64 files).
Spec ids changed since v1.25.0: 33.
Tool hazards whose controls changed:
None.
Operational-qualification cases whose fixture, goldens or catalog changed:
| Case | Changed files |
|---|---|
| OQ-01 | src/speccheck/_qualify/cases.json |
| OQ-02 | src/speccheck/_qualify/swift/Package.swift, src/speccheck/_qualify/swift/SPEC.md, src/speccheck/_qualify/swift/Sources/Calc/Calc.swift, src/speccheck/_qualify/swift/Tests/CalcTests/CalcTests.swift, src/speccheck/_qualify/swift/Tests/CalcTests/LegacyTests.swift, src/speccheck/_qualify/swift/golden/SPEC_CONFORMANCE_REPORT.md, src/speccheck/_qualify/swift/golden/speccheck.json, src/speccheck/_qualify/swift/golden/summary.txt, src/speccheck/_qualify/swift/junit.xml, src/speccheck/_qualify/cases.json |
| OQ-03 | src/speccheck/_qualify/cases.json |
| OQ-04 | src/speccheck/_qualify/hazards/SPEC.md, src/speccheck/_qualify/hazards/golden/SPEC_CONFORMANCE_REPORT.md, src/speccheck/_qualify/hazards/golden/speccheck.json, src/speccheck/_qualify/hazards/junit.xml, src/speccheck/_qualify/hazards/proof-results.json, src/speccheck/_qualify/hazards/proof/Fixture.lean, src/speccheck/_qualify/hazards/risk.json, src/speccheck/_qualify/hazards/src/calc/__init__.py, src/speccheck/_qualify/hazards/src/calc/core.py, src/speccheck/_qualify/hazards/src/calc/legacy.py, src/speccheck/_qualify/hazards/src/calc/summary.py, src/speccheck/_qualify/hazards/tests/__init__.py, src/speccheck/_qualify/hazards/tests/test_core.py, src/speccheck/_qualify/hazards/tests/test_summary.py, src/speccheck/_qualify/cases.json |
| OQ-05 | src/speccheck/_qualify/cases.json |
Re-run speccheck qualify after upgrading, whatever this section lists.
In short: no tool hazard's controls changed. v1.26 only added CONTROLS markers, and a marker change is not a spec change (C-27). Every OQ case is listed because the catalog is new in this release. Re-run speccheck qualify after upgrading.
Not yet
- The LLM judge in validated use. See
docs/plans/JUDGE_CONTROL_ANALYSIS.mdfor what it would take. - IEC 62304 software safety classes in the tool. The templates carry the class as a header for reviewers.
- Signed releases. A release is identified by its tag and its tree hash.
Upgrading
Install from the attached wheel, or from a clean checkout of the tag: uv tool install ./speccheck-1.26.0. Then run speccheck qualify and compare its tree hash with the one above.
For a development checkout, git pull and re-run ./install.sh.