Skip to main content

Flow Entity Ontology

Flow Algebra Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 05 November 2026
Audio Overview
FLOW ENTITY ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Flow Algebra Entities
Authors: Mark Anthony Higgins; Sky — Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/flow-algebra-entities/flow-entity-ontology.html
Formalisation: original interpretative extension; not a verbatim extraction of embedded page specifications.
Date: 05 November 2026

1. PURPOSE
Represent a Flow Entity as an identifiable, bounded, traceable transformation of an input state into an output state under explicit rules, context and constraints. A flow may be composed, branched, repeated, evaluated and audited.

2. ENTITY DEFINITIONS
Flow F: (id, inputs, outputs, rule_set, boundary, context, state, evidence, provenance, version).
Input I: admissible facts, signals or entities at a flow boundary.
Rule R: an applicable transition or inference rule.
Boundary B: scope, permissions, admissibility and termination constraints.
Context K: interpretation and execution conditions.
State S_t: (I_t, R_t, B_t, K_t).
Candidate C_t: potential next states or outputs.
Validation V_t: predicate filtering candidates by constraints.
Output O_t: committed result, including status and provenance.

3. FORMAL STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
E_t = expand(I_t, R_t)
C_t = {x | x in E_t}
V_t = {x in C_t | satisfies(x, B_t, K_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t), when V_t is nonempty and a ranking function is defined.
I_(t+1) = update(I_t, x*_t, evidence_t)
S_(t+1) = (I_(t+1), R_(t+1), B_(t+1), K_(t+1))
If V_t is empty, return BLOCKED or NO_VALID_RESULT; do not fabricate an output.

4. FLOW ALGEBRA OPERATORS
Identity: id(I) = I.
Composition: (G o F)(I) = G(F(I)), provided output(F) is compatible with input(G).
Sequence: F ; G requires successful or explicitly handled completion of F.
Branch: F ? predicate : G chooses a branch using an explicit condition.
Merge: merge(F(I), G(I)) requires a conflict policy and provenance retention.
Filter: filter_B(C) = {x in C | B(x) = true}.
Recursion: F^(n+1)(I) = F(F^n(I)), with n bounded by a termination policy.
Fixpoint: F(S*) = S*, when convergence can be established.

5. FLOW LIFECYCLE
DEFINED -> VALIDATED -> READY -> RUNNING -> COMPLETED
RUNNING -> WAITING -> RUNNING
RUNNING -> FAILED -> RECOVERY -> READY or TERMINATED
RUNNING -> BLOCKED -> TERMINATED
Each transition records timestamp, cause, rule, actor or system identity and result.

6. INFERENCE RULES
R1: IF inputs satisfy the input schema AND rules are available THEN flow may enter READY.
R2: IF a candidate violates boundary B THEN reject that candidate.
R3: IF a required dependency is unavailable THEN enter WAITING or BLOCKED.
R4: IF all mandatory validations pass THEN commit an output with provenance.
R5: IF a transition fails THEN record an error and apply an authorised recovery rule.
R6: IF a flow repeats a state without progress THEN apply cycle detection and termination limits.
R7: IF context changes materially THEN revalidate dependent candidates and outputs.
R8: IF evidence is insufficient THEN mark the result uncertain or unresolved; do not promote it to verified.

7. TRI-MAPPING
Semantic layer: Flow -> purpose, concepts, relationships, evidence, meaning.
Structural layer: Flow -> nodes, edges, inputs, outputs, constraints, dependencies.
Execution layer: Flow -> transition rules, runtime state, validation, trace and result.
Mapping requirement: each executable step must resolve to a structural component and a declared semantic purpose.

8. RECURSIVE RESOLUTION ENGINE
Start with S_0 and a finite execution budget N.
For t = 0..N-1:
  validate S_t against B_t;
  expand candidate transitions using R_t;
  discard invalid or unauthorised candidates;
  if none remain, return BLOCKED with evidence;
  select a candidate using declared priority or ranking;
  execute or simulate according to permissions;
  record transition, evidence and provenance;
  if goal condition holds, return COMPLETED;
  if state repeats without progress, return CYCLE_DETECTED;
  update S_(t+1).
On budget exhaustion, return LIMIT_REACHED with a partial trace.

9. FLOW DIAGRAM
[Input Entity] -> [State S_t] -> [Rule Expansion]
                              |
                              v
                     [Boundary Validation]
                       /             \
                   rejected         accepted
                      |                 |
                 [Audit Record]    [Selection]
                                        |
                                   [Execution]
                                        |
                               [Output + Evidence]
                                        |
                              [Update / Terminate]

10. RELATIONSHIP MAPPING TABLE
Flow Entity | consumes | Input Entity
Flow Entity | applies | Rule Entity
Flow Entity | constrained_by | Boundary / Constraint Entity
Flow Entity | interpreted_in | Context Entity
Flow Entity | produces | Output Entity
Flow Entity | depends_on | Dependency Entity
Flow Entity | invokes | Subflow Entity
Flow Entity | records | Execution Trace
Flow Entity | supported_by | Evidence Entity
Flow Entity | versioned_as | Version Entity

11. CONDITIONAL EXECUTION GUARANTEE
Given well-formed inputs, consistent rules, enforced boundaries, deterministic selection where required, available dependencies and a finite execution budget, the engine guarantees a recorded terminal status (COMPLETED, BLOCKED, FAILED, CYCLE_DETECTED or LIMIT_REACHED). It does not guarantee a correct real-world answer, satisfiable goal or successful execution without those conditions.

12. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/flow-algebra-entities/flow-entity-ontology.html
PURPOSE: Discover, validate, compose and explain Flow Entities in the Semantic Library.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: Flow, Input, Output, Rule, Boundary, Context, State, Evidence, Trace, Version.
PATHWAYS: identify -> retrieve -> expand -> validate -> rank -> execute -> trace -> update.
MINI_RECURSION_ENGINE: bounded expansion with cycle detection and explicit terminal status.
INFERENCE_RULES: R1-R8 above.
CONFIDENCE: evidence-dependent; unverified claims remain marked as such.
SEMANTIC_EQUIVALENCE: equivalent only under matching observable outputs, constraints and declared interpretation context.
FLOW_HASH: implementation-defined canonical digest; not computed in this document.
UPDATE_MODEL: version changes require provenance, dependency review and revalidation.

13. IMPLEMENTATION NOTES
Use stable identifiers and schema-validated input/output types. Preserve evidence, provenance and failure states. Prevent unbounded recursion. Distinguish formal inference from empirical verification. Do not treat illustrative probability P as calibrated unless independently validated.

14. HOW TO READ
Read from input through rule expansion, boundary validation, candidate selection, execution and state update. A flow is a structured transformation, not merely a diagram or an assertion of guaranteed success.

LICENCE NOTE
Refer to the source publication for the applicable Open Research Licence and citation terms. This document is an original companion formalisation.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