agent-passport-system 4.1.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/README.md +37 -34
  2. package/dist/src/adapters/oauth-id-jag/import-v1.d.ts +74 -0
  3. package/dist/src/adapters/oauth-id-jag/import-v1.d.ts.map +1 -0
  4. package/dist/src/adapters/oauth-id-jag/import-v1.js +243 -0
  5. package/dist/src/adapters/oauth-id-jag/import-v1.js.map +1 -0
  6. package/dist/src/index.d.ts +3 -0
  7. package/dist/src/index.d.ts.map +1 -1
  8. package/dist/src/index.js +6 -0
  9. package/dist/src/index.js.map +1 -1
  10. package/dist/src/profiles/a2a/identity-v1.d.ts +44 -0
  11. package/dist/src/profiles/a2a/identity-v1.d.ts.map +1 -0
  12. package/dist/src/profiles/a2a/identity-v1.js +208 -0
  13. package/dist/src/profiles/a2a/identity-v1.js.map +1 -0
  14. package/dist/src/profiles/a2a/index.d.ts +2 -0
  15. package/dist/src/profiles/a2a/index.d.ts.map +1 -0
  16. package/dist/src/profiles/a2a/index.js +2 -0
  17. package/dist/src/profiles/a2a/index.js.map +1 -0
  18. package/dist/src/profiles/mcp/authorization-v1.d.ts +88 -0
  19. package/dist/src/profiles/mcp/authorization-v1.d.ts.map +1 -0
  20. package/dist/src/profiles/mcp/authorization-v1.js +215 -0
  21. package/dist/src/profiles/mcp/authorization-v1.js.map +1 -0
  22. package/dist/src/profiles/mcp/index.d.ts +2 -0
  23. package/dist/src/profiles/mcp/index.d.ts.map +1 -0
  24. package/dist/src/profiles/mcp/index.js +2 -0
  25. package/dist/src/profiles/mcp/index.js.map +1 -0
  26. package/dist/src/v2/action-reference/index.d.ts +2 -0
  27. package/dist/src/v2/action-reference/index.d.ts.map +1 -0
  28. package/dist/src/v2/action-reference/index.js +2 -0
  29. package/dist/src/v2/action-reference/index.js.map +1 -0
  30. package/dist/src/v2/action-reference/v2.d.ts +23 -0
  31. package/dist/src/v2/action-reference/v2.d.ts.map +1 -0
  32. package/dist/src/v2/action-reference/v2.js +57 -0
  33. package/dist/src/v2/action-reference/v2.js.map +1 -0
  34. package/dist/src/v2/authority-delegation/budget.d.ts +20 -0
  35. package/dist/src/v2/authority-delegation/budget.d.ts.map +1 -0
  36. package/dist/src/v2/authority-delegation/budget.js +141 -0
  37. package/dist/src/v2/authority-delegation/budget.js.map +1 -0
  38. package/dist/src/v2/authority-delegation/canonical.d.ts +12 -0
  39. package/dist/src/v2/authority-delegation/canonical.d.ts.map +1 -0
  40. package/dist/src/v2/authority-delegation/canonical.js +33 -0
  41. package/dist/src/v2/authority-delegation/canonical.js.map +1 -0
  42. package/dist/src/v2/authority-delegation/compare.d.ts +4 -0
  43. package/dist/src/v2/authority-delegation/compare.d.ts.map +1 -0
  44. package/dist/src/v2/authority-delegation/compare.js +67 -0
  45. package/dist/src/v2/authority-delegation/compare.js.map +1 -0
  46. package/dist/src/v2/authority-delegation/index.d.ts +10 -0
  47. package/dist/src/v2/authority-delegation/index.d.ts.map +1 -0
  48. package/dist/src/v2/authority-delegation/index.js +12 -0
  49. package/dist/src/v2/authority-delegation/index.js.map +1 -0
  50. package/dist/src/v2/authority-delegation/issue.d.ts +10 -0
  51. package/dist/src/v2/authority-delegation/issue.d.ts.map +1 -0
  52. package/dist/src/v2/authority-delegation/issue.js +52 -0
  53. package/dist/src/v2/authority-delegation/issue.js.map +1 -0
  54. package/dist/src/v2/authority-delegation/parse.d.ts +4 -0
  55. package/dist/src/v2/authority-delegation/parse.d.ts.map +1 -0
  56. package/dist/src/v2/authority-delegation/parse.js +96 -0
  57. package/dist/src/v2/authority-delegation/parse.js.map +1 -0
  58. package/dist/src/v2/authority-delegation/schema.d.ts +7 -0
  59. package/dist/src/v2/authority-delegation/schema.d.ts.map +1 -0
  60. package/dist/src/v2/authority-delegation/schema.js +177 -0
  61. package/dist/src/v2/authority-delegation/schema.js.map +1 -0
  62. package/dist/src/v2/authority-delegation/scope.d.ts +6 -0
  63. package/dist/src/v2/authority-delegation/scope.d.ts.map +1 -0
  64. package/dist/src/v2/authority-delegation/scope.js +50 -0
  65. package/dist/src/v2/authority-delegation/scope.js.map +1 -0
  66. package/dist/src/v2/authority-delegation/types.d.ts +98 -0
  67. package/dist/src/v2/authority-delegation/types.d.ts.map +1 -0
  68. package/dist/src/v2/authority-delegation/types.js +10 -0
  69. package/dist/src/v2/authority-delegation/types.js.map +1 -0
  70. package/dist/src/v2/authority-delegation/verify.d.ts +5 -0
  71. package/dist/src/v2/authority-delegation/verify.d.ts.map +1 -0
  72. package/dist/src/v2/authority-delegation/verify.js +124 -0
  73. package/dist/src/v2/authority-delegation/verify.js.map +1 -0
  74. package/dist/src/v2/identity-binding/did-aps.d.ts +12 -0
  75. package/dist/src/v2/identity-binding/did-aps.d.ts.map +1 -0
  76. package/dist/src/v2/identity-binding/did-aps.js +53 -0
  77. package/dist/src/v2/identity-binding/did-aps.js.map +1 -0
  78. package/dist/src/v2/identity-binding/index.d.ts +6 -0
  79. package/dist/src/v2/identity-binding/index.d.ts.map +1 -0
  80. package/dist/src/v2/identity-binding/index.js +6 -0
  81. package/dist/src/v2/identity-binding/index.js.map +1 -0
  82. package/dist/src/v2/identity-binding/passport.d.ts +18 -0
  83. package/dist/src/v2/identity-binding/passport.d.ts.map +1 -0
  84. package/dist/src/v2/identity-binding/passport.js +144 -0
  85. package/dist/src/v2/identity-binding/passport.js.map +1 -0
  86. package/dist/src/v2/identity-binding/principal-binding.d.ts +20 -0
  87. package/dist/src/v2/identity-binding/principal-binding.d.ts.map +1 -0
  88. package/dist/src/v2/identity-binding/principal-binding.js +128 -0
  89. package/dist/src/v2/identity-binding/principal-binding.js.map +1 -0
  90. package/dist/src/v2/identity-binding/revocation.d.ts +12 -0
  91. package/dist/src/v2/identity-binding/revocation.d.ts.map +1 -0
  92. package/dist/src/v2/identity-binding/revocation.js +97 -0
  93. package/dist/src/v2/identity-binding/revocation.js.map +1 -0
  94. package/dist/src/v2/identity-binding/types.d.ts +72 -0
  95. package/dist/src/v2/identity-binding/types.d.ts.map +1 -0
  96. package/dist/src/v2/identity-binding/types.js +4 -0
  97. package/dist/src/v2/identity-binding/types.js.map +1 -0
  98. package/dist/src/v2/identity-binding/validation.d.ts +9 -0
  99. package/dist/src/v2/identity-binding/validation.d.ts.map +1 -0
  100. package/dist/src/v2/identity-binding/validation.js +104 -0
  101. package/dist/src/v2/identity-binding/validation.js.map +1 -0
  102. package/dist/src/v2/receipt-core/decision-ref.d.ts +23 -0
  103. package/dist/src/v2/receipt-core/decision-ref.d.ts.map +1 -0
  104. package/dist/src/v2/receipt-core/decision-ref.js +75 -0
  105. package/dist/src/v2/receipt-core/decision-ref.js.map +1 -0
  106. package/dist/src/v2/receipt-core/jcs.d.ts +15 -0
  107. package/dist/src/v2/receipt-core/jcs.d.ts.map +1 -0
  108. package/dist/src/v2/receipt-core/jcs.js +198 -0
  109. package/dist/src/v2/receipt-core/jcs.js.map +1 -0
  110. package/dist/src/v2/receipt-core/receipt.d.ts +21 -0
  111. package/dist/src/v2/receipt-core/receipt.d.ts.map +1 -0
  112. package/dist/src/v2/receipt-core/receipt.js +132 -0
  113. package/dist/src/v2/receipt-core/receipt.js.map +1 -0
  114. package/dist/src/v2/receipt-core/supporting-record.d.ts +55 -0
  115. package/dist/src/v2/receipt-core/supporting-record.d.ts.map +1 -0
  116. package/dist/src/v2/receipt-core/supporting-record.js +243 -0
  117. package/dist/src/v2/receipt-core/supporting-record.js.map +1 -0
  118. package/dist/src/v2/receipt-core/types.d.ts +94 -0
  119. package/dist/src/v2/receipt-core/types.d.ts.map +1 -0
  120. package/dist/src/v2/receipt-core/types.js +4 -0
  121. package/dist/src/v2/receipt-core/types.js.map +1 -0
  122. package/package.json +6 -6
