{
  "$id": "https://fractonicmind.github.io/TernaryLogic/api/schema/v1.0.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "\"Ternary Logic\" (TL) Governance API Schema Bundle",
  "description": "Canonical JSON Schema Draft 2020-12 bundle for the \"Ternary Logic\" (TL) framework by Lev Goukassian. ORCID: 0009-0006-5966-1243. DOI: 10.1007/s43681-025-00910-6 | DOI: 10.1007/s43681-026-01124-0. All schemas enforce unevaluatedProperties: false. Schema evolution: new properties must be added with versioned keys to prevent silent drift.",
  "$defs": {

    "TLState_v1_0_0": {
      "$anchor": "TLState",
      "title": "TLState",
      "description": "Three-state enumeration. +1=Proceed, 0=Epistemic Hold, -1=Refuse. State 0 is Epistemic Hold: a first-class constitutional state, never null, false, error, timeout, pending, or retry. State -1 is Refuse: permanent unless overridden by supreme authority. Canonical State -1 label is Refuse. Halt prohibited.",
      "type": "integer",
      "enum": [-1, 0, 1],
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section I. Pillar: EpistemicHold."
    },

    "TLStateLabel_v1_0_0": {
      "$anchor": "TLStateLabel",
      "title": "TLStateLabel",
      "description": "Human-readable PascalCase label paired with TLState integer. Refuse is exclusive State -1 label. Halt prohibited.",
      "type": "string",
      "enum": ["Proceed", "EpistemicHold", "Refuse"],
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section I. Pillar: EpistemicHold."
    },

    "PillarIdentifier_v1_0_0": {
      "$anchor": "PillarIdentifier",
      "title": "PillarIdentifier",
      "description": "Canonical machine-readable identifiers for the Eight Pillars.",
      "type": "string",
      "enum": [
        "EpistemicHold",
        "ImmutableLedger",
        "GoukassianPrinciple",
        "DecisionLogs",
        "EconomicRightsAndTransparencyMandate",
        "SustainableCapitalAllocationMandate",
        "HybridShield",
        "Anchors"
      ],
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section III."
    },

    "SHA256Hex_v1_0_0": {
      "$anchor": "SHA256Hex",
      "title": "SHA256Hex",
      "description": "SHA-256 digest encoded as 64 lowercase hexadecimal characters.",
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },

    "Ed25519Hex_v1_0_0": {
      "$anchor": "Ed25519Hex",
      "title": "Ed25519Hex",
      "description": "Ed25519 signature encoded as 128 lowercase hexadecimal characters.",
      "type": "string",
      "pattern": "^[0-9a-f]{128}$"
    },

    "ISO8601DateTime_v1_0_0": {
      "$anchor": "ISO8601DateTime",
      "title": "ISO8601DateTime",
      "description": "ISO 8601 date-time string with timezone designator.",
      "type": "string",
      "format": "date-time"
    },

    "UUIDv4_v1_0_0": {
      "$anchor": "UUIDv4",
      "title": "UUIDv4",
      "description": "UUID version 4 string in canonical hyphenated format.",
      "type": "string",
      "format": "uuid"
    },

    "GoukassianPrincipleBlock_v1_0_0": {
      "$anchor": "GoukassianPrincipleBlock",
      "title": "GoukassianPrincipleBlock",
      "description": "Three Goukassian Principle artifacts. Every API transaction must carry these. artifactName const values are canonical lowercase: \"lantern\", \"signature\", \"license\".",
      "type": "object",
      "required": ["lantern", "signature", "license"],
      "properties": {
        "lantern": {
          "type": "object",
          "required": ["artifactName", "lanternHash"],
          "properties": {
            "artifactName": { "type": "string", "const": "lantern" },
            "lanternHash": { "$ref": "#/$defs/SHA256Hex_v1_0_0" }
          },
          "unevaluatedProperties": false
        },
        "signature": {
          "type": "object",
          "required": ["artifactName", "agentSignature"],
          "properties": {
            "artifactName": { "type": "string", "const": "signature" },
            "agentSignature": { "$ref": "#/$defs/Ed25519Hex_v1_0_0" }
          },
          "unevaluatedProperties": false
        },
        "license": {
          "type": "object",
          "required": ["artifactName", "licenseScope"],
          "properties": {
            "artifactName": { "type": "string", "const": "license" },
            "licenseScope": { "type": "array", "items": { "type": "string" }, "minItems": 1 }
          },
          "unevaluatedProperties": false
        }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section III. Pillar: GoukassianPrinciple."
    },

    "TLResult_v1_0_0": {
      "$anchor": "TLResult",
      "title": "TLResult",
      "description": "Inference Lane result. State +1 does NOT authorize actuation; Permission Token from Audit Lane required.",
      "type": "object",
      "required": ["state", "stateLabel", "confidence", "rationale", "nextSteps", "goukassianPrinciple"],
      "properties": {
        "state": { "$ref": "#/$defs/TLState_v1_0_0" },
        "stateLabel": { "$ref": "#/$defs/TLStateLabel_v1_0_0" },
        "confidence": { "type": "number", "minimum": 0.0, "maximum": 1.0 },
        "rationale": { "type": "string" },
        "nextSteps": { "type": "array", "items": { "type": "string" } },
        "metadata": { "type": "object" },
        "goukassianPrinciple": { "$ref": "#/$defs/GoukassianPrincipleBlock_v1_0_0" }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section I. Pillar: EpistemicHold."
    },

    "PermissionToken_v1_0_0": {
      "$anchor": "PermissionToken",
      "title": "PermissionToken",
      "description": "NL=NA cryptographic enforcement artifact. laneOrigin const \"AUDIT_LANE\": Inference Lane tokens schema-invalid. Actuation layer MUST reject expired tokens. maxLifetimeMs maximum 300000 aligned with DLLA Audit Lane ceiling. NL=NA Layers 2 and 4 enforced here.",
      "type": "object",
      "required": ["tokenId", "logHash", "epochTimestamp", "signerKeyId", "laneOrigin", "merkleRoot", "signatureValue", "issuedAt", "expiresAt", "maxLifetimeMs", "revocationStatus"],
      "properties": {
        "tokenId": { "$ref": "#/$defs/UUIDv4_v1_0_0" },
        "logHash": { "$ref": "#/$defs/SHA256Hex_v1_0_0", "description": "NL=NA Layer 4: MUST match AuditProof.logHash." },
        "epochTimestamp": { "type": "integer", "format": "int64" },
        "signerKeyId": { "type": "string" },
        "laneOrigin": { "type": "string", "const": "AUDIT_LANE", "description": "NL=NA Layer 2 const. Schema-invalid for any other value." },
        "merkleRoot": { "$ref": "#/$defs/SHA256Hex_v1_0_0", "description": "NL=NA Layer 4: MUST match AuditProof.merkleRoot. Layer 5: registerPermissionToken reverts NLNAViolation if logHash not in root." },
        "signatureValue": { "type": "string", "contentEncoding": "base64url", "minLength": 64 },
        "issuedAt": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0" },
        "expiresAt": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0", "description": "Hard expiration. Actuation MUST reject. No grace period." },
        "maxLifetimeMs": { "type": "integer", "maximum": 300000 },
        "revocationStatus": { "type": "string", "enum": ["ACTIVE", "REVOKED_BY_EMERGENCY", "REVOKED_BY_TRI_CAMERAL"] },
        "revocationMerkleRoot": { "$ref": "#/$defs/SHA256Hex_v1_0_0", "description": "Required when revocationStatus is not ACTIVE." },
        "custodianQuorumAttestation": { "type": "string", "$comment": "BETA. Token valid without it for SHIPPING." }
      },
      "if": {
        "properties": { "revocationStatus": { "not": { "const": "ACTIVE" } } }
      },
      "then": { "required": ["revocationMerkleRoot"] },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section II. Pillar: ImmutableLedger. NL=NA Layers 2 and 4."
    },

    "AuditProof_v1_0_0": {
      "$anchor": "AuditProof",
      "title": "AuditProof",
      "description": "NL=NA Layer 4: AuditProof.logHash and AuditProof.merkleRoot MUST match PermissionToken.logHash and PermissionToken.merkleRoot respectively.",
      "type": "object",
      "required": ["logHash", "merkleRoot"],
      "properties": {
        "logHash": { "$ref": "#/$defs/SHA256Hex_v1_0_0", "description": "MUST match PermissionToken.logHash. NL=NA Layer 4." },
        "merkleRoot": { "$ref": "#/$defs/SHA256Hex_v1_0_0", "description": "MUST match PermissionToken.merkleRoot. NL=NA Layer 4." },
        "merkleProofPath": { "type": "array", "items": { "$ref": "#/$defs/SHA256Hex_v1_0_0" } },
        "anchoredAt": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0" },
        "blockchainTxHash": { "type": "string" }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section II. Pillar: ImmutableLedger. NL=NA Layer 4."
    },

    "EscrowRecord_v1_0_0": {
      "$anchor": "EscrowRecord",
      "title": "EscrowRecord",
      "description": "Single authoritative schema for all Epistemic Hold response fields per Section 4.4. Created at hold initiation. Immutable.",
      "type": "object",
      "required": ["escrowId", "heldState", "initiatedAt", "initiatingDecisionId", "holdRationale", "resolutionDeadline", "immutableLogHash", "holdDurationMs", "auditLaneStatus", "requiredConditions", "windowComparatorReading"],
      "properties": {
        "escrowId": { "$ref": "#/$defs/UUIDv4_v1_0_0" },
        "heldState": { "type": "integer", "const": 0 },
        "initiatedAt": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0" },
        "initiatingDecisionId": { "$ref": "#/$defs/UUIDv4_v1_0_0" },
        "holdRationale": {
          "type": "object",
          "required": ["rationale", "uncertaintyScore", "pillarImplicated"],
          "properties": {
            "rationale": { "type": "string", "minLength": 10 },
            "uncertaintyScore": { "type": "number", "minimum": 0.0, "maximum": 1.0 },
            "pillarImplicated": { "$ref": "#/$defs/PillarIdentifier_v1_0_0" }
          },
          "unevaluatedProperties": false
        },
        "resolutionDeadline": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0", "description": "Terminal state must be +1 or -1. State 0 invalid resolution." },
        "immutableLogHash": { "$ref": "#/$defs/SHA256Hex_v1_0_0" },
        "holdDurationMs": { "type": "integer", "minimum": 0 },
        "auditLaneStatus": {
          "type": "object",
          "required": ["stage", "percentComplete"],
          "properties": {
            "stage": { "type": "string" },
            "percentComplete": { "type": "number", "minimum": 0, "maximum": 100 }
          },
          "unevaluatedProperties": false
        },
        "requiredConditions": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object",
            "required": ["conditionId", "description", "met"],
            "properties": {
              "conditionId": { "type": "string" },
              "description": { "type": "string" },
              "met": { "type": "boolean" }
            },
            "unevaluatedProperties": false
          }
        },
        "windowComparatorReading": {
          "type": "object",
          "required": ["readingAvailable"],
          "properties": {
            "readingAvailable": { "type": "boolean" },
            "resistanceRangeOhm": {
              "type": "object",
              "properties": { "minOhm": { "type": "number" }, "maxOhm": { "type": "number" } },
              "unevaluatedProperties": false
            },
            "softwareEnforcementActive": { "type": "boolean" }
          },
          "unevaluatedProperties": false
        }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section II. Pillar: EpistemicHold. AUTHORITATIVE source for Section 4.4 hold response fields."
    },

    "StateEnvelope_v1_0_0": {
      "$anchor": "StateEnvelope",
      "title": "StateEnvelope",
      "description": "Canonical TL response wrapper. NL=NA Layer 1: permissionToken REQUIRED when currentState==1 (if/then). GovernancePause is workflow name not state synonym. unevaluatedProperties: false prevents all bypass.",
      "type": "object",
      "required": ["currentState", "stateLabel", "proposedAction", "processActive"],
      "properties": {
        "currentState": { "$ref": "#/$defs/TLState_v1_0_0" },
        "stateLabel": { "$ref": "#/$defs/TLStateLabel_v1_0_0" },
        "proposedAction": { "type": "string", "minLength": 1 },
        "processActive": { "type": "string" },
        "permissionToken": { "$ref": "#/$defs/PermissionToken_v1_0_0" },
        "escrowRecord": { "$ref": "#/$defs/EscrowRecord_v1_0_0" },
        "traceId": { "$ref": "#/$defs/UUIDv4_v1_0_0" }
      },
      "if": {
        "properties": { "currentState": { "const": 1 } },
        "required": ["currentState"]
      },
      "then": {
        "required": ["permissionToken"],
        "properties": {
          "stateLabel": { "const": "Proceed" },
          "processActive": { "const": "ProceedAuthorized" }
        }
      },
      "else": {
        "if": {
          "properties": { "currentState": { "const": 0 } },
          "required": ["currentState"]
        },
        "then": {
          "required": ["escrowRecord"],
          "properties": {
            "stateLabel": { "const": "EpistemicHold" },
            "processActive": { "const": "GovernancePause" }
          }
        },
        "else": {
          "properties": {
            "stateLabel": { "const": "Refuse" },
            "processActive": { "const": "RefusalPermanent" }
          }
        }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section II. Pillar: EpistemicHold. NL=NA Layer 1."
    },

    "TGLF_State0_v1_0_0": {
      "$anchor": "TGLF_State0",
      "title": "TGLF-State0",
      "description": "TGLF record for Epistemic Hold (State 0). currentState const 0. stateLabel const \"EpistemicHold\". processActive const \"GovernancePause\" (workflow name, not state synonym). lanternStatus required; must reflect EPISTEMIC_HOLD_ACTIVE.",
      "type": "object",
      "required": ["logId", "currentState", "stateLabel", "processActive", "decisionId", "escrowRecord", "uncertaintyQuantification", "deliberationMatrix", "resolutionRequest", "lanternStatus", "committedAt", "pillarsCertified"],
      "properties": {
        "logId": { "$ref": "#/$defs/UUIDv4_v1_0_0" },
        "currentState": { "type": "integer", "const": 0 },
        "stateLabel": { "type": "string", "const": "EpistemicHold" },
        "processActive": { "type": "string", "const": "GovernancePause", "description": "Workflow process name. NOT a state synonym." },
        "decisionId": { "$ref": "#/$defs/UUIDv4_v1_0_0" },
        "escrowRecord": { "$ref": "#/$defs/EscrowRecord_v1_0_0" },
        "uncertaintyQuantification": {
          "type": "object",
          "required": ["uncertaintyScore", "uncertaintyVector", "inferenceEngineId"],
          "properties": {
            "uncertaintyScore": { "type": "number", "minimum": 0.0, "maximum": 1.0 },
            "uncertaintyVector": { "type": "array", "items": { "type": "number", "minimum": 0.0, "maximum": 1.0 } },
            "inferenceEngineId": { "type": "string" }
          },
          "unevaluatedProperties": false
        },
        "deliberationMatrix": {
          "type": "object",
          "required": ["pillarAssessments", "regulatoryFlags"],
          "properties": {
            "pillarAssessments": { "type": "array", "minItems": 8, "maxItems": 8, "items": { "$ref": "#/$defs/PillarAssessment_v1_0_0" } },
            "regulatoryFlags": { "$ref": "#/$defs/RegulatoryFlags_v1_0_0" }
          },
          "unevaluatedProperties": false
        },
        "resolutionRequest": {
          "type": "object",
          "required": ["resolutionDeadline", "requiredAuthority", "permittedResolutionStates"],
          "properties": {
            "resolutionDeadline": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0" },
            "requiredAuthority": { "type": "string" },
            "permittedResolutionStates": { "type": "array", "items": { "type": "integer", "enum": [1, -1] }, "minItems": 2, "maxItems": 2 }
          },
          "unevaluatedProperties": false
        },
        "lanternStatus": { "$ref": "#/$defs/LanternStatus_v1_0_0", "description": "Required. Must reflect EPISTEMIC_HOLD_ACTIVE." },
        "committedAt": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0" },
        "pillarsCertified": { "type": "array", "items": { "$ref": "#/$defs/PillarIdentifier_v1_0_0" } }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section II. Pillar: EpistemicHold."
    },

    "TGLF_StateNeg1_v1_0_0": {
      "$anchor": "TGLF_StateNeg1",
      "title": "TGLF-State-1",
      "description": "TGLF record for Refuse (State -1). stateLabel const \"Refuse\". refusalIsPermanent default true. No Permission Token issued.",
      "type": "object",
      "required": ["logId", "currentState", "stateLabel", "decisionId", "threatVectorAnalysis", "chainOfCustody", "committedAt", "refusalIsPermanent"],
      "properties": {
        "logId": { "$ref": "#/$defs/UUIDv4_v1_0_0" },
        "currentState": { "type": "integer", "const": -1 },
        "stateLabel": { "type": "string", "const": "Refuse", "description": "Canonical State -1 label. Halt prohibited." },
        "decisionId": { "$ref": "#/$defs/UUIDv4_v1_0_0" },
        "licenseViolation": { "type": "boolean", "default": false },
        "violatedArtifact": { "type": "string", "enum": ["lantern", "signature", "license"] },
        "threatVectorAnalysis": {
          "type": "object",
          "required": ["threatCategory", "harmClearance", "pillarImplicated"],
          "properties": {
            "threatCategory": { "type": "string" },
            "harmClearance": { "type": "string", "enum": ["CLEAR", "PROBABLE", "SUSPECTED"] },
            "pillarImplicated": { "$ref": "#/$defs/PillarIdentifier_v1_0_0" },
            "regulatoryViolations": { "type": "array", "items": { "type": "string" } }
          },
          "unevaluatedProperties": false
        },
        "chainOfCustody": {
          "type": "object",
          "required": ["initiatingAgentId", "reviewedBy", "immutableLogAnchor"],
          "properties": {
            "initiatingAgentId": { "type": "string" },
            "reviewedBy": { "type": "array", "items": { "type": "string" } },
            "immutableLogAnchor": { "$ref": "#/$defs/SHA256Hex_v1_0_0" }
          },
          "unevaluatedProperties": false
        },
        "committedAt": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0" },
        "refusalIsPermanent": { "type": "boolean", "default": true }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section II. Pillar: ImmutableLedger."
    },

    "TGLF_StateP1_v1_0_0": {
      "$anchor": "TGLF_StateP1",
      "title": "TGLF-StateP1",
      "description": "TGLF record for Proceed (State +1). permissionToken REQUIRED (NL=NA Layer 3). pillarsCertified minItems 8, maxItems 8. All Eight Pillars must be certified.",
      "type": "object",
      "required": ["logId", "currentState", "stateLabel", "decisionId", "regulatoryVerification", "theSignature", "auditProof", "permissionToken", "committedAt", "pillarsCertified"],
      "properties": {
        "logId": { "$ref": "#/$defs/UUIDv4_v1_0_0" },
        "currentState": { "type": "integer", "const": 1 },
        "stateLabel": { "type": "string", "const": "Proceed" },
        "decisionId": { "$ref": "#/$defs/UUIDv4_v1_0_0" },
        "regulatoryVerification": {
          "type": "object",
          "required": ["allPillarsPassed", "pillarVerifications"],
          "properties": {
            "allPillarsPassed": { "type": "boolean", "const": true },
            "pillarVerifications": {
              "type": "array",
              "minItems": 8,
              "maxItems": 8,
              "items": {
                "type": "object",
                "required": ["pillarId", "verificationStatus"],
                "properties": {
                  "pillarId": { "$ref": "#/$defs/PillarIdentifier_v1_0_0" },
                  "verificationStatus": { "type": "string", "const": "PASSED" }
                },
                "unevaluatedProperties": false
              }
            }
          },
          "unevaluatedProperties": false
        },
        "theSignature": { "$ref": "#/$defs/GoukassianPrincipleBlock_v1_0_0" },
        "auditProof": { "$ref": "#/$defs/AuditProof_v1_0_0", "description": "NL=NA Layer 4: logHash and merkleRoot MUST match PermissionToken fields." },
        "permissionToken": { "$ref": "#/$defs/PermissionToken_v1_0_0", "description": "REQUIRED. NL=NA Layer 3." },
        "committedAt": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0" },
        "pillarsCertified": {
          "type": "array",
          "items": { "$ref": "#/$defs/PillarIdentifier_v1_0_0" },
          "minItems": 8,
          "maxItems": 8,
          "description": "NL=NA Layer 3: all Eight Pillars required."
        }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section II. Pillar: ImmutableLedger. NL=NA Layer 3."
    },

    "NLNAAuditToken_v1_0_0": {
      "$anchor": "NLNAAuditToken",
      "title": "NLNAAuditToken",
      "description": "Audit lane completion token. Non-MT deployments MUST use sentinel value \"NULL_PUF_DEPLOYMENT\" for pufAttestation. Architecture B compensating controls documented in specification_architecture.md Section 11.",
      "type": "object",
      "required": ["tokenId", "merkleRoot", "ledgerAnchor", "timestamp", "pufAttestation", "laneStatus"],
      "properties": {
        "tokenId": { "$ref": "#/$defs/UUIDv4_v1_0_0" },
        "merkleRoot": { "$ref": "#/$defs/SHA256Hex_v1_0_0" },
        "ledgerAnchor": { "type": "string" },
        "timestamp": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0" },
        "pufAttestation": { "type": "string", "description": "Non-MT: use sentinel \"NULL_PUF_DEPLOYMENT\"." },
        "laneStatus": { "type": "string", "enum": ["pending", "committed", "anchored"] }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section II. Pillar: ImmutableLedger."
    },

    "JustificationObject_v1_0_0": {
      "$anchor": "JustificationObject",
      "title": "JustificationObject",
      "type": "object",
      "required": ["proposedState", "reasoningVector", "uncertaintyScore", "pillarAssessments", "inferenceEngineId", "regulatoryFlags"],
      "properties": {
        "proposedState": { "$ref": "#/$defs/TLState_v1_0_0" },
        "reasoningVector": { "type": "array", "items": { "type": "string" } },
        "uncertaintyScore": { "type": "number", "minimum": 0.0, "maximum": 1.0 },
        "pillarAssessments": { "type": "array", "minItems": 8, "maxItems": 8, "items": { "$ref": "#/$defs/PillarAssessment_v1_0_0" } },
        "inferenceEngineId": { "type": "string" },
        "regulatoryFlags": { "$ref": "#/$defs/RegulatoryFlags_v1_0_0" }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section II. Pillar: DecisionLogs."
    },

    "PillarAssessment_v1_0_0": {
      "$anchor": "PillarAssessment",
      "title": "PillarAssessment",
      "type": "object",
      "required": ["pillarId", "assessmentStatus", "complianceScore"],
      "properties": {
        "pillarId": { "$ref": "#/$defs/PillarIdentifier_v1_0_0" },
        "assessmentStatus": { "type": "string", "enum": ["PASSED", "FAILED", "EPISTEMIC_HOLD_ACTIVE", "NOT_APPLICABLE"] },
        "complianceScore": { "type": "number", "minimum": 0.0, "maximum": 1.0 },
        "assessmentNotes": { "type": "string" }
      },
      "unevaluatedProperties": false
    },

    "RegulatoryFlags_v1_0_0": {
      "$anchor": "RegulatoryFlags",
      "title": "RegulatoryFlags",
      "description": "Regulatory flag conditions with severity levels. Basel III, FATF, IOSCO, Paris Agreement.",
      "type": "object",
      "required": ["baselIiiFlags", "fatfFlags", "ioscoFlags", "parisAgreementFlags"],
      "properties": {
        "baselIiiFlags": {
          "type": "object",
          "properties": {
            "lcrBreach": { "$ref": "#/$defs/RegulatoryFlagEntry_v1_0_0" },
            "nsfrBreach": { "$ref": "#/$defs/RegulatoryFlagEntry_v1_0_0" },
            "capitalAdequacyBreach": { "$ref": "#/$defs/RegulatoryFlagEntry_v1_0_0" },
            "counterpartyExposureBreach": { "$ref": "#/$defs/RegulatoryFlagEntry_v1_0_0" },
            "stressTestFailure": { "$ref": "#/$defs/RegulatoryFlagEntry_v1_0_0" }
          },
          "unevaluatedProperties": false
        },
        "fatfFlags": {
          "type": "object",
          "properties": {
            "sanctionsHit": { "$ref": "#/$defs/RegulatoryFlagEntry_v1_0_0" },
            "pepDetected": { "$ref": "#/$defs/RegulatoryFlagEntry_v1_0_0" },
            "transactionMonitoringAlert": { "$ref": "#/$defs/RegulatoryFlagEntry_v1_0_0" },
            "sarRequired": { "$ref": "#/$defs/RegulatoryFlagEntry_v1_0_0" }
          },
          "unevaluatedProperties": false
        },
        "ioscoFlags": {
          "type": "object",
          "properties": {
            "layeringDetected": { "$ref": "#/$defs/RegulatoryFlagEntry_v1_0_0" },
            "spoofingDetected": { "$ref": "#/$defs/RegulatoryFlagEntry_v1_0_0" },
            "washTradingDetected": { "$ref": "#/$defs/RegulatoryFlagEntry_v1_0_0" },
            "crossMarketManipulationDetected": { "$ref": "#/$defs/RegulatoryFlagEntry_v1_0_0" }
          },
          "unevaluatedProperties": false
        },
        "parisAgreementFlags": {
          "type": "object",
          "properties": {
            "carbonFootprintUnverified": { "$ref": "#/$defs/RegulatoryFlagEntry_v1_0_0" },
            "greenBondIneligible": { "$ref": "#/$defs/RegulatoryFlagEntry_v1_0_0" },
            "esgScoreBelowThreshold": { "$ref": "#/$defs/RegulatoryFlagEntry_v1_0_0" }
          },
          "unevaluatedProperties": false
        }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section III. Pillars: EconomicRightsAndTransparencyMandate, SustainableCapitalAllocationMandate."
    },

    "RegulatoryFlagEntry_v1_0_0": {
      "$anchor": "RegulatoryFlagEntry",
      "title": "RegulatoryFlagEntry",
      "type": "object",
      "required": ["flagged", "severityLevel"],
      "properties": {
        "flagged": { "type": "boolean" },
        "severityLevel": { "type": "string", "enum": ["INFO", "WARNING", "CRITICAL", "REFUSE_TRIGGER"] },
        "detail": { "type": "string" }
      },
      "unevaluatedProperties": false
    },

    "LanternStatus_v1_0_0": {
      "$anchor": "LanternStatus",
      "title": "LanternStatus",
      "description": "Goukassian Principle Lantern status. artifactName const \"lantern\". compliancePosture includes EPISTEMIC_HOLD_ACTIVE.",
      "type": "object",
      "required": ["artifactName", "compliancePosture", "pillarStatuses", "activatedAt", "emergencyOverrideActive"],
      "properties": {
        "artifactName": { "type": "string", "const": "lantern" },
        "compliancePosture": {
          "type": "string",
          "enum": ["FULLY_COMPLIANT", "EPISTEMIC_HOLD_ACTIVE", "REGULATORY_REVIEW", "PILLAR_DEGRADED", "EMERGENCY_OVERRIDE_ACTIVE"]
        },
        "pillarStatuses": {
          "type": "array",
          "minItems": 8,
          "maxItems": 8,
          "items": {
            "type": "object",
            "required": ["pillarId", "status"],
            "properties": {
              "pillarId": { "$ref": "#/$defs/PillarIdentifier_v1_0_0" },
              "status": { "type": "string", "enum": ["ACTIVE", "DEGRADED", "SUSPENDED", "EPISTEMIC_HOLD_ACTIVE"] }
            },
            "unevaluatedProperties": false
          }
        },
        "signatureBlock": { "$ref": "#/$defs/SignatureBlock_v1_0_0" },
        "activatedAt": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0" },
        "emergencyOverrideActive": { "type": "boolean" }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section III. Pillar: GoukassianPrinciple."
    },

    "SignatureBlock_v1_0_0": {
      "$anchor": "SignatureBlock",
      "title": "SignatureBlock",
      "description": "artifactName const \"signature\". SHIPPING: ES256 (default) or Ed25519. SLH-DSA-SHAKE-128s (id 6) and ML-KEM-1024 (id 7) FUTURE-reserved. SHIPPING MUST NOT emit values 6 or 7.",
      "type": "object",
      "required": ["artifactName", "signatureAlgorithm", "signatureValue", "signedAt"],
      "properties": {
        "artifactName": { "type": "string", "const": "signature" },
        "signatureAlgorithm": {
          "type": "string",
          "enum": ["ES256", "Ed25519", "SLH-DSA-SHAKE-128s", "ML-KEM-1024"],
          "default": "ES256",
          "$comment": "PQC reserved: SLH-DSA-SHAKE-128s id 6 (FUTURE), ML-KEM-1024 id 7 (FUTURE)."
        },
        "signatureValue": { "type": "string", "contentEncoding": "base64url" },
        "signedAt": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0" },
        "keyId": { "type": "string" }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section III. Pillar: GoukassianPrinciple."
    },

    "LicenseValidationRequest_v1_0_0": {
      "$anchor": "LicenseValidationRequest",
      "title": "LicenseValidationRequest",
      "description": "artifactName const \"license\". Exceeded scope triggers automatic Refuse (State -1).",
      "type": "object",
      "required": ["artifactName", "licenseToken", "requestingEntityId", "purposeOfUse"],
      "properties": {
        "artifactName": { "type": "string", "const": "license" },
        "licenseToken": { "type": "string" },
        "requestingEntityId": { "type": "string" },
        "purposeOfUse": { "type": "string" },
        "proposedActionVector": { "type": "array", "items": { "type": "string" } }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section III. Pillar: GoukassianPrinciple."
    },

    "RegulatoryContext_v1_0_0": {
      "$anchor": "RegulatoryContext",
      "title": "RegulatoryContext",
      "description": "Regulatory compliance context. regulatoryFrameworkVersion captures which revision of each standard was applied.",
      "type": "object",
      "required": ["baselIii", "fatf", "iosco", "gdpr", "parisAgreement", "regulatoryFrameworkVersion"],
      "properties": {
        "baselIii": {
          "type": "object",
          "required": ["lcr", "nsfr", "capitalRatio"],
          "properties": {
            "lcr": { "type": "number", "description": "Compliant: >= 1.0." },
            "nsfr": { "type": "number", "description": "Compliant: >= 1.0." },
            "capitalRatio": { "type": "number" },
            "stressTestRequired": { "type": "boolean" },
            "counterpartyExposureWithinLimits": { "type": "boolean" }
          },
          "unevaluatedProperties": false
        },
        "fatf": {
          "type": "object",
          "required": ["amlCheckRequired", "sanctionsScreened", "pepInvolved", "sarGenerated"],
          "properties": {
            "amlCheckRequired": { "type": "boolean" },
            "sanctionsScreened": { "type": "boolean" },
            "pepInvolved": { "type": "boolean" },
            "sarGenerated": { "type": "boolean" }
          },
          "unevaluatedProperties": false
        },
        "iosco": {
          "type": "object",
          "required": ["layeringDetected", "spoofingDetected", "washTradingDetected"],
          "properties": {
            "layeringDetected": { "type": "boolean" },
            "spoofingDetected": { "type": "boolean" },
            "washTradingDetected": { "type": "boolean" },
            "crossMarketManipulationDetected": { "type": "boolean" }
          },
          "unevaluatedProperties": false
        },
        "gdpr": {
          "type": "object",
          "required": ["jurisdiction", "consentAttestation", "erasureEligible"],
          "properties": {
            "jurisdiction": { "type": "string" },
            "consentAttestation": { "type": "boolean" },
            "erasureEligible": { "type": "boolean", "description": "TL uses HKDF-SHA3-256 cryptographic erasure. Not Article 4(5) pseudonymization." }
          },
          "unevaluatedProperties": false
        },
        "parisAgreement": {
          "type": "object",
          "required": ["carbonFootprintVerified", "greenBondEligibility", "esgScore"],
          "properties": {
            "carbonFootprintVerified": { "type": "boolean" },
            "greenBondEligibility": { "type": "boolean" },
            "esgScore": { "type": "number", "minimum": 0.0, "maximum": 100.0 }
          },
          "unevaluatedProperties": false
        },
        "regulatoryFrameworkVersion": {
          "type": "object",
          "required": ["baselVersion", "fatfVersion", "ioscoVersion", "gdprVersion"],
          "properties": {
            "baselVersion": { "type": "string" },
            "fatfVersion": { "type": "string" },
            "ioscoVersion": { "type": "string" },
            "gdprVersion": { "type": "string" }
          },
          "unevaluatedProperties": false
        }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section III. Pillars: EconomicRightsAndTransparencyMandate, SustainableCapitalAllocationMandate."
    },

    "ThresholdProfile_v1_0_0": {
      "$anchor": "ThresholdProfile",
      "title": "ThresholdProfile",
      "type": "object",
      "required": ["domain", "haltThreshold", "holdThreshold", "maxHoldDurationMs", "regulatoryComplianceRequired"],
      "properties": {
        "domain": { "type": "string", "enum": ["trade", "policy", "supply-chain", "general"] },
        "haltThreshold": { "type": "number", "minimum": 0.0, "maximum": 1.0 },
        "holdThreshold": { "type": "number", "minimum": 0.0, "maximum": 1.0 },
        "maxHoldDurationMs": { "type": "integer", "minimum": 0 },
        "regulatoryComplianceRequired": { "type": "number", "minimum": 0.0, "maximum": 1.0 }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section II. Pillar: DecisionLogs."
    },

    "TriCameralApproval_v1_0_0": {
      "$anchor": "TriCameralApproval",
      "title": "TriCameralApproval",
      "description": "Technical Council (9 members, proposal rights). Stewardship Custodians (11 members, binding veto). Smart Contract Treasury (automatic execution, no admin key).",
      "type": "object",
      "required": ["technicalCouncilVotes", "stewardshipCustodianVotes", "smartContractTreasuryExecution", "quorumAchieved", "approvalTimestamp"],
      "properties": {
        "technicalCouncilVotes": {
          "type": "object",
          "required": ["for", "against", "abstain", "totalMembers"],
          "properties": {
            "for": { "type": "integer", "minimum": 0, "maximum": 9 },
            "against": { "type": "integer", "minimum": 0, "maximum": 9 },
            "abstain": { "type": "integer", "minimum": 0, "maximum": 9 },
            "totalMembers": { "type": "integer", "const": 9 }
          },
          "unevaluatedProperties": false
        },
        "stewardshipCustodianVotes": {
          "type": "object",
          "required": ["for", "against", "abstain", "totalMembers", "vetoExercised"],
          "properties": {
            "for": { "type": "integer", "minimum": 0, "maximum": 11 },
            "against": { "type": "integer", "minimum": 0, "maximum": 11 },
            "abstain": { "type": "integer", "minimum": 0, "maximum": 11 },
            "totalMembers": { "type": "integer", "const": 11 },
            "vetoExercised": { "type": "boolean", "description": "Binding veto. If true, proposal constitutionally blocked." }
          },
          "unevaluatedProperties": false
        },
        "smartContractTreasuryExecution": {
          "type": "object",
          "required": ["executed", "transactionHash"],
          "properties": {
            "executed": { "type": "boolean" },
            "transactionHash": { "type": "string" }
          },
          "unevaluatedProperties": false
        },
        "quorumAchieved": { "type": "boolean" },
        "approvalTimestamp": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0" }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section III. Pillar: HybridShield."
    },

    "GatewayRoutingStatus_v1_0_0": {
      "$anchor": "GatewayRoutingStatus",
      "title": "GatewayRoutingStatus",
      "description": "TL Gateway status. Fail-closed: cannot route to Audit Lane defaults to EPISTEMIC_HOLD. Fail-open constitutionally prohibited.",
      "type": "object",
      "required": ["operationalStatus", "epistemicHoldOverride", "inferenceLaneStatus", "auditLaneStatus", "lanternStatus"],
      "properties": {
        "operationalStatus": {
          "type": "string",
          "enum": ["FULLY_OPERATIONAL", "INFERENCE_LANE_DEGRADED", "AUDIT_LANE_DEGRADED", "EPISTEMIC_HOLD_OVERRIDE_ACTIVE", "EMERGENCY_OVERRIDE_ACTIVE", "FAIL_CLOSED"]
        },
        "epistemicHoldOverride": { "type": "boolean" },
        "inferenceLaneStatus": {
          "type": "object",
          "required": ["healthy", "latencyMs"],
          "properties": {
            "healthy": { "type": "boolean" },
            "latencyMs": { "type": "number", "description": "DLLA WCET: 2ms at 99.99th percentile." }
          },
          "unevaluatedProperties": false
        },
        "auditLaneStatus": {
          "type": "object",
          "required": ["healthy", "latencyMs"],
          "properties": {
            "healthy": { "type": "boolean" },
            "latencyMs": { "type": "number", "description": "DLLA hard ceiling: 300ms. Max jitter: 50ms." }
          },
          "unevaluatedProperties": false
        },
        "lanternStatus": { "$ref": "#/$defs/LanternStatus_v1_0_0" }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section II. Pillar: GoukassianPrinciple."
    },

    "EmergencyOverrideRequest_v1_0_0": {
      "$anchor": "EmergencyOverrideRequest",
      "title": "EmergencyOverrideRequest",
      "description": "NL=NA without exception. forcedState [-1, 0] only. Forced +1 constitutionally blocked. forcedStateExpiresAt required for FORCED_STATE_TRANSITION.",
      "type": "object",
      "required": ["overrideType", "forcedState", "justification"],
      "properties": {
        "overrideType": { "type": "string", "enum": ["BREAK_GLASS_SHUTDOWN", "KILL_SWITCH", "FORCED_STATE_TRANSITION"] },
        "forcedState": { "type": "integer", "enum": [-1, 0] },
        "forcedStateExpiresAt": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0" },
        "justification": { "type": "string", "minLength": 100 },
        "targetDecisionId": { "$ref": "#/$defs/UUIDv4_v1_0_0" },
        "requestingAuthorityId": { "type": "string" }
      },
      "if": {
        "properties": { "overrideType": { "const": "FORCED_STATE_TRANSITION" } },
        "required": ["overrideType"]
      },
      "then": { "required": ["targetDecisionId", "forcedStateExpiresAt"] },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section IX.3. Pillar: HybridShield."
    },

    "TLProblemDetail_v1_0_0": {
      "$anchor": "TLProblemDetail",
      "title": "TLProblemDetail",
      "description": "RFC 7807 with mandatory TL extensions. x-tl-state never omitted. GhostGovernanceDetectedError MUST carry x-tl-state -1 or 0.",
      "type": "object",
      "required": ["type", "title", "status", "x-tl-state", "x-tl-pillar", "x-tl-trace-id", "tlErrorCode"],
      "properties": {
        "type": { "type": "string", "format": "uri" },
        "title": { "type": "string" },
        "status": { "type": "integer" },
        "detail": { "type": "string" },
        "instance": { "type": "string", "format": "uri" },
        "x-tl-state": { "$ref": "#/$defs/TLState_v1_0_0" },
        "x-tl-pillar": { "$ref": "#/$defs/PillarIdentifier_v1_0_0" },
        "x-tl-trace-id": { "$ref": "#/$defs/UUIDv4_v1_0_0" },
        "retry_after": { "type": "integer" },
        "tlErrorCode": {
          "type": "string",
          "enum": [
            "PILLAR_VIOLATION_ERROR", "EPISTEMIC_HOLD_TIMEOUT_ERROR", "REGULATORY_COMPLIANCE_ERROR",
            "LANTERN_FORFEIT_ERROR", "DECISION_LOG_VIOLATION_ERROR", "WINDOW_COMPARATOR_FAILURE_ERROR",
            "GHOST_GOVERNANCE_DETECTED_ERROR", "NLNA_VIOLATION_ERROR", "LICENSE_SCOPE_EXCEEDED_ERROR",
            "QUORUM_NOT_MET_ERROR", "TRI_CAMERAL_VETO_ERROR", "SUCCESSION_DECLARATION_EXPIRED_ERROR",
            "SUCCESSION_DECLARATION_REQUIRED_ERROR"
          ]
        }
      },
      "unevaluatedProperties": false
    },

    "TLCapabilityFlags_v1_0_0": {
      "$anchor": "TLCapabilityFlags",
      "title": "TLCapabilityFlags",
      "type": "object",
      "properties": {
        "custodianQuorumAttestationEnabled": { "type": "boolean" },
        "pufAttestationMode": { "type": "string", "enum": ["FULL_PUF", "NULL_PUF_DEPLOYMENT", "ARCHITECTURE_B"] },
        "ditlIntegrated": { "type": "boolean" }
      },
      "unevaluatedProperties": false
    },

    "SuccessionDeclaration_v1_0_0": {
      "$anchor": "SuccessionDeclaration",
      "title": "SuccessionDeclaration",
      "description": "Notarized, timestamped, anchored governance continuity instrument. Expiry triggers SUCCESSION_DECLARATION_EXPIRED_ERROR.",
      "type": "object",
      "required": ["declarationId", "notarizedAt", "notaryIdentifier", "blockchainAnchor", "successionScope", "validUntil"],
      "properties": {
        "declarationId": { "$ref": "#/$defs/UUIDv4_v1_0_0" },
        "notarizedAt": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0" },
        "notaryIdentifier": { "type": "string" },
        "blockchainAnchor": { "type": "string" },
        "successionScope": { "type": "array", "items": { "type": "string" } },
        "validUntil": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0" },
        "merkleAnchorHash": { "$ref": "#/$defs/SHA256Hex_v1_0_0" }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Section 4.9. Pillar: Anchors."
    },

    "EKRRecord_v1_0_0": {
      "$anchor": "EKRRecord",
      "title": "EKRRecord",
      "description": "Ephemeral Key Rotation record. HKDF-SHA3-256 key destruction achieves GDPR Article 17 cryptographic erasure.",
      "type": "object",
      "required": ["keyId", "keyGeneratedAt", "keyExpiresAt", "rotationPurpose", "auditRetentionAnchor"],
      "properties": {
        "keyId": { "type": "string" },
        "keyGeneratedAt": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0" },
        "keyExpiresAt": { "$ref": "#/$defs/ISO8601DateTime_v1_0_0" },
        "rotationPurpose": { "type": "string" },
        "auditRetentionAnchor": { "$ref": "#/$defs/SHA256Hex_v1_0_0" },
        "hkdfSha3256Confirmed": { "type": "boolean" }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Section 4.9. Pillar: HybridShield. GDPR Article 17 cryptographic erasure via HKDF-SHA3-256."
    },

    "MetricsSummary_v1_0_0": {
      "$anchor": "MetricsSummary",
      "title": "MetricsSummary",
      "type": "object",
      "required": ["stateDistribution", "averageConfidence", "epistemicHoldRate", "regulatoryComplianceRate", "esgVerificationAccuracy", "decisionLogCompleteness", "averageHoldDurationMs", "ghostGovernanceDetectionRate"],
      "properties": {
        "stateDistribution": {
          "type": "object",
          "required": ["proceed", "epistemicHold", "refuse"],
          "properties": {
            "proceed": { "type": "number", "minimum": 0.0, "maximum": 1.0 },
            "epistemicHold": { "type": "number", "minimum": 0.0, "maximum": 1.0 },
            "refuse": { "type": "number", "minimum": 0.0, "maximum": 1.0 }
          },
          "unevaluatedProperties": false
        },
        "averageConfidence": { "type": "number", "minimum": 0.0, "maximum": 1.0 },
        "epistemicHoldRate": { "type": "number" },
        "regulatoryComplianceRate": { "type": "number", "minimum": 0.0, "maximum": 1.0 },
        "esgVerificationAccuracy": { "type": "number", "minimum": 0.0, "maximum": 1.0 },
        "decisionLogCompleteness": { "type": "number", "minimum": 0.0, "maximum": 1.0 },
        "averageHoldDurationMs": { "type": "number", "minimum": 0 },
        "ghostGovernanceDetectionRate": { "type": "number" }
      },
      "unevaluatedProperties": false,
      "$comment": "Monograph ref: Constitutional Hardware Monograph, Section III. Pillar: DecisionLogs."
    }

  }
}
