Chapter 23 — Constitutional Runtime Framework
Part IX — Security and Isolation
The Security and Isolation Runtime is the governed constitutional runtime through which ZAYAZ protects identities, authority, knowledge, evidence, data, relationships, workflows, agents, Runtime Components, tenants, white-label deployments, cryptographic materials, event streams and execution environments from unauthorised access, use, disclosure, alteration, inference, disruption or destruction.
Security SHALL be treated as constitutional behaviour rather than infrastructure configuration alone.
Isolation SHALL be enforced across every constitutionally relevant boundary.
The Runtime SHALL distinguish:
- identity from authentication;
- authentication from constitutional authority;
- access from permitted purpose;
- data visibility from inference permission;
- tenant ownership from infrastructure tenancy;
- white-label branding from security tenancy;
- encryption from authorisation;
- signature validity from signer authority;
- network reachability from execution permission;
- tool availability from tool-use authority;
- workload identity from Component identity;
- operational logging from Security Evidence;
- security detection from confirmed incident;
- emergency access from unrestricted access;
- data deletion from provenance erasure;
- technical isolation from constitutional isolation.
The governing principles are:
Every request, decision, execution, event and side effect SHALL be evaluated within an explicit Security Context.
No tenant, white-label deployment, organisation, Module, Component, agent or user SHALL gain access or infer protected knowledge outside its authorised constitutional boundary.
Security controls SHALL preserve constitutional meaning, provenance and auditability rather than obscuring or destroying them.
Conceptually:
Identity and Trust Sources
│
├── Human Identity
├── Workload Identity
├── Component Identity
├── Agent Identity
├── Tenant Identity
├── Device Identity
├── Certificate Identity
└── Federation Identity
│
▼
Authentication and Trust Validation
│
▼
Security Context Assembly
│
├── Tenant
├── White-label Boundary
├── Purpose
├── Authority
├── Data Classification
├── Jurisdiction
├── Residency
├── Execution Environment
└── Risk State
│
▼
Security Policy Resolution
│
▼
Policy Decision
│
├── Permit
├── Permit with Obligations
├── Step-up Required
├── Approval Required
├── Quarantine
├── Suspend
└── Deny
│
▼
Isolation and Enforcement
│
├── Tenant Isolation
├── Data Isolation
├── Graph Isolation
├── Relationship Isolation
├── Network Isolation
├── Runtime Isolation
├── Agent Isolation
└── Secret Isolation
│
▼
Security Events, Evidence and Provenance
Security and Isolation Runtime SHALL remain independent of any single identity provider, policy engine, cloud platform, encryption provider, secrets manager, network technology, container runtime, agent framework or security product.
23.90. Security Runtime
The Security Runtime is the constitutional execution system responsible for assembling Security Context, resolving applicable Security Policies, evaluating access and execution requests, enforcing isolation, producing obligations, monitoring security state and preserving Security Evidence.
Security controls SHALL apply before, during and after execution.
23.90.1. Purpose
The Security Runtime SHALL provide a common constitutional security model for:
- identity assurance;
- authentication;
- workload identity;
- authorisation;
- purpose limitation;
- tenant isolation;
- white-label isolation;
- data and graph isolation;
- relationship-level access;
- inference-leakage prevention;
- network and service isolation;
- execution sandboxing;
- secrets and key management;
- cryptographic trust;
- Component trust;
- Runtime Bundle trust;
- software supply-chain integrity;
- agent and tool security;
- security monitoring;
- incident response;
- forensic reconstruction;
- Security Evidence and assurance.
23.90.2. Security Boundary
A Security Boundary defines the constitutional scope within which identities, data, relationships, Components, agents, services, events and side effects may interact.
Security Boundaries MAY be defined by:
- tenant;
- white-label deployment;
- organisation;
- legal entity;
- jurisdiction;
- data residency;
- Module;
- Component;
- Runtime Environment;
- assurance engagement;
- workflow;
- Execution Session;
- graph partition;
- evidence vault;
- agent sandbox;
- federation;
- security classification.
A security boundary SHALL be explicit and identifiable.
23.90.3. Security Subject
A Security Subject MAY be:
- human actor;
- organisation;
- legal entity;
- service account;
- workload;
- Runtime Component;
- agent;
- model;
- device;
- integration;
- federated system;
- regulator;
- verifier;
- tenant administrator;
- external stakeholder.
23.90.4. Security Resource
A Security Resource MAY include:
- Constitutional Object;
- Constitutional Relationship;
- Constitutional Assertion;
- evidence;
- document;
- report;
- disclosure;
- graph;
- graph path;
- event;
- workflow;
- Task;
- Runtime Outcome;
- Validation Outcome;
- Derived Assertion;
- Runtime Bundle;
- Runtime Manifest;
- tool;
- secret;
- key;
- deployment;
- model;
- agent memory;
- log;
- Security Evidence.
23.90.5. Security Action
Security Actions MAY include:
- discover;
- read;
- traverse;
- infer;
- create;
- update;
- delete;
- activate;
- execute;
- validate;
- reason;
- calculate;
- approve;
- assure;
- publish;
- export;
- correlate;
- share;
- decrypt;
- sign;
- delegate;
- administer;
- monitor;
- investigate;
- restore.
Actions SHALL originate from governed Constitutional Value Providers.
23.90.6. Security Request
Every material security decision SHALL originate from a Security Request or equivalent governed request metadata identifying:
- Security Request Identifier;
- subject;
- represented principal;
- action;
- resource;
- purpose;
- Runtime Context;
- Security Context;
- tenant;
- jurisdiction;
- requested scope;
- requested duration;
- requested side effects;
- environmental attributes;
- provenance.
23.90.7. Security Runtime Components
A reference Security Runtime MAY contain:
| Component | Constitutional Responsibility |
|---|---|
| Identity Gateway | Accepts and validates identity assertions |
| Trust Resolver | Resolves trusted issuers, certificates and federations |
| Security Context Assembler | Creates the effective Security Context |
| Security Policy Resolver | Resolves applicable policy versions |
| Policy Decision Point | Produces governed Security Decisions |
| Policy Enforcement Point | Enforces decisions and obligations |
| Tenant Boundary Service | Enforces tenant and white-label isolation |
| Graph Security Service | Enforces node, edge, path and inference controls |
| Secret and Key Service | Protects cryptographic materials |
| Runtime Attestation Service | Verifies workload and Component integrity |
| Security Event Service | Produces and correlates security events |
| Incident Runtime | Coordinates incident response |
| Security Evidence Service | Preserves evidence and audit lineage |
Each Component SHALL belong to a Module and preserve Component lineage.
23.90.8. Security Decision
A Security Decision SHALL be one of:
- Permit;
- Permit with Obligations;
- Permit with Reduced Scope;
- Step-up Authentication Required;
- Additional Authority Required;
- Approval Required;
- Assurance Required;
- Quarantine;
- Suspend;
- Deny;
- Indeterminate;
- Not Applicable;
- Not Evaluated.
Indeterminate and Not Evaluated SHALL NOT be treated as Permit.
23.90.9. Security Obligations
A permitted decision MAY impose obligations including:
- masking;
- redaction;
- encryption;
- watermarking;
- logging;
- notification;
- approval;
- time limitation;
- output filtering;
- purpose binding;
- retention limit;
- deletion;
- human review;
- rate limit;
- geographic restriction;
- no external export;
- no agent memory;
- no model training;
- enhanced monitoring;
- post-action validation.
Obligations SHALL be enforceable and auditable.
23.90.10. Policy Enforcement Points
Enforcement SHALL occur at relevant boundaries, including:
- API Gateway;
- service endpoint;
- graph query;
- registry query;
- database access;
- event publication;
- event consumption;
- workflow transition;
- Task assignment;
- agent planning;
- tool invocation;
- model retrieval;
- file access;
- report export;
- publication;
- cross-tenant operation;
- federation exchange;
- secret retrieval;
- Runtime Bundle activation.
23.90.11. Continuous Security
Security decisions SHALL be re-evaluated where relevant state changes, including:
- identity assurance;
- authority;
- tenant;
- purpose;
- risk;
- device state;
- Component attestation;
- policy version;
- secret state;
- Runtime Bundle;
- network boundary;
- incident state;
- emergency state;
- data classification;
- jurisdiction.
23.90.12. Security Determinism
Equivalent Security Requests, Security Contexts, policy versions, trust states and Runtime Bundles SHALL produce semantically equivalent Security Decisions.
Security SHALL NOT depend upon:
- undocumented administrator convention;
- hidden superuser bypass;
- database row order;
- user-interface visibility;
- network location alone;
- unversioned AI judgement;
- best-effort log interpretation.
23.90.13. Fail-Closed Behaviour
The Security Runtime SHALL fail closed where it cannot establish:
- subject identity;
- tenant;
- purpose;
- policy;
- authority;
- resource identity;
- security classification;
- trust state;
- required context;
- enforcement capability.
An explicit emergency policy MAY permit a bounded alternative mode.
23.90.14. Security Availability
Security controls SHALL be designed so that control-service failure does not silently create unrestricted access.
Permitted failure strategies MAY include:
- cached decisions with bounded validity;
- local policy enforcement;
- read-only degraded mode;
- restricted emergency mode;
- service suspension;
- request denial.
23.90.15. HECATE Validation
HECATE SHALL validate:
- Security Request identity;
- Security Context completeness;
- policy applicability;
- decision consistency;
- obligation completeness;
- enforcement coverage;
- tenant isolation;
- trust state;
- provenance;
- explanation.
23.91. Security Context, Classification and Profiles
A Security Context is the immutable, governed set of security-relevant facts under which a Security Decision and protected execution occur.
Security Context SHALL be assembled from validated sources and sealed before authoritative enforcement.
23.91.1. Security Context Dimensions
A Security Context MAY include:
- subject identity;
- represented principal;
- tenant;
- white-label deployment;
- organisation;
- legal entity;
- jurisdiction;
- purpose;
- action;
- resource;
- data classification;
- security classification;
- confidentiality level;
- integrity requirement;
- availability requirement;
- residency;
- device posture;
- workload attestation;
- network zone;
- Runtime Environment;
- agent state;
- assurance level;
- incident state;
- emergency state;
- time;
- risk state.
23.91.2. Security Context Sources
Sources MAY include:
- authenticated identity token;
- Constitutional Role Registry;
- Authority Assignment;
- tenant registry;
- organisation registry;
- Runtime Context;
- device attestation;
- workload attestation;
- Component registry;
- Runtime Manifest;
- network policy;
- data catalogue;
- classification registry;
- incident system;
- security policy;
- approved defaults.
Every source SHALL possess identity, authority, temporal validity and provenance.
23.91.3. Security Context Assembly
Assembly SHALL:
- resolve source identities;
- validate trust;
- normalize attributes;
- resolve conflicts;
- intersect restrictions;
- apply classification;
- apply jurisdiction;
- apply purpose;
- apply tenant boundary;
- apply temporal validity;
- generate a Security Context Fingerprint.
23.91.4. Context Precedence
Security Context precedence SHALL consider:
- constitutional authority;
- legal requirement;
- mandatory security policy;
- tenant restriction;
- data-owner restriction;
- purpose restriction;
- resource-specific restriction;
- device or workload risk;
- emergency policy.
The most permissive source SHALL NOT automatically win.
23.91.5. Restriction Intersection
Where multiple restrictions apply, the effective Security Context SHOULD normally use their strictest compatible intersection.
An explicit policy SHALL be required to broaden access.
23.91.6. Security Context Sealing
A sealed Security Context SHALL preserve:
- Security Context Identifier;
- dimensions;
- source identities;
- source versions;
- policy profile;
- Context Fingerprint;
- Security Context Fingerprint;
- validation result;
- sealing Component;
- time;
- provenance.
23.91.7. Security Context Fingerprint
The fingerprint SHALL include constitutionally relevant security attributes and SHALL support:
- decision reuse;
- distributed verification;
- replay;
- cache safety;
- audit;
- incident reconstruction;
- drift detection.
23.91.8. Classification Object
A Classification Object SHALL define:
- Classification Identifier;
- classification system;
- classification level;
- meaning;
- owner;
- handling requirements;
- disclosure restrictions;
- retention;
- residency;
- encryption;
- masking;
- export restrictions;
- declassification rules;
- provenance.
23.91.9. Classification Dimensions
Classification MAY distinguish:
- public;
- internal;
- confidential;
- restricted;
- highly restricted;
- personal data;
- special-category personal data;
- commercially sensitive;
- legally privileged;
- regulatory confidential;
- assurance confidential;
- security sensitive;
- cryptographic secret;
- tenant secret;
- model-sensitive;
- trade secret.
Values SHALL originate from governed Constitutional Value Providers.
23.91.10. Classification Inheritance
Classification MAY inherit through:
- containment;
- composition;
- relationship;
- dataset membership;
- report inclusion;
- evidence attachment;
- derived assertion;
- agent memory;
- event payload.
Inheritance SHALL be explicit and validated.
23.91.11. Classification Aggregation
A collection or report containing differently classified content SHALL receive a governed aggregate classification.
Aggregate classification SHALL not be weaker than its protected contents unless approved transformation and redaction establish a lower classification.
23.91.12. Derived Classification
Classification MAY be derived from:
- source classification;
- purpose;
- subject type;
- relationship;
- jurisdiction;
- tenant policy;
- sensitivity rule;
- inference risk;
- aggregation risk.
Derived classification SHALL preserve its derivation.
23.91.13. Classification Change
Reclassification SHALL require:
- authority;
- reason;
- evidence;
- affected scope;
- effective time;
- downstream impact analysis;
- cache invalidation;
- event publication;
- provenance.
23.91.14. Security Profile
A Security Profile is the governed Constitutional Object defining the Security Policies, trust requirements, authentication requirements, isolation controls, obligations and incident treatment applicable to a purpose and context.
23.91.15. Security Profile Types
Security Profile Types MAY include:
- public access;
- internal tenant access;
- privileged administration;
- regulatory access;
- assurance access;
- external stakeholder access;
- agent execution;
- high-risk computation;
- confidential evidence;
- cross-border transfer;
- federation;
- emergency access;
- historical reconstruction;
- public publication.
23.91.16. Profile Resolution
CRP SHALL resolve the applicable Security Profile using:
- subject type;
- action;
- resource;
- classification;
- tenant;
- jurisdiction;
- purpose;
- authority;
- Runtime Environment;
- assurance level;
- incident state;
- emergency state.
23.91.17. Profile Composition
Security Profiles MAY compose:
- Core profile;
- white-label base profile;
- tenant profile;
- jurisdictional profile;
- resource profile;
- agent profile;
- environment profile;
- emergency profile.
Composition SHALL preserve all mandatory restrictions.
23.91.18. White-Label Profile Order
White-label security composition SHALL follow:
ZAYAZ Core Security
│
▼
White-label Base Security
│
▼
Tenant Security Overlay
│
▼
Organisation Security Overlay
│
▼
Resource Security Policy
│
▼
Runtime Security Context
No overlay SHALL weaken a non-overrideable Core or legal control.
23.91.19. Security Context Validation
HECATE SHALL validate:
- source trust;
- identity;
- tenant;
- classification;
- purpose;
- jurisdiction;
- context coherence;
- profile resolution;
- fingerprint reproducibility;
- temporal validity;
- provenance.
23.92. Identity, Authentication and Workload Identity
Identity Runtime establishes and validates the identity of human actors, organisations, workloads, Components, agents, devices, services and federated systems.
Authentication proves control of an identity credential or trusted authenticator.
Authentication SHALL NOT by itself establish constitutional authority.
23.92.1. Identity Types
Identity Types MAY include:
- natural person;
- organisation;
- legal entity;
- tenant;
- white-label operator;
- regulator;
- verifier;
- service account;
- workload;
- Runtime Component;
- agent;
- model deployment;
- device;
- external integration;
- federation;
- certificate issuer;
- signing authority.
23.92.2. Constitutional Identity
Every security-relevant identity SHALL map to a stable Constitutional Identifier or governed external identity mapping.
Display name, email address, username, token subject or certificate name SHALL NOT be treated as the sole constitutional identity.
23.92.3. Identity Record
An Identity Record SHALL preserve:
- Identity Identifier;
- identity type;
- canonical name;
- tenant;
- organisation;
- external identifiers;
- identity provider;
- lifecycle;
- verification status;
- assurance level;
- credentials or credential references;
- Roles;
- authority relationships;
- temporal validity;
- provenance.
23.92.4. Identity Proofing
Identity proofing MAY establish:
- claimed identity;
- verified identity;
- organisation affiliation;
- legal representation;
- professional qualification;
- device ownership;
- workload ownership;
- verifier accreditation.
The required proofing level SHALL be defined by the Security Profile.
23.92.5. Authentication Factors
Authentication MAY use:
- knowledge factor;
- possession factor;
- inherence factor;
- cryptographic key;
- certificate;
- hardware-backed authenticator;
- federated identity assertion;
- workload attestation;
- device attestation;
- signed request.
23.92.6. Authentication Assurance
Authentication Assurance SHALL describe confidence that the authenticated subject controls the claimed identity.
It SHALL remain distinct from authority and trustworthiness.
23.92.7. Step-Up Authentication
A Security Decision MAY require stronger authentication for:
- privileged action;
- publication;
- authority delegation;
- assurance conclusion;
- secret access;
- cross-border export;
- destructive operation;
- emergency activation;
- tenant administration;
- cryptographic signing.
23.92.8. Session Identity
An authenticated session SHALL preserve:
- Session Identifier;
- identity;
- represented principal;
- tenant;
- authentication method;
- assurance level;
- issue time;
- expiration;
- device or workload state;
- revocation state;
- Security Context;
- provenance.
23.92.9. Session Binding
A session MAY be bound to:
- device;
- workload;
- network zone;
- tenant;
- purpose;
- Runtime Environment;
- certificate;
- cryptographic channel;
- geographic region.
Binding SHALL be policy-governed.
23.92.10. Session Renewal
Renewal SHALL re-evaluate:
- identity;
- credential status;
- authority;
- tenant;
- device posture;
- incident state;
- Security Profile;
- context;
- expiration.
23.92.11. Session Revocation
Revocation SHALL invalidate future use and trigger impact analysis over:
- active executions;
- workflows;
- agent sessions;
- approvals;
- tool credentials;
- event subscriptions;
- privileged operations.
23.92.12. Workload Identity
Every Runtime Component and service workload SHALL possess a workload identity independent from host, IP address, container name or deployment label.
23.92.13. Workload Identity Record
A Workload Identity Record SHALL include:
- Workload Identifier;
- Component Identifier;
- owning Module;
- deployment identity;
- environment;
- tenant scope;
- service role;
- certificate or key reference;
- attestation requirements;
- permitted endpoints;
- permitted tools;
- lifecycle;
- version;
- provenance.
23.92.14. Component Identity
Component identity SHALL preserve constitutional Component lineage across deployment changes.
A new deployment MAY have a new workload identity while retaining the same Component identity and version lineage.
23.92.15. Agent Identity
Agent identity SHALL remain distinct from:
- model identity;
- workload identity;
- Component identity;
- invoking user;
- owning Module;
- tool identity.
23.92.16. Device Identity
Device identity MAY be required for:
- privileged administration;
- evidence capture;
- sensor ingestion;
- signing;
- assurance;
- field verification;
- offline operation.
23.92.17. Federation Identity
Federated identity SHALL validate:
- external issuer;
- trust agreement;
- subject mapping;
- tenant mapping;
- attribute mapping;
- assurance mapping;
- revocation;
- temporal validity;
- provenance.
23.92.18. Identity Collision
The Runtime SHALL detect identity collision, including:
- reused external identifiers;
- duplicate certificate subjects;
- tenant-local identifiers treated as global;
- alias ambiguity;
- merged identities without evidence;
- model or agent identity confusion.
23.92.19. Orphan Identity
An identity without a valid owning tenant, organisation, Component or federation relationship SHALL be quarantined or denied according to policy.
23.92.20. Impersonation
Impersonation SHALL be prohibited unless an explicit governed support or delegation policy permits it.
Permitted representation SHALL preserve:
- actual actor;
- represented principal;
- authority;
- purpose;
- scope;
- time;
- evidence;
- provenance.
23.92.21. Break-Glass Identity
A break-glass identity SHALL:
- be explicitly classified;
- use strong authentication;
- require Emergency Authority;
- have narrow scope;
- have short duration;
- trigger alerting;
- preserve complete evidence;
- require retrospective review.
23.92.22. Identity Events
The Runtime SHOULD emit events including:
- IdentityCreated;
- IdentityVerified;
- IdentitySuspended;
- IdentityRevoked;
- AuthenticationSucceeded;
- AuthenticationFailed;
- StepUpRequired;
- SessionCreated;
- SessionRevoked;
- WorkloadAttested;
- WorkloadAttestationFailed;
- FederationTrustChanged.
23.93. Authorization, Policy Enforcement and Decisioning
Authorization Runtime determines whether a Security Subject may perform a Security Action upon a Security Resource for a defined purpose within a defined Security Context.
Authorization SHALL evaluate constitutional authority, security policy and resource restrictions together.
23.93.1. Authorization Model
The Runtime MAY combine:
- Role-Based Access Control;
- Attribute-Based Access Control;
- Relationship-Based Access Control;
- Policy-Based Access Control;
- purpose-based access;
- risk-adaptive access;
- capability-based controls;
- tenant-scoped controls;
- graph-path controls;
- workflow-state controls.
No single model SHALL be assumed sufficient for all constitutional decisions.
23.93.2. Role-Based Controls
Role-based decisions SHALL resolve Roles through the Constitutional Role Registry and Authority Assignments.
A role name in an identity token SHALL not establish constitutional Role membership without validated mapping.
23.93.3. Attribute-Based Controls
Attributes MAY include:
- subject attributes;
- resource attributes;
- action attributes;
- context attributes;
- tenant;
- classification;
- purpose;
- jurisdiction;
- time;
- device posture;
- workload attestation;
- risk;
- workflow state.
Attributes SHALL be sourced and provenance-preserving.
23.93.4. Relationship-Based Controls
Authorization MAY depend upon Constitutional Relationships such as:
- owns;
- stewards;
- employed by;
- assigned to;
- delegated by;
- verifies;
- assures;
- supplies;
- belongs to;
- operates;
- controls;
- reports to.
Relationship validity, direction, temporal state and tenant scope SHALL be validated.
23.93.5. Purpose-Based Controls
Purpose SHALL be explicit for constitutionally significant access.
Permitted purposes MAY include:
- operational processing;
- compliance;
- reporting;
- assurance;
- support;
- investigation;
- security;
- research;
- publication;
- regulator access.
Use outside the permitted purpose SHALL require a new decision.
23.93.6. Policy Object
Every Security Policy SHALL be a Constitutional Object possessing:
- Constitutional Identifier;
- canonical name;
- policy type;
- subject scope;
- resource scope;
- action scope;
- purpose scope;
- conditions;
- obligations;
- denial conditions;
- governing authority;
- applicability;
- lifecycle;
- version;
- temporal validity;
- compiler mappings;
- provenance.
23.93.7. Policy Resolution
CRP SHALL resolve applicable Security Policies using:
- subject;
- resource;
- action;
- tenant;
- classification;
- purpose;
- jurisdiction;
- Runtime Environment;
- risk state;
- incident state;
- emergency state;
- constitutional release.
23.93.8. Policy Composition
Multiple Security Policies MAY combine through:
- deny-overrides;
- permit-overrides;
- first-applicable;
- ordered evaluation;
- only-one-applicable;
- consensus;
- strict intersection;
- custom governed algorithm.
The combining algorithm SHALL be explicit and versioned.
23.93.9. Deny Overrides
Where deny-overrides applies, any applicable deny SHALL determine the decision unless a higher-order explicit exception policy permits otherwise.
23.93.10. Non-Overrideable Denials
The Constitution MAY declare controls that cannot be overridden, including:
- cross-tenant data leakage;
- unauthorised secret disclosure;
- unauthorised cryptographic signing;
- prohibited jurisdictional transfer;
- unauthorised assurance conclusion;
- agent self-escalation;
- deletion under legal hold;
- provenance tampering.
23.93.11. Policy Decision Point
The Policy Decision Point SHALL consume:
- Security Request;
- Security Context;
- resolved Security Policies;
- authority result;
- trust state;
- resource state;
- risk state.
It SHALL produce a signed or integrity-protected Security Decision where required.
23.93.12. Policy Enforcement Point
A Policy Enforcement Point SHALL:
- validate decision identity;
- validate decision scope;
- enforce obligations;
- verify freshness;
- verify Security Context Fingerprint;
- prevent scope expansion;
- record enforcement;
- reject unsupported obligations.
23.93.13. Decision Scope
A Security Decision SHALL be scoped by:
- subject;
- represented principal;
- resource;
- action;
- purpose;
- tenant;
- context;
- time;
- location where applicable;
- environment;
- risk;
- obligations.