Skip to main content

AI Workflow Ontology

Workflow Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
AI WORKFLOW ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Workflow Entities
Version: 1.0 | 02 November 2026 | Language: en-GB
Authors: Mark Anthony Higgins; Sky — Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/workflow-entities/ai-workflow-ontology-3.html
Status: Companion formalisation. The publicly rendered page identifies the ontology but does not expose its complete formal specifications. The rules below are an original proposed model, not a verified transcription.

1. PURPOSE
Represent an AI workflow as a bounded, auditable sequence or graph of tasks, decisions, tool calls, observations and state transitions, subject to permissions, dependencies and termination conditions.

2. ENTITY MODEL
Workflow W = (ID, G, S, I, O, R, B, K, P, H)
ID: persistent workflow identifier
G: directed workflow graph (N, E)
S: workflow state
I: initial inputs and current information
O: declared outputs
R: transition and inference rules
B: execution boundaries and constraints
K: available knowledge and context
P: permission and approval policy
H: append-only execution history
Node n = (id, kind, preconditions, action, postconditions, status)
kind ∈ {task, decision, tool, observation, approval, join, terminal}
status ∈ {pending, ready, running, succeeded, failed, blocked, skipped, cancelled}

3. FORMAL FLOW ALGEBRA
S_t = (I_t, R, B, K_t, G, H_t)
E_t = expand(I_t, R, K_t)                 candidate next actions
V_t = {a ∈ E_t | valid(a,B,P,G,S_t)}     admissible actions
A_t = argmax_{a ∈ V_t} U(a | I_t,R,B,K_t)  selected action, if V_t nonempty
(result_t, status_t) = execute(A_t)       only after authorisation
I_(t+1) = update(I_t, result_t)
K_(t+1) = revise(K_t, result_t)
H_(t+1) = append(H_t, event(A_t,result_t,status_t))
S_(t+1) = transition(S_t,A_t,result_t,status_t)
If V_t = ∅, transition to blocked, completed or failed according to explicit rules; do not assume success.

4. WORKFLOW INVARIANTS
INV-01: A node may run only if all required predecessor conditions are satisfied.
INV-02: Every external side effect requires valid permissions and boundary checks.
INV-03: A failed action does not imply a successful postcondition.
INV-04: Every transition records provenance, timestamp and outcome where available.
INV-05: Cycles require a bounded iteration budget or measurable progress condition.
INV-06: Parallel nodes must define conflict resolution and join semantics.
INV-07: A terminal success requires validation of declared output criteria.
INV-08: Cancelled or blocked workflows must not silently continue executing actions.

5. INFERENCE RULES
R1 READY(n) <- PENDING(n) ∧ all_required_dependencies_satisfied(n).
R2 AUTHORISED(n) <- READY(n) ∧ permitted(n,P) ∧ within_bounds(n,B).
R3 RUN(n) <- AUTHORISED(n) ∧ resources_available(n).
R4 SUCCEEDED(n) <- observed_success(n) ∧ validate_postconditions(n).
R5 FAILED(n) <- execution_error(n) ∨ postcondition_violation(n).
R6 BLOCKED(n) <- missing_permission(n) ∨ unmet_external_dependency(n).
R7 RETRY(n) <- FAILED(n) ∧ retryable(n) ∧ retries_remaining(n) ∧ safe_to_retry(n).
R8 COMPLETE(W) <- all_required_terminal_conditions_true(W) ∧ output_validated(W).
R9 ESCALATE(W) <- unresolved_conflict(W) ∨ approval_required(W) ∨ retry_budget_exhausted(W).

6. MINI RECURSION ENGINE
function ADVANCE(W, depth, budget):
  if terminal(W): return W
  if depth >= budget: return BLOCKED(W,"recursion budget exhausted")
  candidates := expand(W.inputs,W.rules,W.knowledge)
  admissible := filter(candidates, dependencies ∧ permissions ∧ constraints)
  if admissible is empty: return RESOLVE_NO_ACTION(W)
  action := choose(admissible, declared_objective)
  outcome := execute_with_observation(action)
  W := validate_and_record(W,action,outcome)
  return ADVANCE(W,depth+1,budget)
Note: This is an explanatory operational sketch; implementation requires concrete typed schemas and runtime policies.

7. TRI-MAPPING
Semantic: intent, goal, role, dependencies and meanings of workflow steps.
Structural: nodes, edges, state variables, permissions, constraints and evidence links.
Operational: scheduling, tool invocation, observation, validation, recovery and completion.
Mapping rule: every operational transition should map to one structural event and one semantic purpose.

8. ENTITY RELATIONSHIP MAPPING TABLE
Workflow -> hasStep -> WorkflowStep
WorkflowStep -> dependsOn -> WorkflowStep
WorkflowStep -> invokes -> ToolCall
ToolCall -> produces -> ToolResult
ToolResult -> supports -> Observation
Observation -> updates -> WorkflowState
Workflow -> governedBy -> PermissionPolicy
Workflow -> constrainedBy -> ExecutionBoundary
WorkflowStep -> mayRaise -> ToolError
ToolError -> triggers -> RecoveryDecision
Workflow -> emits -> WorkflowOutput
Workflow -> records -> ExecutionEvent

9. EXECUTION GUARANTEE (CONDITIONAL)
Given valid typed inputs, deterministic transition rules, authorised tools, a bounded scheduler and truthful observations, the engine can guarantee enforcement of local invariants and bounded termination by stopping at the budget. It cannot guarantee that external services succeed, that outputs are factually correct, or that the declared goal is attainable. Completion must be independently validated.

10. AI SEARCH FLOW
FLOW_ID: ai-workflow-ontology-3
ENTITY: AIWorkflow
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/workflow-entities/ai-workflow-ontology-3.html
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
PURPOSE: Interpret and validate AI workflow structures and transitions.
INPUTS: workflow_goal, workflow_graph, context, constraints, permissions
PATHWAYS: parse -> resolve_dependencies -> check_permissions -> select -> execute -> observe -> validate -> update -> terminate_or_repeat
OUTPUTS: workflow_state, action_results, evidence_trace, terminal_status
CONFIDENCE: dependent on evidence provenance and validation; not a fixed numerical score
SEMANTIC_EQUIVALENCE: workflow / orchestration graph / bounded agent process (context-dependent, not identical in every usage)
UPDATE_MODEL: versioned changes with provenance and regression checks
FLOW_HASH: to be computed from canonical UTF-8 bytes by publishing pipeline; not asserted here
CITATION_BACKLINK: source URL above

11. HOW TO READ
Read the entity model first; apply invariant checks before selecting actions; use inference rules to decide valid transitions; inspect the history for provenance; treat successful execution and successful goal achievement as separate claims.

12. EXAMPLE
Goal: retrieve a record and generate a validated summary.
N1: check permission -> N2: retrieve record -> N3: validate retrieved content -> N4: summarise -> N5: validate output -> N6: complete.
If N2 fails, enter retry or escalation according to R7/R9. If N3 fails, do not produce an unqualified summary.

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