Skip to main content

Workflow Condition Ontology

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

AUTHORS: Mark Anthony Higgins — Sky Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/workflow-entities/workflow-condition-ontology.html
SOURCE DATE: 11 October 2025 | Revised 01 August 2026
FORMALISATION: Companion model prepared 02 November 2026
STATUS: Proposed formalisation; the source webpage exposes the ontology heading and authorship but not its complete embedded specification. Equations below are not claimed to be verbatim source text.
CITATION: Higgins, Mark Anthony; Sky — Recursive AI, Workflow Condition Ontology, Kireth Research Semantic Library.

1. PURPOSE
A workflow condition is an evaluable predicate over workflow state, inputs, context, outputs or external observations. It controls whether a guarded transition, branch, stage or action is eligible to execute.

2. ENTITY AND STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t : current workflow inputs and observations
R_t : workflow rules and admissible transitions
B_t : boundaries, constraints, permissions and budgets
K_t : accumulated knowledge, execution history and condition evaluations

Condition C = (id, expression, scope, dependencies, evaluation_policy, provenance)
Evaluation result E(C,S_t) belongs to {TRUE, FALSE, UNKNOWN, ERROR}.
UNKNOWN denotes missing or indeterminate information; ERROR denotes failed evaluation.

3. FLOW ALGEBRA
Candidate expansion: E_t = expand(I_t, R_t)
Admissible candidates: V_t = {x in E_t | boundary_valid(x,B_t) AND guard(x,S_t)=TRUE}
Selection: x*_t = argmax_{x in V_t} P(x | I_t,R_t,B_t,K_t), if V_t is non-empty.
Update: I_(t+1) = update(I_t,x*_t,observations)
Knowledge update: K_(t+1) = K_t union {condition_result,decision,provenance}
If V_t is empty, record BLOCKED or WAITING rather than forcing an execution.

4. CONDITION EVALUATION
Evaluate(C,S_t) -> (value, evidence, timestamp, version)
Atomic: C := compare(left,operator,right)
Composite: C := AND(C1,...,Cn) | OR(C1,...,Cn) | NOT(C1)
Temporal: C := before(deadline) | after(event) | within(window)
Existential: C := exists(entity,predicate)
Threshold: C := metric >= threshold
Use four-valued handling: TRUE and FALSE permit deterministic guards; UNKNOWN and ERROR must follow declared policy, not silently become TRUE.

5. INFERENCE RULES
R1: E(C,S)=TRUE and boundary_valid(action,B) => action is eligible.
R2: E(C,S)=FALSE => guarded action is ineligible.
R3: E(C,S)=UNKNOWN => request evidence, wait, or use an explicitly authorised fallback.
R4: E(C,S)=ERROR => log failure and invoke declared recovery policy.
R5: Any state change in a declared dependency invalidates stale cached evaluations.
R6: An action is executable only when its required guards and independent permissions are satisfied.
R7: A changed condition may enable a transition but cannot override higher-priority constraints.

6. TRI-MAPPING
Entity: WorkflowCondition
Structural mapping: predicate + operands + scope + provenance
Operational mapping: evaluate -> validate -> select eligible transition -> update
Semantic mapping: represents a testable requirement for workflow progression

7. RELATIONSHIP GRAPH
WorkflowCondition --guards--> WorkflowTransition
WorkflowCondition --reads--> WorkflowState
WorkflowCondition --depends_on--> WorkflowInput
WorkflowCondition --constrains--> WorkflowBranch
WorkflowCondition --produces--> ConditionEvaluation
ConditionEvaluation --supports--> ExecutionDecision
WorkflowConstraint --limits--> ExecutionDecision

8. MAPPING TABLE
INPUT                  CONDITION                       OUTCOME
required field present exists(input.required_field)     TRUE/FALSE
approval received      approval.status = approved       TRUE/FALSE/UNKNOWN
budget available       estimated_cost <= budget         TRUE/FALSE/UNKNOWN
service healthy        health.status = healthy          TRUE/FALSE/UNKNOWN/ERROR
stage complete         stage.status = complete          TRUE/FALSE

9. EXECUTION DIAGRAM
[Inputs + State + Rules + Boundaries]
                |
                v
       [Resolve dependencies]
                |
                v
       [Evaluate condition]
         /    |    |    \
      TRUE  FALSE UNKNOWN ERROR
       |      |      |      |
   [Validate] [Skip] [Wait] [Recover]
       |
       v
 [Eligible transition]
       |
       v
 [Execute + update state + record provenance]

10. VALIDATION INVARIANTS
- Each condition has a stable identifier and explicit evaluation scope.
- Operand types and operators must be compatible.
- Evaluations record evidence and the state version used.
- Stale or unresolved conditions cannot be treated as confirmed TRUE.
- Conditions do not bypass permission or safety boundaries.
- Repeated evaluation should be deterministic for identical state and deterministic operators.
- External and time-sensitive observations require freshness limits.
- Cyclic condition dependencies must be rejected or handled by an explicitly bounded fixed-point method.

11. EXECUTION GUARANTEE — CONDITIONAL
Given well-typed predicates, complete dependencies, deterministic evaluation, valid boundaries and an authorised executor, the system can guarantee that a guarded action is not selected unless its guard evaluates TRUE at the validated state version. It does not guarantee external-world success, termination, or correctness of inaccurate observations.

12. AI SEARCH FLOW
FLOW_ID: semantic-library.ai.workflow-condition
VERSION: 1.0
LANGUAGE: en-GB
ENTITY: WorkflowCondition
PURPOSE: Interpret, validate and apply workflow conditions as formal state predicates.
INPUTS: workflow_state, condition_expression, dependency_values, boundary_rules
OUTPUTS: evaluation_result, evidence, eligible_transitions, next_state
PATHWAY: resolve -> evaluate -> check_freshness -> validate_boundaries -> select -> execute -> record
MINI_RECURSION_ENGINE:
  repeat evaluation only when a declared dependency changes;
  stop at a fixed point or configured evaluation limit.
CONFIDENCE: Evidence-dependent; do not fabricate numeric certainty.
SEMANTIC_EQUIVALENCE: guard predicate; workflow precondition; transition condition (context-dependent).
UPDATE_MODEL: version evaluations when predicates, dependencies or state change.
FLOW_HASH: Not computed; calculate a cryptographic digest after final publication.

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