Skip to main content

Semantic Workflow Ontology

Workflow Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
SEMANTIC WORKFLOW ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Workflow Entities
Version: 1.0 | Prepared: 02 November 2026

AUTHORS / ATTRIBUTION
Ontology authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/workflow-entities/semantic-workflow-ontology.html
Original publication: 11 October 2025 | Revised: 01 August 2026
Companion formalisation: constructed from the published ontology title and workflow-domain concepts; the embedded source specification was not accessible in the retrieved page text. The definitions below are a proposed interoperable model, not a verbatim reproduction.
Citation: Higgins, M. A. & Sky Recursive AI, Semantic Workflow Ontology, Kireth Research.

1. PURPOSE
Represent a workflow whose stages, inputs, outputs, dependencies and decisions have explicit machine-interpretable meanings. Permit semantic type checking, constraint-aware execution, provenance tracing and controlled state updates.

2. ENTITY MODEL
SW = (ID, G, N, E, C, R, X, P, Q)
ID = persistent workflow identifier.
G = declared goals and success predicates.
N = typed workflow nodes: tasks, decisions, tools, human approvals and terminal nodes.
E = directed typed edges: precedes, requires, produces, transforms, approves.
C = context and available evidence.
R = rules, constraints and permissions.
X = runtime state and execution trace.
P = provenance graph linking claims to sources and transformations.
Q = quality, confidence and validation metadata.

Each node n = (id, type, inputs, outputs, pre, post, actor, status).
Each semantic assertion a = (subject, predicate, object, provenance, confidence).
A semantic mapping mu maps surface labels to canonical ontology identifiers.

3. FORMAL STATE
S_t = (I_t, R_t, B_t, K_t)
I_t = available information, artefacts and evidence.
R_t = executable semantic rules and constraints.
B_t = boundaries: permissions, budgets, time and safety requirements.
K_t = knowledge graph, entity mappings and provenance.

Expand: E_t = expand(I_t, R_t, K_t).
Validate: V_t = {x in E_t | valid(x, B_t, K_t)}.
Select: a_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t), subject to authorised(x).
Update: I_(t+1) = update(I_t, execute(a_t)).
Update: K_(t+1) = reconcile(K_t, evidence(a_t), provenance(a_t)).
If V_t is empty, enter BLOCKED or RECOVERY; never infer successful execution.

4. SEMANTIC FLOW
F_sem: (Input, Ontology, Rules, Boundaries) -> (Validated Plan, Execution Trace, Typed Output)
Stage 1: resolve identifiers and entity types.
Stage 2: map natural-language requirements to explicit predicates.
Stage 3: expand permitted candidate actions and dependency paths.
Stage 4: validate preconditions, permissions and semantic compatibility.
Stage 5: execute an eligible node or request approval.
Stage 6: verify postconditions and attach provenance.
Stage 7: propagate validated outputs to downstream nodes.
Stage 8: stop on goal satisfaction, bounded failure or escalation.

5. SEMANTIC TYPE RULES
Compatible(out(n_i), in(n_j)) iff an explicit ontology mapping or approved conversion exists.
Executable(n) iff predecessors_complete(n) AND preconditions_true(n) AND authorised(n) AND inputs_valid(n).
Completed(n) iff execution_recorded(n) AND postconditions_verified(n).
Unknown is distinct from False; unresolved critical predicates block execution.
Do not equate lexical similarity with semantic equivalence.

6. DEPENDENCY AND DECISION ALGEBRA
E_dep subset N x N; (a,b) means b requires a.
Ready(n,t) = AND_{d in deps(n)} Completed(d,t).
Decision(n,t) = select({b in branches(n) | guard(b,S_t)=True}).
For mutually exclusive branches, require exactly one selected branch or explicit ambiguity handling.
For parallel branches, preserve each branch's provenance and reconcile conflicts before joining.
Cycles are allowed only for explicitly bounded iterative subworkflows.

7. TRI-MAPPING
Entity mapping: workflow concept -> canonical entity -> typed relationships.
Process mapping: precondition -> action -> verified postcondition.
Evidence mapping: claim -> evidence source -> confidence/provenance.
A valid mapping must preserve identity, type, meaning and relevant constraints.

