iso-standard-check
Find the ISO and IEC standards your repository cites, and fail CI on the ones ISO's own register marks withdrawn or superseded — each with the register row it was read from.
npx iso-standard-check . # scan a repository
npx iso-standard-check docs/ supplier-spec.md # or named paths
npx iso-standard-check --standard "ISO 9001:2008"
FAIL ISO 9001:2015 is withdrawn or superseded — docs/quality-plan.md:12, 48
Quality management systems — Requirements
the register names ISO 9001:2026 as its replacement
register row: 62085,IS,,ISO 9001:2015,Quality management systems — Requirements,…,2015-09-22,5,…
https://referencesource.org/iso-standard-supersessions/iso-9001-2015/
? ISO 14001 names no edition year — docs/quality-plan.md:19
not judged: the register marks 1996, 2004, 2015 withdrawn. Cite the edition
and this becomes a check.
Exit 1 if a cited edition is withdrawn. Exit 0 otherwise.
Why this is hard to do by hand
ISO 9001:2015 is no longer current. ISO published ISO 9001:2026 on 2026-09-16, so every quality plan, supplier spec and audit checklist in the world that cites the 2015 edition now cites a superseded one. That is the ordinary case this checker exists for, and nothing in a repository tells you it happened.
The edition year is the whole difficulty. Every one of the 24,640
identifiers in ISO's register is of the form ISO 9001:2008. ISO 9001:2008 is
withdrawn; its replacement is not. So a document that writes just "ISO 9001"
cannot be judged withdrawn or current by anybody, this program included. Those
citations are printed as unjudged, with the editions of that designation the
register does mark withdrawn, and they never fail your build. Call it with
--strict if you would rather be made to write the edition down.
What the index covers, and what a silence means
The shipped data holds deliverables ISO's register marks withdrawn or superseded, and nothing else.
So a hit is a measurement and a miss is not. A designation this program does not report may be current, may be withdrawn in a later edition of the register than the one we read, or may not exist. It is reported as not in this extract, and it is never printed as "current". If you need "is this one current?", that is a different question and this is not the tool that answers it.
Two things ISO's register does not give, so neither does this package:
- The date a standard was withdrawn. The only date in the file is the
deliverable's own publication date. It is printed as
publishedand never as a withdrawal date. - Any guarantee the named replacement exists as a document. 2,507 of the 24,640 records (10.2%) name at least one replacement the register gives no publication date; on 416 (1.7%) every named replacement is undated — a registered revision project you may not be able to obtain. Both cases say so in the output rather than handing you a designation that cannot be bought.
Where the numbers come from
Every verdict is read from one file: ISO's own open-data deliverables register,
https://isopublicstorageprod.blob.core.windows.net/opendata/_latest/iso_deliverables_metadata/csv/iso_deliverables_metadata.csv
published by ISO under the Open Data Commons Attribution License v1.0, which permits reuse with attribution. Each of the 24,640 records carries the CSV row it was read from, verbatim, and is published on its own page with that row visible:
https://referencesource.org/out/pkg/iso-standard-check/
Nothing in this package computes, normalises or infers a status. It reads what the register states, and where the register states nothing it says so in words. The records are re-checked against the live file on a schedule; the index here carries the date it was built.
As a pre-commit hook
The Python twin on PyPI ships a hook:
repos:
- repo: https://github.com/referencesource/iso-standard-check
rev: v0.1.0
hooks:
- id: iso-standard-check
Or pipx run iso-standard-check .
In a GitHub Actions workflow
- name: ISO citations
run: npx --yes iso-standard-check docs/ specs/
Options
<paths> |
files or directories; defaults to . |
--standard "<id>" |
ask about one designation and exit |
--json |
machine-readable, including every line number |
--quiet |
withdrawn citations only, no unjudged ones |
--strict |
also exit 1 when a citation names no edition year |
Caches, virtualenvs, node_modules and build output are not walked: a citation
inside something you installed is a fact about somebody else's repository.
API
const iso = require('iso-standard-check');
iso.lookup('ISO 13485:2003'); // one designation
iso.scanText(readmeText); // findings with line numbers
iso.scanPaths(['docs']); // grouped by verdict
CC0-1.0. Built by an automated pipeline at referencesource.org; the facts are ISO's and are attributed to ISO on every line.
Release notes
0.2.0 — 2026-11-25
A value this package prints that one of our own later readings of the source
contradicts is now said out loud. When our change feed carries a dated
re-reading of ISO's register that states a different value for a field this
package prints, the record ships an under_review block and the command says
so in its ordinary output, under the replacement line:
FAIL ISO 2382-3:1987 is withdrawn or superseded — spec.md:12
the register names ISO/IEC AWI 2382-3.2 | ISO/IEC 2382:2015 as its replacement, of which ISO/IEC AWI 2382-3.2 has no publication date in the register
A REPORTED CHANGE IS UNDER REVIEW — unpublished_replacement: we print 'ISO/IEC AWI 2382-3.2' above; on 2026-11-18 a re-reading of the same source stated 'ISO/IEC CD 2382-3'. We have not adopted that yet and we are not calling either value verified until we have re-read the source.
Each block carries the value we ship, the value reported, the date we filed the reading, the register row the reading came off, and whether that quoted passage itself states the reported value — measured over our own register it often does not, and saying it did would be the same error one step along.
The key is absent, never an empty array, when nothing contradicts the
record: an empty array would read as "we checked and there is no reported
change", which this data cannot promise, because the feed only holds the
readings somebody has filed. The file-wide figure is under_review_records
with a sentence in under_review_note, also absent at zero.
Why it was not here before: the notice went onto the record pages on referencesource.org on 2026-11-24, and the hold behind it said in as many words that "the error travelled into npm and PyPI where readers pin it, and only the HTML page ever told the truth". A day later that was still true of this package, which is the one shipped package whose dataset held a contradicted value.
0.1.0 — 2026-11-18
First release. Point it at a repository and it prints every ISO or IEC standard
citation whose edition ISO's own register marks withdrawn, with the replacement
and the register row quoted, and exits 1. A citation with no edition year is
never a failure and never a pass: ISO 9001 cannot be judged by anybody, so it
is printed as unjudged with the editions of that designation the register does
mark withdrawn. A designation this program does not report is not thereby
current — the index holds withdrawn deliverables and nothing else.
The two copies
They are the same program in two languages: the same index, the same scanner,
the same verdicts and exit codes, and the same options — --standard/--id,
--json, --quiet, --strict, --version. Neither copy writes to your
files.
Every released version, and what it changed: CHANGELOG.md in this package.
Metadata
Release files for iso-standard-check 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iso_standard_check-0.2.0.tar.gz | 2.4 MB | Without provenance | Details for iso_standard_check-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iso_standard_check-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for iso_standard_check-0.2.0-py3-none-any.whl |
Total release size: 4.8 MB
Release files / iso_standard_check-0.2.0.tar.gz
| Download URL | iso_standard_check-0.2.0.tar.gz |
|---|---|
| Size | 2.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd65063cc286bb4559a9ea08e888cd07f65945187e7a3566c1b4cb92f87cb68f
|
|
BLAKE2b-256 checksum How to use checksums |
1d60dd1f10941c8d9304adbb6537f1930d423623249ba1202bafb6d817befc17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / iso_standard_check-0.2.0-py3-none-any.whl
| Download URL | iso_standard_check-0.2.0-py3-none-any.whl |
|---|---|
| Size | 2.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72b726cb8db5088e14fc1b2226db866657983661d791051fa4358c0dfb0080ab
|
|
BLAKE2b-256 checksum How to use checksums |
41af2407baadcbe0ec8e0fbd947e5ce5cfc401cd76c208cea85e4eddd38e7a72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for iso-standard-check 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.