Skip to main content

Safe State Entity Ontology

State and Lifecycle Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 04 November 2026
Audio Overview
SAFE STATE ENTITY ONTOLOGY — FLOW ALGEBRA v1.0
SEMANTIC LIBRARY / AI CORE / ENTITY GRAPH / STATE AND LIFECYCLE ENTITIES
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/state-and-lifecycle-entities/safe-state-entity-ontology.html
Prepared: 2026-11-04
Status: Companion formalisation. The source page identifies the ontology, but its full embedded specification is not available in accessible page text. The rules below are a proposed formal model, not a verbatim transcription.
Licence: Refer to the project's Open Research Licence; citation and attribution requested.

1. PURPOSE
Describe a verifiable AI operating condition in which mandatory safety invariants hold, prohibited actions are blocked, uncertainty is bounded, and transitions into or out of that condition are governed by explicit authority and evidence. A safe state is contextual, not a claim of zero risk.

2. ENTITY DEFINITION
SafeState := (state_id, system_id, scope, mode, invariant_set, evidence_set, risk_assessment, authority, timestamp, provenance)
mode ∈ {ENTERING, SAFE_RESTRICTED, SAFE_IDLE, SAFE_OPERATIONAL, EXIT_PENDING, EXITED, UNKNOWN}
SafetyInvariant := (invariant_id, predicate, scope, severity, verification_method)
Evidence := (observation, source, timestamp, confidence, integrity)
Safe(s,t) := AllMandatoryInvariantsHold(s,t) AND WithinRiskBounds(s,t) AND AuthorisedMode(s,t)
UNKNOWN is not equivalent to SAFE.

3. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = observations, system health, requests, active tasks and alerts
R_t = safety invariants, transition rules and recovery policies
B_t = permissions, risk thresholds, resource limits and operational boundaries
K_t = evidence, validated knowledge, uncertainty and provenance
E_t = expand(I_t, R_t)
V_t = {x in E_t | respects(x,B_t) AND preserves_required_invariants(x)}
a_t = argmax_{x in V_t} P(x | I_t,R_t,B_t,K_t) * U_safe(x)
S_(t+1) = update(S_t,a_t,observations(a_t))
If V_t is empty: block unsafe action, retain or enter a restricted state, and escalate where necessary.
The selection expression ranks admissible actions; it does not prove they are safe.

4. FORMAL FLOW
FLOW SafeStateEvaluation(system, observation, policy):
  REQUIRE system.identity_valid AND policy.version_known
  ACQUIRE observations with timestamps and provenance
  CHECK observation freshness, completeness and integrity
  EVALUATE mandatory safety invariants
  ESTIMATE residual risk against policy thresholds
  CHECK current mode and permitted authorities
  IF evidence insufficient THEN SET mode UNKNOWN; RESTRICT risky actions; REQUEST review
  ELSE IF invariant violation OR risk above threshold THEN
    BLOCK prohibited actions; EXECUTE authorised containment; SET mode SAFE_RESTRICTED only after verification
  ELSE SET mode SAFE_OPERATIONAL or SAFE_IDLE as justified by evidence
  RECORD decision, rationale, constraints, observations and audit event
  RETURN (mode, invariant_results, evidence, permitted_actions)
END FLOW

5. STATE TRANSITIONS
UNKNOWN -> ENTERING: verified safety assessment initiated
ENTERING -> SAFE_RESTRICTED: containment checks pass
ENTERING -> SAFE_IDLE: idle invariants and shutdown checks pass
ENTERING -> SAFE_OPERATIONAL: operational invariants and authorisation pass
SAFE_OPERATIONAL -> SAFE_RESTRICTED: elevated risk or control restriction
SAFE_OPERATIONAL -> UNKNOWN: critical monitoring evidence lost
SAFE_RESTRICTED -> EXIT_PENDING: request to resume or expand permissions
SAFE_IDLE -> EXIT_PENDING: authorised restart requested
EXIT_PENDING -> SAFE_OPERATIONAL: fresh independent checks and approval pass
EXIT_PENDING -> SAFE_RESTRICTED: checks fail or approval withheld
ANY -> UNKNOWN: evidence becomes stale or integrity cannot be established
Transition labels denote required preconditions, not automatic outcomes.

6. ENTITY RELATIONSHIPS
SafeState --is_a--> AIState
SafeState --constrains--> ExecutionState
SafeState --follows_or_precedes--> RecoveryState
SafeState --mitigates--> ErrorState
SafeState --evaluated_by--> SafetyMonitorRole
SafeState --governed_by--> SafetyPolicy
SafeState --validated_with--> SafetyInvariant
SafeState --supported_by--> Evidence
SafeState --authorised_by--> HumanApproval or delegated authority
SafeState --logged_in--> InteractionHistory / AuditLog

