Human-originated authority and NIST cybersecurity guidance · Chapter 17 of 27

Appendix C. Complete schemas and typed data structures

On this page
  1. C.1. Authority_Policy_Schema.json
  2. C.2. protocol_contracts.schema.json
  3. C.3. review_objects.schema.json

The original http6.policy.v1 schema is retained from the hereditary-authority package. Its full source follows. The new review-object schema is a separate, narrower executable profile; the proposed protocol-contract schema describes integration records for human admission, appraisal, requirement selection, audit, and provider evidence. These are HTTP6 proposals rather than official NIST schemas. Structural validation is followed by semantic, signature, and authoritative-state checks. [S1; D2]

A signature field contains evidence to verify, not permission to trust the string. A self-asserted accepted or approved field is authoritative only after the named issuer, signature, scope, freshness, and applicable policy are verified. Cross-field conditions such as child lifetime, ancestry, and profile equality are checked by the algorithms in D and E.

C.1. Authority_Policy_Schema.json

Source path: schemas/Authority_Policy_Schema.json.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:http6:policy-schema:v1",
  "title": "HTTP6 immutable policy content - proposed v1 profile",
  "description": "Structural schema for immutable policy content. A signed instance manifest binds this content by canonical digest. Admission additionally verifies signatures, reference authenticity, cross-field semantics, runtime evidence, ancestor conjunction, and authoritative state. Example values do not constitute an admitted deployment.",
  "type": "object",
  "properties": {
    "schema_version": {
      "const": "http6.policy.v1"
    },
    "policy_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048
    },
    "semantics": {
      "type": "object",
      "properties": {
        "profile": {
          "const": "http6-monotone-v1"
        },
        "default_decision": {
          "const": "deny"
        },
        "conflict_resolution": {
          "const": "deny_overrides"
        },
        "evaluation_error": {
          "const": "deny"
        },
        "ancestor_combiner": {
          "const": "conjunction"
        },
        "canonicalization": {
          "const": "RFC8785"
        },
        "engine_digest": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "normalizer_digest": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "action_registry_digest": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "context_resolver_digest": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "operation_adapter_digest": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        }
      },
      "required": [
        "profile",
        "default_decision",
        "conflict_resolution",
        "evaluation_error",
        "ancestor_combiner",
        "canonicalization",
        "engine_digest",
        "normalizer_digest",
        "action_registry_digest",
        "context_resolver_digest",
        "operation_adapter_digest"
      ],
      "additionalProperties": false
    },
    "iam": {
      "type": "object",
      "properties": {
        "tenant": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        },
        "active_roles": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "minItems": 1,
          "maxItems": 64,
          "uniqueItems": true
        },
        "role_catalog_digest": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "assignment_snapshot_digest": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "role_grants": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "role": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "operations": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 2048
                },
                "minItems": 1,
                "maxItems": 128,
                "uniqueItems": true
              }
            },
            "required": [
              "role",
              "operations"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 64,
          "uniqueItems": true
        }
      },
      "required": [
        "tenant",
        "active_roles",
        "role_catalog_digest",
        "assignment_snapshot_digest",
        "role_grants"
      ],
      "additionalProperties": false
    },
    "permissions": {
      "type": "object",
      "properties": {
        "allow": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/allow_rule"
          },
          "minItems": 0,
          "maxItems": 256,
          "uniqueItems": true
        },
        "deny": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/deny_rule"
          },
          "minItems": 0,
          "maxItems": 256,
          "uniqueItems": true
        }
      },
      "required": [
        "allow",
        "deny"
      ],
      "additionalProperties": false
    },
    "network": {
      "type": "object",
      "properties": {
        "broker_only": {
          "const": true
        },
        "reauthorize_redirects": {
          "const": true
        },
        "trust_bundle_digest": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "source_route_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        },
        "allow": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/destination"
          },
          "minItems": 0,
          "maxItems": 128,
          "uniqueItems": true
        },
        "deny": {
          "type": "object",
          "properties": {
            "dns_names": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "minItems": 0,
              "maxItems": 128,
              "uniqueItems": true
            },
            "service_identities": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "minItems": 0,
              "maxItems": 128,
              "uniqueItems": true
            },
            "ip_cidrs": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "minItems": 0,
              "maxItems": 128,
              "uniqueItems": true
            }
          },
          "required": [
            "dns_names",
            "service_identities",
            "ip_cidrs"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "broker_only",
        "reauthorize_redirects",
        "trust_bundle_digest",
        "source_route_id",
        "allow",
        "deny"
      ],
      "additionalProperties": false
    },
    "delegation": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "max_depth": {
          "type": "integer",
          "minimum": 0,
          "maximum": 64
        },
        "max_direct_children": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "max_total_descendants": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "child_template_digests": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^sha256:[0-9a-f]{64}$"
          },
          "minItems": 0,
          "maxItems": 128,
          "uniqueItems": true
        }
      },
      "required": [
        "enabled",
        "max_depth",
        "max_direct_children",
        "max_total_descendants",
        "child_template_digests"
      ],
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "properties": {
              "enabled": {
                "const": false
              }
            }
          },
          "then": {
            "properties": {
              "max_depth": {
                "const": 0
              },
              "max_direct_children": {
                "const": 0
              },
              "max_total_descendants": {
                "const": 0
              },
              "child_template_digests": {
                "maxItems": 0
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "enabled": {
                "const": true
              }
            }
          },
          "then": {
            "properties": {
              "max_depth": {
                "minimum": 1
              },
              "max_direct_children": {
                "minimum": 1
              },
              "max_total_descendants": {
                "minimum": 1
              },
              "child_template_digests": {
                "minItems": 1
              }
            }
          }
        }
      ]
    },
    "lifecycle": {
      "type": "object",
      "properties": {
        "root_restart": {
          "const": "human_proof"
        },
        "child_restart": {
          "const": "live_parent_fresh_attestation"
        },
        "route_change": {
          "const": "new_admission"
        },
        "lease_seconds": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "max_lifetime_seconds": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "root_restart",
        "child_restart",
        "route_change",
        "lease_seconds",
        "max_lifetime_seconds"
      ],
      "additionalProperties": false
    },
    "runtime": {
      "type": "object",
      "properties": {
        "launcher_digest": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "enforcement_profile_digest": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "approved_code_digests": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^sha256:[0-9a-f]{64}$"
          },
          "minItems": 1,
          "maxItems": 128,
          "uniqueItems": true
        },
        "machine_inventory_digest": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "require_fresh_attestation": {
          "const": true
        },
        "require_nonexportable_instance_key": {
          "const": true
        },
        "inherit_instance_keys": {
          "const": false
        },
        "plugin_digests": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^sha256:[0-9a-f]{64}$"
          },
          "minItems": 0,
          "maxItems": 128,
          "uniqueItems": true
        }
      },
      "required": [
        "launcher_digest",
        "enforcement_profile_digest",
        "approved_code_digests",
        "machine_inventory_digest",
        "require_fresh_attestation",
        "require_nonexportable_instance_key",
        "inherit_instance_keys",
        "plugin_digests"
      ],
      "additionalProperties": false
    },
    "proof": {
      "type": "object",
      "properties": {
        "profile": {
          "const": "http6-computational-v1"
        },
        "action_body_bound": {
          "const": true
        },
        "one_use": {
          "const": true
        },
        "channel_bound": {
          "const": true
        },
        "strict_sequence": {
          "const": true
        },
        "ledger_namespace": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        }
      },
      "required": [
        "profile",
        "action_body_bound",
        "one_use",
        "channel_bound",
        "strict_sequence",
        "ledger_namespace"
      ],
      "additionalProperties": false
    },
    "budgets": {
      "type": "object",
      "properties": {
        "ledger_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        },
        "scope": {
          "const": "subtree"
        },
        "limits": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "dimension": {
                "enum": [
                  "operations",
                  "export_bytes",
                  "spend_minor",
                  "child_births",
                  "concurrent_workers"
                ]
              },
              "maximum": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "window_seconds": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "dimension",
              "maximum",
              "window_seconds"
            ],
            "additionalProperties": false
          },
          "minItems": 0,
          "maxItems": 16,
          "uniqueItems": true
        }
      },
      "required": [
        "ledger_id",
        "scope",
        "limits"
      ],
      "additionalProperties": false
    },
    "audit": {
      "type": "object",
      "properties": {
        "event_types": {
          "type": "array",
          "items": {
            "enum": [
              "ignition",
              "birth",
              "decision",
              "outcome",
              "revoke",
              "recovery",
              "rejection"
            ]
          },
          "minItems": 1,
          "maxItems": 7,
          "uniqueItems": true
        },
        "private_reference_logging": {
          "const": false
        },
        "retention_seconds": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "event_types",
        "private_reference_logging",
        "retention_seconds"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "schema_version",
    "policy_id",
    "semantics",
    "iam",
    "permissions",
    "network",
    "delegation",
    "lifecycle",
    "runtime",
    "proof",
    "budgets",
    "audit"
  ],
  "additionalProperties": false,
  "$defs": {
    "condition": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "field": {
              "enum": [
                "request.tenant",
                "request.amount_minor",
                "request.data_classification",
                "request.method",
                "request.tool",
                "request.recipient",
                "resource.owner",
                "resource.classification",
                "context.region",
                "context.attested",
                "context.source_zone",
                "context.purpose"
              ]
            },
            "operator": {
              "enum": [
                "eq",
                "ne",
                "in",
                "not_in",
                "lte",
                "gte"
              ]
            },
            "value": {
              "oneOf": [
                {
                  "type": [
                    "string",
                    "integer",
                    "boolean"
                  ],
                  "maxLength": 2048,
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "array",
                  "items": {
                    "type": [
                      "string",
                      "integer",
                      "boolean"
                    ],
                    "maxLength": 2048,
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "minItems": 1,
                  "maxItems": 256,
                  "uniqueItems": true
                }
              ]
            }
          },
          "required": [
            "field",
            "operator",
            "value"
          ],
          "additionalProperties": false,
          "allOf": [
            {
              "if": {
                "properties": {
                  "operator": {
                    "enum": [
                      "in",
                      "not_in"
                    ]
                  }
                }
              },
              "then": {
                "properties": {
                  "value": {
                    "type": "array",
                    "items": {
                      "type": [
                        "string",
                        "integer",
                        "boolean"
                      ],
                      "maxLength": 2048,
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "minItems": 1,
                    "maxItems": 256,
                    "uniqueItems": true
                  }
                }
              },
              "else": {
                "properties": {
                  "value": {
                    "type": [
                      "string",
                      "integer",
                      "boolean"
                    ],
                    "maxLength": 2048,
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                }
              }
            },
            {
              "if": {
                "properties": {
                  "operator": {
                    "enum": [
                      "lte",
                      "gte"
                    ]
                  }
                }
              },
              "then": {
                "properties": {
                  "value": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                }
              }
            }
          ]
        },
        {
          "type": "object",
          "properties": {
            "all": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/condition"
              },
              "minItems": 1,
              "maxItems": 64,
              "uniqueItems": true
            }
          },
          "required": [
            "all"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "any": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/condition"
              },
              "minItems": 1,
              "maxItems": 64,
              "uniqueItems": true
            }
          },
          "required": [
            "any"
          ],
          "additionalProperties": false
        }
      ]
    },
    "allow_rule": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        },
        "operations": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[a-z][a-z0-9_.:-]*$"
          },
          "minItems": 1,
          "maxItems": 256,
          "uniqueItems": true
        },
        "destinations": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "minItems": 1,
          "maxItems": 256,
          "uniqueItems": true
        },
        "resources": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "minItems": 1,
          "maxItems": 256,
          "uniqueItems": true
        },
        "conditions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/condition"
          },
          "minItems": 0,
          "maxItems": 64,
          "uniqueItems": true
        }
      },
      "required": [
        "id",
        "operations",
        "destinations",
        "resources",
        "conditions"
      ],
      "additionalProperties": false
    },
    "deny_rule": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        },
        "operations": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^(?:\\*|[a-z][a-z0-9_.:-]*)$"
          },
          "minItems": 1,
          "maxItems": 256,
          "uniqueItems": true
        },
        "destinations": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "minItems": 1,
          "maxItems": 256,
          "uniqueItems": true
        },
        "resources": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "minItems": 1,
          "maxItems": 256,
          "uniqueItems": true
        },
        "conditions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/condition"
          },
          "minItems": 0,
          "maxItems": 64,
          "uniqueItems": true
        }
      },
      "required": [
        "id",
        "operations",
        "destinations",
        "resources",
        "conditions"
      ],
      "additionalProperties": false
    },
    "destination": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        },
        "dns_name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 253,
          "pattern": "^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$"
        },
        "service_identity": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        },
        "ports": {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 1,
            "maximum": 65535
          },
          "minItems": 1,
          "maxItems": 64,
          "uniqueItems": true
        },
        "protocols": {
          "type": "array",
          "items": {
            "enum": [
              "tls",
              "quic"
            ]
          },
          "minItems": 1,
          "maxItems": 2,
          "uniqueItems": true
        },
        "ip_cidrs": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "minItems": 1,
          "maxItems": 64,
          "uniqueItems": true
        }
      },
      "required": [
        "id",
        "dns_name",
        "service_identity",
        "ports",
        "protocols",
        "ip_cidrs"
      ],
      "additionalProperties": false
    }
  }
}

