Skip to main content

Workflow Concept Ontology

Process Concepts
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 04 December 2026
Audio Overview
KIRETH RESEARCH — AI SEMANTIC LIBRARY
WORKFLOW CONCEPT ONTOLOGY — STANDARD FLOW ALGEBRA
Version: 1.0 | Encoding: UTF-8 | Date: 2026-12-04
Authors: Mark Anthony Higgins — Sky Recursive AI
Licence: Open Research Licence (project attribution; exact terms unverified)
Source: https://kirethresearch.org/booksai-core/entity-graph/abstract-concepts/process-concepts/workflow-concept-ontology.html
Integration: AI Core / Entity Graph / Abstract Concepts / Process Concepts
Status: Proposed formalisation; published source and grammar not independently verified.

1. CANONICAL DEFINITION
A workflow is a versioned specification of coordinated activities, dependencies, decisions, resource transfers and completion conditions. A workflow instance is a particular enactment of that specification. A workflow may coordinate multiple agents, processes and systems without requiring a single central executor. Completion is not necessarily success; execution is not necessarily authorised; a planned workflow is not evidence of execution.

2. ENTITY MODEL
W = (id, version, context, N, E, G, I, O, R, A, J, K)
N: typed activity nodes; E: directed control and data dependencies; G: guards; I/O: typed input/output contracts; R: resource requirements; A: authority and role policy; J: join semantics; K: completion and acceptance criteria.
Instance X = (instance_id, workflow_version, marking, data, resources, clock, trace, status).
Node types: task, decision, fork, join, event, wait, subprocess, terminal.
Execution statuses: created, ready, running, waiting, suspended, completed, failed, cancelled. Validation status is separate: established, rejected, unknown, disputed, not_applicable.
Relations: hasTask, dependsOn, produces, consumes, assignedTo, guardedBy, invokes, precedes, compensates, instanceOf, supersedes, evidencedBy.

3. CLASSIFICATION
Sequential: ordered activities with explicit dependency contracts.
Parallel: concurrent branches with defined synchronisation and resource isolation.
Conditional: branches selected by evaluated predicates.
Iterative: repeated activities with exit conditions and bounded execution policy.
Event-driven: execution enabled by external or internal events.
Human, automated and hybrid: classified by executor roles, not by objective.
Adaptive: permitted changes to execution policy in response to evidence.
Recursive: invokes a workflow or revises a workflow through a controlled feedback mechanism. Distinguish runtime recursion from design revision.
Distributed: multiple executors with explicit message and failure semantics.

4. LOCAL FLOW ALGEBRA NOTATION
X →[F] Y denotes a typed transformation; g ∘ f applies f before g. These are proposed local operators, not a verified executable grammar.
F_define: Requirements × Context → WorkflowDefinition
F_validate: WorkflowDefinition × Policy → ValidationReport
F_instantiate: ValidatedDefinition × Inputs → Instance
F_enable: Instance × Evidence → EnabledTaskSet
F_authorise: Task × Actor × Policy → PermissionDecision
F_dispatch: Instance × EnabledTask × Permission → ExecutionRequest
F_observe: ExecutionRequest × Evidence → ExecutionResult
F_commit: Instance × ExecutionResult × ValidationReport → Instance or Rejection
F_join: BranchResults × JoinPolicy → JoinedResult or Waiting or Failure
F_compensate: Instance × Failure × Policy → CompensationPlan
F_assess: Instance × AcceptanceCriteria → OutcomeAssessment
F_revise: Definition × Evidence × Policy → CandidateDefinition

5. COMPOSITE FLOWS
Definition →[F_validate] Report; only accepted definitions may be instantiated under the applicable policy.
Instance → enable → authorise → dispatch → observe → validate result → commit → assess.
Sequence: B ∘ A requires compatible outputs and inputs, plus satisfied guards.
Parallel: A || B produces separately identified results; merge only under a declared conflict-resolution and join policy. No implicit commutativity of side effects.
Choice: choose branch i only when its guard is established and branch-selection policy permits it. Unknown guard is not false by default.
Loop: repeat body while guard holds, subject to budget, timeout and cancellation. Recursive calls require depth or other resource bounds unless termination is proved.
Compensation: apply authorised corrective operations to recorded effects; compensation is not necessarily an inverse or full rollback.

6. MATHEMATICAL SEMANTICS
Represent workflow structure as directed graph G=(N,E). A finite acyclic graph admits a topological order; cyclic workflows require explicit loop semantics. A graph alone does not define execution semantics.
A marking m assigns tokens to control places. For a Petri-net representation, a transition t is enabled when m >= Pre[:,t] componentwise and its guards and resource constraints hold. Firing gives m' = m - Pre[:,t] + Post[:,t]. This assumes ordinary weighted arcs; additional guards are evaluated separately.
For deterministic independent tasks with durations d(v), unlimited resources and a DAG, earliest finish EF(v)=d(v)+max{EF(u):u precedes v}; the maximum over terminal tasks is the critical-path duration. Resource contention or conditional branches invalidate this simple estimate.
For resource r at time t, sum of concurrent allocations a(i,r,t) <= capacity(r,t). Units must match. Reservations and consumption are distinct.
For an exclusive stochastic choice with exhaustive outcomes, p_i >= 0 and sum p_i=1. Expected branch cost is sum p_i*c_i when costs are integrable. Do not assume independence for parallel reliability or shared failures.
Reachability: Reach(m0) is the set of markings obtainable by finite permitted firing sequences. A reachable marking need not satisfy business acceptance criteria. Deadlock is a nonterminal marking with no enabled progress under the model; external waits require separate treatment.
Soundness target: from every reachable marking a designated completion marking is reachable, completion leaves no unintended residual tokens, and every intended transition can occur in some execution. This is a model-specific workflow-net criterion, not a universal guarantee of timely completion.

