---
id: HSCP-T-005
titre: "Dated accessibility survey whose fingerprints match its description"
titre_court: "Check a dated and sealed accessibility survey"
type: note
objet: test
langue: en
statut: brouillon
version: 0.2
verifie_le: 2026-11-23
traduit_de: LISEZ-MOI.md
traduit_de_version: 0.2
traduit_de_empreinte: 507c69b38de4549d
traduction: modèle de langue, glossaire catalogue/glossaire-en.yaml
source: traduction de LISEZ-MOI.md, version 0.2
sensibilite: interne
licence: Apache-2.0
gestes: [HSCP-G-057, HSCP-G-263, HSCP-G-264, HSCP-G-265, HSCP-G-266, HSCP-G-267, HSCP-G-268, HSCP-G-269, HSCP-G-270, HSCP-G-271, HSCP-G-272]
supports: [web, natif]
recette: [HSCP-R-014, HSCP-R-015]
piece: releve
---

# Dated accessibility survey whose fingerprints match its description

## What the test checks

The evidence item is a folder in the `releve-accessibilite/1` format, produced by the product's accessibility checking chain, for a website or a native application (the format is the same; for an application, a “page” is a screen):

| File | Content |
|---|---|
| `produit.json` | `format` (`releve-accessibilite/1`), `produit`, `date` (YYYY-MM-DD), `outils` (names and versions), `pieces` (relative path → SHA-256 fingerprint), and freely `surfaces`, `pages`, `echantillon` (what is checked and what is not) |
| `controles.jsonl` | one line per page, check and context: `jour`, `surface`, `page`, `controle`, `contexte`, `outil`, `statut` (`ok`, `ecart` or `erreur`), `bloquant` (true or false), and if needed `noeuds`, `wcag_verifies`, `wcag_ecarts`, `wcag_sans_objet` (form `1.4.3`), `rgaa_verifies`, `rgaa_ecarts` (form `8.2`), `detail` |
| `tracabilite.csv` | one line per criterion, separator `;`, columns `referentiel`, `exigence`, `resultat` at least |

The test accepts it if the folder is dated (neither in the future nor older than `--age-max`), if every declared item exists and has the announced fingerprint, if no file in the folder escapes the declaration, and if every check and traceability line has its fields, a known status and well-formed criteria. A single item modified afterwards gets the survey refused.

## Running the test

```sh
python3 verifier.py releve/ --date 2026-11-22 --age-max 31
```

`--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 checking itself belongs to free tools: for the web, axe-core (for example through `@axe-core/cli` or Playwright), Pa11y; for a native application, the platforms' engines plugged into the UI tests (Accessibility Test Framework for Android, the XCUITest accessibility audit). An adapter writes their results in the survey format, then computes the fingerprints (`sha256sum`) into `produit.json`. The test checks only that folder.

## Examples

- `exemples/valide/releve/`: two pages on mobile and desktop, one deviation, one `erreur` line, three traceability lines. Accepted.
- `exemples/refuse/releve/`: the same survey, with the traceability edited after the fingerprints were computed and an unknown status. Refused.
- `exemples/valide-natif/releve/`: a native application, two screens on the `android` and `ios` surfaces, in the `police-200`, `sombre` and `paysage` contexts, two deviations, one `erreur` line (screen not reached), three traceability lines. Accepted.

## What the test does not say

- It does not say whether the product is accessible, nor what conformance rate it reaches: automated checking covers only part of the criteria, and a rate requires an audit of all criteria on a representative sample.
- An `erreur` line (the tool did not conclude) proves nothing: the test counts it, it does not take it as evidence.
- The fingerprints prove that the items have not changed since they were declared, not who produced them: that requires signing `produit.json`.