C.2. protocol_contracts.schema.json

Source path: schemas/protocol_contracts.schema.json.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:http6:proposed-protocol-contracts:v1",
  "title": "Proposed production integration record contracts, not a standardized wire format",
  "$defs": {
    "signature": {
      "type": "object",
      "properties": {
        "algorithm": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "issuer_key_id": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "signature": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        }
      },
      "required": [
        "algorithm",
        "issuer_key_id",
        "signature"
      ],
      "additionalProperties": false
    },
    "rootReceipt": {
      "type": "object",
      "properties": {
        "kind": {
          "const": "human-admission-receipt"
        },
        "receipt_id": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "subject_handle": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "root_instance": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "root_key_fingerprint": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "policy_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "requirement_profile_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "runtime_appraisal_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "context_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "epoch": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "human_auth_time": {
          "type": "string",
          "format": "date-time"
        },
        "not_before": {
          "type": "string",
          "format": "date-time"
        },
        "expires_at": {
          "type": "string",
          "format": "date-time"
        },
        "identity_profile_ref": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "authentication_profile_ref": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "signature": {
          "$ref": "#/$defs/signature"
        }
      },
      "required": [
        "kind",
        "receipt_id",
        "subject_handle",
        "root_instance",
        "root_key_fingerprint",
        "policy_digest",
        "requirement_profile_digest",
        "runtime_appraisal_digest",
        "context_digest",
        "epoch",
        "human_auth_time",
        "not_before",
        "expires_at",
        "identity_profile_ref",
        "authentication_profile_ref",
        "signature"
      ],
      "additionalProperties": false
    },
    "runtimeAppraisal": {
      "type": "object",
      "properties": {
        "kind": {
          "const": "runtime-appraisal"
        },
        "appraisal_id": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "attester_id": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "instance_key_fingerprint": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "measurement": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "policy_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "challenge_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "machine_generation": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "issued_at": {
          "type": "string",
          "format": "date-time"
        },
        "expires_at": {
          "type": "string",
          "format": "date-time"
        },
        "reference_values_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "decision": {
          "enum": [
            "accepted",
            "rejected"
          ]
        },
        "signature": {
          "$ref": "#/$defs/signature"
        }
      },
      "required": [
        "kind",
        "appraisal_id",
        "attester_id",
        "instance_key_fingerprint",
        "measurement",
        "policy_digest",
        "challenge_digest",
        "machine_generation",
        "issued_at",
        "expires_at",
        "reference_values_digest",
        "decision",
        "signature"
      ],
      "additionalProperties": false
    },
    "requirementProfile": {
      "type": "object",
      "properties": {
        "kind": {
          "const": "requirement-profile"
        },
        "scope_id": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "scope_manifest_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "edition_refs": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "pattern": "^[ -~]+$"
          }
        },
        "source_catalog_digests": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        },
        "selected_ids": {
          "type": "array",
          "minItems": 1,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "minLength": 1,
            "pattern": "^[ -~]+$"
          }
        },
        "resolved_parameters": {
          "type": "object"
        },
        "evidence_policy_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "approval_ref": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "profile_status": {
          "enum": [
            "draft",
            "approved"
          ]
        }
      },
      "required": [
        "kind",
        "scope_id",
        "scope_manifest_digest",
        "edition_refs",
        "source_catalog_digests",
        "selected_ids",
        "resolved_parameters",
        "evidence_policy_digest",
        "approval_ref",
        "profile_status"
      ],
      "additionalProperties": false
    },
    "auditEvent": {
      "type": "object",
      "properties": {
        "kind": {
          "const": "authorization-event"
        },
        "event_id": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "root_instance": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "acting_instance": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "epoch": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "policy_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "operation_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "decision": {
          "enum": [
            "permit",
            "deny",
            "hold"
          ]
        },
        "reason_id": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "event_time": {
          "type": "string",
          "format": "date-time"
        },
        "transaction_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "collector_id": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "signature": {
          "$ref": "#/$defs/signature"
        }
      },
      "required": [
        "kind",
        "event_id",
        "root_instance",
        "acting_instance",
        "epoch",
        "policy_digest",
        "operation_digest",
        "decision",
        "reason_id",
        "event_time",
        "transaction_id",
        "collector_id",
        "signature"
      ],
      "additionalProperties": false
    },
    "providerEvidence": {
      "type": "object",
      "properties": {
        "kind": {
          "const": "provider-evidence"
        },
        "evidence_id": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "provider_id": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "scope_id": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "subject_id": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "claim_type": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "claim_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "artifact_digests": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        },
        "issued_at": {
          "type": "string",
          "format": "date-time"
        },
        "expires_at": {
          "type": "string",
          "format": "date-time"
        },
        "revocation_ref": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "signature": {
          "$ref": "#/$defs/signature"
        }
      },
      "required": [
        "kind",
        "evidence_id",
        "provider_id",
        "scope_id",
        "subject_id",
        "claim_type",
        "claim_digest",
        "artifact_digests",
        "issued_at",
        "expires_at",
        "revocation_ref",
        "signature"
      ],
      "additionalProperties": false
    }
  },
  "oneOf": [
    {
      "$ref": "#/$defs/rootReceipt"
    },
    {
      "$ref": "#/$defs/runtimeAppraisal"
    },
    {
      "$ref": "#/$defs/requirementProfile"
    },
    {
      "$ref": "#/$defs/auditEvent"
    },
    {
      "$ref": "#/$defs/providerEvidence"
    }
  ]
}