7. TRI-MAPPING
Semantic: safe state = evidence-supported operating condition satisfying explicit safeguards.
Mathematical: Safe(s,t) = AND_i invariant_i(s,t) AND risk(s,t) <= threshold AND authorised(s,t).
Computational: collect -> validate -> evaluate -> restrict/permit -> verify -> log -> monitor.
The mappings express corresponding representations; they are not interchangeable proofs.

8. MAPPING TABLE
Concept | Semantic meaning | Formal representation | Operational test
State identity | unique scoped state | state_id, system_id | identity lookup
Boundary | allowed operating envelope | B_t | permission and threshold check
Invariant | mandatory condition | predicate_i(s,t) | signed test result
Evidence | observed support | evidence_set | freshness/integrity validation
Risk | bounded residual exposure | risk(s,t) | policy threshold comparison
Transition | controlled change of mode | T(s,a,s') | pre/postcondition audit
Authority | right to permit action | authorised(a,role) | approval verification
Provenance | trace of source and rule | provenance | audit trace

9. INFERENCE RULES
R1: If all mandatory invariants are verified and risk and authority checks pass, infer SAFE for the evaluated scope and time only.
R2: If a mandatory invariant fails, infer NOT_VERIFIED_SAFE; prohibit actions depending on that invariant.
R3: If critical evidence is missing or stale, infer UNKNOWN, not SAFE.
R4: If safe operation cannot be maintained, prefer an authorised restricted or idle condition with verified containment.
R5: A request to leave SAFE_RESTRICTED requires fresh checks and applicable approval.
R6: A recovery completion event alone does not imply SAFE; independent verification is required.
R7: Every change in mode must preserve a timestamped evidence and decision trail.

10. MINI RECURSION ENGINE
RECURSE SafeStateMonitor(S_t, depth, budget):
  IF depth >= budget.max_depth OR budget.exhausted THEN RETURN restricted_or_escalated(S_t)
  O_t := observe_and_validate(S_t)
  C_t := evaluate_invariants_and_risk(O_t)
  IF C_t.verified_safe THEN RETURN log_and_continue_monitoring(S_t)
  A_t := admissible_containment_or_recovery(C_t, B_t)
  IF A_t is empty THEN RETURN escalate_with_evidence(C_t)
  S_next := execute_authorised_action_and_reobserve(A_t)
  IF S_next == S_t AND no_new_evidence THEN RETURN escalate_stalled(S_next)
  RETURN SafeStateMonitor(S_next, depth+1, budget)
END RECURSE
Recursion must be bounded, observable and interruptible.

11. EXECUTION GUARANTEE (CONDITIONAL)
Given complete and trustworthy observations, correct policy predicates, enforced access controls, bounded transitions and reliable actuators, the evaluator will label a state SAFE only when its configured checks pass. This is a conditional model-level guarantee, not proof of absolute safety, correct sensors, absence of unknown hazards or real-world system reliability. Fail closed where feasible.

12. AI SEARCH FLOW
FLOW_ID: SL-AI-STATE-SAFE-ENTITY-v1.0
TITLE: Safe State Entity Ontology
LANGUAGE: en-GB
DOMAIN: AI Core / Entity Graph / State and Lifecycle Entities
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/state-and-lifecycle-entities/safe-state-entity-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/state-and-lifecycle-entities/safe-state-entity-ontology.html
PURPOSE: Model evidence-backed safe operational modes, safeguards, authority and transitions.
STATE_MODEL: S_t=(I_t,R_t,B_t,K_t)
ENTITIES: SafeState; AIState; SafetyInvariant; Evidence; SafetyPolicy; RiskAssessment; SafetyMonitorRole; RecoveryState; ErrorState; ExecutionState.
PATHWAYS: Observe -> Validate -> CheckInvariants -> AssessRisk -> Authorise -> SetMode -> Verify -> Audit -> Monitor.
MINI_RECURSION_ENGINE: bounded monitor/contain/reobserve/escalate loop.
INFERENCE_RULES: R1-R7 above.
CONFIDENCE: conditional on evidence quality and rule validity; do not invent numeric certainty.
SEMANTIC_EQUIVALENCE: safe operating condition; verified safety mode; constrained operational state (scope-dependent).
FLOW_HASH: compute SHA-256 from published final UTF-8 bytes; intentionally unset.
UPDATE_MODEL: revise on policy, threat, invariant or implementation changes; preserve versioned audit history.

13. HOW TO READ
Read each transition as a guarded relation, not an unconditional command. SAFE is an evidence-backed classification at a particular time and scope. UNKNOWN and NOT_VERIFIED_SAFE do not imply that harm has occurred; they indicate that a claim of safety is not justified.

14. DIAGRAM
[Observe] -> [Validate evidence] -> [Check invariants and risk]
                                         | pass + authority -> [Verified safe mode] -> [Monitor]
                                         | fail/unknown -> [Restrict or contain] -> [Recheck]
                                                                           | no valid path -> [Escalate]

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