---
id: HSCP-T-002
titre: "Register of vulnerability decisions: every line dated, justified, with a due date"
titre_court: "Check the register of vulnerability decisions"
type: note
objet: test
langue: en
statut: brouillon
version: 0.1
verifie_le: 2026-11-22
traduit_de: LISEZ-MOI.md
traduit_de_version: 0.1
traduit_de_empreinte: 938905d193697145
traduction: modèle de langue, glossaire catalogue/glossaire-en.yaml
source: traduction de LISEZ-MOI.md, version 0.1
sensibilite: interne
licence: Apache-2.0
gestes: [HSCP-G-124]
recette: HSCP-R-011
piece: registre
---

# Register of vulnerability decisions: every line dated, justified, with a due date

## What the test checks

The evidence item is the register of decisions taken on the product's vulnerabilities, one decision per line (JSON Lines). Every line carries:

| Field | Required | Meaning |
|---|---|---|
| `id` | yes | vulnerability identifier (CVE, GHSA or vendor identifier) |
| `composant` | yes | product component concerned |
| `date` | yes | date of the decision |
| `statut` | yes | `corrige` (fixed), `non-expose` (not exposed), `accepte` (accepted) or `attente-amont` (waiting for upstream) |
| `motif` | yes | the reason for the decision, in one sentence |
| `echeance` | for `accepte` and `non-expose` | review date |
| `prochaine_verification` | for `attente-amont` | date of the next check for an upstream fix |
| `lien` | for `corrige` | evidence of the fix: version, commit, report |
| `par` | no | who decides |

The test refuses an unreadable line, a missing required field, an unreadable or future date, a status outside the vocabulary, a reason shorter than ten characters, a missing due date or one earlier than the decision, a fix without a link, and two decisions on the same day for the same vulnerability on the same component.

It also refuses a past due date, but only on the latest decision for a vulnerability: an expired acceptance must be reviewed, and the review is written as a new line.

## Running the test

```sh
python3 verifier.py decisions.jsonl --date 2026-11-22
```

Without `--date`, the test uses the current day. `--json` gives the answer in JSON. Exit code: 0 evidence accepted, 1 evidence refused, 2 incorrect call. Python 3.10 or later, no dependency, no network access.

## Producing the evidence

The register is written by hand or by the team's tracking tool. Free vulnerability scanners (Trivy, Grype, OSV-Scanner) give the list of vulnerabilities to decide on; a VEX file (CycloneDX or OpenVEX) can carry the decisions, to be converted into one line per decision.

## Examples

- `exemples/valide/`: four decisions, one per status. Accepted on 22/11/2026.
- `exemples/refuse/`: a fix without a link, an expired acceptance, an acceptance with neither due date nor real reason, an unknown status. Refused.

## What the test does not say

- It does not say whether the decision is the right one, nor whether the vulnerability is actually fixed or not exploitable.
- It does not say whether every vulnerability of the product has a decision: that requires matching the register against a scan result.
