Certificate verifier
An AL-MIZAN certificate is not a label: it is the record of a deterministic computation, and anyone can redo it. This page recomputes — it asks for no trust.
1 · The three levels, and what each one fails to prove
| Level | What is recomputed | What it proves | What it does not prove |
|---|---|---|---|
| Integrity | SHA-256 of the canonically serialised content, timestamp excluded | the document was not altered after emission | that the computation was right: a false document still seals perfectly |
| Merkle | root of the assertion tree, paired, odd node carried up | no assertion was added, removed or reordered | any relation between those assertions and the world |
| Replay | the whole gate re-run on the corpus embedded in the document | the verdict printed is the one the computation produces today | that the authoritative corpus is the right business corpus |
2 · Query the service
3 · Three real certificates from the repository
| File | Verdict | Content fingerprint · SHA-256 | autonomous checks | Action |
|---|---|---|---|---|
certificat_almizan_certifie.jsonQuelle est la valeur de MIZAN ? | CERTIFIE | b1aca5acfd8e05032f49af37005f3bc7…SHA-256 339467fe52cdabde8d4be1c1a15d8904… · 6875 bytes | assertions : 1 · coverage : 1 repository replay : yes autonomous checks : 14 PASS · 0 FAIL · 2 not applicable | |
certificat_mistral_bloque.jsonQuelle est la dose de RX-113 ? | BLOQUE | 112abbe817a97fa56a279f8c33fcb305…SHA-256 ae0d751fd0ed235e09996c97f1711169… · 6927 bytes | assertions : 1 · coverage : 1 repository replay : yes autonomous checks : 14 PASS · 0 FAIL · 2 not applicable | |
certificat_exemple_bloque.jsonQuelle est la posologie de RX-113 ? | BLOQUE | 90719af3df1a16ac2a7d8bdd29a3027a…SHA-256 6bf3f94e9843ccf3c0a0f37ca06b7633… · 6938 bytes | assertions : 2 · coverage : 1 repository replay : yes autonomous checks : 14 PASS · 0 FAIL · 2 not applicable |
4 · Issue a certificate
Question Answer to certifyThe business corpus is in French: a question asked in another language comes out HORS_CORPUS and the verdict becomes ABSTENTION. That is not a rejection of the language, it is the scope of the corpus.
GET /api/v1/certification/statut · POST /api/v1/certification/emettre · GET /api/v1/certification/verifier?c=<base64url> · POST /api/v1/certification/verifier5 · Verify offline, without the repository
`verifier_certificat_mizan.py` imports nothing from the repository: standard library only. Its own fingerprint is given here, so whoever copies the file can check what they downloaded.
$ py -3 verifier_certificat_mizan.py certificat_almizan_certifie.json $ py -3 verifier_certificat_mizan.py certificat.json --json $ py -3 verifier_certificat_mizan.py --importes
| File | verifier_certificat_mizan.py · 14882 bytes |
|---|---|
| SHA-256 | ab6d021f2596e6033d31bec5902f991d7bfe16d8873d7fc0bfb9a95f8c45c24d |
| Published read-only source | /verificateur/code/verifier_certificat_mizan.py |
| Controls | 16 · 2 not applicable (V12, V17) : full gate replay (this file does not re-implement the parser) and hysteresis declared active in the document |
| Imported modules | __future__, argparse, ast, hashlib, json, pathlib, sys, typing |
6 · The offline verifier's controls, on the first example
Table produced when this page was generated, by the same file as block 5, on `certificat_almizan_certifie.json`. The control statements are copied verbatim: they are the verifier's own output, in French, and translating them would break the “check what you download” link.
| Control | Expected | Obtained | State |
|---|---|---|---|
V01 structure : tous les champs du certificat sont présents | 0 champ manquant | 0 manquant(s) | PASS |
V02 sha256(question) recalcule depuis le texte du document | 057d29e682eb2707df271eb0541d6261e12ff23364cc40f38046d1e92da5cb7f | 057d29e682eb2707df271eb0541d6261e12ff23364cc40f38046d1e92da5cb7f | PASS |
V03 sha256(reponse) recalcule depuis le texte du document | d03c9fbfffbeed8264342e0af830060d5ceda3725943b436efb2d806ca22d05a | d03c9fbfffbeed8264342e0af830060d5ceda3725943b436efb2d806ca22d05a | PASS |
V04 empreinte du contenu, horodatage EXCLU (EQ-BSC-08) : le meme document porte la meme empreinte quelle que soit son heure d emission | b1aca5acfd8e05032f49af37005f3bc7f4dcbb658eb18f41ee347a56bd64c62b | b1aca5acfd8e05032f49af37005f3bc7f4dcbb658eb18f41ee347a56bd64c62b | PASS |
V05 racine de Merkle des assertions, recalculee (EQ-BSC-09) | 5ae1a44259a55b4e54b2da5bfd6f48fbdd828f86504c9930609223be8cbf10bf | 5ae1a44259a55b4e54b2da5bfd6f48fbdd828f86504c9930609223be8cbf10bf | PASS |
V06 empreinte du corpus embarque (20 faits), recalculee sans le depot | d5a4585fef841c702c324f6cf1f6f3166a46ec9f5d053a638fed24ee28153257 | d5a4585fef841c702c324f6cf1f6f3166a46ec9f5d053a638fed24ee28153257 | PASS |
V07 toute assertion porte un verdict de l'alphabet ferme | 0 verdict inconnu | 0 inconnu(s) | PASS |
V08 nb_assertions = longueur du vecteur d'assertions | 1 | 1 | PASS |
V09 comptes recalcules (SOUTENU / CONTRADIT / HORS_CORPUS) | {'SOUTENU': 1, 'CONTRADIT': 0, 'HORS_CORPUS': 0} | {'SOUTENU': 1, 'CONTRADIT': 0, 'HORS_CORPUS': 0} | PASS |
V10 couverture brute = (n_S + n_K) / n_A, arrondie a 10 decimals (EQ-BSC-02) | 1.0 | 1.0 | PASS |
V11 taux d'abstention = n_K / n_A, 1,0 si aucune assertion n'est parsable | 0.0 | 0.0 | PASS |
V12 hysteresis declaree ACTIVE : la valeur latchee depend de la requete precedente du service et n'est pas reconstituable depuis le seul document (EQ-BSC-06) | non verifiable hors etat | couverture_latchee = 1.0 | NP |
V14 verdict final recalule par EQ-BSC-03 (seuil 0.95) | CERTIFIE | CERTIFIE | PASS |
V15 garantie : aucune fausse acceptation ⇔ zero CONTRADIT | True | True | PASS |
V16 les limites de la garantie sont declarees dans le document | liste non vide | 5 | PASS |
V17 re-execution complete de la porte (extraction des assertions) : NON EFFECTUEE ici, ce fichier ne reimplemente pas le parseur | par le module du depot ou POST /api/v1/certification/verifier | hors perimetre de ce verificateur autonome | NP |
7 · Limits
- The shield does not prove that the authoritative corpus is the right business corpus: it proves that, the corpus once chosen, the computation is reproducible.
- A document without an embedded corpus only verifies integrity and Merkle: the decision itself is not replayed there.
- La correction par construction est garantie seulement si le corpus est autoritaire : un fait absent produit HORS_CORPUS (abstention), jamais SOUTENU.
- La couverture depend du parseur : une assertion formule hors des motifs reconnus tombe en HORS_CORPUS et abaisse la couverture au lieu d etre acceptee.
- Le detecteur d entites couvre les codes alphanumeriques et les sujets declares au corpus ; une entite nommee en langage naturel complet peut rester non parsee, donc en abstention.
- Le bouclier ne juge ni la qualite stylistique ni la coherence interne du texte : il juge l accord entre assertions atomiques extraites et faits scelles.
- La tolerance numerique heritee d EPSILON_HYSTERESIS est un reglage, pas une derivation : elle doit etre alignee sur la precision reelle du corpus avant tout usage en domaine sensible. Un fait declare exact y echappe : sa marge est nulle et l empreinte du corpus le garantit.
- This page is a client: it only rereads what the service returns. Until the repository is deployed, no online verification is possible — the autonomous verifier in block 5 remains the only offline route.
- The published examples are files from the repository, not a production stream: they attest a computation, not an online service.
- The fingerprint covers the canonical bytes of the document: a tool that re-serialises the JSON and turns 63.0 into 63 moves the fingerprint and gets a sound certificate refused. This page always sends back the body exactly as it received it.
The middle lines are the service's own wording (`LIMITES_GARANTIE`), copied in French without editing.