Skip to main content

Computational Workflow Ontology

Computational Workflow Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 12 November 2026
Audio Overview
KIRETH RESEARCH — SEMANTIC LIBRARY
COMPUTATIONAL WORKFLOW ONTOLOGY — FLOW ALGEBRA v1.0

Category: Computational Entities > Computational Workflow Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Date: 12 November 2026
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/computational-workflow-entities/computational-workflow-ontology.html
Status: Constructed ontology-specific Flow Algebra mapping; not a verified transcription of the webpage.

1. PURPOSE
Represent a computational workflow as an executable, auditable network of tasks, dependencies, inputs, outputs, decision gates and execution states. Support safe planning, scheduling, observation, retries and completion assessment.

2. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: workflow inputs, task states, observations and active execution context.
R_t: transition rules, dependency constraints, routing and scheduling relations.
B_t: permissions, resource budgets, deadlines, validation rules and safety boundaries.
K_t: workflow definitions, execution history, provenance and operational knowledge.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t)}
x*_t = argmax_(x in V_t) P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, observation_(t+1))
The argmax is a selection model, not a guarantee of optimality; scoring requires an explicit implementation.

3. ENTITY MODEL
ComputationalWorkflow: identified workflow specification and lifecycle.
WorkflowDefinition: versioned DAG or explicitly modelled cyclic control-flow graph.
WorkflowInstance: one execution of a particular definition version.
WorkflowTask: atomic or composite unit with preconditions and postconditions.
TaskDependency: prerequisite, conditional, data or temporal ordering relation.
WorkflowInput / WorkflowOutput: typed data contracts.
WorkflowTransition: state change triggered by a guarded event.
WorkflowState: pending, ready, running, waiting, succeeded, failed, cancelled or compensated.
WorkflowScheduler: chooses eligible tasks under declared constraints.
WorkflowResource: CPU, memory, network, storage, tool, credential or operator capacity.
WorkflowEvent: timestamped observation of execution or control changes.
WorkflowValidationRecord: criteria, evidence, result and validation version.
WorkflowProvenanceRecord: source, actor, time, definition version and derivation links.
WorkflowRetryPolicy: attempts, backoff, timeout and idempotency requirements.
WorkflowCompensation: explicitly defined remediation for partially completed actions.

4. RELATIONSHIP GRAPH
Workflow --hasDefinition--> WorkflowDefinition
WorkflowDefinition --containsTask--> WorkflowTask
WorkflowTask --dependsOn--> WorkflowTask
WorkflowTask --consumes--> WorkflowInput
WorkflowTask --produces--> WorkflowOutput
WorkflowTask --requires--> WorkflowResource
WorkflowInstance --instantiates--> WorkflowDefinition
WorkflowInstance --hasState--> WorkflowState
WorkflowTransition --changesStateOf--> WorkflowInstance / WorkflowTask
WorkflowEvent --observes--> WorkflowInstance / WorkflowTask
WorkflowValidationRecord --validates--> WorkflowOutput / WorkflowTransition
WorkflowProvenanceRecord --documents--> WorkflowEvent / WorkflowOutput
WorkflowTask --hasRetryPolicy--> WorkflowRetryPolicy
WorkflowTask --mayInvoke--> WorkflowCompensation

5. CORE FLOWS
FLOW A — DEFINITION INGESTION
Input: workflow specification, task contracts, dependency edges.
Expand: resolve references, types, entry points and termination conditions.
Filter: reject missing tasks, incompatible contracts, unauthorised tools and unguarded cycles.
Select: approved versioned definition.
Output: validated WorkflowDefinition or actionable validation errors.

FLOW B — TASK READINESS
Input: instance state, dependencies, task preconditions.
Expand: enumerate tasks whose prerequisites are satisfied.
Filter: apply permission, resource, timing and data availability boundaries.
Select: eligible tasks using explicit scheduling policy.
Output: ready queue with justification for each admitted task.

FLOW C — EXECUTION AND OBSERVATION
Input: ready task, versioned inputs, execution identity.
Expand: permitted execution plan and expected results.
Filter: enforce timeouts, rate limits, tool scope and input contracts.
Select: authorised action; execute only through an appropriate runtime.
Observe: record outcome, duration, resource usage and provenance.
Output: task result and state transition.

