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-root-signature-invalid",
3
+ "description": "the published leaf count differs, so the CommitmentRoot signature recovers to another address",
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": null
14
+ }
15
+ },
16
+ "commitments": {
17
+ "2026-10-26": {
18
+ "merkle_root": "76d15ac5c145edb8f9736eea7a8ea57a72245209ff891caf9a96cb19d5170109",
19
+ "leaf_count": 10658,
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": "root_signature_invalid"
349
+ }
350
+ }
@@ -0,0 +1,344 @@
1
+ {
2
+ "name": "record-root-unavailable",
3
+ "description": "no commitment published for the day",
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": null
14
+ }
15
+ },
16
+ "commitments": {},
17
+ "block": {
18
+ "indicative": true,
19
+ "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.",
20
+ "@context": [
21
+ "https://www.w3.org/ns/credentials/v2",
22
+ "https://flextrust.io/spec/passport/v1"
23
+ ],
24
+ "id": "https://flextrust.io/agents/22286/passport",
25
+ "type": [
26
+ "VerifiableCredential",
27
+ "FlexTrustAgentPassport"
28
+ ],
29
+ "issuer": {
30
+ "id": "did:web:flextrust.io",
31
+ "name": "FlexTrust"
32
+ },
33
+ "validFrom": "2026-10-26T18:12:12Z",
34
+ "validUntil": "2026-10-27T18:12:12Z",
35
+ "tier": "full",
36
+ "version": "passport-v1",
37
+ "credentialSubject": {
38
+ "id": "erc8004:8453:999999001",
39
+ "agent": {
40
+ "id": 22286,
41
+ "did": "erc8004:8453:999999001",
42
+ "name": "Indicative Courier",
43
+ "first_seen_at": "2026-09-26T18:12:12Z",
44
+ "status": "active"
45
+ },
46
+ "score": {
47
+ "value": 712,
48
+ "scale": "0-1000",
49
+ "view": "exact",
50
+ "band": "established",
51
+ "percentile": 100,
52
+ "confidence_bps": 7800,
53
+ "computed_at": "2026-10-26T18:12:12Z",
54
+ "methodology_version": "v1",
55
+ "inputs_hash": "indicative",
56
+ "committed": {
57
+ "day": "2026-10-26",
58
+ "root": "76d15ac5c145edb8f9736eea7a8ea57a72245209ff891caf9a96cb19d5170109"
59
+ }
60
+ },
61
+ "risk_0_100": {
62
+ "value": 29,
63
+ "basis": "derived",
64
+ "formula": "round((1000 - score) / 10)",
65
+ "from": "exact score"
66
+ },
67
+ "factors": {
68
+ "settlement_volume": {
69
+ "weight_bps": 4000,
70
+ "contribution_points": 320,
71
+ "evidence_count": 9,
72
+ "note": null
73
+ }
74
+ },
75
+ "evidence_counts": {
76
+ "settlements": 0,
77
+ "feedback": 0,
78
+ "validations": 0,
79
+ "attested_receipts": 0
80
+ },
81
+ "flags": [
82
+ "manipulation_pattern"
83
+ ],
84
+ "incidents": [
85
+ {
86
+ "id": "anomaly-1",
87
+ "type": "manipulation_pattern",
88
+ "state": "confirmed",
89
+ "at": "2026-10-26T18:12:12Z",
90
+ "reviewed_at": "2026-10-26T18:12:12Z",
91
+ "mandate": "unknown",
92
+ "score_effect": "none"
93
+ }
94
+ ],
95
+ "incident_policy": {
96
+ "exposure": "public-safe: incident types, states and dates — never detector internals, furnisher names or amounts",
97
+ "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)",
98
+ "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"
99
+ },
100
+ "control_continuity": {
101
+ "owner_address": "0x1111111111111111111111111111111111111111",
102
+ "owner_since": {
103
+ "observed_at": "2026-10-26T18:12:12Z",
104
+ "basis": "chain_event",
105
+ "block": 36500000,
106
+ "tx_hash": "0xc3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
107
+ },
108
+ "owner_changes": 1,
109
+ "owner_history": [
110
+ {
111
+ "from": "0x9999999999999999999999999999999999999999",
112
+ "to": "0x1111111111111111111111111111111111111111",
113
+ "burn": false,
114
+ "block": 36500000,
115
+ "tx_hash": "0xc3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3",
116
+ "observed_at": "2026-10-26T18:12:12Z"
117
+ }
118
+ ],
119
+ "registrations": [
120
+ {
121
+ "chain": "base",
122
+ "chain_id": 8453,
123
+ "token_id": "999999001",
124
+ "owner_address": "0x1111111111111111111111111111111111111111",
125
+ "registered_at_block": 36000000,
126
+ "revoked_at": null,
127
+ "owner_since": {
128
+ "observed_at": "2026-10-26T18:12:12Z",
129
+ "basis": "chain_event",
130
+ "block": 36500000,
131
+ "tx_hash": "0xc3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
132
+ }
133
+ }
134
+ ],
135
+ "anchors": [
136
+ {
137
+ "kind": "http_key",
138
+ "identifier": "ed25519:e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5",
139
+ "verified_at": "2026-10-16T18:12:12Z",
140
+ "status": "active"
141
+ }
142
+ ],
143
+ "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.",
144
+ "as_of_block": 50276154
145
+ },
146
+ "bound": false,
147
+ "binding_status_url": null,
148
+ "operator_attested_by": null,
149
+ "liveness": null,
150
+ "slots": {
151
+ "bound": "true once a FlexHold binding for the owner key is present and not revoked (status list)",
152
+ "operator_attested_by": "an accepted attester (x401, EUDI wallet, KYC read-only) — never the operator's legal identity",
153
+ "liveness": "0–6 rungs, C2"
154
+ },
155
+ "history": [
156
+ {
157
+ "date": "2026-10-26",
158
+ "value": 712,
159
+ "confidence_bps": 7800
160
+ }
161
+ ]
162
+ },
163
+ "credentialStatus": {
164
+ "type": "FlexTrustLivePassport",
165
+ "refresh": "https://flextrust.io/agents/22286/passport.json"
166
+ },
167
+ "termsOfUse": {
168
+ "type": "FlexTrustTerms",
169
+ "version": "1.0",
170
+ "url": "https://flextrust.io/terms"
171
+ },
172
+ "verify": {
173
+ "commitments": "https://flextrust.io/commitments.json",
174
+ "keys": "https://flextrust.io/.well-known/flextrust",
175
+ "spec": "https://flextrust.io/spec/passport"
176
+ },
177
+ "statement": {
178
+ "status": "signed",
179
+ "message": {
180
+ "subject": "erc8004:8453:999999001",
181
+ "subjectId": 22286,
182
+ "tier": "full",
183
+ "documentDigest": "0x548e48abe884d856f878bfad20d8d6ddd01dd49c3c27b0721d1ef17c8995dc1e",
184
+ "score": 712,
185
+ "confidenceBps": 7800,
186
+ "riskDerived": 29,
187
+ "methodologyVersion": "v1",
188
+ "commitmentDay": "2026-10-26",
189
+ "commitmentRoot": "0x76d15ac5c145edb8f9736eea7a8ea57a72245209ff891caf9a96cb19d5170109",
190
+ "leafPosition": 10656,
191
+ "ownerAddress": "0x1111111111111111111111111111111111111111",
192
+ "asOfBlock": 50276154,
193
+ "issuedAt": 1793038332,
194
+ "validUntil": 1793124732,
195
+ "keyId": "indicative-test-key"
196
+ },
197
+ "signature": "0x75f0dd8c9477921223a60bdcd800887efc761f7a46bc7ba147ba03c300656340498a91903f3fae910b1d79241f27465c9971f7e8b53c368959d12255e74852a81b",
198
+ "key_id": "indicative-test-key",
199
+ "committed_score": {
200
+ "value": 712,
201
+ "computed_at": "2026-10-26T18:12:12Z"
202
+ },
203
+ "proof": {
204
+ "leaf": {
205
+ "agent_id": 22286,
206
+ "value": 712,
207
+ "computed_at": 1793038332,
208
+ "salt": "15ee9f1e6a25724adb1ff34c3ba7d05d"
209
+ },
210
+ "leaf_format": "sha256(agent_id|value|computed_at_unix|salt)",
211
+ "position": 10656,
212
+ "siblings": [
213
+ "77802746b2d007f3ff197df2c4cb2d244e9b5d24392cec76c75da6ef49d01d5b",
214
+ "4c901db192d9ba195c7468749f50adb08812a83060d46eaeb9dfdf5b768fffa9",
215
+ "d9f9a57557194ce2a0f22c5421840679c8135716354e8011b127a4968e92d58a",
216
+ "0da3a79841e70490ad7a1153460f1992d2a15ffed03146c955723dc4e20a63c4",
217
+ "dae4adc1322c79d074e1016962995a034d211cb04a9129405b9f5730bd71221b",
218
+ "f778006892a331dbd995fe95c5117eabc995a73dfdc41139899649ca4ddff5c6",
219
+ "838159eee9f0beb34773554acbe7f4a40a4be760ac019ab8560ed2d178d4434e",
220
+ "1054fac6cac6f96bda00a2c56a9a9c779eadf4fa080b118e1be5d46df1f826d6",
221
+ "84c9abc528e92608ae4299a3d9b7d44cf0d16ccf9c43387294b844de0971f66a",
222
+ "6d0b61848b4778e97fedb41dbd0da6883fb73535e104daaba2357936d522d85d",
223
+ "ce9a1513c90f63e77f0ecc9fc9f56b84c133b107cc7cf37bba99f082c08679ed",
224
+ "962ba0a4162cf6055cc8d634a3517bc8d76f4094a02d76599d6f67f81aeab2ba",
225
+ "290c3b5ea55b99d24f903cf178763e0f7d11769571643be85d0110612a519ff6",
226
+ "162aa1d7cc5df44a28ade9014042999b7fe5d6fb16a90ac455325f85f9120bd8"
227
+ ],
228
+ "pairing": "sha256(left + right), odd node pairs with itself",
229
+ "root": "76d15ac5c145edb8f9736eea7a8ea57a72245209ff891caf9a96cb19d5170109",
230
+ "committed_on": "2026-10-26"
231
+ },
232
+ "root_signature": {
233
+ "key_id": "indicative-test-key",
234
+ "signed_at": "2026-10-26T18:12:12Z",
235
+ "value": "0x877b154122427081c70b211eedd145192df3f86851f71effa62f84e64beac8084949ba14c12c96a1bc167afbcdcaf51fe082c406b1f2bfbf4d0190c1990142c11b",
236
+ "primary_type": "CommitmentRoot"
237
+ }
238
+ },
239
+ "proof": {
240
+ "type": "EthereumEip712Signature2021",
241
+ "created": "2026-10-26T18:12:12Z",
242
+ "proofPurpose": "assertionMethod",
243
+ "verificationMethod": "did:web:flextrust.io#indicative-test-key",
244
+ "proofValue": "0x75f0dd8c9477921223a60bdcd800887efc761f7a46bc7ba147ba03c300656340498a91903f3fae910b1d79241f27465c9971f7e8b53c368959d12255e74852a81b",
245
+ "eip712": {
246
+ "domain": {
247
+ "name": "FlexTrust",
248
+ "version": "1",
249
+ "chainId": 8453
250
+ },
251
+ "types": {
252
+ "EIP712Domain": [
253
+ {
254
+ "name": "name",
255
+ "type": "string"
256
+ },
257
+ {
258
+ "name": "version",
259
+ "type": "string"
260
+ },
261
+ {
262
+ "name": "chainId",
263
+ "type": "uint256"
264
+ }
265
+ ],
266
+ "PassportStatement": [
267
+ {
268
+ "name": "subject",
269
+ "type": "string"
270
+ },
271
+ {
272
+ "name": "subjectId",
273
+ "type": "uint64"
274
+ },
275
+ {
276
+ "name": "tier",
277
+ "type": "string"
278
+ },
279
+ {
280
+ "name": "documentDigest",
281
+ "type": "bytes32"
282
+ },
283
+ {
284
+ "name": "score",
285
+ "type": "uint16"
286
+ },
287
+ {
288
+ "name": "confidenceBps",
289
+ "type": "uint16"
290
+ },
291
+ {
292
+ "name": "riskDerived",
293
+ "type": "uint8"
294
+ },
295
+ {
296
+ "name": "methodologyVersion",
297
+ "type": "string"
298
+ },
299
+ {
300
+ "name": "commitmentDay",
301
+ "type": "string"
302
+ },
303
+ {
304
+ "name": "commitmentRoot",
305
+ "type": "bytes32"
306
+ },
307
+ {
308
+ "name": "leafPosition",
309
+ "type": "uint32"
310
+ },
311
+ {
312
+ "name": "ownerAddress",
313
+ "type": "string"
314
+ },
315
+ {
316
+ "name": "asOfBlock",
317
+ "type": "uint64"
318
+ },
319
+ {
320
+ "name": "issuedAt",
321
+ "type": "uint64"
322
+ },
323
+ {
324
+ "name": "validUntil",
325
+ "type": "uint64"
326
+ },
327
+ {
328
+ "name": "keyId",
329
+ "type": "string"
330
+ }
331
+ ]
332
+ },
333
+ "primaryType": "PassportStatement",
334
+ "signedFields": [
335
+ "statement.message"
336
+ ]
337
+ }
338
+ }
339
+ },
340
+ "expected": {
341
+ "ok": false,
342
+ "reason": "root_unavailable"
343
+ }
344
+ }