Skip to main content

Safety Model Ontology

AI Model Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 28 October 2026
Audio Overview
FLOW ALGEBRA — SAFETY MODEL ONTOLOGY
Semantic Library | AI Core > Entity Graph > AI Entities > AI Model Entities
Version: 1.0 | 2026-10-28 | Language: en-GB
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-model-entities/safety-model-ontology.html
Status: Original companion formalisation; the full source ontology was not exposed in retrieved page text.

1. PURPOSE
Represent a safety model as an auditable decision component that assesses candidate AI outputs or actions against contextual policy, risk, uncertainty and escalation requirements. A safety score is evidence, not proof of safety.

2. ENTITY GRAPH
SafetyModel is_a AIModel.
SafetyModel evaluates CandidateOutput | ProposedAction | ToolCall.
SafetyModel consumes Context, PolicySet, ThreatModel, Evidence.
SafetyModel produces RiskAssessment, Decision, Explanation, AuditRecord.
PolicySet contains Constraint, Prohibition, Permission, Exception.
RiskAssessment contains Severity, Likelihood, Confidence, Uncertainty.
Decision one_of ALLOW, MODIFY, BLOCK, ESCALATE.
AuditRecord links ModelVersion, PolicyVersion, Timestamp, InputDigest, Decision.

3. FORMAL STATE
S_t = (I_t, R_t, B_t, K_t)
I_t: current request, proposed output/action, context and observed signals.
R_t: safety rules, precedence, permitted transformations and escalation rules.
B_t: bounded resources, operational constraints, applicable authority and risk budget.
K_t: model knowledge, policy provenance, evaluation evidence and uncertainty.
E_t = expand(I_t, R_t)
V_t = {x in E_t : constraints(x, R_t, B_t) = true}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, observed_feedback)
NOTE: If V_t is empty, do not execute a candidate. Return BLOCK or ESCALATE.

4. RISK AND DECISION OPERATORS
For candidate c and context q:
r(c,q) = RiskEstimate(c,q,K_t)
u(c,q) = UncertaintyEstimate(c,q,K_t)
p(c,q) = PolicyCompliance(c,q,R_t)
Decision(c,q) =
  BLOCK    if a hard prohibition is established;
  ESCALATE if critical context is missing or uncertainty exceeds the allowed bound;
  MODIFY   if a permitted safe transformation exists and is verified;
  ALLOW    if policy checks pass and residual risk is within the accepted bound;
  ESCALATE otherwise.
Thresholds must be explicitly configured and validated; no universal numerical threshold is assumed.

5. INFERENCE RULES
R1. IF candidate violates a hard policy constraint THEN BLOCK.
R2. IF a tool action has irreversible or high-impact effects and lacks required authorisation THEN ESCALATE or BLOCK.
R3. IF a candidate can be transformed without changing the legitimate intent and the result passes checks THEN MODIFY.
R4. IF assessment confidence is inadequate for the impact level THEN ESCALATE.
R5. IF policy versions conflict THEN apply documented precedence; otherwise ESCALATE.
R6. IF a model identifies possible prompt injection in untrusted input THEN isolate that input from controlling instructions.
R7. IF risk is acceptable and all mandatory constraints pass THEN ALLOW.
R8. IF feedback reveals a missed unsafe outcome THEN log, review and update evaluation evidence; do not silently rewrite policy.

6. HOW TO READ THE FLOW
Input is interpreted in context; policy and authority determine permissible options; the safety model evaluates candidates; a decision gate allows, modifies, blocks or escalates; each decision is recorded. Recursive feedback can improve later assessments but cannot independently confer authority to change binding constraints.

7. TRI-MAPPING
Entity layer: SafetyModel, Candidate, Context, Policy, Risk, Decision, Audit.
Relationship layer: evaluates, constrained_by, estimates, transforms, authorises, records.
Execution layer: ingest -> normalise -> validate -> score -> decide -> verify -> log -> feedback.

8. MAPPING TABLE
Input request       | I_t                 | Context normalisation
Safety policy       | R_t                 | Rule evaluation
Authority and limits| B_t                 | Permission gate
Evidence/history    | K_t                 | Risk and uncertainty estimates
Candidate generation| E_t                 | Alternatives expansion
Valid alternatives  | V_t                 | Constraint filtering
Decision            | x*_t                | Allow/modify/block/escalate
Feedback            | I_(t+1), K_(t+1)    | Audited update

9. SYSTEM DIAGRAM
[Request + Context] -> [Candidate / Proposed Action]
                              |
                              v
                     [Policy + Authority]
                              |
                              v
                    [Risk + Uncertainty]
                              |
                              v
                        [Decision Gate]
                    /       |       |       \
                 ALLOW    MODIFY   BLOCK   ESCALATE
                    \       |       |       /
                        [Audit Log]
                              |
                              v
                    [Evaluation Feedback]

10. SAFETY INVARIANTS
INV-1: No candidate with a confirmed hard-policy violation may be executed.
INV-2: Untrusted content must not supersede governing instructions.
INV-3: High-impact actions require the configured authority and checks.
INV-4: A modified candidate must be reassessed before release.
INV-5: Uncertain decisions must not be represented as certain.
INV-6: Every consequential decision must have a traceable policy and model version.
INV-7: The safety model cannot self-authorise relaxation of its binding rules.

11. CONDITIONAL EXECUTION GUARANTEE
Under correctly implemented checks, complete applicable policy, reliable context and enforcement of the decision gate, any released candidate has passed the specified validation process. This is a procedural guarantee only; it does not establish that all harmful outcomes are detected or prevented. Distribution shift, adversarial inputs, faulty sensors and incomplete policy can invalidate assumptions.

12. AI SEARCH FLOW
FLOW_NAME: SafetyModelOntology
FLOW_VERSION: 1.0
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-model-entities/safety-model-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-model-entities/safety-model-ontology.html
PURPOSE: Retrieve and reason about AI safety-model entities and their constraints.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: SafetyModel; PolicySet; CandidateOutput; ProposedAction; RiskAssessment; Decision; AuditRecord
PATHWAYS: assess -> constrain -> decide -> verify -> log
MINI_RECURSION_ENGINE: observe -> assess -> decide -> record -> evaluate -> update evidence
INFERENCE_RULES: R1-R8
CONFIDENCE: Explicitly calibrated where evidence permits; otherwise unknown.
SEMANTIC_EQUIVALENCE: safety classifier != complete safety assurance; risk score != policy permission.
FLOW_HASH: Generate SHA-256 on the published final TXT bytes during deployment.
UPDATE_MODEL: Version policies and evaluation sets; require authorised review before rule changes.

13. IMPLEMENTATION AND TEST CASES
T1: Explicit prohibited action -> BLOCK.
T2: Benign permitted content with adequate evidence -> ALLOW.
T3: Recoverable policy issue with permitted rewrite -> MODIFY, then reassess.
T4: Ambiguous high-impact action -> ESCALATE.
T5: Injected instruction inside retrieved content -> ignore as governing authority.
T6: Conflicting policy versions without precedence -> ESCALATE.
T7: Missing audit metadata for consequential decision -> fail closed or ESCALATE.

END OF FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