Skip to main content

Algorithm State Ontology

Algorithm Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 09 November 2026
Audio Overview
SEMANTIC LIBRARY — FLOW ALGEBRA v1.0
ALGORITHM STATE ONTOLOGY
Category: Computational Entities / Algorithm Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/algorithm-entities/algorithm-state-ontology.html
Generated: 09 November 2026
Status: Constructed ontology-specific Flow Algebra mapping; the page's full embedded formal specification was not accessible. This is not a verbatim transcription.

1. PURPOSE
Represent the state of an algorithm instance at a specific execution step, its valid transitions, observable outputs, invariants, provenance and termination conditions.

2. ENTITY MODEL
AlgorithmState = (instance_id, step, phase, variables, control_location, resources, observations, status, provenance)
phase ∈ {created, ready, running, waiting, suspended, completed, failed, cancelled}
status records the latest transition outcome.
Relationships:
  AlgorithmInstance HAS_STATE AlgorithmState
  AlgorithmState PRECEDES AlgorithmState
  Transition CONSUMES AlgorithmState
  Transition PRODUCES AlgorithmState
  AlgorithmState REFERENCES Input, Output, Resource, Constraint, Evidence

3. HST STATE MODEL
S_t = (I_t, R, B, K)
I_t = current instance inputs, control location, variables and observations
R = transition, validation and inference rules
B = type, safety, resource, dependency and termination boundaries
K = known algorithm specification, execution history and provenance
E_t = expand(I_t, R)
V_t = {x in E_t | satisfies(x, B)}
x*_t = argmax_{x in V_t} P(x | I_t, R, B, K)
I_(t+1) = update(I_t, x*_t)
Note: argmax is an optional ranking policy when multiple valid transitions exist; deterministic algorithms select their uniquely enabled transition instead. P must be defined and calibrated for probabilistic use.

4. TRANSITION ALGEBRA
T: State × Event × Environment -> State ∪ Error
Enabled(s,e) := preconditions(s,e) AND boundary_checks(s,e)
Next(s,e) := T(s,e,env), only if Enabled(s,e)
TransitionRecord := (from_state, event, rule_id, to_state, timestamp, evidence)
No enabled transition -> WAIT or FAIL according to the declared policy; never fabricate an output.

5. EXECUTION PATHWAYS
CREATE -> validate inputs -> READY
READY -> acquire resources -> RUNNING
RUNNING -> compute step -> RUNNING
RUNNING -> await dependency -> WAITING -> RUNNING
RUNNING -> checkpoint -> SUSPENDED -> RUNNING
RUNNING -> terminal predicate true -> COMPLETED
Any nonterminal phase -> unrecoverable fault -> FAILED
Permitted phase -> authorised cancellation -> CANCELLED

6. INFERENCE RULES
IF phase=completed THEN terminal_predicate must hold AND output must pass postconditions.
IF phase=running THEN required resources and execution permissions must be available.
IF a transition violates an invariant THEN reject transition and record failure evidence.
IF phase=waiting AND dependency resolved THEN re-evaluate eligibility to resume.
IF phase=failed THEN preserve diagnostic state and prohibit further execution until a recovery policy authorises it.
IF state is checkpointed THEN persist sufficient control and variable state to support restoration.

7. MINI RECURSION ENGINE
function conceptually expressed as formal recurrence:
  F(s_0) = s_0
  F(s_(t+1)) = T(F(s_t), e_t, env_t) subject to Enabled and invariants
Stop when Terminal(s_t), a bounded step limit is reached, or a failure is recorded.
For a recursive algorithm, each call has its own frame and return relation; termination requires a base case or a well-founded decreasing measure.

8. INVARIANTS AND BOUNDARIES
Unique instance_id and monotonic step index for committed transitions.
State variable types and value domains must remain valid.
A completed state must not transition back to running without a new execution instance or explicit restart semantics.
Resource, time, recursion depth and memory limits are enforced.
Deterministic replay requires the same inputs, environment assumptions and transition order.
Concurrent execution requires an explicit consistency model and conflict policy.

9. VALIDATION AND FAILURE MODES
Check input schema, transition legality, invariant preservation, output postconditions and trace completeness.
Detect invalid phase changes, stale states, lost updates, nontermination, resource exhaustion and inconsistent checkpoints.
Unknown state or missing evidence -> UNKNOWN, not an inferred success.

10. EXECUTION GUARANTEE
Conditional guarantee: if preconditions hold, the transition function is correctly implemented, invariants are preserved and termination assumptions are satisfied, execution yields a state consistent with the declared postconditions. No unconditional termination or correctness guarantee is claimed.

11. EXAMPLE TRACE
s0=(instance=A1, step=0, phase=ready, variables={counter:0})
s1=(instance=A1, step=1, phase=running, variables={counter:0})
s2=(instance=A1, step=2, phase=running, variables={counter:1})
s3=(instance=A1, step=3, phase=completed, variables={counter:1})
Each transition requires an explicit event and validated rule; this trace is illustrative only.

12. CITATION AND LICENCE
Source attribution: Mark Anthony Higgins — Sky Recursive AI, Algorithm State Ontology, Kireth Research.
Source publication metadata shown on page: 11 October 2025; revised 02 August 2026.
Reuse: refer to the applicable Open Research Licence at the source; citation required. Do not infer additional licence terms from this mapping.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