FLOW D — VALIDATION AND COMMIT
Input: task output and expected postconditions.
Expand: applicable schema, business and integrity checks.
Filter: exclude invalid, stale or untrusted outputs.
Select: commit successful output or route failure for review/retry.
Output: validation record, committed artefact or error record.

FLOW E — FAILURE HANDLING
Input: error, retry count, side-effect history and retry policy.
Expand: retry, compensate, quarantine, escalate or terminate.
Filter: require idempotency or deduplication for unsafe repeats; enforce budgets.
Select: bounded recovery action.
Output: recoverable state, compensated state or terminal failure.

6. INFERENCE RULES
IF all mandatory dependencies succeeded AND inputs validate THEN task may become ready.
IF a mandatory dependency failed without approved recovery THEN dependent task remains blocked.
IF output violates a declared contract THEN do not mark task succeeded.
IF a task has side effects AND replay safety is unproven THEN require review before retry.
IF execution exceeds time or resource limits THEN transition to timed-out or intervention state.
IF a definition changes THEN existing instances retain their pinned version unless migration is validated.
IF all required terminal tasks succeed AND final checks pass THEN workflow may be completed.
IF provenance is absent THEN mark lineage unverified, not inferred as trustworthy.

7. BOUNDED RECURSION ENGINE
function evaluate_workflow(instance, max_steps, max_depth):
    visited = set()
    for step in range(max_steps):
        snapshot = observe(instance)
        if terminal(snapshot): return snapshot
        candidates = expand(snapshot, dependency_rules)
        permitted = [c for c in candidates if satisfies(c, boundaries)]
        if not permitted: return BLOCKED_OR_WAITING
        action = select_by_policy(permitted)
        signature = (instance.id, action.id, snapshot.version)
        if signature in visited: return CYCLE_REVIEW_REQUIRED
        visited.add(signature)
        result = execute_authorised(action)
        instance = update_with_validation_and_provenance(instance, result)
    return STEP_BUDGET_EXCEEDED
Note: Explicit loop constructs can be legitimate; cycle detection must distinguish intended iteration from accidental non-progress.

8. INVARIANTS AND BOUNDARIES
- Each instance references a specific definition version.
- State changes are recorded with timestamp, actor and reason.
- Dependencies and guards must be evaluated against consistent state snapshots.
- Inputs and outputs are checked against declared contracts.
- Privileged or irreversible actions require appropriate authorisation.
- Retry and compensation semantics must be explicitly specified.
- Distributed execution does not imply exactly-once effects without supporting mechanisms.
- Termination is guaranteed only when bounded by enforced budgets or proven workflow constraints.

9. SEMANTIC EQUIVALENCE
Two workflows may be functionally equivalent when they accept compatible inputs, meet the same observable postconditions and respect the same relevant constraints. Similar task names or graph shapes alone do not establish equivalence. Preserve distinctions in side effects, ordering, failure modes, security and provenance.

10. WORKED EXAMPLE — DOCUMENT PROCESSING
Workflow: ReceiveDocument -> ValidateFormat -> ExtractText -> Classify -> HumanReview(if low confidence) -> Publish.
Input: a submitted document with source metadata.
Rules: extraction requires valid format; publishing requires validated classification and review where mandated.
Boundaries: approved file types, resource quotas, permitted publication target and review policy.
Observation: classification confidence below threshold.
Selection: route to HumanReview instead of Publish.
Update: append review outcome and provenance; publish only after authorisation and final validation.
Result: auditable workflow completion, or an explicit blocked/failed state if review is not obtained.

11. CITATION AND PROVENANCE
Citation: Higgins, Mark Anthony; Sky — Recursive AI. Computational Workflow Ontology — Flow Algebra v1.0. Kireth Research Semantic Library, 12 November 2026.
Ontology source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/computational-workflow-entities/computational-workflow-ontology.html
Scope: A constructed Flow Algebra interpretation for research and implementation planning. Verify source-specific claims against the published ontology before treating them as authoritative.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