A practical schema separates immutable policy content from the instance manifest that references its digest. The policy describes semantics, IAM/RBAC, request rules, destination controls, runtime admission, delegation, lifetime, proof requirements, budgets, and auditing. The manifest separately binds that policy to a particular child and its ancestry.
The following is a compact illustrative instance of the proposed schema; symbolic digest values are placeholders resolved before admission. The accompanying machine-readable schema defines types and closed object structures. The complete example supplies the additional required fields.
schema_version: http6.policy.v1
policy_id: finance-report-worker-v1
semantics:
profile: http6-monotone-v1
default_decision: deny
conflict_resolution: deny_overrides
evaluation_error: deny
ancestor_combiner: conjunction
engine_digest: <pinned-engine-digest>
normalizer_digest: <pinned-normalizer-digest>
action_registry_digest: <pinned-action-registry-digest>
iam:
tenant: acme
active_roles: [report-reader]
role_catalog_digest: <pinned-role-catalog-digest>
assignment_snapshot_digest: <pinned-assignment-digest>
role_grants:
- role: report-reader
operations: [ledger.read, report.write]
permissions:
allow:
- id: read-approved-ledger
operations: [ledger.read]
destinations: [ledger-service]
resources: [urn:acme:ledger:approved-view]
conditions:
- field: request.tenant
operator: eq
value: acme
- id: publish-approved-report
operations: [report.write]
destinations: [report-service]
resources: [urn:acme:reports:daily]
conditions: []
deny:
- id: block-destructive-operations
operations: [ledger.delete, iam.grant, process.exec]
destinations: ["*"]
resources: ["*"]
conditions: []
network:
broker_only: true
reauthorize_redirects: true
allow:
- id: ledger-service
dns_name: ledger.example.internal
service_identity: spiffe://acme.example/service/ledger
ports: [443]
protocols: [tls]
ip_cidrs: [10.20.0.0/24]
- id: report-service
dns_name: reports.example.internal
service_identity: spiffe://acme.example/service/reports
ports: [443]
protocols: [tls]
ip_cidrs: [10.21.0.0/24]
deny:
dns_names: [unapproved-export.example]
service_identities: []
ip_cidrs: [169.254.0.0/16]
delegation:
enabled: false
max_depth: 0
max_direct_children: 0
max_total_descendants: 0
child_template_digests: []
lifecycle:
root_restart: human_proof
child_restart: live_parent_fresh_attestation
route_change: new_admission
lease_seconds: 60
max_lifetime_seconds: 3600
proof:
profile: http6-computational-v1
action_body_bound: true
one_use: true
channel_bound: true
The role grants supply an IAM ceiling, while allow rules bind particular operations to particular destinations and resources. The network allowlist supplies independent endpoint constraints. The deny rules and network denylist supply explicit prohibitions. Every layer must agree. The schema deliberately avoids treating a permitted host as permission to invoke every API on that host.
A schema validator verifies shape, types, enumerated semantics, and required fields. A semantic admission validator additionally checks referenced identities, matching rule identifiers, valid CIDRs, available enforcement features, authorized templates, and consistent lifetimes. JSON Schema supports rejecting unrecognized object properties; actual cryptographic authenticity, semantic attenuation, and runtime enforcement remain checks performed by the surrounding admission system. [R4]
Typed conditions and trusted facts
The generic condition language should be expressive through composition rather than arbitrary executable scripts. A condition compares a typed field with a constant or an authenticated field reference. Approved operators include equality, set membership, numeric bounds, and explicit Boolean conjunctions or disjunctions. The schema fixes operator meaning. Expressions have bounded depth and evaluation cost, so an adversarial request cannot turn policy interpretation into unbounded computation.
Every input also needs a provenance rule. Machine identity comes from the admitted instance, not from a request header. Tenant identity comes from verified enrollment and resource ownership. A spending amount comes from the canonical operation being executed. Classification comes from trusted metadata or an approved transformation. The requesting agent may supply proposed values, but the monitor resolves the authoritative values before evaluation.
Dynamic facts are carried in authenticated, expiring assertions or obtained through protected services. The policy names the authorized issuer, relevant claim, maximum age, and interpretation version. An unavailable required fact closes the decision. Mutable facts that could broaden an immutable grant are frozen at admission or incorporated as a separately authorized transition. Restrictive revocation overlays can continue narrowing access without rewriting historical policy.
The complete policy also pins the permissible evidence providers. Otherwise an attacker could preserve every visible rule while replacing the source that says whether the request satisfies it. This is why a schema's structure, its evaluator, its normalizer, and its context resolver belong to the same admitted enforcement profile. Flexibility comes from explicitly versioned types and approved predicates, while each running instance keeps a stable meaning for the policy it received.