{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://flint.network/records/schema",
 "title": "FLINT Verification Record v1.3",
 "description": "Schema for the canonical payload carried by a FLINT hybrid signing envelope.",
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "record\_id",\
 "record\_version",\
 "issuer",\
 "issuer\_key\_id",\
 "issued\_at",\
 "valid\_until",\
 "record\_type",\
 "partner\_id",\
 "nonce",\
 "passport\_id",\
 "envelope",\
 "signals",\
 "transaction",\
 "agent",\
 "authorization",\
 "sanctions\_screening",\
 "graph",\
 "behavior",\
 "network",\
 "verdict",\
 "resolution",\
 "dispute\_evidence"\
 \],
 "allOf": \[\
 {\
 "if": {\
 "required": \[\
 "record\_version"\
 \],\
 "properties": {\
 "record\_version": {\
 "enum": \[\
 "1.1",\
 "1.2",\
 "1.3"\
 \]\
 }\
 }\
 },\
 "then": {\
 "required": \[\
 "times",\
 "dispute"\
 \]\
 }\
 },\
 {\
 "if": {\
 "required": \[\
 "record\_version"\
 \],\
 "properties": {\
 "record\_version": {\
 "enum": \[\
 "1.2",\
 "1.3"\
 \]\
 }\
 }\
 },\
 "then": {\
 "required": \[\
 "remediation"\
 \]\
 }\
 },\
 {\
 "if": {\
 "required": \[\
 "record\_version"\
 \],\
 "properties": {\
 "record\_version": {\
 "const": "1.3"\
 }\
 }\
 },\
 "then": {\
 "required": \[\
 "semantic\_integrity"\
 \]\
 },\
 "else": {\
 "not": {\
 "required": \[\
 "semantic\_integrity"\
 \]\
 }\
 }\
 }\
 \],
 "properties": {
 "record\_id": {
 "type": "string",
 "pattern": "^frv\_\[0-9A-HJKMNP-TV-Z\]{26}$"
 },
 "record\_version": {
 "enum": \[\
 "1.0",\
 "1.1",\
 "1.2",\
 "1.3"\
 \]
 },
 "issuer": {
 "const": "flint"
 },
 "issuer\_key\_id": {
 "type": "string",
 "minLength": 1
 },
 "env": {
 "enum": \[\
 "staging",\
 "preview",\
 "development",\
 "nonproduction",\
 "unknown"\
 \],
 "description": "Optional issuer-reported deployment context. Absence does not prove production; verify against the expected environment's trusted keys."
 },
 "issued\_at": {
 "type": "string",
 "format": "date-time"
 },
 "valid\_until": {
 "type": "string",
 "format": "date-time"
 },
 "record\_type": {
 "const": "agent\_transaction\_verification"
 },
 "partner\_id": {
 "type": "string",
 "minLength": 1
 },
 "nonce": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "passport\_id": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "passport": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "presented",\
 "passport\_id",\
 "flint\_agent\_id",\
 "credited",\
 "reason\_codes"\
 \],
 "properties": {
 "presented": {
 "type": "boolean"
 },
 "passport\_id": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "flint\_agent\_id": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "credited": {
 "type": "boolean"
 },
 "binding": {
 "type": \[\
 "string",\
 "null"\
 \],
 "enum": \[\
 "credited",\
 "presented\_uncredited",\
 null\
 \]
 },
 "reason\_codes": {
 "type": "array",
 "items": {
 "type": "string"
 }
 }
 }
 },
 "times": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "event\_time",\
 "verified\_at",\
 "issued\_at",\
 "anchor\_time"\
 \],
 "properties": {
 "event\_time": {
 "type": \[\
 "string",\
 "null"\
 \],
 "format": "date-time"
 },
 "verified\_at": {
 "type": "string",
 "format": "date-time"
 },
 "issued\_at": {
 "type": "string",
 "format": "date-time"
 },
 "anchor\_time": {
 "type": "null"
 }
 }
 },
 "dispute": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "resolution\_path",\
 "governing\_law",\
 "forum\_hint",\
 "escrow\_ref"\
 \],
 "properties": {
 "resolution\_path": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "governing\_law": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "forum\_hint": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "escrow\_ref": {
 "type": \[\
 "string",\
 "null"\
 \]
 }
 }
 },
 "remediation": {
 "oneOf": \[\
 {\
 "type": "null"\
 },\
 {\
 "type": "object",\
 "additionalProperties": false,\
 "required": \[\
 "prior\_record\_id",\
 "resolution\_type"\
 \],\
 "properties": {\
 "prior\_record\_id": {\
 "type": "string",\
 "pattern": "^frv\_\[0-9A-HJKMNP-TV-Z\]{26}$"\
 },\
 "resolution\_type": {\
 "enum": \[\
 "present\_passport",\
 "mint\_passport",\
 "principal\_reauthorization",\
 "single\_use\_token",\
 "reduce\_amount",\
 "staged\_amounts",\
 "escrow\_route",\
 "mutual\_acknowledgment\_precommit"\
 \]\
 }\
 }\
 }\
 \]
 },
 "envelope": {
 "type": "object",
 "required": \[\
 "framework\_references"\
 \],
 "properties": {
 "framework\_references": {
 "type": "array",
 "items": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "framework",\
 "name",\
 "version",\
 "spec",\
 "attack\_aligned",\
 "url",\
 "interpretation"\
 \],
 "properties": {
 "framework": {
 "type": "string"
 },
 "name": {
 "type": "string"
 },
 "version": {
 "type": "string"
 },
 "spec": {
 "type": "string"
 },
 "attack\_aligned": {
 "type": "boolean"
 },
 "url": {
 "type": "string",
 "format": "uri"
 },
 "interpretation": {
 "type": "string"
 }
 }
 }
 }
 },
 "additionalProperties": true
 },
 "signals": {
 "type": "object",
 "required": \[\
 "mitre\_f3"\
 \],
 "properties": {
 "mitre\_f3": {
 "type": "object",
 "required": \[\
 "indicators",\
 "navigator\_layer\_url"\
 \],
 "properties": {
 "indicators": {
 "type": "array",
 "items": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "technique\_id",\
 "technique\_name",\
 "layer",\
 "source\_rule\_id",\
 "confidence"\
 \],
 "properties": {
 "technique\_id": {
 "type": "string"
 },
 "technique\_name": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "layer": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "source\_rule\_id": {
 "type": "string"
 },
 "confidence": {
 "type": \[\
 "number",\
 "null"\
 \],
 "minimum": 0,
 "maximum": 1
 }
 }
 }
 },
 "navigator\_layer\_url": {
 "type": \[\
 "string",\
 "null"\
 \]
 }
 },
 "additionalProperties": true
 }
 },
 "additionalProperties": true
 },
 "transaction": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "timing\_mode",\
 "merchant\_reference",\
 "chain",\
 "token",\
 "amount\_atomic",\
 "amount\_display",\
 "direction",\
 "counterparty\_address",\
 "tx\_intent\_hash",\
 "tx\_hash",\
 "cctp\_attestation\_ref"\
 \],
 "properties": {
 "timing\_mode": {
 "type": "string"
 },
 "merchant\_reference": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "chain": {
 "type": "string"
 },
 "token": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "contract",\
 "symbol",\
 "issuer"\
 \],
 "properties": {
 "contract": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "symbol": {
 "type": "string"
 },
 "issuer": {
 "type": "string"
 }
 }
 },
 "amount\_atomic": {
 "type": \[\
 "string",\
 "number",\
 "null"\
 \]
 },
 "amount\_display": {
 "type": "string"
 },
 "direction": {
 "type": "string"
 },
 "counterparty\_address": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "tx\_intent\_hash": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "tx\_hash": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "cctp\_attestation\_ref": {
 "type": \[\
 "string",\
 "null"\
 \]
 }
 }
 },
 "agent": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "agent\_id",\
 "flint\_agent\_id",\
 "agent\_id\_provenance",\
 "agent\_class",\
 "agent\_runtime\_detected",\
 "partner\_scoped\_runtime\_id",\
 "act\_chain",\
 "delegation\_depth",\
 "delegation\_risk\_tier",\
 "tool\_manifest\_hash",\
 "tool\_manifest\_size",\
 "account\_type",\
 "account\_factory",\
 "principal",\
 "attestations"\
 \],
 "properties": {
 "agent\_id": {
 "type": "string"
 },
 "flint\_agent\_id": {
 "type": "string",
 "pattern": "^faid\_"
 },
 "agent\_id\_provenance": {
 "type": "string"
 },
 "agent\_class": {
 "type": "string"
 },
 "agent\_runtime\_detected": {
 "type": "string"
 },
 "partner\_scoped\_runtime\_id": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "act\_chain": {
 "type": "array",
 "items": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "type",\
 "id",\
 "attested\_by",\
 "ts",\
 "trust\_domain"\
 \],
 "properties": {
 "type": {
 "type": "string"
 },
 "id": {
 "type": "string"
 },
 "attested\_by": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "ts": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "trust\_domain": {
 "type": \[\
 "string",\
 "null"\
 \]
 }
 }
 }
 },
 "delegation\_depth": {
 "type": "integer",
 "minimum": 1
 },
 "delegation\_risk\_tier": {
 "enum": \[\
 "direct",\
 "delegated",\
 "deep\_chain"\
 \]
 },
 "tool\_manifest\_hash": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "tool\_manifest\_size": {
 "type": "integer",
 "minimum": 0
 },
 "account\_type": {
 "type": "string"
 },
 "account\_factory": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "principal": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "principal\_type",\
 "principal\_id",\
 "principal\_attestation\_source",\
 "principal\_attestation\_freshness\_seconds",\
 "principal\_assurance\_level",\
 "principal\_jurisdiction"\
 \],
 "properties": {
 "principal\_type": {
 "type": "string"
 },
 "principal\_id": {
 "type": "string"
 },
 "principal\_attestation\_source": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "principal\_attestation\_freshness\_seconds": {
 "type": \[\
 "number",\
 "null"\
 \]
 },
 "principal\_assurance\_level": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "principal\_jurisdiction": {
 "type": \[\
 "string",\
 "null"\
 \]
 }
 }
 },
 "attestations": {
 "type": "array",
 "items": {
 "type": "object"
 }
 }
 }
 },
 "authorization": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "declared\_scope",\
 "observed\_action",\
 "scope\_match",\
 "scope\_match\_reasons"\
 \],
 "properties": {
 "declared\_scope": {
 "type": \[\
 "object",\
 "null"\
 \]
 },
 "authority\_bound": {
 "type": "boolean"
 },
 "authority\_evidence\_basis": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "purchase\_authorization\_id": {
 "type": \[\
 "string",\
 "null"\
 \],
 "pattern": "^fpa\_\[0-9a-f-\]{36}$"
 },
 "observed\_action": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "amount\_display",\
 "category\_inferred",\
 "counterparty"\
 \],
 "properties": {
 "amount\_display": {
 "type": "string"
 },
 "category\_inferred": {
 "type": "string"
 },
 "counterparty": {
 "type": \[\
 "string",\
 "null"\
 \]
 }
 }
 },
 "scope\_match": {
 "type": "string"
 },
 "scope\_match\_reasons": {
 "type": "array",
 "items": {
 "type": "string"
 }
 }
 }
 },
 "semantic\_integrity": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "version",\
 "status",\
 "provider\_status",\
 "injection\_detected",\
 "authority\_binding",\
 "authorization\_drift",\
 "evidence",\
 "decision\_effect"\
 \],
 "properties": {
 "version": {
 "const": "flint-semantic-integrity-v0.1.0"
 },
 "status": {
 "enum": \[\
 "aligned",\
 "ambiguous",\
 "contradictory",\
 "unavailable"\
 \]
 },
 "provider\_status": {
 "enum": \[\
 "ok",\
 "disabled",\
 "timeout",\
 "error",\
 "invalid\_output"\
 \]
 },
 "injection\_detected": {
 "type": "boolean"
 },
 "authority\_binding": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "source",\
 "passport\_id",\
 "mandate\_version",\
 "policy\_hash"\
 \],
 "properties": {
 "source": {
 "const": "passport\_mandate"
 },
 "passport\_id": {
 "type": "string",
 "pattern": "^kya\_\[A-Za-z0-9\_-\]+$"
 },
 "mandate\_version": {
 "type": "integer",
 "minimum": 1
 },
 "policy\_hash": {
 "type": "string",
 "pattern": "^sha256\_\[a-f0-9\]{64}$"
 }
 }
 },
 "authorization\_drift": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "score",\
 "risk\_type",\
 "causal\_link",\
 "evidence\_basis",\
 "affected\_fields"\
 \],
 "properties": {
 "score": {
 "type": \[\
 "number",\
 "null"\
 \],
 "minimum": 0,
 "maximum": 1
 },
 "risk\_type": {
 "enum": \[\
 "none",\
 "external\_instruction\_override",\
 "scope\_expansion",\
 "destination\_substitution",\
 "amount\_manipulation",\
 "asset\_substitution",\
 "tool\_substitution",\
 "delegation\_escalation",\
 "secret\_exposure",\
 "unrelated\_action",\
 "provider\_failure",\
 "other"\
 \]
 },
 "causal\_link": {
 "enum": \[\
 "none",\
 "suspected",\
 "supported"\
 \]
 },
 "evidence\_basis": {
 "enum": \[\
 "none",\
 "model\_inference",\
 "trusted\_transaction\_observation",\
 "hybrid"\
 \]
 },
 "affected\_fields": {
 "type": "array",
 "maxItems": 16,
 "uniqueItems": true,
 "items": {
 "enum": \[\
 "counterparty",\
 "amount",\
 "asset",\
 "tool",\
 "delegation",\
 "credential",\
 "scope",\
 "other"\
 \]
 }
 }
 }
 },
 "evidence": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "policy\_hash",\
 "trace\_hash",\
 "proposed\_action\_hash",\
 "rationale\_hash",\
 "source\_refs\_hash"\
 \],
 "properties": {
 "evidence\_ref": {
 "type": \[\
 "string",\
 "null"\
 \],
 "pattern": "^sei\_\[a-f0-9\]{64}$"
 },
 "policy\_hash": {
 "type": "string",
 "pattern": "^sha256\_\[a-f0-9\]{64}$"
 },
 "trace\_hash": {
 "type": \[\
 "string",\
 "null"\
 \],
 "pattern": "^sha256\_\[a-f0-9\]{64}$"
 },
 "proposed\_action\_hash": {
 "type": \[\
 "string",\
 "null"\
 \],
 "pattern": "^sha256\_\[a-f0-9\]{64}$"
 },
 "rationale\_hash": {
 "type": \[\
 "string",\
 "null"\
 \],
 "pattern": "^sha256\_\[a-f0-9\]{64}$"
 },
 "source\_refs\_hash": {
 "type": \[\
 "string",\
 "null"\
 \],
 "pattern": "^sha256\_\[a-f0-9\]{64}$"
 }
 }
 },
 "decision\_effect": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "base\_verdict",\
 "recommended\_verdict",\
 "final\_verdict",\
 "escalated",\
 "block\_eligible",\
 "quarantine\_eligible",\
 "reputation\_eligible",\
 "reason\_codes"\
 \],
 "properties": {
 "base\_verdict": {
 "enum": \[\
 "allow",\
 "step\_up",\
 "review",\
 "block"\
 \]
 },
 "recommended\_verdict": {
 "enum": \[\
 "allow",\
 "step\_up",\
 "review",\
 "block"\
 \]
 },
 "final\_verdict": {
 "enum": \[\
 "allow",\
 "step\_up",\
 "review",\
 "block"\
 \]
 },
 "escalated": {
 "type": "boolean"
 },
 "block\_eligible": {
 "type": "boolean"
 },
 "quarantine\_eligible": {
 "const": false
 },
 "reputation\_eligible": {
 "const": false
 },
 "reason\_codes": {
 "type": "array",
 "maxItems": 16,
 "uniqueItems": true,
 "items": {
 "enum": \[\
 "semantic\_analysis\_unavailable",\
 "semantic\_injection\_signal",\
 "semantic\_intent\_ambiguous",\
 "semantic\_intent\_contradictory",\
 "semantic\_causal\_transaction\_change"\
 \]
 }
 }
 }
 }
 }
 },
 "sanctions\_screening": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "screened",\
 "sanctioned",\
 "lists",\
 "provider",\
 "checked\_at"\
 \],
 "properties": {
 "screened": {
 "type": "boolean"
 },
 "sanctioned": {
 "type": \[\
 "boolean",\
 "null"\
 \]
 },
 "lists": {
 "type": "array",
 "items": {
 "type": "string"
 }
 },
 "provider": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "checked\_at": {
 "type": \[\
 "string",\
 "null"\
 \]
 }
 }
 },
 "graph": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "flint\_agent\_id",\
 "partner\_scoped\_runtime\_id",\
 "merchant\_ref",\
 "verdict",\
 "ts",\
 "delegation\_depth",\
 "delegation\_risk\_tier"\
 \],
 "properties": {
 "flint\_agent\_id": {
 "type": "string"
 },
 "partner\_scoped\_runtime\_id": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "merchant\_ref": {
 "type": \[\
 "string",\
 "null"\
 \]
 },
 "verdict": {
 "type": "string"
 },
 "ts": {
 "type": "string",
 "format": "date-time"
 },
 "delegation\_depth": {
 "type": "integer",
 "minimum": 1
 },
 "delegation\_risk\_tier": {
 "enum": \[\
 "direct",\
 "delegated",\
 "deep\_chain"\
 \]
 }
 }
 },
 "behavior": {
 "type": \[\
 "object",\
 "null"\
 \]
 },
 "network": {
 "type": \[\
 "object",\
 "null"\
 \]
 },
 "verdict": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "decision",\
 "confidence",\
 "top\_reasons",\
 "step\_up\_advisory",\
 "model\_version"\
 \],
 "properties": {
 "decision": {
 "enum": \[\
 "allow",\
 "step\_up",\
 "review",\
 "block"\
 \]
 },
 "confidence": {
 "type": "number",
 "minimum": 0,
 "maximum": 1
 },
 "top\_reasons": {
 "type": "array",
 "items": {
 "type": "string"
 }
 },
 "step\_up\_advisory": {
 "type": \[\
 "boolean",\
 "object",\
 "null"\
 \]
 },
 "model\_version": {
 "type": "string"
 }
 }
 },
 "resolution": {
 "type": \[\
 "object",\
 "null"\
 \]
 },
 "dispute\_evidence": {
 "type": "object",
 "additionalProperties": false,
 "required": \[\
 "human\_summary",\
 "evidence\_replay\_url",\
 "stix\_compatible",\
 "f3\_interpretable"\
 \],
 "properties": {
 "human\_summary": {
 "type": "string"
 },
 "evidence\_replay\_url": {
 "type": "string",
 "format": "uri"
 },
 "stix\_compatible": {
 "type": "boolean"
 },
 "f3\_interpretable": {
 "type": "boolean"
 }
 }
 }
 }
}
