agents: the hosted witness for agent ledgers (sandbox on testnet 28001), its probe and negative control; crypto-inventory 0.4.1 resolves a minimum TLS version given through a constant or a ternary; proof-kinds and conformance gain the agent-witness-checkpoint kind; the reproduction scripts of the Shield recipes no longer carry a workstation path

This commit is contained in:
Aere Network committed 2026-10-20 01:04:12 +03:00
1 parent 0c8f1de3fd
commit a654c3d522
27 files changed
+4737 -43

No files matched your search

+15 -3
View File
@@ -116,9 +116,9 @@ issuer and for its status at once.
## The vectors
`vectori/` holds 631 vectors (622 offline, 9 that read testnet 28001; 22 MB, since every device, identity and Travel Rule vector carries its ML-DSA-65 keys and signatures), listed with their digests in `vectori/INDEX.json`:
envelope 67, payment-risk 11, payment-receipt 10, market-timeline 26, dataset 22, ai-trust-bundle 24, audit-log 19, audit-inclusion
10, audit-consistency 4, agent-ledger 18, identity-presentation 69, device-bundle 194, sdjwt-presentation 59, sdjwt-vc-presentation 32, travel-rule-binding 19, travel-rule-message 26, travel-rule-receipt 9, compliance-presentation 12. By expected verdict: 89 `VALID`, 70 `PARTIAL`, 472 `INVALID`. None is typed by hand
`vectori/` holds 634 vectors (625 offline, 9 that read testnet 28001; 22 MB, since every device, identity and Travel Rule vector carries its ML-DSA-65 keys and signatures), listed with their digests in `vectori/INDEX.json`:
envelope 70 (since 2026-10-19: 67 plus the three of the new kind `agent-witness-checkpoint`), payment-risk 11, payment-receipt 10, market-timeline 26, dataset 22, ai-trust-bundle 24, audit-log 19, audit-inclusion
10, audit-consistency 4, agent-ledger 18, identity-presentation 69, device-bundle 194, sdjwt-presentation 59, sdjwt-vc-presentation 32, travel-rule-binding 19, travel-rule-message 26, travel-rule-receipt 9, compliance-presentation 12. By expected verdict: 90 `VALID`, 70 `PARTIAL`, 474 `INVALID`. None is typed by hand
(`node genereaza-vectori.mjs --verifica` regenerates them and compares byte for byte):
- the 17 AIP-23 kinds come from their producers on fixed inputs (the same envelopes as the published AIP-23 kind vectors; `secret-access`, the audit entry of the secrets service, since 2026-10-18); the audit
@@ -225,6 +225,18 @@ not implementations of this suite's contract).
## How the suite itself is checked
Measured on 2026-10-19 (UTC), after the AIP-23 kind `agent-witness-checkpoint` was added (the checkpoint of the hosted agents witness,
`agents/martor-agenti.mjs`; three envelope vectors: VALID, its statementHash cut short, one statement field changed; no rule changed). On
Node.js 24.14.1, offline, with the development reference verifier: `node proba-conformance.mjs` gives 12 rows green, 0 red, 1 not measured
(the 9 vectors that read testnet 28001): 241 rules of 15 verifiers, 634 vectors (`LA ZI`), the 18 kind envelopes are the AIP-23 kind
vectors, every INVALID vector (474) is its base with one operation (308) or one declared producer change (166), the published verifiers
pass 625 of 625 offline vectors, the independent Python implementation passes the 68 it claims and reports the other 566 not covered,
101,947 malformed inputs each got a verdict. Not run after this change: `--online` and `--control-negativ`.
Measured again the same day after the kind gained a vocabulary in `proof-kinds/` (the adversarial review of the hosted witness, finding 8;
the valid inputs build byte for byte the same envelopes): `genereaza-vectori.mjs --verifica` `LA ZI` (634 vectors), `proba-conformance.mjs`
12 green, 0 red, 1 not measured (the testnet vectors), and `--control-negativ` 320 green, 0 red, 3 not measured (the three rules whose
vectors need testnet 28001), 238 of 241 rules proven load-bearing. `--online` not run.
Measured on 2026-10-19 (UTC), after the SD-JWT verifier gained the rule `hybrid-half` (AIP-25 finding C1, D-535: with the keys of an
AERE hybrid identity the ML-DSA-65 half is judged by default and the Ed25519 half only when the verifier asks for it, `classicalHalf`;
until then the Ed25519 half was the default, so a token signed with it alone verified against the whole hybrid identity). Five vectors
+3 -1
View File
@@ -600,7 +600,9 @@ function intrariKinds() {
settlement: { chainId: 2800, txHash: '0x' + '12'.repeat(32), blockHash: '0x' + '34'.repeat(32), from: '0xa', to: '0xb', amount: '100', asset: 'AERE', instruction: 'INSTR', createdAt: AT },
provenance: { subject: 'ARTIFACT', parents: ['SRC-1', 'SRC-2'], process: 'BUILD', actor: 'build-bot', createdAt: AT },
// 2026-10-18 (B8, cloud-gateway/pq-secrets): the same fixed input as the published kind vector (aere-proof-protocol/genereaza-vectori-kinds.mjs)
'secret-access': { service: 'https://secrets.example', secret: DB, version: 2, operation: 'get', verdict: 'allowed', rules: [], grant: 'deployers', holder: 'aere-id:' + '0'.repeat(40), presenter: 'aere-id:' + '1'.repeat(40), presentation: 'BINDING', policy: 'POLICY', createdAt: AT } };
'secret-access': { service: 'https://secrets.example', secret: DB, version: 2, operation: 'get', verdict: 'allowed', rules: [], grant: 'deployers', holder: 'aere-id:' + '0'.repeat(40), presenter: 'aere-id:' + '1'.repeat(40), presentation: 'BINDING', policy: 'POLICY', createdAt: AT },
// 2026-10-19 (B3, tools/agent-policy/martor-agenti.mjs): the same fixed input as the published kind vector
'agent-witness-checkpoint': { root: '0x' + '5a'.repeat(32), previous: '0x' + '6b'.repeat(32), log: 'aere-agent-witness/28001', witness: 'aere-witness:' + '7c'.repeat(20), chainId: 28001, treeSize: 3, maxMergeDelay: 1800, createdAt: AT } };
}
/** Every AIP-23 kind, from its producer, on the fixed inputs. */
export function plicuriKinds() {
+26 -3
View File
@@ -1,9 +1,9 @@
{
"v": 1,
"kind": "aere-conformance-vector-index",
"count": 631,
"count": 634,
"artifacts": {
"envelope": 67,
"envelope": 70,
"payment-risk": 11,
"payment-receipt": 10,
"market-timeline": 26,
@@ -25,7 +25,7 @@
"dataset-consistency": 3,
"dataset-sample": 2
},
"offline": 622,
"offline": 625,
"online": 9,
"rules": {
"agents.anchor": [
@@ -516,6 +516,7 @@
"envelope/settlement.form",
"envelope/provenance.form",
"envelope/secret-access.form",
"envelope/agent-witness-checkpoint.form",
"envelope/ai.form",
"envelope/agent-decision.form",
"envelope/data.form-null",
@@ -542,6 +543,7 @@
"envelope/settlement.integrity",
"envelope/provenance.integrity",
"envelope/secret-access.integrity",
"envelope/agent-witness-checkpoint.integrity",
"envelope/ai.integrity",
"envelope/agent-decision.integrity",
"market-timeline/s1.proof-other-result"
@@ -1325,6 +1327,27 @@
"requires": [],
"sha256": "0x8c1f6f75345a65444348e01f9a95932cf62e0168b5e55fdb13934d306ad3556a"
},
{
"id": "envelope/agent-witness-checkpoint.valid",
"artifact": "envelope",
"verdict": "VALID",
"requires": [],
"sha256": "0x2362b0c00f7c393239807762d91d7a56d722c95acd3850e121cb5e7c12ff1fa3"
},
{
"id": "envelope/agent-witness-checkpoint.form",
"artifact": "envelope",
"verdict": "INVALID",
"requires": [],
"sha256": "0x1155afce20406b5105abdbeec4ccc1082ebf6f69c5d5399eede84efa5c82e1d9"
},
{
"id": "envelope/agent-witness-checkpoint.integrity",
"artifact": "envelope",
"verdict": "INVALID",
"requires": [],
"sha256": "0x81463e18a9109d6020b0dfdba2883252e5b4241a9ae02007a3bd8926bf4c8849"
},
{
"id": "envelope/ai.valid",
"artifact": "envelope",
@@ -0,0 +1,53 @@
{
"v": 1,
"kind": "aere-conformance-vector",
"id": "envelope/agent-witness-checkpoint.form",
"artifact": "envelope",
"title": "agent-witness-checkpoint: the statementHash is 63 hex digits",
"source": "derived from envelope/agent-witness-checkpoint.valid",
"requires": [],
"exercises": [
"envelope.form",
"envelope.integrity"
],
"base": "envelope/agent-witness-checkpoint.valid",
"mutation": {
"op": "set",
"path": [
"envelope",
"statementHash"
],
"value": "0x52c07602afdc773b6b2441b5899161a192b973ad4c9fcad52f6f4c1ef3ca2ac"
},
"input": {
"envelope": {
"v": 1,
"kind": "aere-proof-of-agent-witness-checkpoint-attestation",
"statement": {
"v": 1,
"kind": "aere-proof-of-agent-witness-checkpoint",
"root": "0x5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a",
"previous": "0x6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b",
"log": "aere-agent-witness/28001",
"witness": "aere-witness:7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c",
"chainId": 28001,
"treeSize": 3,
"maxMergeDelay": 1800,
"createdAt": "2026-09-26T00:00:00Z"
},
"statementHash": "0x52c07602afdc773b6b2441b5899161a192b973ad4c9fcad52f6f4c1ef3ca2ac"
}
},
"expected": {
"verdict": "INVALID",
"failed": [
"envelope.form"
],
"levels": {
"integrity": "FAILED",
"authenticity": "NOT_MEASURED",
"anchoring": "NOT_MEASURED",
"finality": "NOT_MEASURED"
}
}
}
@@ -0,0 +1,54 @@
{
"v": 1,
"kind": "aere-conformance-vector",
"id": "envelope/agent-witness-checkpoint.integrity",
"artifact": "envelope",
"title": "agent-witness-checkpoint: statement.root changed after hashing",
"source": "derived from envelope/agent-witness-checkpoint.valid",
"requires": [],
"exercises": [
"envelope.form",
"envelope.integrity"
],
"base": "envelope/agent-witness-checkpoint.valid",
"mutation": {
"op": "set",
"path": [
"envelope",
"statement",
"root"
],
"value": "0x5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a0"
},
"input": {
"envelope": {
"v": 1,
"kind": "aere-proof-of-agent-witness-checkpoint-attestation",
"statement": {
"v": 1,
"kind": "aere-proof-of-agent-witness-checkpoint",
"root": "0x5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a0",
"previous": "0x6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b",
"log": "aere-agent-witness/28001",
"witness": "aere-witness:7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c",
"chainId": 28001,
"treeSize": 3,
"maxMergeDelay": 1800,
"createdAt": "2026-09-26T00:00:00Z"
},
"statementHash": "0x52c07602afdc773b6b2441b5899161a192b973ad4c9fcad52f6f4c1ef3ca2aca"
}
},
"expected": {
"verdict": "INVALID",
"failed": [
"envelope.integrity"
],
"levels": {
"integrity": "FAILED",
"authenticity": "NOT_MEASURED",
"anchoring": "NOT_MEASURED",
"finality": "NOT_MEASURED"
}
}
}
@@ -0,0 +1,44 @@
{
"v": 1,
"kind": "aere-conformance-vector",
"id": "envelope/agent-witness-checkpoint.valid",
"artifact": "envelope",
"title": "the agent-witness-checkpoint envelope from its producer",
"source": "producer on fixed inputs",
"requires": [],
"exercises": [
"envelope.form",
"envelope.integrity"
],
"base": null,
"mutation": null,
"input": {
"envelope": {
"v": 1,
"kind": "aere-proof-of-agent-witness-checkpoint-attestation",
"statement": {
"v": 1,
"kind": "aere-proof-of-agent-witness-checkpoint",
"root": "0x5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a",
"previous": "0x6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b",
"log": "aere-agent-witness/28001",
"witness": "aere-witness:7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c",
"chainId": 28001,
"treeSize": 3,
"maxMergeDelay": 1800,
"createdAt": "2026-09-26T00:00:00Z"
},
"statementHash": "0x52c07602afdc773b6b2441b5899161a192b973ad4c9fcad52f6f4c1ef3ca2aca"
}
},
"expected": {
"verdict": "VALID",
"failed": [],
"levels": {
"integrity": "PASSED",
"authenticity": "NOT_MEASURED",
"anchoring": "NOT_MEASURED",
"finality": "NOT_MEASURED"
}
}
}