flex_hold 0.1.0.pre1

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 (115) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +202 -0
  3. data/NOTICE +22 -0
  4. data/README.md +66 -0
  5. data/exe/flexhold +10 -0
  6. data/lib/flex_hold/base58.rb +36 -0
  7. data/lib/flex_hold/binding.rb +175 -0
  8. data/lib/flex_hold/cli.rb +325 -0
  9. data/lib/flex_hold/collector/canonical.rb +22 -0
  10. data/lib/flex_hold/collector/fetcher.rb +58 -0
  11. data/lib/flex_hold/collector/identity_block.rb +110 -0
  12. data/lib/flex_hold/collector/identity_verifier.rb +128 -0
  13. data/lib/flex_hold/collector/mandate_block.rb +131 -0
  14. data/lib/flex_hold/collector/mandate_verifier.rb +114 -0
  15. data/lib/flex_hold/collector/merkle.rb +31 -0
  16. data/lib/flex_hold/collector/record_block.rb +141 -0
  17. data/lib/flex_hold/collector/record_verifier.rb +134 -0
  18. data/lib/flex_hold/collector/sources.rb +116 -0
  19. data/lib/flex_hold/collector.rb +137 -0
  20. data/lib/flex_hold/consent.rb +56 -0
  21. data/lib/flex_hold/consent_log.rb +87 -0
  22. data/lib/flex_hold/eip712.rb +109 -0
  23. data/lib/flex_hold/envelope.rb +113 -0
  24. data/lib/flex_hold/jws.rb +52 -0
  25. data/lib/flex_hold/keys.rb +196 -0
  26. data/lib/flex_hold/mcp_server.rb +296 -0
  27. data/lib/flex_hold/policy/gate-policy-v1.json +1 -0
  28. data/lib/flex_hold/policy.rb +90 -0
  29. data/lib/flex_hold/presenter.rb +101 -0
  30. data/lib/flex_hold/resolvers.rb +56 -0
  31. data/lib/flex_hold/revoker.rb +48 -0
  32. data/lib/flex_hold/secp256k1.rb +115 -0
  33. data/lib/flex_hold/services.rb +231 -0
  34. data/lib/flex_hold/signer.rb +20 -0
  35. data/lib/flex_hold/status_list.rb +115 -0
  36. data/lib/flex_hold/store.rb +224 -0
  37. data/lib/flex_hold/vectors.rb +568 -0
  38. data/lib/flex_hold/verifier.rb +139 -0
  39. data/lib/flex_hold/version.rb +5 -0
  40. data/lib/flex_hold.rb +68 -0
  41. data/vectors/binding-agent-mismatch.json +42 -0
  42. data/vectors/binding-audience-mismatch.json +43 -0
  43. data/vectors/binding-audience-missing.json +42 -0
  44. data/vectors/binding-erc8004-owner-mismatch.json +47 -0
  45. data/vectors/binding-erc8004-registration-unavailable.json +46 -0
  46. data/vectors/binding-erc8004-valid.json +47 -0
  47. data/vectors/binding-expired.json +41 -0
  48. data/vectors/binding-mandate-issuer-mismatch.json +43 -0
  49. data/vectors/binding-mandate-mismatch.json +42 -0
  50. data/vectors/binding-not-yet-valid.json +41 -0
  51. data/vectors/binding-pkh-door-bound.json +43 -0
  52. data/vectors/binding-pkh-erc8004-valid.json +47 -0
  53. data/vectors/binding-pkh-valid.json +41 -0
  54. data/vectors/binding-pkh-wrong-owner.json +41 -0
  55. data/vectors/binding-revoked.json +41 -0
  56. data/vectors/binding-status-unavailable.json +39 -0
  57. data/vectors/binding-status-wrong-issuer.json +41 -0
  58. data/vectors/binding-v1-type.json +45 -0
  59. data/vectors/binding-valid-all-checks.json +46 -0
  60. data/vectors/binding-valid.json +41 -0
  61. data/vectors/binding-wrong-owner.json +41 -0
  62. data/vectors/envelope-example-v1.0.json +458 -0
  63. data/vectors/fixture-flextrust-passport-indicative-v0.1.json +323 -0
  64. data/vectors/fixture-flexyield-mandate-indicative-v0.1.json +187 -0
  65. data/vectors/identity-expired.json +24 -0
  66. data/vectors/identity-issuer-mismatch.json +24 -0
  67. data/vectors/identity-key-compromised.json +24 -0
  68. data/vectors/identity-key-unknown.json +17 -0
  69. data/vectors/identity-keys.json +20 -0
  70. data/vectors/identity-malformed-no-subject-id.json +24 -0
  71. data/vectors/identity-no-status.json +23 -0
  72. data/vectors/identity-not-yet-valid.json +24 -0
  73. data/vectors/identity-owner-mismatch.json +25 -0
  74. data/vectors/identity-revoked.json +24 -0
  75. data/vectors/identity-signature-invalid.json +24 -0
  76. data/vectors/identity-status-list-revoked.json +11 -0
  77. data/vectors/identity-status-list-valid.json +9 -0
  78. data/vectors/identity-status-list-wrong-issuer.json +9 -0
  79. data/vectors/identity-status-unavailable.json +23 -0
  80. data/vectors/identity-status-wrong-issuer.json +24 -0
  81. data/vectors/identity-valid-owner-match.json +25 -0
  82. data/vectors/identity-valid.json +24 -0
  83. data/vectors/keys.json +71 -0
  84. data/vectors/mandate-agent-mismatch.json +24 -0
  85. data/vectors/mandate-claim-overreach.json +23 -0
  86. data/vectors/mandate-expired.json +23 -0
  87. data/vectors/mandate-float-in-subject.json +23 -0
  88. data/vectors/mandate-indicative-as-delivered.json +23 -0
  89. data/vectors/mandate-issuer-mismatch.json +23 -0
  90. data/vectors/mandate-key-compromised.json +23 -0
  91. data/vectors/mandate-key-unknown.json +16 -0
  92. data/vectors/mandate-keys.json +16 -0
  93. data/vectors/mandate-not-yet-valid.json +23 -0
  94. data/vectors/mandate-receipts-inconsistent.json +23 -0
  95. data/vectors/mandate-signature-invalid.json +23 -0
  96. data/vectors/mandate-valid-agent-match.json +24 -0
  97. data/vectors/mandate-valid.json +23 -0
  98. data/vectors/record-digest-mismatch.json +350 -0
  99. data/vectors/record-expired.json +350 -0
  100. data/vectors/record-indicative-valid.json +350 -0
  101. data/vectors/record-key-compromised.json +350 -0
  102. data/vectors/record-key-unknown.json +343 -0
  103. data/vectors/record-merkle-invalid.json +350 -0
  104. data/vectors/record-not-yet-valid.json +350 -0
  105. data/vectors/record-public-tier-unsigned.json +188 -0
  106. data/vectors/record-root-mismatch.json +350 -0
  107. data/vectors/record-root-signature-invalid.json +350 -0
  108. data/vectors/record-root-unavailable.json +344 -0
  109. data/vectors/record-score-mismatch.json +350 -0
  110. data/vectors/record-signature-invalid.json +350 -0
  111. data/vectors/registration-snapshot.json +30 -0
  112. data/vectors/status-list-revoked.json +10 -0
  113. data/vectors/status-list-valid.json +8 -0
  114. data/vectors/status-list-wrong-issuer.json +9 -0
  115. metadata +217 -0
