Metadata-Version: 2.4
Name: refcheck-all
Version: 0.1.0
Summary: One CI step instead of five: run every referencesource.org stale-reference checker over a repository — retired AI model ids, runtimes past end of support, deprecated cryptography, withdrawn ISO editions, and published provisions your Terraform already speaks to. Every finding prints the sentence on the source's own page that states it.
Author: referencesource.org
License: CC0-1.0
Project-URL: Homepage, https://referencesource.org/tools/
Project-URL: Source, https://referencesource.org/tools/
Keywords: ci,lint,audit,deprecation,end-of-life,eol,technical-debt,upgrade,compliance,pre-commit,model-deprecation,cryptography,iso,terraform,supply-chain,references
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: model-pin-check
Requires-Dist: eol-pin-check
Requires-Dist: crypto-deprecation-check
Requires-Dist: iso-standard-check
Requires-Dist: infra-provision-check
Dynamic: license-file

# refcheck-all

One CI step instead of five. It runs **every** stale-reference checker
referencesource.org publishes for Python over your repository and prints one
report: retired AI model ids, runtimes and databases past end of support,
cryptographic algorithms NIST has deprecated, ISO and IEC editions ISO's own
register marks withdrawn, and the published provisions your Terraform and
docker-compose files already speak to.

Every finding prints **the sentence on the source's own page that states it**,
and a link to the page it came from, so you can check the answer instead of
trusting it.

```
$ refcheck-all

refcheck-all 0.1.0 — /src/app, 2026-11-30

  model-pin-check            1 finding
  eol-pin-check              1 finding
  crypto-deprecation-check   1 finding
  iso-standard-check         2 findings
  infra-provision-check      1 finding (0 must fix, 1 advisory)

✗ claude-3-sonnet-20240229 at app.py:2 — gone   [model-pin-check]
    the source says: "| July 21, 2025   | `claude-3-sonnet-20240229` | `claude-sonnet-5-5`     |"
    record: https://referencesource.org/ai-model-deprecation-and-retirement/claude-3-sonnet-20240229/
✗ Node.js 16 at Dockerfile:1 — security-ended   [eol-pin-check]
    the source says: ""name":"16","label":"16 (LTS)","releaseDate":"2021-04-20","isEol":true,…"
    record: https://referencesource.org/software-end-of-support/node-js-16-lts/
✗ SHA-1 at app.py:4 — Deprecated   [crypto-deprecation-check]
    the source says: "Rev. 3 proposes moving the minimum classical security strength from 112 bits…"
    record: https://referencesource.org/nist-cryptographic-algorithm-deprecation-schedule/
✗ ISO 9001:2008 at spec.md:1 — withdrawn   [iso-standard-check]
    the register names these later editions: ISO 9001:2015
    the source says: "46486,IS,,ISO 9001:2008,Quality management systems — Requirements,…,2008-11-13,4,…"
    record: https://referencesource.org/iso-standard-supersessions/iso-9001-2008/
· aws_s3_bucket.logs at main.tf:1 — encryption-at-rest   [infra-provision-check]
    this block is an S3 bucket and states no `server_side_encryption_configuration`…
    the source says: "Protect the {{ insert: param, sc-28_odp.01 }} of the following information at rest…"
    record: https://referencesource.org/security-compliance-controls/sc-28/

6 findings, 5 must fix, 1 advisory, 5 of 5 checkers ran
$ echo $?
1
```

## Install

```bash
pip install refcheck-all
```

In CI, one step:

```yaml
- run: pip install refcheck-all && refcheck-all
```

It exits **1** when anything must be fixed and **0** otherwise, so it drops
into a pipeline as a single step in place of five.

## Options

```
refcheck-all [path] [options]

  --json            the whole report as JSON, every finding with its source
  --only <name>     run one checker (repeatable)
  --quiet           print only the per-checker lines and the summary
  --no-fail         always exit 0 (report only)
  --self-test       prove the runner's own rules hold (no network)
  -h, --help        the help text, listing what each checker covers
  -v, --version
```

## What it holds: nothing

This package contains no facts. Not one version number, end-of-support date,
model id, algorithm name, standard edition or control citation lives here. Each
checker is a separate package carrying its own data file, built from a record on
referencesource.org with the source quote attached, and this command runs those
checkers and translates their answers into one shape.

That is on purpose: a second copy of the data here would go stale against the
checkers, and you would have no way to tell which copy answered you. The
checkers are declared dependencies with **no upper pin**, so `pip install
refcheck-all` fetches their newest published data rather than a snapshot frozen
on the day this version was released.

## Four things it will not do to you

**It is never greener than the checker it ran.** If any checker exits 1 on its
own judgement, this command exits 1 — even where this command's own must-fix
and advisory split would have called that finding advisory. Replacing five CI
steps with one must not turn a failure into a pass.

**A checker it cannot read is never reported as clean.** If a checker exits 1
and this command reads no findings out of its output — because that checker
changed its output shape — the checker is reported as `UNREADABLE`, the exit
code is 1, and the report tells you to run that checker directly. Saying
"nothing is stale" because a parse failed is the one way a tool like this costs
you something.

**A checker it could not find is named, not passed.** A checker that is not
installed prints `NOT INSTALLED — nothing it covers was checked`, and the
summary repeats it. It is not counted as a failure, because there is nothing to
fail on, and it is never counted as a pass.

**A checker finding nothing has not cleared your repository.** It has found
nothing it holds a record about. Every report says so in those words, because
silence from a checker otherwise reads as a clean bill of health.

## The checkers it runs

| checker | what it covers |
| --- | --- |
| [`model-pin-check`](https://pypi.org/project/model-pin-check/) | AI model ids pinned in code that the vendor has retired or deprecated |
| [`eol-pin-check`](https://pypi.org/project/eol-pin-check/) | runtime and database versions pinned past their end of support |
| [`crypto-deprecation-check`](https://pypi.org/project/crypto-deprecation-check/) | cryptographic algorithms NIST has deprecated or disallowed, called in code |
| [`iso-standard-check`](https://pypi.org/project/iso-standard-check/) | ISO and IEC standard editions cited in the repository that ISO's own register marks withdrawn |
| [`infra-provision-check`](https://pypi.org/project/infra-provision-check/) | published provisions that speak to what your Terraform and docker-compose files already say |

Each one runs on its own too, and each takes the same `--json`.

**`infra-provision-check`'s rows arrive advisory.** It exits 0 whatever it
reads, on purpose, because it quotes published rules and never says a system is
or is not compliant. This command keeps that: its readings are printed with a
`·` rather than a `✗`, counted under `advisory`, and cannot on their own make
your build fail. It is not legal or compliance advice.

## Where the facts come from

Every record behind every finding is on
[referencesource.org/tools/](https://referencesource.org/tools/), which lists
each checker beside the dataset its data is built from: the value, the page it
was taken from, the verbatim sentence on that page that states it, and the date
it was last re-checked. (The other checkers' READMEs link their one dataset
directly; this command runs five, so it points at the shelf rather than picking
one of them for you.) Records are re-verified against the live source on a
schedule; anything found wrong is corrected or withdrawn.

Facts plus a short attributed quote with a link. CC0 licensed. Built and
maintained automatically — no human types these records.

## The same command for a Node repository

`refcheck-all` is the Python build. For a repository whose CI already has Node,
[`repo-stale-check`](https://www.npmjs.com/package/repo-stale-check) is the same
idea on npm, over the npm editions of these checkers.