@@ -0,0 +1,243 @@
1
+ // Copyright (c) 2026 Tymofii Pidlisnyi
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { createHash } from 'node:crypto';
4
+ import { sign, verify } from '../../crypto/keys.js';
5
+ import { canonicalize } from '../../core/canonical.js';
6
+ import { assertExactKeys, strictJCS } from './jcs.js';
7
+ export const SUPPORTING_RECORD_ID_TAG = 'APS-SUPPORTING-RECORD-ID-V1';
8
+ export const SUPPORTING_RECORD_SIG_TAG = 'APS-SUPPORTING-RECORD-SIG-V1';
9
+ const HEX64 = /^[0-9a-f]{64}$/;
10
+ const HEX128 = /^[0-9a-f]{128}$/;
11
+ const UTC_MS = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
12
+ const sha256 = (value) => createHash('sha256').update(value).digest();
13
+ const sha256Hex = (value) => sha256(value).toString('hex');
14
+ const isExactUtcMilliseconds = (value) => {
15
+ if (!UTC_MS.test(value))
16
+ return false;
17
+ const parsed = new Date(value);
18
+ return !Number.isNaN(parsed.valueOf()) && parsed.toISOString() === value;
19
+ };
20
+ function without(record, ...keys) {
21
+ const copy = { ...record };
22
+ keys.forEach(key => delete copy[key]);
23
+ return copy;
24
+ }
25
+ export function supportingRecordIdPayloadV1(record) {
26
+ return `${SUPPORTING_RECORD_ID_TAG}\0${record.record_type}\0${strictJCS(without(record, 'record_id', 'sig'))}`;
27
+ }
28
+ export function computeSupportingRecordIdV1(record) {
29
+ return sha256Hex(supportingRecordIdPayloadV1(record));
30
+ }
31
+ export function supportingRecordSignaturePayloadV1(record) {
32
+ return `${SUPPORTING_RECORD_SIG_TAG}\0${record.record_type}\0${strictJCS(without(record, 'sig'))}`;
33
+ }
34
+ export function validateSupportingRecordV1(record, requireCrypto = true) {
35
+ assertExactKeys(record, ['profile', 'record_id', 'record_type', 'issuer', 'issuer_key_id', 'issued_at', 'action_ref', 'body', 'sig_alg', 'sig'], ['profile', 'record_id', 'record_type', 'issuer', 'issuer_key_id', 'issued_at', 'body', 'sig_alg', 'sig'], 'SupportingRecordV1');
36
+ strictJCS(record);
37
+ if (record.profile !== 'aps-supporting-record-v1')
38
+ throw new TypeError('SupportingRecordV1: profile');
39
+ if (!record.record_type || !record.issuer || !record.issuer_key_id)
40
+ throw new TypeError('SupportingRecordV1: identifier');
41
+ if (!isExactUtcMilliseconds(record.issued_at))
42
+ throw new TypeError('SupportingRecordV1: issued_at');
43
+ if (record.action_ref !== undefined && !HEX64.test(record.action_ref))
44
+ throw new TypeError('SupportingRecordV1: action_ref');
45
+ if (typeof record.body !== 'object' || record.body === null || Array.isArray(record.body))
46
+ throw new TypeError('SupportingRecordV1: body');
47
+ if (record.sig_alg !== 'Ed25519')
48
+ throw new TypeError('SupportingRecordV1: sig_alg');
49
+ if (requireCrypto && (!HEX64.test(record.record_id) || !HEX128.test(record.sig)))
50
+ throw new TypeError('SupportingRecordV1: crypto encoding');
51
+ }
52
+ export function createSupportingRecordV1(fields, privateKey) {
53
+ const record = { ...structuredClone(fields), record_id: '0'.repeat(64), sig: '' };
54
+ validateSupportingRecordV1(record, false);
55
+ record.record_id = computeSupportingRecordIdV1(record);
56
+ record.sig = sign(supportingRecordSignaturePayloadV1(record), privateKey);
57
+ validateSupportingRecordV1(record);
58
+ return record;
59
+ }
60
+ export function verifySupportingRecordV1(record, publicKey) {
61
+ try {
62
+ validateSupportingRecordV1(record);
63
+ }
64
+ catch {
65
+ return { valid: false, id_valid: false, signature_valid: false };
66
+ }
67
+ const id_valid = computeSupportingRecordIdV1(record) === record.record_id;
68
+ const signature_valid = verify(supportingRecordSignaturePayloadV1(record), record.sig, publicKey);
69
+ return { valid: id_valid && signature_valid, id_valid, signature_valid };
70
+ }
71
+ function validateEvidenceBundleMemberV2(entry) {
72
+ assertExactKeys(entry, ['member_id', 'member_type', 'sha256'], ['member_id', 'member_type', 'sha256'], 'EvidenceBundleMemberV2');
73
+ if (!entry.member_id || !entry.member_type || !HEX64.test(entry.sha256))
74
+ throw new TypeError('EvidenceBundleMemberV2: value');
75
+ }
76
+ function entryCanonical(entry) {
77
+ validateEvidenceBundleMemberV2(entry);
78
+ return strictJCS(entry);
79
+ }
80
+ export function evidenceBundleMerkleRootV2(entries) {
81
+ if (entries.length === 0)
82
+ throw new TypeError('EvidenceBundleV2: at least one member');
83
+ const seen = new Set();
84
+ const canonicalEntries = entries.map((entry, i) => {
85
+ const canonical = entryCanonical(entry);
86
+ if (seen.has(entry.member_id))
87
+ throw new TypeError('EvidenceBundleV2: duplicate member_id');
88
+ seen.add(entry.member_id);
89
+ if (i > 0 && Buffer.compare(Buffer.from(entryCanonical(entries[i - 1]), 'utf8'), Buffer.from(canonical, 'utf8')) >= 0) {
90
+ throw new TypeError('EvidenceBundleV2: members not sorted');
91
+ }
92
+ return canonical;
93
+ });
94
+ let level = canonicalEntries.map(canonical => sha256(Buffer.concat([Buffer.from([0]), Buffer.from(canonical, 'utf8')])));
95
+ while (level.length > 1) {
96
+ const next = [];
97
+ for (let i = 0; i < level.length; i += 2) {
98
+ if (i + 1 === level.length)
99
+ next.push(level[i]);
100
+ else
101
+ next.push(sha256(Buffer.concat([Buffer.from([1]), level[i], level[i + 1]])));
102
+ }
103
+ level = next;
104
+ }
105
+ return level[0].toString('hex');
106
+ }
107
+ export function buildEvidenceBundleBodyV2(members) {
108
+ if (members.length === 0)
109
+ throw new TypeError('EvidenceBundleV2: at least one member');
110
+ const seen = new Set();
111
+ const entries = members.map(member => {
112
+ assertExactKeys(member, ['member_id', 'member_type', 'payload'], ['member_id', 'member_type', 'payload'], 'EvidenceBundleMemberInputV2');
113
+ if (!member.member_id || !member.member_type)
114
+ throw new TypeError('EvidenceBundleV2: member identifier');
115
+ if (seen.has(member.member_id))
116
+ throw new TypeError('EvidenceBundleV2: duplicate member_id');
117
+ seen.add(member.member_id);
118
+ return { member_id: member.member_id, member_type: member.member_type, sha256: sha256Hex(strictJCS(member.payload)) };
119
+ }).sort((a, b) => Buffer.compare(Buffer.from(entryCanonical(a)), Buffer.from(entryCanonical(b))));
120
+ return { members: entries, merkle_root: evidenceBundleMerkleRootV2(entries) };
121
+ }
122
+ export function verifyEvidenceBundleBodyV2(body, payloads) {
123
+ try {
124
+ assertExactKeys(body, ['members', 'merkle_root'], ['members', 'merkle_root'], 'EvidenceBundleBodyV2');
125
+ if (!Array.isArray(body.members) || body.members.length === 0 || !HEX64.test(body.merkle_root))
126
+ return false;
127
+ const seen = new Set();
128
+ for (let i = 0; i < body.members.length; i++) {
129
+ const entry = body.members[i];
130
+ validateEvidenceBundleMemberV2(entry);
131
+ if (seen.has(entry.member_id))
132
+ return false;
133
+ seen.add(entry.member_id);
134
+ if (i > 0 && Buffer.compare(Buffer.from(entryCanonical(body.members[i - 1])), Buffer.from(entryCanonical(entry))) >= 0)
135
+ return false;
136
+ if (payloads && (!Object.prototype.hasOwnProperty.call(payloads, entry.member_id) || sha256Hex(strictJCS(payloads[entry.member_id])) !== entry.sha256))
137
+ return false;
138
+ }
139
+ return evidenceBundleMerkleRootV2(body.members) === body.merkle_root;
140
+ }
141
+ catch {
142
+ return false;
143
+ }
144
+ }
145
+ function evidenceLeaf(entry) {
146
+ return sha256(Buffer.concat([Buffer.from([0]), Buffer.from(entryCanonical(entry), 'utf8')]));
147
+ }
148
+ /** Build an inclusion proof over the already-sorted manifest members.
149
+ * Odd nodes are promoted, never duplicated, and the promotion is explicit in
150
+ * the proof so a verifier can validate the tree shape from leaf_count. */
151
+ export function buildEvidenceBundleProofV2(entries, memberId) {
152
+ evidenceBundleMerkleRootV2(entries);
153
+ const leaf_index = entries.findIndex(entry => entry.member_id === memberId);
154
+ if (leaf_index < 0)
155
+ throw new TypeError('EvidenceBundleV2: member not found');
156
+ let index = leaf_index;
157
+ let level = entries.map(evidenceLeaf);
158
+ const path = [];
159
+ while (level.length > 1) {
160
+ if (index % 2 === 1)
161
+ path.push({ position: 'left', sha256: level[index - 1].toString('hex') });
162
+ else if (index + 1 < level.length)
163
+ path.push({ position: 'right', sha256: level[index + 1].toString('hex') });
164
+ else
165
+ path.push({ position: 'promote' });
166
+ const next = [];
167
+ for (let i = 0; i < level.length; i += 2) {
168
+ if (i + 1 === level.length)
169
+ next.push(level[i]);
170
+ else
171
+ next.push(sha256(Buffer.concat([Buffer.from([1]), level[i], level[i + 1]])));
172
+ }
173
+ index = Math.floor(index / 2);
174
+ level = next;
175
+ }
176
+ return { profile: 'aps-evidence-proof-v2', member: { ...entries[leaf_index] }, leaf_index, leaf_count: entries.length, path };
177
+ }
178
+ export function verifyEvidenceBundleProofV2(proof, trustedRoot, payload) {
179
+ try {
180
+ assertExactKeys(proof, ['profile', 'member', 'leaf_index', 'leaf_count', 'path'], ['profile', 'member', 'leaf_index', 'leaf_count', 'path'], 'EvidenceBundleProofV2');
181
+ if (proof.profile !== 'aps-evidence-proof-v2' || !HEX64.test(trustedRoot))
182
+ return false;
183
+ validateEvidenceBundleMemberV2(proof.member);
184
+ if (!Number.isSafeInteger(proof.leaf_index) || !Number.isSafeInteger(proof.leaf_count) || proof.leaf_count < 1 || proof.leaf_index < 0 || proof.leaf_index >= proof.leaf_count || !Array.isArray(proof.path))
185
+ return false;
186
+ if (payload !== undefined && sha256Hex(strictJCS(payload)) !== proof.member.sha256)
187
+ return false;
188
+ let index = proof.leaf_index;
189
+ let width = proof.leaf_count;
190
+ let hash = evidenceLeaf(proof.member);
191
+ let pathIndex = 0;
192
+ while (width > 1) {
193
+ const step = proof.path[pathIndex++];
194
+ if (!step)
195
+ return false;
196
+ const expected = index % 2 === 1 ? 'left' : index + 1 < width ? 'right' : 'promote';
197
+ if (step.position !== expected)
198
+ return false;
199
+ if (step.position === 'promote') {
200
+ assertExactKeys(step, ['position'], ['position'], 'EvidenceBundleProofStepV2');
201
+ }
202
+ else {
203
+ assertExactKeys(step, ['position', 'sha256'], ['position', 'sha256'], 'EvidenceBundleProofStepV2');
204
+ if (!HEX64.test(step.sha256))
205
+ return false;
206
+ const sibling = Buffer.from(step.sha256, 'hex');
207
+ hash = step.position === 'left'
208
+ ? sha256(Buffer.concat([Buffer.from([1]), sibling, hash]))
209
+ : sha256(Buffer.concat([Buffer.from([1]), hash, sibling]));
210
+ }
211
+ index = Math.floor(index / 2);
212
+ width = Math.ceil(width / 2);
213
+ }
214
+ return pathIndex === proof.path.length && hash.toString('hex') === trustedRoot;
215
+ }
216
+ catch {
217
+ return false;
218
+ }
219
+ }
220
+ /** Explicit discriminator dispatch. Verification code must never try both canonicalizers. */
221
+ export function classifySupportingRecordFormat(value) {
222
+ if (typeof value !== 'object' || value === null || Array.isArray(value))
223
+ return { format: 'unknown', canonicalization: 'unknown', legacy: false };
224
+ const v = value;
225
+ if (v.profile === 'aps-supporting-record-v1')
226
+ return { format: 'supporting-record-v1', canonicalization: 'rfc8785', legacy: false };
227
+ if (v.profile === 'aps-composition-check-v0')
228
+ return { format: 'composition-check-v0', canonicalization: 'rfc8785-tagged-v0', legacy: true };
229
+ if (v.spec_version === '0.1.0' && v.record_type === 'accountability_record')
230
+ return { format: 'accountability-record-0.1.0', canonicalization: 'rfc8785-untagged', legacy: true };
231
+ if (v.type === 'read_fidelity_receipt')
232
+ return { format: 'read-fidelity-unwrapped', canonicalization: 'rfc8785-untagged', legacy: true };
233
+ if (typeof v.manifest === 'object' && v.manifest !== null && v.manifest.profile === 'aps:evidence-bundle:v1')
234
+ return { format: 'evidence-bundle-v1', canonicalization: 'aps-legacy-null-dropping', legacy: true };
235
+ if ('authority_ref' in v && 'observer_key' in v && !('profile' in v))
236
+ return { format: 'revocation-observation-unversioned', canonicalization: 'aps-legacy-null-dropping', legacy: true };
237
+ return { format: 'unknown', canonicalization: 'unknown', legacy: false };
238
+ }
239
+ /** Legacy canonical bytes are exposed only after explicit legacy classification. */
240
+ export function legacyNullDroppingPayload(value) {
241
+ return canonicalize(value);
242
+ }
243
+ //# sourceMappingURL=supporting-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supporting-record.js","sourceRoot":"","sources":["../../../../src/v2/receipt-core/supporting-record.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,sCAAsC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAA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AC,CAAC,QAAQ,KAAK,IAAI,IAAK,CAAC,CAAC,QAAoC,CAAC,OAAO,KAAK,wBAAwB;QAAE,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;IAC9O,IAAI,eAAe,IAAI,CAAC,IAAI,cAAc,IAAI,CAAC,IAAI,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC;QAAE,OAAO,EAAE,MAAM,EAAE,oCAAoC,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;IACzL,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,CAAA;AAC1E,CAAC;AAED,oFAAoF;AACpF,MAAM,UAAU,yBAAyB,CAAC,KAAgB;IACxD,OAAO,YAAY,CAAC,KAAK,CAAC,CAAA;AAC5B,CAAC"}
@@ -0,0 +1,94 @@
1
+ export type JsonPrimitive = null | boolean | number | string;
2
+ export type JsonValue = JsonPrimitive | JsonValue[] | {
3
+ [key: string]: JsonValue;
4
+ };
5
+ export type Hex64 = string;
6
+ export type Hex128 = string;
7
+ export interface EvidenceRefV1 {
8
+ artifact_type: string;
9
+ sha256: Hex64;
10
+ }
11
+ export interface ReceiptSignatureV1 {
12
+ signer: string;
13
+ key_id: string;
14
+ alg: 'Ed25519';
15
+ value: Hex128;
16
+ }
17
+ export interface ReceiptV1 {
18
+ profile: 'aps-receipt-v1';
19
+ receipt_id: Hex64;
20
+ receipt_type: string;
21
+ issuer: string;
22
+ subject_agent: string;
23
+ action_ref: Hex64;
24
+ delegation_ref: string;
25
+ decision_ref?: Hex64;
26
+ issued_at: string;
27
+ evidence_refs: EvidenceRefV1[];
28
+ result: {
29
+ [key: string]: JsonValue;
30
+ };
31
+ prev?: Hex64;
32
+ signatures: ReceiptSignatureV1[];
33
+ }
34
+ export interface ReceiptSignerV1 {
35
+ signer: string;
36
+ key_id: string;
37
+ private_key: string;
38
+ }
39
+ export interface DecisionRefInputV1 {
40
+ profile: 'aps-decision-ref-v1';
41
+ action_ref: Hex64;
42
+ authority_state_ref: Hex64;
43
+ policy_ref: Hex64;
44
+ context_ref: Hex64;
45
+ decision_output_ref: Hex64;
46
+ }
47
+ export interface CoreDecisionOutputV1 {
48
+ profile: 'aps-core-decision-output-v1';
49
+ verdict: 'permit' | 'deny' | 'narrow';
50
+ effective_authority_ref: Hex64 | null;
51
+ constraints: string[];
52
+ }
53
+ export interface SupportingRecordV1 {
54
+ profile: 'aps-supporting-record-v1';
55
+ record_id: Hex64;
56
+ record_type: string;
57
+ issuer: string;
58
+ issuer_key_id: string;
59
+ issued_at: string;
60
+ action_ref?: Hex64;
61
+ body: {
62
+ [key: string]: JsonValue;
63
+ };
64
+ sig_alg: 'Ed25519';
65
+ sig: Hex128;
66
+ }
67
+ export interface EvidenceBundleMemberInputV2 {
68
+ member_id: string;
69
+ member_type: string;
70
+ payload: JsonValue;
71
+ }
72
+ export interface EvidenceBundleMemberV2 {
73
+ member_id: string;
74
+ member_type: string;
75
+ sha256: Hex64;
76
+ }
77
+ export interface EvidenceBundleBodyV2 {
78
+ members: EvidenceBundleMemberV2[];
79
+ merkle_root: Hex64;
80
+ }
81
+ export type EvidenceBundleProofStepV2 = {
82
+ position: 'left' | 'right';
83
+ sha256: Hex64;
84
+ } | {
85
+ position: 'promote';
86
+ };
87
+ export interface EvidenceBundleProofV2 {
88
+ profile: 'aps-evidence-proof-v2';
89
+ member: EvidenceBundleMemberV2;
90
+ leaf_index: number;
91
+ leaf_count: number;
92
+ path: EvidenceBundleProofStepV2[];
93
+ }
94
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/v2/receipt-core/types.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,OAAO,GAAG,MAAM,GA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AAE,sBAAsB,CAAA;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,yBAAyB,EAAE,CAAA;CAClC"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) 2026 Tymofii Pidlisnyi
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/v2/receipt-core/types.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,sCAAsC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "agent-passport-system",
3
- "version": "4.1.0",
4
- "description": "Enforcement and accountability layer for AI agents. Bring your own identity (did:key, did:web, SPIFFE, OAuth, did:aps). Verifier hot path p50 = 420ns bare-metal Linux EPYC 7313P (§13.1 canonical environment per spec), 347ns AWS c7i.2xlarge, 292ns Mac M3. Gateway enforcement, monotonic narrowing, cascade revocation, Bayesian reputation, wallet binding, unified four-axis attribution primitive, per-period attribution settlement, data lifecycle, mutual authentication, Wave 1 accountability primitives (action, authority-boundary, custody, contestability, bundle), evidentiary type safety (claim/evidence registry, claim verifier with forbidden-substitution detection, contestation cascade). 4,098 tests.",
3
+ "version": "4.2.0",
4
+ "description": "Enforcement and accountability layer for AI agents. Bring your own identity (did:key, did:web, SPIFFE, OAuth, did:aps). Verifier hot path p50 = 420ns bare-metal Linux EPYC 7313P (§13.1 canonical environment per spec), 347ns AWS c7i.2xlarge, 292ns Mac M3. Gateway enforcement, monotonic narrowing, cascade revocation, Bayesian reputation, wallet binding, unified four-axis attribution primitive, per-period attribution settlement, data lifecycle, mutual authentication, Wave 1 accountability primitives (action, authority-boundary, custody, contestability, bundle), evidentiary type safety (claim/evidence registry, claim verifier with forbidden-substitution detection, contestation cascade). 4,326 tests.",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
7
7
  "types": "dist/src/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tsc && chmod +x dist/src/cli/index.js",