@@ -0,0 +1,350 @@
1
+ {
2
+ "name": "record-key-compromised",
3
+ "description": "the key was marked compromised before issuance",
4
+ "spec": "docs/spec/collector-v1.md",
5
+ "source": "flextrust",
6
+ "note": "derived from FlexTrust's indicative fixture (ephemeral test key indicative-test-key); verdict only, nothing re-signed",
7
+ "now": "2026-10-26T18:30:00Z",
8
+ "key_directory": {
9
+ "indicative-test-key": {
10
+ "address": "0xE5B5595C2f11306CD43D725CE8b98707a139BbBd",
11
+ "valid_from": "2026-10-26",
12
+ "retired_at": null,
13
+ "compromised_at": "2026-10-26T18:00:00Z"
14
+ }
15
+ },
16
+ "commitments": {
17
+ "2026-10-26": {
18
+ "merkle_root": "76d15ac5c145edb8f9736eea7a8ea57a72245209ff891caf9a96cb19d5170109",
19
+ "leaf_count": 10657,
20
+ "methodology_version": "v1"
21
+ }
22
+ },
23
+ "block": {
24
+ "indicative": true,
25
+ "note": "Indicative record block (passport-v1) for FlexHold's collector (H2, H-O4): a synthetic agent, signed with an ephemeral test key (indicative-test-key), NOT a FlexTrust attestation key. Shape and field names are the contract; values are illustrative; do not verify against production keys.",
26
+ "@context": [
27
+ "https://www.w3.org/ns/credentials/v2",
28
+ "https://flextrust.io/spec/passport/v1"
29
+ ],
30
+ "id": "https://flextrust.io/agents/22286/passport",
31
+ "type": [
32
+ "VerifiableCredential",
33
+ "FlexTrustAgentPassport"
34
+ ],
35
+ "issuer": {
36
+ "id": "did:web:flextrust.io",
37
+ "name": "FlexTrust"
38
+ },
39
+ "validFrom": "2026-10-26T18:12:12Z",
40
+ "validUntil": "2026-10-27T18:12:12Z",
41
+ "tier": "full",
42
+ "version": "passport-v1",
43
+ "credentialSubject": {
44
+ "id": "erc8004:8453:999999001",
45
+ "agent": {
46
+ "id": 22286,
47
+ "did": "erc8004:8453:999999001",
48
+ "name": "Indicative Courier",
49
+ "first_seen_at": "2026-09-26T18:12:12Z",
50
+ "status": "active"
51
+ },
52
+ "score": {
53
+ "value": 712,
54
+ "scale": "0-1000",
55
+ "view": "exact",
56
+ "band": "established",
57
+ "percentile": 100,
58
+ "confidence_bps": 7800,
59
+ "computed_at": "2026-10-26T18:12:12Z",
60
+ "methodology_version": "v1",
61
+ "inputs_hash": "indicative",
62
+ "committed": {
63
+ "day": "2026-10-26",
64
+ "root": "76d15ac5c145edb8f9736eea7a8ea57a72245209ff891caf9a96cb19d5170109"
65
+ }
66
+ },
67
+ "risk_0_100": {
68
+ "value": 29,
69
+ "basis": "derived",
70
+ "formula": "round((1000 - score) / 10)",
71
+ "from": "exact score"
72
+ },
73
+ "factors": {
74
+ "settlement_volume": {
75
+ "weight_bps": 4000,
76
+ "contribution_points": 320,
77
+ "evidence_count": 9,
78
+ "note": null
79
+ }
80
+ },
81
+ "evidence_counts": {
82
+ "settlements": 0,
83
+ "feedback": 0,
84
+ "validations": 0,
85
+ "attested_receipts": 0
86
+ },
87
+ "flags": [
88
+ "manipulation_pattern"
89
+ ],
90
+ "incidents": [
91
+ {
92
+ "id": "anomaly-1",
93
+ "type": "manipulation_pattern",
94
+ "state": "confirmed",
95
+ "at": "2026-10-26T18:12:12Z",
96
+ "reviewed_at": "2026-10-26T18:12:12Z",
97
+ "mandate": "unknown",
98
+ "score_effect": "none"
99
+ }
100
+ ],
101
+ "incident_policy": {
102
+ "exposure": "public-safe: incident types, states and dates — never detector internals, furnisher names or amounts",
103
+ "mandate": "whether an incident fell inside or outside the agent's mandate is a verdict its platform furnishes; FlexTrust never infers it (unknown until furnished)",
104
+ "score_effect": "none: no incident changes a score in this version; only outside-mandate incidents and counterparty harm could ever carry weight, and only under a published methodology version"
105
+ },
106
+ "control_continuity": {
107
+ "owner_address": "0x1111111111111111111111111111111111111111",
108
+ "owner_since": {
109
+ "observed_at": "2026-10-26T18:12:12Z",
110
+ "basis": "chain_event",
111
+ "block": 36500000,
112
+ "tx_hash": "0xc3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
113
+ },
114
+ "owner_changes": 1,
115
+ "owner_history": [
116
+ {
117
+ "from": "0x9999999999999999999999999999999999999999",
118
+ "to": "0x1111111111111111111111111111111111111111",
119
+ "burn": false,
120
+ "block": 36500000,
121
+ "tx_hash": "0xc3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3",
122
+ "observed_at": "2026-10-26T18:12:12Z"
123
+ }
124
+ ],
125
+ "registrations": [
126
+ {
127
+ "chain": "base",
128
+ "chain_id": 8453,
129
+ "token_id": "999999001",
130
+ "owner_address": "0x1111111111111111111111111111111111111111",
131
+ "registered_at_block": 36000000,
132
+ "revoked_at": null,
133
+ "owner_since": {
134
+ "observed_at": "2026-10-26T18:12:12Z",
135
+ "basis": "chain_event",
136
+ "block": 36500000,
137
+ "tx_hash": "0xc3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
138
+ }
139
+ }
140
+ ],
141
+ "anchors": [
142
+ {
143
+ "kind": "http_key",
144
+ "identifier": "ed25519:e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5",
145
+ "verified_at": "2026-10-16T18:12:12Z",
146
+ "status": "active"
147
+ }
148
+ ],
149
+ "anchor_note": "Key rotation and revocation are recorded once the key directory ships (F9); until then an anchor is listed as proven on its verification date.",
150
+ "as_of_block": 50276154
151
+ },
152
+ "bound": false,
153
+ "binding_status_url": null,
154
+ "operator_attested_by": null,
155
+ "liveness": null,
156
+ "slots": {
157
+ "bound": "true once a FlexHold binding for the owner key is present and not revoked (status list)",
158
+ "operator_attested_by": "an accepted attester (x401, EUDI wallet, KYC read-only) — never the operator's legal identity",
159
+ "liveness": "0–6 rungs, C2"
160
+ },
161
+ "history": [
162
+ {
163
+ "date": "2026-10-26",
164
+ "value": 712,
165
+ "confidence_bps": 7800
166
+ }
167
+ ]
168
+ },
169
+ "credentialStatus": {
170
+ "type": "FlexTrustLivePassport",
171
+ "refresh": "https://flextrust.io/agents/22286/passport.json"
172
+ },
173
+ "termsOfUse": {
174
+ "type": "FlexTrustTerms",
175
+ "version": "1.0",
176
+ "url": "https://flextrust.io/terms"
177
+ },
178
+ "verify": {
179
+ "commitments": "https://flextrust.io/commitments.json",
180
+ "keys": "https://flextrust.io/.well-known/flextrust",
181
+ "spec": "https://flextrust.io/spec/passport"
182
+ },
183
+ "statement": {
184
+ "status": "signed",
185
+ "message": {
186
+ "subject": "erc8004:8453:999999001",
187
+ "subjectId": 22286,
188
+ "tier": "full",
189
+ "documentDigest": "0x548e48abe884d856f878bfad20d8d6ddd01dd49c3c27b0721d1ef17c8995dc1e",
190
+ "score": 712,
191
+ "confidenceBps": 7800,
192
+ "riskDerived": 29,
193
+ "methodologyVersion": "v1",
194
+ "commitmentDay": "2026-10-26",
195
+ "commitmentRoot": "0x76d15ac5c145edb8f9736eea7a8ea57a72245209ff891caf9a96cb19d5170109",
196
+ "leafPosition": 10656,
197
+ "ownerAddress": "0x1111111111111111111111111111111111111111",
198
+ "asOfBlock": 50276154,
199
+ "issuedAt": 1793038332,
200
+ "validUntil": 1793124732,
201
+ "keyId": "indicative-test-key"
202
+ },
203
+ "signature": "0x75f0dd8c9477921223a60bdcd800887efc761f7a46bc7ba147ba03c300656340498a91903f3fae910b1d79241f27465c9971f7e8b53c368959d12255e74852a81b",
204
+ "key_id": "indicative-test-key",
205
+ "committed_score": {
206
+ "value": 712,
207
+ "computed_at": "2026-10-26T18:12:12Z"
208
+ },
209
+ "proof": {
210
+ "leaf": {
211
+ "agent_id": 22286,
212
+ "value": 712,
213
+ "computed_at": 1793038332,
214
+ "salt": "15ee9f1e6a25724adb1ff34c3ba7d05d"
215
+ },
216
+ "leaf_format": "sha256(agent_id|value|computed_at_unix|salt)",
217
+ "position": 10656,
218
+ "siblings": [
219
+ "77802746b2d007f3ff197df2c4cb2d244e9b5d24392cec76c75da6ef49d01d5b",
220
+ "4c901db192d9ba195c7468749f50adb08812a83060d46eaeb9dfdf5b768fffa9",
221
+ "d9f9a57557194ce2a0f22c5421840679c8135716354e8011b127a4968e92d58a",
222
+ "0da3a79841e70490ad7a1153460f1992d2a15ffed03146c955723dc4e20a63c4",
223
+ "dae4adc1322c79d074e1016962995a034d211cb04a9129405b9f5730bd71221b",
224
+ "f778006892a331dbd995fe95c5117eabc995a73dfdc41139899649ca4ddff5c6",
225
+ "838159eee9f0beb34773554acbe7f4a40a4be760ac019ab8560ed2d178d4434e",
226
+ "1054fac6cac6f96bda00a2c56a9a9c779eadf4fa080b118e1be5d46df1f826d6",
227
+ "84c9abc528e92608ae4299a3d9b7d44cf0d16ccf9c43387294b844de0971f66a",
228
+ "6d0b61848b4778e97fedb41dbd0da6883fb73535e104daaba2357936d522d85d",
229
+ "ce9a1513c90f63e77f0ecc9fc9f56b84c133b107cc7cf37bba99f082c08679ed",
230
+ "962ba0a4162cf6055cc8d634a3517bc8d76f4094a02d76599d6f67f81aeab2ba",
231
+ "290c3b5ea55b99d24f903cf178763e0f7d11769571643be85d0110612a519ff6",
232
+ "162aa1d7cc5df44a28ade9014042999b7fe5d6fb16a90ac455325f85f9120bd8"
233
+ ],
234
+ "pairing": "sha256(left + right), odd node pairs with itself",
235
+ "root": "76d15ac5c145edb8f9736eea7a8ea57a72245209ff891caf9a96cb19d5170109",
236
+ "committed_on": "2026-10-26"
237
+ },
238
+ "root_signature": {
239
+ "key_id": "indicative-test-key",
240
+ "signed_at": "2026-10-26T18:12:12Z",
241
+ "value": "0x877b154122427081c70b211eedd145192df3f86851f71effa62f84e64beac8084949ba14c12c96a1bc167afbcdcaf51fe082c406b1f2bfbf4d0190c1990142c11b",
242
+ "primary_type": "CommitmentRoot"
243
+ }
244
+ },
245
+ "proof": {
246
+ "type": "EthereumEip712Signature2021",
247
+ "created": "2026-10-26T18:12:12Z",
248
+ "proofPurpose": "assertionMethod",
249
+ "verificationMethod": "did:web:flextrust.io#indicative-test-key",
250
+ "proofValue": "0x75f0dd8c9477921223a60bdcd800887efc761f7a46bc7ba147ba03c300656340498a91903f3fae910b1d79241f27465c9971f7e8b53c368959d12255e74852a81b",
251
+ "eip712": {
252
+ "domain": {
253
+ "name": "FlexTrust",
254
+ "version": "1",
255
+ "chainId": 8453
256
+ },
257
+ "types": {
258
+ "EIP712Domain": [
259
+ {
260
+ "name": "name",
261
+ "type": "string"
262
+ },
263
+ {
264
+ "name": "version",
265
+ "type": "string"
266
+ },
267
+ {
268
+ "name": "chainId",
269
+ "type": "uint256"
270
+ }
271
+ ],
272
+ "PassportStatement": [
273
+ {
274
+ "name": "subject",
275
+ "type": "string"
276
+ },
277
+ {
278
+ "name": "subjectId",
279
+ "type": "uint64"
280
+ },
281
+ {
282
+ "name": "tier",
283
+ "type": "string"
284
+ },
285
+ {
286
+ "name": "documentDigest",
287
+ "type": "bytes32"
288
+ },
289
+ {
290
+ "name": "score",
291
+ "type": "uint16"
292
+ },
293
+ {
294
+ "name": "confidenceBps",
295
+ "type": "uint16"
296
+ },
297
+ {
298
+ "name": "riskDerived",
299
+ "type": "uint8"
300
+ },
301
+ {
302
+ "name": "methodologyVersion",
303
+ "type": "string"
304
+ },
305
+ {
306
+ "name": "commitmentDay",
307
+ "type": "string"
308
+ },
309
+ {
310
+ "name": "commitmentRoot",
311
+ "type": "bytes32"
312
+ },
313
+ {
314
+ "name": "leafPosition",
315
+ "type": "uint32"
316
+ },
317
+ {
318
+ "name": "ownerAddress",
319
+ "type": "string"
320
+ },
321
+ {
322
+ "name": "asOfBlock",
323
+ "type": "uint64"
324
+ },
325
+ {
326
+ "name": "issuedAt",
327
+ "type": "uint64"
328
+ },
329
+ {
330
+ "name": "validUntil",
331
+ "type": "uint64"
332
+ },
333
+ {
334
+ "name": "keyId",
335
+ "type": "string"
336
+ }
337
+ ]
338
+ },
339
+ "primaryType": "PassportStatement",
340
+ "signedFields": [
341
+ "statement.message"
342
+ ]
343
+ }
344
+ }
345
+ },
346
+ "expected": {
347
+ "ok": false,
348
+ "reason": "key_compromised"
349
+ }
350
+ }
@@ -0,0 +1,343 @@
1
+ {
2
+ "name": "record-key-unknown",
3
+ "description": "the key directory does not list the statement's keyId",
4
+ "spec": "docs/spec/collector-v1.md",
5
+ "source": "flextrust",
6
+ "note": "derived from FlexTrust's indicative fixture (ephemeral test key indicative-test-key); verdict only, nothing re-signed",
7
+ "now": "2026-10-26T18:30:00Z",
8
+ "key_directory": {},
9
+ "commitments": {
10
+ "2026-10-26": {
11
+ "merkle_root": "76d15ac5c145edb8f9736eea7a8ea57a72245209ff891caf9a96cb19d5170109",
12
+ "leaf_count": 10657,
13
+ "methodology_version": "v1"
14
+ }
15
+ },
16
+ "block": {
17
+ "indicative": true,
18
+ "note": "Indicative record block (passport-v1) for FlexHold's collector (H2, H-O4): a synthetic agent, signed with an ephemeral test key (indicative-test-key), NOT a FlexTrust attestation key. Shape and field names are the contract; values are illustrative; do not verify against production keys.",
19
+ "@context": [
20
+ "https://www.w3.org/ns/credentials/v2",
21
+ "https://flextrust.io/spec/passport/v1"
22
+ ],
23
+ "id": "https://flextrust.io/agents/22286/passport",
24
+ "type": [
25
+ "VerifiableCredential",
26
+ "FlexTrustAgentPassport"
27
+ ],
28
+ "issuer": {
29
+ "id": "did:web:flextrust.io",
30
+ "name": "FlexTrust"
31
+ },
32
+ "validFrom": "2026-10-26T18:12:12Z",
33
+ "validUntil": "2026-10-27T18:12:12Z",
34
+ "tier": "full",
35
+ "version": "passport-v1",
36
+ "credentialSubject": {
37
+ "id": "erc8004:8453:999999001",
38
+ "agent": {
39
+ "id": 22286,
40
+ "did": "erc8004:8453:999999001",
41
+ "name": "Indicative Courier",
42
+ "first_seen_at": "2026-09-26T18:12:12Z",
43
+ "status": "active"
44
+ },
45
+ "score": {
46
+ "value": 712,
47
+ "scale": "0-1000",
48
+ "view": "exact",
49
+ "band": "established",
50
+ "percentile": 100,
51
+ "confidence_bps": 7800,
52
+ "computed_at": "2026-10-26T18:12:12Z",
53
+ "methodology_version": "v1",
54
+ "inputs_hash": "indicative",
55
+ "committed": {
56
+ "day": "2026-10-26",
57
+ "root": "76d15ac5c145edb8f9736eea7a8ea57a72245209ff891caf9a96cb19d5170109"
58
+ }
59
+ },
60
+ "risk_0_100": {
61
+ "value": 29,
62
+ "basis": "derived",
63
+ "formula": "round((1000 - score) / 10)",
64
+ "from": "exact score"
65
+ },
66
+ "factors": {
67
+ "settlement_volume": {
68
+ "weight_bps": 4000,
69
+ "contribution_points": 320,
70
+ "evidence_count": 9,
71
+ "note": null
72
+ }
73
+ },
74
+ "evidence_counts": {
75
+ "settlements": 0,
76
+ "feedback": 0,
77
+ "validations": 0,
78
+ "attested_receipts": 0
79
+ },
80
+ "flags": [
81
+ "manipulation_pattern"
82
+ ],
83
+ "incidents": [
84
+ {
85
+ "id": "anomaly-1",
86
+ "type": "manipulation_pattern",
87
+ "state": "confirmed",
88
+ "at": "2026-10-26T18:12:12Z",
89
+ "reviewed_at": "2026-10-26T18:12:12Z",
90
+ "mandate": "unknown",
91
+ "score_effect": "none"
92
+ }
93
+ ],
94
+ "incident_policy": {
95
+ "exposure": "public-safe: incident types, states and dates — never detector internals, furnisher names or amounts",
96
+ "mandate": "whether an incident fell inside or outside the agent's mandate is a verdict its platform furnishes; FlexTrust never infers it (unknown until furnished)",
97
+ "score_effect": "none: no incident changes a score in this version; only outside-mandate incidents and counterparty harm could ever carry weight, and only under a published methodology version"
98
+ },
99
+ "control_continuity": {
100
+ "owner_address": "0x1111111111111111111111111111111111111111",
101
+ "owner_since": {
102
+ "observed_at": "2026-10-26T18:12:12Z",
103
+ "basis": "chain_event",
104
+ "block": 36500000,
105
+ "tx_hash": "0xc3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
106
+ },
107
+ "owner_changes": 1,
108
+ "owner_history": [
109
+ {
110
+ "from": "0x9999999999999999999999999999999999999999",
111
+ "to": "0x1111111111111111111111111111111111111111",
112
+ "burn": false,
113
+ "block": 36500000,
114
+ "tx_hash": "0xc3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3",
115
+ "observed_at": "2026-10-26T18:12:12Z"
116
+ }
117
+ ],
118
+ "registrations": [
119
+ {
120
+ "chain": "base",
121
+ "chain_id": 8453,
122
+ "token_id": "999999001",
123
+ "owner_address": "0x1111111111111111111111111111111111111111",
124
+ "registered_at_block": 36000000,
125
+ "revoked_at": null,
126
+ "owner_since": {
127
+ "observed_at": "2026-10-26T18:12:12Z",
128
+ "basis": "chain_event",
129
+ "block": 36500000,
130
+ "tx_hash": "0xc3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
131
+ }
132
+ }
133
+ ],
134
+ "anchors": [
135
+ {
136
+ "kind": "http_key",
137
+ "identifier": "ed25519:e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5",
138
+ "verified_at": "2026-10-16T18:12:12Z",
139
+ "status": "active"
140
+ }
141
+ ],
142
+ "anchor_note": "Key rotation and revocation are recorded once the key directory ships (F9); until then an anchor is listed as proven on its verification date.",
143
+ "as_of_block": 50276154
144
+ },
145
+ "bound": false,
146
+ "binding_status_url": null,
147
+ "operator_attested_by": null,
148
+ "liveness": null,
149
+ "slots": {
150
+ "bound": "true once a FlexHold binding for the owner key is present and not revoked (status list)",
151
+ "operator_attested_by": "an accepted attester (x401, EUDI wallet, KYC read-only) — never the operator's legal identity",
152
+ "liveness": "0–6 rungs, C2"
153
+ },
154
+ "history": [
155
+ {
156
+ "date": "2026-10-26",
157
+ "value": 712,
158
+ "confidence_bps": 7800
159
+ }
160
+ ]
161
+ },
162
+ "credentialStatus": {
163
+ "type": "FlexTrustLivePassport",
164
+ "refresh": "https://flextrust.io/agents/22286/passport.json"
165
+ },
166
+ "termsOfUse": {
167
+ "type": "FlexTrustTerms",
168
+ "version": "1.0",
169
+ "url": "https://flextrust.io/terms"
170
+ },
171
+ "verify": {
172
+ "commitments": "https://flextrust.io/commitments.json",
173
+ "keys": "https://flextrust.io/.well-known/flextrust",
174
+ "spec": "https://flextrust.io/spec/passport"
175
+ },
176
+ "statement": {
177
+ "status": "signed",
178
+ "message": {
179
+ "subject": "erc8004:8453:999999001",
180
+ "subjectId": 22286,
181
+ "tier": "full",
182
+ "documentDigest": "0x548e48abe884d856f878bfad20d8d6ddd01dd49c3c27b0721d1ef17c8995dc1e",
183
+ "score": 712,
184
+ "confidenceBps": 7800,
185
+ "riskDerived": 29,
186
+ "methodologyVersion": "v1",
187
+ "commitmentDay": "2026-10-26",
188
+ "commitmentRoot": "0x76d15ac5c145edb8f9736eea7a8ea57a72245209ff891caf9a96cb19d5170109",
189
+ "leafPosition": 10656,
190
+ "ownerAddress": "0x1111111111111111111111111111111111111111",
191
+ "asOfBlock": 50276154,
192
+ "issuedAt": 1793038332,
193
+ "validUntil": 1793124732,
194
+ "keyId": "indicative-test-key"
195
+ },
196
+ "signature": "0x75f0dd8c9477921223a60bdcd800887efc761f7a46bc7ba147ba03c300656340498a91903f3fae910b1d79241f27465c9971f7e8b53c368959d12255e74852a81b",
197
+ "key_id": "indicative-test-key",
198
+ "committed_score": {
199
+ "value": 712,
200
+ "computed_at": "2026-10-26T18:12:12Z"
201
+ },
202
+ "proof": {
203
+ "leaf": {
204
+ "agent_id": 22286,
205
+ "value": 712,
206
+ "computed_at": 1793038332,
207
+ "salt": "15ee9f1e6a25724adb1ff34c3ba7d05d"
208
+ },
209
+ "leaf_format": "sha256(agent_id|value|computed_at_unix|salt)",
210
+ "position": 10656,
211
+ "siblings": [
212
+ "77802746b2d007f3ff197df2c4cb2d244e9b5d24392cec76c75da6ef49d01d5b",
213
+ "4c901db192d9ba195c7468749f50adb08812a83060d46eaeb9dfdf5b768fffa9",
214
+ "d9f9a57557194ce2a0f22c5421840679c8135716354e8011b127a4968e92d58a",
215
+ "0da3a79841e70490ad7a1153460f1992d2a15ffed03146c955723dc4e20a63c4",
216
+ "dae4adc1322c79d074e1016962995a034d211cb04a9129405b9f5730bd71221b",
217
+ "f778006892a331dbd995fe95c5117eabc995a73dfdc41139899649ca4ddff5c6",
218
+ "838159eee9f0beb34773554acbe7f4a40a4be760ac019ab8560ed2d178d4434e",
219
+ "1054fac6cac6f96bda00a2c56a9a9c779eadf4fa080b118e1be5d46df1f826d6",
220
+ "84c9abc528e92608ae4299a3d9b7d44cf0d16ccf9c43387294b844de0971f66a",
221
+ "6d0b61848b4778e97fedb41dbd0da6883fb73535e104daaba2357936d522d85d",
222
+ "ce9a1513c90f63e77f0ecc9fc9f56b84c133b107cc7cf37bba99f082c08679ed",
223
+ "962ba0a4162cf6055cc8d634a3517bc8d76f4094a02d76599d6f67f81aeab2ba",
224
+ "290c3b5ea55b99d24f903cf178763e0f7d11769571643be85d0110612a519ff6",
225
+ "162aa1d7cc5df44a28ade9014042999b7fe5d6fb16a90ac455325f85f9120bd8"
226
+ ],
227
+ "pairing": "sha256(left + right), odd node pairs with itself",
228
+ "root": "76d15ac5c145edb8f9736eea7a8ea57a72245209ff891caf9a96cb19d5170109",
229
+ "committed_on": "2026-10-26"
230
+ },
231
+ "root_signature": {
232
+ "key_id": "indicative-test-key",
233
+ "signed_at": "2026-10-26T18:12:12Z",
234
+ "value": "0x877b154122427081c70b211eedd145192df3f86851f71effa62f84e64beac8084949ba14c12c96a1bc167afbcdcaf51fe082c406b1f2bfbf4d0190c1990142c11b",
235
+ "primary_type": "CommitmentRoot"
236
+ }
237
+ },
238
+ "proof": {
239
+ "type": "EthereumEip712Signature2021",
240
+ "created": "2026-10-26T18:12:12Z",
241
+ "proofPurpose": "assertionMethod",
242
+ "verificationMethod": "did:web:flextrust.io#indicative-test-key",
243
+ "proofValue": "0x75f0dd8c9477921223a60bdcd800887efc761f7a46bc7ba147ba03c300656340498a91903f3fae910b1d79241f27465c9971f7e8b53c368959d12255e74852a81b",
244
+ "eip712": {
245
+ "domain": {
246
+ "name": "FlexTrust",
247
+ "version": "1",
248
+ "chainId": 8453
249
+ },
250
+ "types": {
251
+ "EIP712Domain": [
252
+ {
253
+ "name": "name",
254
+ "type": "string"
255
+ },
256
+ {
257
+ "name": "version",
258
+ "type": "string"
259
+ },
260
+ {
261
+ "name": "chainId",
262
+ "type": "uint256"
263
+ }
264
+ ],
265
+ "PassportStatement": [
266
+ {
267
+ "name": "subject",
268
+ "type": "string"
269
+ },
270
+ {
271
+ "name": "subjectId",
272
+ "type": "uint64"
273
+ },
274
+ {
275
+ "name": "tier",
276
+ "type": "string"
277
+ },
278
+ {
279
+ "name": "documentDigest",
280
+ "type": "bytes32"
281
+ },
282
+ {
283
+ "name": "score",
284
+ "type": "uint16"
285
+ },
286
+ {
287
+ "name": "confidenceBps",
288
+ "type": "uint16"
289
+ },
290
+ {
291
+ "name": "riskDerived",
292
+ "type": "uint8"
293
+ },
294
+ {
295
+ "name": "methodologyVersion",
296
+ "type": "string"
297
+ },
298
+ {
299
+ "name": "commitmentDay",
300
+ "type": "string"
301
+ },
302
+ {
303
+ "name": "commitmentRoot",
304
+ "type": "bytes32"
305
+ },
306
+ {
307
+ "name": "leafPosition",
308
+ "type": "uint32"
309
+ },
310
+ {
311
+ "name": "ownerAddress",
312
+ "type": "string"
313
+ },
314
+ {
315
+ "name": "asOfBlock",
316
+ "type": "uint64"
317
+ },
318
+ {
319
+ "name": "issuedAt",
320
+ "type": "uint64"
321
+ },
322
+ {
323
+ "name": "validUntil",
324
+ "type": "uint64"
325
+ },
326
+ {
327
+ "name": "keyId",
328
+ "type": "string"
329
+ }
330
+ ]
331
+ },
332
+ "primaryType": "PassportStatement",
333
+ "signedFields": [
334
+ "statement.message"
335
+ ]
336
+ }
337
+ }
338
+ },
339
+ "expected": {
340
+ "ok": false,
341
+ "reason": "key_unknown"
342
+ }
343
+ }