C.3. review_objects.schema.json

Source path: schemas/review_objects.schema.json.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:http6:review-objects:v1",
  "title": "HTTP6 review objects: illustrative typed representations",
  "description": "Review profile only. Semantic and cryptographic checks are independent.",
  "$defs": {
    "rule": {
      "type": "object",
      "properties": {
        "operation": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "destination": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "resource": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "data_class": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        }
      },
      "required": [
        "operation",
        "destination",
        "resource",
        "data_class"
      ],
      "additionalProperties": false
    },
    "allowRule": {
      "type": "object",
      "properties": {
        "operation": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$",
          "not": {
            "const": "*"
          }
        },
        "destination": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$",
          "not": {
            "const": "*"
          }
        },
        "resource": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$",
          "not": {
            "const": "*"
          }
        },
        "data_class": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$",
          "not": {
            "const": "*"
          }
        }
      },
      "required": [
        "operation",
        "destination",
        "resource",
        "data_class"
      ],
      "additionalProperties": false
    },
    "policy": {
      "type": "object",
      "properties": {
        "version": {
          "const": "http6.review-policy.v1"
        },
        "tenant": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "allow": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/allowRule"
          }
        },
        "deny": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/rule"
          }
        },
        "role_snapshot": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "can_mint": {
          "type": "boolean"
        },
        "max_depth": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "templates": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "pattern": "^[ -~]+$"
          }
        },
        "budget": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "version",
        "tenant",
        "allow",
        "deny",
        "role_snapshot",
        "can_mint",
        "max_depth",
        "templates",
        "budget"
      ],
      "additionalProperties": false
    },
    "request": {
      "type": "object",
      "properties": {
        "tenant": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "operation": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "destination": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "resource": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "data_class": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "payload_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "cost": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "tenant",
        "operation",
        "destination",
        "resource",
        "data_class",
        "payload_digest",
        "cost"
      ],
      "additionalProperties": false
    },
    "grant": {
      "type": "object",
      "properties": {
        "version": {
          "const": "http6.review-grant.v1"
        },
        "instance": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "public_key": {
          "type": "string",
          "pattern": "^04[0-9a-f]{128}$"
        },
        "birth_nonce": {
          "type": "string",
          "pattern": "^[0-9a-f]{32}$"
        },
        "parent": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "root": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "epoch": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "profile": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "issued": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "expires": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "measurement": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "policy": {
          "$ref": "#/$defs/policy"
        },
        "policy_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        }
      },
      "required": [
        "version",
        "instance",
        "public_key",
        "birth_nonce",
        "parent",
        "root",
        "epoch",
        "profile",
        "issued",
        "expires",
        "measurement",
        "policy",
        "policy_digest"
      ],
      "additionalProperties": false
    },
    "signedGrant": {
      "type": "object",
      "properties": {
        "body": {
          "$ref": "#/$defs/grant"
        },
        "signature": {
          "type": "string",
          "pattern": "^[0-9a-f]+$",
          "minLength": 2
        }
      },
      "required": [
        "body",
        "signature"
      ],
      "additionalProperties": false
    },
    "action": {
      "type": "object",
      "properties": {
        "instance": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "epoch": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "profile": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "policy_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "lineage_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "channel": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "sequence": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "geometry_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "nonce": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "expires": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "direction": {
          "const": "request"
        },
        "request": {
          "$ref": "#/$defs/request"
        }
      },
      "required": [
        "instance",
        "epoch",
        "profile",
        "policy_digest",
        "lineage_digest",
        "channel",
        "sequence",
        "geometry_digest",
        "nonce",
        "expires",
        "direction",
        "request"
      ],
      "additionalProperties": false
    },
    "signedAction": {
      "type": "object",
      "properties": {
        "body": {
          "$ref": "#/$defs/action"
        },
        "signature": {
          "type": "string",
          "pattern": "^[0-9a-f]+$",
          "minLength": 2
        }
      },
      "required": [
        "body",
        "signature"
      ],
      "additionalProperties": false
    },
    "assessmentRecord": {
      "type": "object",
      "properties": {
        "requirement_id": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "scope_id": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "source_locator": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "implementation_owner": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "implementation_ref": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "methods": {
          "type": "array",
          "minItems": 1,
          "uniqueItems": true,
          "items": {
            "enum": [
              "examine",
              "interview",
              "test"
            ]
          }
        },
        "expected": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[ -~]+$"
        },
        "observed": {
          "type": [
            "string",
            "null"
          ]
        },
        "evidence_digests": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        },
        "status": {
          "enum": [
            "designed",
            "not_assessed",
            "reviewed"
          ]
        },
        "reviewer": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "requirement_id",
        "scope_id",
        "source_locator",
        "implementation_owner",
        "implementation_ref",
        "methods",
        "expected",
        "observed",
        "evidence_digests",
        "status",
        "reviewer"
      ],
      "additionalProperties": false
    }
  },
  "oneOf": [
    {
      "$ref": "#/$defs/policy"
    },
    {
      "$ref": "#/$defs/request"
    },
    {
      "$ref": "#/$defs/signedGrant"
    },
    {
      "$ref": "#/$defs/signedAction"
    },
    {
      "$ref": "#/$defs/assessmentRecord"
    }
  ]
}