8. RELATIONSHIP GRAPH
Goal --requires--> Task
Task --consumes--> Input
Task --produces--> Output
Task --depends_on--> Task
Decision --evaluates--> Condition
Condition --selects--> Branch
Actor --authorised_for--> Action
Output --supported_by--> Evidence
Assertion --maps_to--> CanonicalEntity
Error --invokes--> RecoveryPolicy

9. INFERENCE RULES
R1: IF a task's prerequisites are verified AND authorisation is valid THEN task may become READY.
R2: IF a produced artefact has a compatible canonical type THEN it may satisfy a downstream typed input.
R3: IF a required type mapping is ambiguous THEN request disambiguation; do not silently coerce.
R4: IF an execution postcondition fails THEN mark FAILED and apply an authorised recovery rule.
R5: IF all goal predicates are verified THEN mark workflow SUCCEEDED.
R6: IF evidence conflicts THEN preserve both claims with provenance and flag review.
R7: IF a boundary is violated THEN prevent the transition and record the reason.

10. VALIDATION INVARIANTS
- Every workflow node has a stable identifier and declared type.
- Every dependency references an existing node.
- Every required input is supplied, derived or explicitly unresolved.
- Every execution transition has a recorded cause and actor.
- Every asserted successful output has postcondition evidence.
- Every inference carries rule and provenance references.
- No unbounded recursive cycle is executable.
- No human approval is inferred from silence.

11. EXECUTION DIAGRAM
[Input + Goal]
      |
[Entity Resolution]
      |
[Semantic Mapping] --> [Ambiguity?] --> [Clarify / Block]
      |
[Dependency + Constraint Check]
      |
[Authorised Action] --> [Failure?] --> [Recovery / Escalation]
      |
[Postcondition Verification]
      |
[Provenance + Knowledge Update]
      |
[Next Node or Verified Goal]

12. MAPPING TABLE
Concept              Formal representation       Verification
Workflow goal        G                           goal predicate proven
Workflow node        n in N                      stable ID and type
Dependency           (a,b) in E_dep              predecessor completed
Semantic mapping     mu(label)                   canonical identity checked
Constraint           r in R or b in B            predicate satisfied
Execution            transition(X_t,a_t)         trace and postcondition
Workflow output      o in I_(t+1)                type and evidence checked
Provenance           p in P                      traceable source links

13. CONDITIONAL EXECUTION GUARANTEE
Under sound semantic mappings, complete declared dependencies, enforced permissions, reliable tools and verifiable postconditions, the workflow will not label a node SUCCEEDED without a recorded successful transition and satisfied postconditions. This is a conditional safety property, not a guarantee of termination, completeness, correctness of external evidence or successful real-world outcomes.

14. AI SEARCH FLOW
FLOW_NAME: SemanticWorkflowOntology
FLOW_VERSION: 1.0
LANGUAGE: en-GB
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/workflow-entities/semantic-workflow-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/workflow-entities/semantic-workflow-ontology.html
AUTHORS: Mark Anthony Higgins; Sky Recursive AI
PURPOSE: Typed, provenance-aware semantic workflow modelling and validation.
STATE_MODEL: S_t=(I_t,R_t,B_t,K_t)
ENTITIES: Workflow; Goal; Task; Dependency; Condition; Decision; Actor; Input; Output; Evidence; Constraint; Error; Recovery.
PATHWAYS: Resolve -> Map -> Validate -> Authorise -> Execute -> Verify -> Update.
MINI_RECURSION_ENGINE: Re-evaluate ready nodes after every verified state transition; stop at goal, boundary or explicit iteration limit.
INFERENCE_RULES: R1-R7 above.
CONFIDENCE: Confidence is evidence-specific; do not invent numerical scores.
SEMANTIC_EQUIVALENCE: Require approved canonical mappings; string matches alone are insufficient.
FLOW_HASH: Not assigned; calculate a content hash after final publication.
UPDATE_MODEL: Version mappings and rules; preserve provenance and execution history.

15. HOW TO READ / IMPLEMENT
Treat the tuples as formal schemas, predicates as testable conditions, and arrows as typed relations. Bind abstract terms to implementation-specific identifiers before execution. Evaluate rules using three-valued logic where evidence can be unknown. Record every transition and its provenance. Validate against real workflow instances and source-specific requirements before production deployment.

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