payments: the receipt reader says that a notarization is not under a post-quantum certified anchor yet only when finality is PENDING; when finality was not measured (for example a chain that did not answer) it now says the notarization was not measured, and the test of the reader covers both cases (dated 2026-10-28)
This commit is contained in:
1 parent
0bb03d8eba
commit
b93bcc5425
3 files changed
+20
-7
No files matched your search
@@ -110,8 +110,14 @@ try {
|
||||
await ruleaza([FISIER]), 2, 'PARTIAL', /not consulted/);
|
||||
cer('V4 (NEW) the reference verifier answers PARTIAL, finality PENDING (a receipt checked right after it was issued): PARTIAL, exit 2 (the route says PARTIAL)',
|
||||
await ruleaza([FISIER, '--rpc', RPC('bun'), '--verify-proof', VP], { AERE_STUB_FIN: 'PENDING' }), 2, 'PARTIAL', /finality PENDING/);
|
||||
cer('V5 (NEW) finality UNMEASURED: PARTIAL, exit 2',
|
||||
await ruleaza([FISIER, '--rpc', RPC('bun'), '--verify-proof', VP], { AERE_STUB_FIN: 'UNMEASURED' }), 2, 'PARTIAL', /finality UNMEASURED/);
|
||||
// 2026-10-28 (R10-STRAIN-05, NEW3): with UNMEASURED the reader must not state that the notarization is not under an anchor (a fact
|
||||
// about the chain nobody measured); the old reader wrote exactly that for every state but PASSED
|
||||
cer('V5 (NEW, NEW3) finality UNMEASURED: PARTIAL, exit 2, the notarization NOT MEASURED, never "not under an anchor yet"',
|
||||
await ruleaza([FISIER, '--rpc', RPC('bun'), '--verify-proof', VP], { AERE_STUB_FIN: 'UNMEASURED' }), 2, 'PARTIAL',
|
||||
/^(?![\s\S]*is not under a post-quantum certified anchor yet)[\s\S]*was not measured under a post-quantum certified anchor \(finality UNMEASURED/);
|
||||
cer('V5b (NEW3) finality PENDING keeps the statement about the chain: "not under a post-quantum certified anchor yet"',
|
||||
await ruleaza([FISIER, '--rpc', RPC('bun'), '--verify-proof', VP], { AERE_STUB_FIN: 'PENDING' }), 2, 'PARTIAL',
|
||||
/is not under a post-quantum certified anchor yet \(finality PENDING/);
|
||||
cer('V6 finality FAILED (the verifier says INVALID): INVALID, exit 1 (the route says INVALID)',
|
||||
await ruleaza([FISIER, '--rpc', RPC('bun'), '--verify-proof', VP], { AERE_STUB_FIN: 'FAILED' }), 1, 'INVALID');
|
||||
cer('V7 (NEW) the chain does not answer (HTTP 500): PARTIAL, exit 2, said (the route says PARTIAL since 2026-10-27)',
|
||||
|
||||
Reference in new issue
Block a user