Skip to main content

Algorithm Instance 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 INSTANCE 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-instance-ontology.html
Prepared: 09 November 2026
Status: Constructed ontology-specific Flow Algebra mapping; not a transcription of inaccessible embedded source specifications.

1. PURPOSE
Represent a particular execution or instantiation of an algorithm as an identifiable entity with inputs, parameters, environment, state transitions, outputs, provenance and verifiable termination conditions.

2. ENTITY MODEL
AlgorithmInstance = (instance_id, algorithm_id, version, inputs, parameters, environment, state, outputs, timestamps, provenance)
Related entities: Algorithm, AlgorithmDefinition, ExecutionContext, InputDataset, ParameterSet, ExecutionStep, ExecutionTrace, Result, Error, Resource, Agent.
Relations: instance_of, uses_input, uses_parameter, executes_in, has_step, produces_output, depends_on, reports_error, derived_from.

3. HST STATE MODEL
S_t = (I_t, R, B, K)
I_t = current instance inputs, intermediate values, execution trace and status
R = algorithm-specific transition, inference and evaluation rules
B = permitted operations, resource budgets, security and termination boundaries
K = algorithm definition, data types, environment knowledge 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) when a probabilistic ranking is defined
I_{t+1} = update(I_t, x*_t)
For deterministic algorithms, selection follows the specified transition rule rather than an invented probability model.

4. INSTANCE LIFECYCLE
Created -> Validated -> Ready -> Running -> {Completed, Failed, Cancelled, TimedOut}
Optional: Running -> Paused -> Running; Failed -> Retried (new attempt linked to original instance).
Each transition requires a timestamp, actor/context and a valid transition guard.

5. EXECUTION FLOW
F0 Identify algorithm definition and version.
F1 Bind instance identifier, inputs, parameter values and environment.
F2 Validate schemas, preconditions, permissions and resource availability.
F3 Initialise state and immutable provenance record.
F4 Select the next permitted execution step.
F5 Apply the algorithm's specified transition function.
F6 Capture outputs, state changes, errors and resource observations.
F7 Check invariants, stop conditions and resource bounds.
F8 Repeat F4-F7 while a valid continuation exists.
F9 Finalise status, result, execution trace and verification evidence.

6. FORMAL TRANSITIONS
Valid(a, i, p, e) = SchemaOK(i) AND Preconditions(a,i,p,e) AND Authorised(e)
State_{t+1} = delta_a(State_t, Input_t, Parameters, Environment_t)
Allowed(State_{t+1}) = Invariants(State_{t+1}) AND WithinBudget(State_{t+1})
Terminate = GoalReached OR ExplicitStop OR Failure OR Cancelled OR BudgetExhausted
Output = Finalise(State_T, Trace, Provenance)

7. INFERENCE RULES
IF algorithm_id and version resolve to a valid definition THEN instance_of(instance, algorithm).
IF input validation fails THEN state = FailedValidation; do not execute.
IF all preconditions hold and resources are available THEN state may transition Ready -> Running.
IF an invariant is violated THEN stop or recover according to the algorithm's defined error policy.
IF a terminal success condition holds THEN state = Completed and record outputs.
IF execution is retried THEN preserve the original attempt and create a linked attempt record.
IF result is claimed reproducible THEN require definition version, inputs, parameters, environment assumptions and execution evidence.

8. RECURSIVE PROCESSING ENGINE
Evaluate(instance, state, depth):
  Verify permitted state and depth/resource bounds.
  If terminal, return recorded result/status.
  Derive valid successor states from the algorithm's rules.
  Filter successors against boundaries and invariants.
  Select successor using the defined deterministic or ranked policy.
  Record transition and evaluate successor.
This is a formal process description, not a claim that every algorithm is recursive.

9. OPERATIONAL BOUNDARIES
- No execution without validated inputs and authorised context.
- No assumption of guaranteed termination for arbitrary algorithms.
- No claim of correctness without applicable proof, tests or verification evidence.
- Resource limits and timeouts are explicit.
- Trace and provenance must distinguish observed results from inferred outcomes.
- Parallel or nondeterministic instances must record scheduling or randomness where reproducibility requires it.

10. EXECUTION GUARANTEE
Conditional guarantee only: if the algorithm's preconditions hold, each transition preserves invariants, and a well-founded termination measure decreases, the instance reaches a permitted terminal state. Otherwise record the unresolved or failed condition without asserting success.

11. EXAMPLE
Instance: sort-run-001
Algorithm: merge-sort / specified version
Input: [4,1,3,2]
Parameters: ascending order
Valid result: [1,2,3,4]
Invariant: output is a permutation of input
Postcondition: output is nondecreasing
Record input, version, execution context, outcome and evidence.

12. CITATION
Mark Anthony Higgins and Sky Recursive AI, 'Algorithm Instance Ontology', Kireth Research Semantic Library.
Source URL: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/algorithm-entities/algorithm-instance-ontology.html
Source page identifies original date 11 October 2025 and revision 02 August 2026.
This Flow Algebra adaptation was constructed from the ontology topic and visible metadata; full embedded specifications were not available in retrieved page text.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