7. STRUCTURAL INVARIANTS
I01 Each instance references an immutable definition version.
I02 Every dependency references declared nodes and compatible interfaces.
I03 Dispatch requires established guards and applicable authorisation.
I04 A planned task cannot be recorded as executed without evidence.
I05 Resource allocations respect capacity and ownership policy.
I06 Exclusive branches cannot both execute for the same choice occurrence unless explicitly modelled.
I07 Join completion requires the declared set of activated branches, not merely all graph predecessors.
I08 Repeated delivery must not duplicate effects where idempotency is required; use durable keys and reconciliation.
I09 Failures and cancellations preserve trace history and partial effects.
I10 Unknown evidence must not silently become a successful result.
I11 Definition revisions cannot retroactively change historical execution semantics.
I12 Terminal execution status and objective acceptance remain separate.

8. RECURSIVE VALIDATION
Let W_k be the committed workflow definition and D_k new execution evidence. Construct candidate W* = F_revise(W_k,D_k,policy). Validate interface compatibility, reachability, resource limits, authorisation, failure paths and acceptance criteria before committing a new version. Rejected candidates leave W_k unchanged. Existing instances remain pinned to their version unless an explicit migration is validated.
A fixed point satisfies U(W*)=W* under a specified update operator U and unchanged evidence/policy. Equality may use canonical graph equivalence with preserved semantics. Fixed-point attainment does not prove correctness. Stop on accepted convergence, iteration budget, repeated canonical hashes, timeout or human escalation. Do not treat oscillation as convergence. Runtime loops and design-refinement loops have separate budgets.

9. EVIDENCE AND PROVENANCE
Record event ID, instance ID, task occurrence, actor, definition version, input/output references, event time, ingestion time, authorisation decision, resource changes, outcome and evidence source. Preserve causal ordering where known; timestamps alone do not establish causality. Duplicate events require reconciliation. Record missing observations as unknown. Confidence is not a probability unless calibrated. Distinguish observed execution, simulated execution and predicted execution. Protect sensitive data and retain only necessary evidence under applicable policy.

10. WORKED EXAMPLES
E01 Manufacturing: inspect → machine → inspect. Failed inspection branches to authorised rework; passing final inspection is separate from machining completion.
E02 Software: build → parallel unit tests and static checks → join → release approval. A failed check prevents release even if build succeeds.
E03 Research: collect data → validate → analyse → peer review. A rejected review produces a new analysis iteration with preserved provenance.
E04 Maintenance: diagnose → reserve spare → isolate equipment → repair → test → handover. Isolation is a mandatory guard, not an optional preference.
E05 AI agent: receive request → plan → permission check → tool execution → verify output. Tool failure does not establish successful execution.
E06 Logistics: pick and pack → dispatch → delivery confirmation. Missing confirmation yields unknown delivery status rather than automatic failure or success.
E07 Semantic library: propose entity → validate schema → check relationships → review evidence → commit version. Contradictory evidence triggers review without overwriting the prior record.

11. CROSS-ONTOLOGY INTEGRATION
Process Concept: workflow coordinates processes and activities.
Activity: workflow nodes reference activity definitions and occurrences.
Action Concept and Operation: executable tasks reference typed actions and transformations.
Procedure: prescribes steps and compliance rules; workflow coordinates their execution.
Method: supplies approach and selection rationale.
State Concept, State Space and State Transition: execution markings and permitted transitions.
Valid/Invalid State: admissibility of intermediate and terminal configurations.
Causality: distinguishes dependency from demonstrated causal influence.
Recursive Engineering Workflow: controlled refinement and recursive execution.
Engineering Entity Execution, Evidence, Validation and Provenance: trace and verification mappings.
All mappings are proposed; equivalence requires explicit semantic validation.

12. PROPOSED ACCEPTANCE TESTS (NOT EXECUTED)
T01 Sequential dependency: B requires A output; B is blocked before A commits.
T02 Parallel join: two activated branches, one incomplete; join waits.
T03 Exclusive choice: only one branch is selected under exclusive policy.
T04 Unknown guard: dispatch withheld pending evidence or explicit fallback.
T05 Resource conflict: two tasks require one exclusive resource; concurrent allocation rejected.
T06 Duplicate event: same durable idempotency key; no duplicate committed effect.
T07 Unauthorised task: valid inputs but denied permission; no dispatch.
T08 Deadlock: nonterminal marking with no enabled transitions or external waits; report deadlock.
T09 Compensation: partial external effect remains; record residual effect rather than claiming rollback.
T10 Version change: running instance remains pinned unless migration is approved.
T11 Recursive oscillation: repeated alternating candidate hashes; stop and report nonconvergence.
T12 Completion without acceptance: terminal workflow with failed quality criterion; completed execution, rejected objective assessment.

13. CITATION AND LICENCE
Suggested citation: Higgins, Mark Anthony; Sky Recursive AI (2026). Workflow Concept Ontology — Standard Flow Algebra, version 1.0. Kireth Research, AI Semantic Library.
Source: https://kirethresearch.org/booksai-core/entity-graph/abstract-concepts/process-concepts/workflow-concept-ontology.html
Original proposed formalisation, not a verified transcription of the source page. Open Research Licence attribution follows project convention; consult the publisher for authoritative terms. Published grammar, page content and exact licence terms have not been independently verified. Acceptance tests are specifications, not executed results.
END OF SPECIFICATION
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