23
- "test": "npx tsx --test tests/passport.test.ts tests/adversarial.ts tests/v2.0-integration.ts tests/contract.test.ts tests/agora.test.ts tests/values.test.ts tests/delegation.test.ts tests/attribution.test.ts tests/policy.test.ts tests/canonical.test.ts tests/coordination.test.ts tests/commerce.test.ts tests/enforcement.test.ts tests/routing.test.ts tests/did-vc.test.ts tests/a2a.test.ts tests/principal.test.ts tests/adversarial-paper.test.ts tests/property-delegation.test.ts tests/property-canonical.test.ts tests/intent.test.ts tests/reputation-authority.test.ts tests/cross-chain.test.ts tests/encrypted-messaging.test.ts tests/obligations.test.ts tests/execution-envelope.test.ts tests/adversarial-causal-chain.test.ts tests/governance.test.ts tests/feasibility.test.ts tests/identity.test.ts tests/precedent.test.ts tests/reanchor.test.ts tests/escalation.test.ts tests/oracle-witness.test.ts tests/messaging-audit.test.ts tests/policy-conflict.test.ts tests/data-source.test.ts tests/decision-semantics.test.ts tests/interop-vectors.test.ts tests/v2-bridge.test.ts tests/v2-full.test.ts tests/key-storage.test.ts tests/qntm-bridge.test.ts tests/agent-json-bridge.test.ts tests/did-resolution-conformance.test.ts tests/decision-equivalence.test.ts tests/data-lifecycle.test.ts tests/campaign7-composition.test.ts tests/entity-verification.test.ts tests/conformance.test.ts tests/governance-block.test.ts tests/aps-txt.test.ts tests/governance-360.test.ts tests/storage-backend.test.ts tests/receipt-bundle.test.ts tests/reputation-confidence.test.ts tests/governance-consumer.test.ts tests/charter.test.ts tests/institutional-governance-phase2.test.ts tests/data-source-attribution.test.ts tests/canonical-jcs.test.ts tests/canonical-jcs-lone-surrogate.test.ts tests/temporal-spread.test.ts tests/fidelity-pressure.test.ts tests/denial-domains.test.ts tests/data-narrowing.test.ts tests/governance-posture.test.ts tests/anchor-state.test.ts tests/issuer-signature.test.ts tests/openshell-adapter.test.ts tests/attestation.test.ts tests/execution-attestation.test.ts tests/bilateral-receipt.test.ts tests/proof-namespace.test.ts tests/ecosystem-features.test.ts tests/persistent-passport.test.ts tests/security-av.test.ts tests/audit-fixes.test.ts tests/did-interop.test.ts tests/identity-bridge.test.ts tests/vc-wrapper.test.ts tests/identity-pipeline.test.ts tests/cross-protocol/sint-crossverify.test.ts tests/action-ref.test.ts tests/external-action-ref.test.ts tests/freshness.test.ts tests/evidence-grade.test.ts tests/key-rotation.test.ts tests/governance-regression.test.ts tests/posture-overlay.test.ts tests/feasibility-gateway.test.ts tests/trust-adapters.test.ts tests/evaluation-context.test.ts tests/health.test.ts tests/composio-adapter.test.ts tests/interop/ietf-envelope.test.ts tests/interop/signet-combined.test.ts tests/interop/moltrust-attestation.test.ts tests/interop/cross-protocol-vectors.test.ts tests/interop/receipt-chaining.test.ts tests/ibac-adapter.test.ts tests/langchain-adapter.test.ts tests/crewai-adapter.test.ts tests/mcp-adapter.test.ts tests/a2a-adapter.test.ts tests/gonka-adapter.test.ts tests/cross-algo-mismatch.test.ts tests/credential-lifecycle.test.ts tests/behavioral-memory.test.ts tests/telemetry-scope.test.ts tests/idempotency.test.ts tests/v2/wallet-binding.test.ts tests/v2/wallet-binding-fixture.test.ts tests/v2/credential-check-policy.test.ts tests/v2/delegation-escalation.test.ts tests/v2/attribution-consent.test.ts tests/v2/attribution-integration.test.ts tests/v2/attribution-primitive.test.ts tests/v2/attribution-primitive-integration.test.ts tests/v2/build-b-fractional-weights.test.ts tests/v2/build-b-cross-language.test.ts tests/v2/build-c-settlement.test.ts tests/v2/build-c-cross-language.test.ts tests/v2/build-c-end-to-end.test.ts tests/v2/provisional-statement.test.ts tests/temporal-decay.test.ts tests/confidence-breakdown.test.ts tests/behavioral-fingerprint.test.ts tests/session-boundary.test.ts tests/probe-identity.test.ts tests/v2/cognitive-attestation/envelope.test.ts tests/v2/cognitive-attestation/verify.test.ts tests/v2/cognitive-attestation/adversarial.test.ts tests/v2/mutual-auth/handshake.test.ts tests/v2/mutual-auth/adversarial.test.ts tests/v2/mutual-auth/conformance.test.ts tests/property-bilateral-receipt.test.ts tests/v2/instruction-provenance/conformance.test.ts tests/v2/instruction-provenance/adversarial.test.ts tests/v2/identity-composition-error.test.ts tests/v2/claim-evidence-types.test.ts tests/v2/claim-verifier.test.ts tests/v2/downstream-taint.test.ts tests/v2/payment-rails/nano.test.ts tests/v2/payment-rails/governance.test.ts tests/v2/payment-rails/ap2.test.ts tests/v2/payment-rails/x402.test.ts tests/v2/payment-rails/conformance/harness.test.ts tests/v2/payment-rails/binding-harness.test.ts tests/v2/payment-rails/stripe-issuing-primitives.test.ts tests/v2/payment-rails/acp.test.ts tests/v2/payment-rails/cycles.test.ts tests/v2/payment-rails/mpp.test.ts tests/v2/payment-rails/scope-resolution.test.ts tests/v2/payment-rails/accountability-bundle.test.ts tests/v2/payment-rails/did-uri-signing.test.ts tests/v2/payment-rails/cross-receipt-chain.test.ts src/v2/accountability/__tests__/action.test.ts src/v2/accountability/__tests__/authority-boundary.test.ts src/v2/accountability/__tests__/bundle.test.ts src/v2/accountability/__tests__/contestability.test.ts src/v2/accountability/__tests__/custody.test.ts src/v2/accountability/__tests__/fixtures.test.ts src/v2/cognitive_attestation/__tests__/cognitive_attestation.test.ts src/v2/delegation/__tests__/responsibility_anchor.test.ts src/v2/memory_provenance/__tests__/memory_provenance.test.ts src/v2/cross_issuer_attestation/__tests__/cross_issuer_attestation.test.ts src/v2/behavioral_drift_window/__tests__/behavioral_drift_window.test.ts tests/tool-registry-integrity.test.ts tests/v2/transport/rfc9421/request-binding.test.ts tests/v2/verifier-hardening.test.ts tests/v2/key-resolution/resolver.test.ts src/v2/feasibility/__tests__/feasibility.test.ts tests/oauth-rfc8693-bridge.test.ts tests/conformance/conformance-negatives.test.ts tests/v2/policy-bundle/policy-bundle.test.ts src/v2/scope-registry/__tests__/scope-registry.test.ts tests/check-many-parity.test.ts tests/cross-impl/jcs-equivalence.test.ts tests/remote-signer.test.ts tests/v2/assurance/descriptor.test.ts tests/v2/audience-binding/audience-binding.test.ts tests/v2/hash-pointer/bbs-composition.test.ts tests/v2/hash-pointer/profile.test.ts tests/v2/human-oversight/human-oversight.test.ts tests/v2/offline-verifier/conformance-runner.test.ts tests/v2/offline-verifier/middleware.test.ts tests/v2/offline-verifier/verify.test.ts tests/v2/payment-rails/cycles-evidence-resolution.test.ts tests/v2/payment-rails/cycles-evidence-authority.test.ts tests/v2/revocation-enforcement.test.ts tests/v2/trust-policy/trust-policy.test.ts src/v2/context-provenance/__tests__/roundtrip.test.ts src/v2/context-provenance/__tests__/disclosure.test.ts src/v2/context-provenance/__tests__/known-answer.test.ts src/v2/context-provenance/__tests__/conformance.test.ts src/v2/context-provenance/__tests__/adversarial.test.ts src/v2/context-provenance/__tests__/parity.test.ts src/v2/context-provenance/__tests__/cross-lang-parity.test.ts tests/v2/verification-source.test.ts tests/v2/producer-attestation.test.ts tests/delegation-currency-narrowing.test.ts tests/delegation-temporal-narrowing.test.ts tests/oauth-id-jag-bridge.test.ts tests/v2/regulated-action/conformance.test.ts tests/commerce-spend-accumulation.test.ts tests/delegation-spend-unit-narrowing.test.ts tests/delegation-parent-verify.test.ts tests/commerce-currency-gate.test.ts tests/v2/composition-check/conformance.test.ts src/v2/word_handles/__tests__/word_handles.test.ts src/v2/read_fidelity_receipt/__tests__/read_fidelity_receipt.test.ts tests/jurisdiction-selection.test.ts tests/v2/bilateral-pair/bilateral-pair.test.ts tests/evidence-bundle.test.ts tests/v2/verifier-null-guards.test.ts tests/merkle-domain-separation.test.ts tests/threshold-verify-before-count.test.ts tests/reversibility-fold.test.ts tests/reversibility-profile-parity.test.ts tests/reversibility-v0-vectors.test.ts",
23
+ "test": "npx tsx --test tests/passport.test.ts tests/adversarial.ts tests/v2.0-integration.ts tests/contract.test.ts tests/agora.test.ts tests/values.test.ts tests/delegation.test.ts tests/attribution.test.ts tests/policy.test.ts tests/canonical.test.ts tests/coordination.test.ts tests/commerce.test.ts tests/enforcement.test.ts tests/routing.test.ts tests/did-vc.test.ts tests/a2a.test.ts tests/principal.test.ts tests/adversarial-paper.test.ts tests/property-delegation.test.ts tests/property-canonical.test.ts tests/intent.test.ts tests/reputation-authority.test.ts tests/cross-chain.test.ts tests/encrypted-messaging.test.ts tests/obligations.test.ts tests/execution-envelope.test.ts tests/adversarial-causal-chain.test.ts tests/governance.test.ts tests/feasibility.test.ts tests/identity.test.ts tests/precedent.test.ts tests/reanchor.test.ts tests/escalation.test.ts tests/oracle-witness.test.ts tests/messaging-audit.test.ts tests/policy-conflict.test.ts tests/data-source.test.ts tests/decision-semantics.test.ts tests/interop-vectors.test.ts tests/v2-bridge.test.ts tests/v2-full.test.ts tests/key-storage.test.ts tests/qntm-bridge.test.ts tests/agent-json-bridge.test.ts tests/did-resolution-conformance.test.ts tests/decision-equivalence.test.ts tests/data-lifecycle.test.ts tests/campaign7-composition.test.ts tests/entity-verification.test.ts tests/conformance.test.ts tests/governance-block.test.ts tests/aps-txt.test.ts tests/governance-360.test.ts tests/storage-backend.test.ts tests/receipt-bundle.test.ts tests/reputation-confidence.test.ts tests/governance-consumer.test.ts tests/charter.test.ts tests/institutional-governance-phase2.test.ts tests/data-source-attribution.test.ts tests/canonical-jcs.test.ts tests/canonical-jcs-lone-surrogate.test.ts tests/temporal-spread.test.ts tests/fidelity-pressure.test.ts tests/denial-domains.test.ts tests/data-narrowing.test.ts tests/governance-posture.test.ts tests/anchor-state.test.ts tests/issuer-signature.test.ts tests/openshell-adapter.test.ts tests/attestation.test.ts tests/execution-attestation.test.ts tests/bilateral-receipt.test.ts tests/proof-namespace.test.ts tests/ecosystem-features.test.ts tests/persistent-passport.test.ts tests/security-av.test.ts tests/audit-fixes.test.ts tests/did-interop.test.ts tests/identity-bridge.test.ts tests/vc-wrapper.test.ts tests/identity-pipeline.test.ts tests/cross-protocol/sint-crossverify.test.ts tests/action-ref.test.ts tests/external-action-ref.test.ts tests/freshness.test.ts tests/evidence-grade.test.ts tests/key-rotation.test.ts tests/governance-regression.test.ts tests/posture-overlay.test.ts tests/feasibility-gateway.test.ts tests/trust-adapters.test.ts tests/evaluation-context.test.ts tests/health.test.ts tests/composio-adapter.test.ts tests/interop/ietf-envelope.test.ts tests/interop/signet-combined.test.ts tests/interop/moltrust-attestation.test.ts tests/interop/cross-protocol-vectors.test.ts tests/interop/receipt-chaining.test.ts tests/ibac-adapter.test.ts tests/langchain-adapter.test.ts tests/crewai-adapter.test.ts tests/mcp-adapter.test.ts tests/a2a-adapter.test.ts tests/gonka-adapter.test.ts tests/cross-algo-mismatch.test.ts tests/credential-lifecycle.test.ts tests/behavioral-memory.test.ts tests/telemetry-scope.test.ts tests/idempotency.test.ts tests/v2/wallet-binding.test.ts tests/v2/wallet-binding-fixture.test.ts tests/v2/credential-check-policy.test.ts tests/v2/delegation-escalation.test.ts tests/v2/attribution-consent.test.ts tests/v2/attribution-integration.test.ts tests/v2/attribution-primitive.test.ts tests/v2/attribution-primitive-integration.test.ts tests/v2/build-b-fractional-weights.test.ts tests/v2/build-b-cross-language.test.ts tests/v2/build-c-settlement.test.ts tests/v2/build-c-cross-language.test.ts tests/v2/build-c-end-to-end.test.ts tests/v2/provisional-statement.test.ts tests/temporal-decay.test.ts tests/confidence-breakdown.test.ts tests/behavioral-fingerprint.test.ts tests/session-boundary.test.ts tests/probe-identity.test.ts tests/v2/cognitive-attestation/envelope.test.ts tests/v2/cognitive-attestation/verify.test.ts tests/v2/cognitive-attestation/adversarial.test.ts tests/v2/mutual-auth/handshake.test.ts tests/v2/mutual-auth/adversarial.test.ts tests/v2/mutual-auth/conformance.test.ts tests/property-bilateral-receipt.test.ts tests/v2/instruction-provenance/conformance.test.ts tests/v2/instruction-provenance/adversarial.test.ts tests/v2/identity-composition-error.test.ts tests/v2/claim-evidence-types.test.ts tests/v2/claim-verifier.test.ts tests/v2/downstream-taint.test.ts tests/v2/payment-rails/nano.test.ts tests/v2/payment-rails/governance.test.ts tests/v2/payment-rails/ap2.test.ts tests/v2/payment-rails/x402.test.ts tests/v2/payment-rails/conformance/harness.test.ts tests/v2/payment-rails/binding-harness.test.ts tests/v2/payment-rails/stripe-issuing-primitives.test.ts tests/v2/payment-rails/acp.test.ts tests/v2/payment-rails/cycles.test.ts tests/v2/payment-rails/mpp.test.ts tests/v2/payment-rails/scope-resolution.test.ts tests/v2/payment-rails/accountability-bundle.test.ts tests/v2/payment-rails/did-uri-signing.test.ts tests/v2/payment-rails/cross-receipt-chain.test.ts src/v2/accountability/__tests__/action.test.ts src/v2/accountability/__tests__/authority-boundary.test.ts src/v2/accountability/__tests__/bundle.test.ts src/v2/accountability/__tests__/contestability.test.ts src/v2/accountability/__tests__/custody.test.ts src/v2/accountability/__tests__/fixtures.test.ts src/v2/cognitive_attestation/__tests__/cognitive_attestation.test.ts src/v2/delegation/__tests__/responsibility_anchor.test.ts src/v2/memory_provenance/__tests__/memory_provenance.test.ts src/v2/cross_issuer_attestation/__tests__/cross_issuer_attestation.test.ts src/v2/behavioral_drift_window/__tests__/behavioral_drift_window.test.ts tests/tool-registry-integrity.test.ts tests/v2/transport/rfc9421/request-binding.test.ts tests/v2/verifier-hardening.test.ts tests/v2/key-resolution/resolver.test.ts src/v2/feasibility/__tests__/feasibility.test.ts tests/oauth-rfc8693-bridge.test.ts tests/conformance/conformance-negatives.test.ts tests/v2/policy-bundle/policy-bundle.test.ts src/v2/scope-registry/__tests__/scope-registry.test.ts tests/check-many-parity.test.ts tests/cross-impl/jcs-equivalence.test.ts tests/remote-signer.test.ts tests/v2/assurance/descriptor.test.ts tests/v2/audience-binding/audience-binding.test.ts tests/v2/hash-pointer/bbs-composition.test.ts tests/v2/hash-pointer/profile.test.ts tests/v2/human-oversight/human-oversight.test.ts tests/v2/offline-verifier/conformance-runner.test.ts tests/v2/offline-verifier/middleware.test.ts tests/v2/offline-verifier/verify.test.ts tests/v2/payment-rails/cycles-evidence-resolution.test.ts tests/v2/payment-rails/cycles-evidence-authority.test.ts tests/v2/revocation-enforcement.test.ts tests/v2/trust-policy/trust-policy.test.ts src/v2/context-provenance/__tests__/roundtrip.test.ts src/v2/context-provenance/__tests__/disclosure.test.ts src/v2/context-provenance/__tests__/known-answer.test.ts src/v2/context-provenance/__tests__/conformance.test.ts src/v2/context-provenance/__tests__/adversarial.test.ts src/v2/context-provenance/__tests__/parity.test.ts src/v2/context-provenance/__tests__/cross-lang-parity.test.ts tests/v2/verification-source.test.ts tests/v2/producer-attestation.test.ts tests/delegation-currency-narrowing.test.ts tests/delegation-temporal-narrowing.test.ts tests/oauth-id-jag-bridge.test.ts tests/v2/regulated-action/conformance.test.ts tests/commerce-spend-accumulation.test.ts tests/delegation-spend-unit-narrowing.test.ts tests/delegation-parent-verify.test.ts tests/commerce-currency-gate.test.ts tests/v2/composition-check/conformance.test.ts src/v2/word_handles/__tests__/word_handles.test.ts src/v2/read_fidelity_receipt/__tests__/read_fidelity_receipt.test.ts tests/jurisdiction-selection.test.ts tests/v2/bilateral-pair/bilateral-pair.test.ts tests/evidence-bundle.test.ts tests/v2/verifier-null-guards.test.ts tests/merkle-domain-separation.test.ts tests/threshold-verify-before-count.test.ts tests/reversibility-fold.test.ts tests/reversibility-profile-parity.test.ts tests/reversibility-v0-vectors.test.ts tests/action-reference-v2.test.ts tests/identity-binding-v2.test.ts tests/oauth-id-jag-import-v1.test.ts tests/protocol-bindings-v1.test.ts tests/receipt-core-v1.test.ts tests/v2/authority-budget.test.ts tests/v2/authority-delegation.test.ts",
24
24
  "test:interop": "npx tsx --test tests/interop/ietf-envelope.test.ts tests/interop/signet-combined.test.ts tests/interop/moltrust-attestation.test.ts tests/interop/cross-protocol-vectors.test.ts tests/interop/receipt-chaining.test.ts",
