schema

{ "$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" } } } } }