25
25
  "test:quick": "tsx --test tests/passport.test.ts",
26
26
  "test:fixtures": "tsx fixtures/bilateral-delegation/test-canonicalize.ts",
@@ -30,7 +30,7 @@
30
30
  "prepublishOnly": "npm run build && npm test",
31
31
  "postversion": "if [ -f ~/aps-web/scripts/sync-project-state.mjs ]; then node ~/aps-web/scripts/sync-project-state.mjs sdk $npm_package_version; else echo 'postversion: ~/aps-web/scripts/sync-project-state.mjs not found, skipping project-state sync'; fi",
32
32
  "postpublish": "if [ -d ~/aps-web ]; then cd ~/aps-web && node scripts/propagate.mjs --apply --skip-roadmap-build; else echo 'postpublish: ~/aps-web not found, skipping propagation'; fi",
33
- "test:coverage": "npx tsx --test --experimental-test-coverage tests/passport.test.ts tests/adversarial.ts tests/v2.0-integration.ts tests/contract.test.ts tests/agora.test.ts tests/values.test.ts tests/delegation.test.ts tests/attribution.test.ts tests/policy.test.ts tests/canonical.test.ts tests/coordination.test.ts tests/commerce.test.ts tests/enforcement.test.ts tests/routing.test.ts tests/did-vc.test.ts tests/a2a.test.ts tests/principal.test.ts tests/adversarial-paper.test.ts tests/property-delegation.test.ts tests/property-canonical.test.ts tests/intent.test.ts tests/reputation-authority.test.ts tests/cross-chain.test.ts tests/encrypted-messaging.test.ts tests/obligations.test.ts tests/execution-envelope.test.ts tests/adversarial-causal-chain.test.ts tests/governance.test.ts tests/feasibility.test.ts tests/identity.test.ts tests/precedent.test.ts tests/reanchor.test.ts tests/escalation.test.ts tests/oracle-witness.test.ts tests/messaging-audit.test.ts tests/policy-conflict.test.ts tests/data-source.test.ts tests/decision-semantics.test.ts tests/interop-vectors.test.ts tests/v2-bridge.test.ts tests/v2-full.test.ts tests/key-storage.test.ts tests/qntm-bridge.test.ts tests/agent-json-bridge.test.ts tests/did-resolution-conformance.test.ts tests/decision-equivalence.test.ts tests/data-lifecycle.test.ts tests/campaign7-composition.test.ts tests/entity-verification.test.ts tests/conformance.test.ts tests/governance-block.test.ts tests/aps-txt.test.ts tests/governance-360.test.ts tests/storage-backend.test.ts tests/receipt-bundle.test.ts tests/reputation-confidence.test.ts tests/governance-consumer.test.ts tests/charter.test.ts tests/institutional-governance-phase2.test.ts tests/data-source-attribution.test.ts tests/canonical-jcs.test.ts tests/canonical-jcs-lone-surrogate.test.ts tests/temporal-spread.test.ts tests/fidelity-pressure.test.ts tests/denial-domains.test.ts tests/data-narrowing.test.ts tests/governance-posture.test.ts tests/anchor-state.test.ts tests/issuer-signature.test.ts tests/openshell-adapter.test.ts tests/attestation.test.ts tests/execution-attestation.test.ts tests/bilateral-receipt.test.ts tests/proof-namespace.test.ts tests/ecosystem-features.test.ts tests/persistent-passport.test.ts tests/security-av.test.ts tests/audit-fixes.test.ts tests/did-interop.test.ts tests/identity-bridge.test.ts tests/vc-wrapper.test.ts tests/identity-pipeline.test.ts tests/cross-protocol/sint-crossverify.test.ts tests/action-ref.test.ts tests/external-action-ref.test.ts tests/freshness.test.ts tests/evidence-grade.test.ts tests/key-rotation.test.ts tests/governance-regression.test.ts tests/posture-overlay.test.ts tests/feasibility-gateway.test.ts tests/trust-adapters.test.ts tests/evaluation-context.test.ts tests/health.test.ts tests/composio-adapter.test.ts tests/interop/ietf-envelope.test.ts tests/interop/signet-combined.test.ts tests/interop/moltrust-attestation.test.ts tests/interop/cross-protocol-vectors.test.ts tests/interop/receipt-chaining.test.ts tests/ibac-adapter.test.ts tests/langchain-adapter.test.ts tests/crewai-adapter.test.ts tests/mcp-adapter.test.ts tests/a2a-adapter.test.ts tests/gonka-adapter.test.ts tests/cross-algo-mismatch.test.ts tests/credential-lifecycle.test.ts tests/behavioral-memory.test.ts tests/telemetry-scope.test.ts tests/idempotency.test.ts tests/v2/wallet-binding.test.ts tests/v2/wallet-binding-fixture.test.ts tests/v2/credential-check-policy.test.ts tests/v2/delegation-escalation.test.ts tests/v2/attribution-consent.test.ts tests/v2/attribution-integration.test.ts tests/v2/attribution-primitive.test.ts tests/v2/attribution-primitive-integration.test.ts tests/v2/build-b-fractional-weights.test.ts tests/v2/build-b-cross-language.test.ts tests/v2/build-c-settlement.test.ts tests/v2/build-c-cross-language.test.ts tests/v2/build-c-end-to-end.test.ts tests/v2/provisional-statement.test.ts tests/temporal-decay.test.ts tests/confidence-breakdown.test.ts tests/behavioral-fingerprint.test.ts tests/session-boundary.test.ts tests/probe-identity.test.ts tests/v2/cognitive-attestation/envelope.test.ts tests/v2/cognitive-attestation/verify.test.ts tests/v2/cognitive-attestation/adversarial.test.ts tests/v2/mutual-auth/handshake.test.ts tests/v2/mutual-auth/adversarial.test.ts tests/v2/mutual-auth/conformance.test.ts tests/property-bilateral-receipt.test.ts tests/v2/instruction-provenance/conformance.test.ts tests/v2/instruction-provenance/adversarial.test.ts tests/v2/identity-composition-error.test.ts tests/v2/claim-evidence-types.test.ts tests/v2/claim-verifier.test.ts tests/v2/downstream-taint.test.ts tests/v2/payment-rails/nano.test.ts tests/v2/payment-rails/governance.test.ts tests/v2/payment-rails/ap2.test.ts tests/v2/payment-rails/x402.test.ts tests/v2/payment-rails/conformance/harness.test.ts tests/v2/payment-rails/binding-harness.test.ts tests/v2/payment-rails/stripe-issuing-primitives.test.ts tests/v2/payment-rails/acp.test.ts tests/v2/payment-rails/cycles.test.ts tests/v2/payment-rails/mpp.test.ts tests/v2/payment-rails/scope-resolution.test.ts tests/v2/payment-rails/accountability-bundle.test.ts tests/v2/payment-rails/did-uri-signing.test.ts tests/v2/payment-rails/cross-receipt-chain.test.ts src/v2/accountability/__tests__/action.test.ts src/v2/accountability/__tests__/authority-boundary.test.ts src/v2/accountability/__tests__/bundle.test.ts src/v2/accountability/__tests__/contestability.test.ts src/v2/accountability/__tests__/custody.test.ts src/v2/accountability/__tests__/fixtures.test.ts src/v2/cognitive_attestation/__tests__/cognitive_attestation.test.ts src/v2/delegation/__tests__/responsibility_anchor.test.ts src/v2/memory_provenance/__tests__/memory_provenance.test.ts src/v2/cross_issuer_attestation/__tests__/cross_issuer_attestation.test.ts src/v2/behavioral_drift_window/__tests__/behavioral_drift_window.test.ts tests/tool-registry-integrity.test.ts tests/v2/transport/rfc9421/request-binding.test.ts tests/v2/verifier-hardening.test.ts tests/v2/key-resolution/resolver.test.ts src/v2/feasibility/__tests__/feasibility.test.ts tests/oauth-rfc8693-bridge.test.ts tests/conformance/conformance-negatives.test.ts tests/v2/policy-bundle/policy-bundle.test.ts src/v2/scope-registry/__tests__/scope-registry.test.ts tests/check-many-parity.test.ts tests/cross-impl/jcs-equivalence.test.ts tests/remote-signer.test.ts tests/v2/assurance/descriptor.test.ts tests/v2/audience-binding/audience-binding.test.ts tests/v2/hash-pointer/bbs-composition.test.ts tests/v2/hash-pointer/profile.test.ts tests/v2/human-oversight/human-oversight.test.ts tests/v2/offline-verifier/conformance-runner.test.ts tests/v2/offline-verifier/middleware.test.ts tests/v2/offline-verifier/verify.test.ts tests/v2/payment-rails/cycles-evidence-resolution.test.ts tests/v2/payment-rails/cycles-evidence-authority.test.ts tests/v2/revocation-enforcement.test.ts tests/v2/trust-policy/trust-policy.test.ts src/v2/context-provenance/__tests__/roundtrip.test.ts src/v2/context-provenance/__tests__/disclosure.test.ts src/v2/context-provenance/__tests__/known-answer.test.ts src/v2/context-provenance/__tests__/conformance.test.ts src/v2/context-provenance/__tests__/adversarial.test.ts src/v2/context-provenance/__tests__/parity.test.ts src/v2/context-provenance/__tests__/cross-lang-parity.test.ts tests/v2/verification-source.test.ts tests/v2/producer-attestation.test.ts tests/delegation-currency-narrowing.test.ts tests/delegation-temporal-narrowing.test.ts tests/oauth-id-jag-bridge.test.ts tests/v2/regulated-action/conformance.test.ts tests/commerce-spend-accumulation.test.ts tests/delegation-spend-unit-narrowing.test.ts tests/delegation-parent-verify.test.ts tests/commerce-currency-gate.test.ts tests/v2/composition-check/conformance.test.ts src/v2/word_handles/__tests__/word_handles.test.ts src/v2/read_fidelity_receipt/__tests__/read_fidelity_receipt.test.ts tests/jurisdiction-selection.test.ts tests/v2/bilateral-pair/bilateral-pair.test.ts tests/evidence-bundle.test.ts"
33
+ "test:coverage": "npx tsx --test --experimental-test-coverage tests/passport.test.ts tests/adversarial.ts tests/v2.0-integration.ts tests/contract.test.ts tests/agora.test.ts tests/values.test.ts tests/delegation.test.ts tests/attribution.test.ts tests/policy.test.ts tests/canonical.test.ts tests/coordination.test.ts tests/commerce.test.ts tests/enforcement.test.ts tests/routing.test.ts tests/did-vc.test.ts tests/a2a.test.ts tests/principal.test.ts tests/adversarial-paper.test.ts tests/property-delegation.test.ts tests/property-canonical.test.ts tests/intent.test.ts tests/reputation-authority.test.ts tests/cross-chain.test.ts tests/encrypted-messaging.test.ts tests/obligations.test.ts tests/execution-envelope.test.ts tests/adversarial-causal-chain.test.ts tests/governance.test.ts tests/feasibility.test.ts tests/identity.test.ts tests/precedent.test.ts tests/reanchor.test.ts tests/escalation.test.ts tests/oracle-witness.test.ts tests/messaging-audit.test.ts tests/policy-conflict.test.ts tests/data-source.test.ts tests/decision-semantics.test.ts tests/interop-vectors.test.ts tests/v2-bridge.test.ts tests/v2-full.test.ts tests/key-storage.test.ts tests/qntm-bridge.test.ts tests/agent-json-bridge.test.ts tests/did-resolution-conformance.test.ts tests/decision-equivalence.test.ts tests/data-lifecycle.test.ts tests/campaign7-composition.test.ts tests/entity-verification.test.ts tests/conformance.test.ts tests/governance-block.test.ts tests/aps-txt.test.ts tests/governance-360.test.ts tests/storage-backend.test.ts tests/receipt-bundle.test.ts tests/reputation-confidence.test.ts tests/governance-consumer.test.ts tests/charter.test.ts tests/institutional-governance-phase2.test.ts tests/data-source-attribution.test.ts tests/canonical-jcs.test.ts tests/canonical-jcs-lone-surrogate.test.ts tests/temporal-spread.test.ts tests/fidelity-pressure.test.ts tests/denial-domains.test.ts tests/data-narrowing.test.ts tests/governance-posture.test.ts tests/anchor-state.test.ts tests/issuer-signature.test.ts tests/openshell-adapter.test.ts tests/attestation.test.ts tests/execution-attestation.test.ts tests/bilateral-receipt.test.ts tests/proof-namespace.test.ts tests/ecosystem-features.test.ts tests/persistent-passport.test.ts tests/security-av.test.ts tests/audit-fixes.test.ts tests/did-interop.test.ts tests/identity-bridge.test.ts tests/vc-wrapper.test.ts tests/identity-pipeline.test.ts tests/cross-protocol/sint-crossverify.test.ts tests/action-ref.test.ts tests/external-action-ref.test.ts tests/freshness.test.ts tests/evidence-grade.test.ts tests/key-rotation.test.ts tests/governance-regression.test.ts tests/posture-overlay.test.ts tests/feasibility-gateway.test.ts tests/trust-adapters.test.ts tests/evaluation-context.test.ts tests/health.test.ts tests/composio-adapter.test.ts tests/interop/ietf-envelope.test.ts tests/interop/signet-combined.test.ts tests/interop/moltrust-attestation.test.ts tests/interop/cross-protocol-vectors.test.ts tests/interop/receipt-chaining.test.ts tests/ibac-adapter.test.ts tests/langchain-adapter.test.ts tests/crewai-adapter.test.ts tests/mcp-adapter.test.ts tests/a2a-adapter.test.ts tests/gonka-adapter.test.ts tests/cross-algo-mismatch.test.ts tests/credential-lifecycle.test.ts tests/behavioral-memory.test.ts tests/telemetry-scope.test.ts tests/idempotency.test.ts tests/v2/wallet-binding.test.ts tests/v2/wallet-binding-fixture.test.ts tests/v2/credential-check-policy.test.ts tests/v2/delegation-escalation.test.ts tests/v2/attribution-consent.test.ts tests/v2/attribution-integration.test.ts tests/v2/attribution-primitive.test.ts tests/v2/attribution-primitive-integration.test.ts tests/v2/build-b-fractional-weights.test.ts tests/v2/build-b-cross-language.test.ts tests/v2/build-c-settlement.test.ts tests/v2/build-c-cross-language.test.ts tests/v2/build-c-end-to-end.test.ts tests/v2/provisional-statement.test.ts tests/temporal-decay.test.ts tests/confidence-breakdown.test.ts tests/behavioral-fingerprint.test.ts tests/session-boundary.test.ts tests/probe-identity.test.ts tests/v2/cognitive-attestation/envelope.test.ts tests/v2/cognitive-attestation/verify.test.ts tests/v2/cognitive-attestation/adversarial.test.ts tests/v2/mutual-auth/handshake.test.ts tests/v2/mutual-auth/adversarial.test.ts tests/v2/mutual-auth/conformance.test.ts tests/property-bilateral-receipt.test.ts tests/v2/instruction-provenance/conformance.test.ts tests/v2/instruction-provenance/adversarial.test.ts tests/v2/identity-composition-error.test.ts tests/v2/claim-evidence-types.test.ts tests/v2/claim-verifier.test.ts tests/v2/downstream-taint.test.ts tests/v2/payment-rails/nano.test.ts tests/v2/payment-rails/governance.test.ts tests/v2/payment-rails/ap2.test.ts tests/v2/payment-rails/x402.test.ts tests/v2/payment-rails/conformance/harness.test.ts tests/v2/payment-rails/binding-harness.test.ts tests/v2/payment-rails/stripe-issuing-primitives.test.ts tests/v2/payment-rails/acp.test.ts tests/v2/payment-rails/cycles.test.ts tests/v2/payment-rails/mpp.test.ts tests/v2/payment-rails/scope-resolution.test.ts tests/v2/payment-rails/accountability-bundle.test.ts tests/v2/payment-rails/did-uri-signing.test.ts tests/v2/payment-rails/cross-receipt-chain.test.ts src/v2/accountability/__tests__/action.test.ts src/v2/accountability/__tests__/authority-boundary.test.ts src/v2/accountability/__tests__/bundle.test.ts src/v2/accountability/__tests__/contestability.test.ts src/v2/accountability/__tests__/custody.test.ts src/v2/accountability/__tests__/fixtures.test.ts src/v2/cognitive_attestation/__tests__/cognitive_attestation.test.ts src/v2/delegation/__tests__/responsibility_anchor.test.ts src/v2/memory_provenance/__tests__/memory_provenance.test.ts src/v2/cross_issuer_attestation/__tests__/cross_issuer_attestation.test.ts src/v2/behavioral_drift_window/__tests__/behavioral_drift_window.test.ts tests/tool-registry-integrity.test.ts tests/v2/transport/rfc9421/request-binding.test.ts tests/v2/verifier-hardening.test.ts tests/v2/key-resolution/resolver.test.ts src/v2/feasibility/__tests__/feasibility.test.ts tests/oauth-rfc8693-bridge.test.ts tests/conformance/conformance-negatives.test.ts tests/v2/policy-bundle/policy-bundle.test.ts src/v2/scope-registry/__tests__/scope-registry.test.ts tests/check-many-parity.test.ts tests/cross-impl/jcs-equivalence.test.ts tests/remote-signer.test.ts tests/v2/assurance/descriptor.test.ts tests/v2/audience-binding/audience-binding.test.ts tests/v2/hash-pointer/bbs-composition.test.ts tests/v2/hash-pointer/profile.test.ts tests/v2/human-oversight/human-oversight.test.ts tests/v2/offline-verifier/conformance-runner.test.ts tests/v2/offline-verifier/middleware.test.ts tests/v2/offline-verifier/verify.test.ts tests/v2/payment-rails/cycles-evidence-resolution.test.ts tests/v2/payment-rails/cycles-evidence-authority.test.ts tests/v2/revocation-enforcement.test.ts tests/v2/trust-policy/trust-policy.test.ts src/v2/context-provenance/__tests__/roundtrip.test.ts src/v2/context-provenance/__tests__/disclosure.test.ts src/v2/context-provenance/__tests__/known-answer.test.ts src/v2/context-provenance/__tests__/conformance.test.ts src/v2/context-provenance/__tests__/adversarial.test.ts src/v2/context-provenance/__tests__/parity.test.ts src/v2/context-provenance/__tests__/cross-lang-parity.test.ts tests/v2/verification-source.test.ts tests/v2/producer-attestation.test.ts tests/delegation-currency-narrowing.test.ts tests/delegation-temporal-narrowing.test.ts tests/oauth-id-jag-bridge.test.ts tests/v2/regulated-action/conformance.test.ts tests/commerce-spend-accumulation.test.ts tests/delegation-spend-unit-narrowing.test.ts tests/delegation-parent-verify.test.ts tests/commerce-currency-gate.test.ts tests/v2/composition-check/conformance.test.ts src/v2/word_handles/__tests__/word_handles.test.ts src/v2/read_fidelity_receipt/__tests__/read_fidelity_receipt.test.ts tests/jurisdiction-selection.test.ts tests/v2/bilateral-pair/bilateral-pair.test.ts tests/evidence-bundle.test.ts tests/action-reference-v2.test.ts tests/identity-binding-v2.test.ts tests/oauth-id-jag-import-v1.test.ts tests/protocol-bindings-v1.test.ts tests/receipt-core-v1.test.ts tests/v2/authority-budget.test.ts tests/v2/authority-delegation.test.ts"
34
34
  },
35
35
  "dependencies": {
36
36
  "libsodium-wrappers": "^0.8.4",
@@ -38,11 +38,11 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@jazzer.js/core": "^4.0.0",
41
- "@types/libsodium-wrappers": "^0.7.14",
41
+ "@types/libsodium-wrappers": "^0.8.2",
42
42
  "@types/node": "^20.11.0",
43
43
  "canonicalize": "3.0.0",
44
44
  "fast-check": "^4.9.0",
45
- "tsx": "^4.23.0",
45
+ "tsx": "^4.23.1",
46
46
  "typescript": "^7.0.2"
47
47
  },
48
48
  "keywords": [