Skip to main content

Workflow Condition 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
WORKFLOW CONDITION 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/workflow-condition-ontology-2.html
Status: Constructed ontology-specific Flow Algebra mapping; not a verified transcription of the webpage.

1. PURPOSE
A Workflow Condition is a machine-evaluable predicate governing whether a workflow stage, step or transition may proceed. It specifies required evidence, comparison operators, evaluation context, and a reproducible outcome. Conditions are distinct from actions: a condition tests a proposition; a transition or action changes state only when authorised.

2. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current workflow inputs, state and observations.
R_t: condition predicates, evaluation and dependency rules.
B_t: permissions, safety constraints, schema, time and resource bounds.
K_t: ontology, historical evidence and provenance 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 convention, not a guarantee that probabilities are calibrated or that an optimum exists. If V_t is empty, the workflow blocks or escalates.

3. ENTITY MODEL
WorkflowCondition(id, expression, operator, operands, context, expected_type,
                  dependency_ids, evaluation_policy, version, provenance)
ConditionEvaluation(id, condition_id, workflow_instance_id, input_snapshot,
                    result, reason, evaluated_at, evaluator, evidence_refs)
ConditionGroup(id, connective, member_condition_ids, short_circuit_policy)
ConditionResult ∈ {TRUE, FALSE, UNKNOWN, ERROR}
WorkflowTransition(id, source_state, target_state, guard_condition_ids, action)

4. RELATIONSHIP GRAPH
WorkflowCondition --guards--> WorkflowTransition
WorkflowCondition --applies_to--> WorkflowStep | WorkflowStage
WorkflowCondition --reads--> WorkflowState | WorkflowInput | Metadata
WorkflowCondition --depends_on--> WorkflowCondition
ConditionGroup --contains--> WorkflowCondition
ConditionEvaluation --evaluates--> WorkflowCondition
ConditionEvaluation --uses--> Evidence | InputSnapshot
ConditionEvaluation --records--> ProvenanceRecord
WorkflowTransition --permitted_by--> ConditionEvaluation(TRUE)

5. CORE FLOW ALGEBRA
FLOW A — CONDITION REGISTRATION
Input: condition specification, schema, authorised creator.
Expand: parse expression, resolve referenced fields and dependencies.
Filter: reject invalid operators, missing fields, cyclic dependencies, unsafe expressions.
Select: canonical validated condition definition.
Update: versioned registry and audit record.

FLOW B — CONDITION EVALUATION
Input: condition ID, immutable workflow-state snapshot, evaluation context.
Expand: retrieve condition, dependencies and relevant evidence.
Filter: enforce access controls, type constraints and evaluation budgets.
Select: compute TRUE, FALSE, UNKNOWN or ERROR with explanation.
Update: append ConditionEvaluation; do not mutate the input snapshot.

FLOW C — GUARDED TRANSITION
Input: proposed transition, current state, evaluation results.
Expand: collect required guards and transition preconditions.
Filter: require guards TRUE under the declared policy; UNKNOWN is not TRUE.
Select: eligible transition or blocked/escalated outcome.
Update: commit state change atomically when supported; record decision and provenance.

FLOW D — CONDITION RE-EVALUATION
Input: changed dependency, earlier evaluation and condition version.
Expand: identify affected conditions via reverse dependency links.
Filter: discard stale evaluations and prevent unbounded propagation.
Select: re-evaluate affected conditions against a new consistent snapshot.
Update: append new results; preserve prior evaluations for audit.

6. LOGICAL AND OPERATIONAL RULES
AND(TRUE, TRUE) = TRUE; AND(FALSE, x) = FALSE.
OR(FALSE, FALSE) = FALSE; OR(TRUE, x) = TRUE.
NOT(TRUE) = FALSE; NOT(FALSE) = TRUE.
UNKNOWN propagates where a decisive TRUE/FALSE cannot be established.
ERROR denotes evaluation failure, not logical FALSE.
Comparisons require compatible types and explicitly defined null semantics.
Time-sensitive predicates use a recorded clock and timezone.
External checks require a timeout and a policy for unavailable services.
Condition expressions must not execute arbitrary untrusted code.
A condition's truth at time t does not guarantee truth at commit time t+1.

7. INFERENCE RULES
IF required_guard = FALSE THEN transition_status = BLOCKED.
IF required_guard = UNKNOWN THEN transition_status = PENDING_OR_ESCALATED.
IF evaluation = ERROR THEN transition_status = FAILED_EVALUATION.
IF all mandatory guards = TRUE AND authorisation_valid AND state_version_matches
   THEN transition_status = ELIGIBLE_FOR_COMMIT.
IF referenced_input_changed THEN dependent_evaluations = STALE.
IF condition_version_changed THEN earlier results remain historical, not current.
IF dependency_cycle_detected THEN condition_definition = INVALID.

8. BOUNDED RECURSION ENGINE
function evaluate_condition(id, snapshot, visited, depth, budget):
    if depth > MAX_DEPTH or budget.exhausted(): return UNKNOWN
    if id in visited: return ERROR("dependency cycle")
    condition = registry.get(id)
    if condition is missing: return ERROR("unknown condition")
    if not authorised(condition, snapshot.context): return ERROR("unauthorised")
    visited_next = visited ∪ {id}
    deps = [evaluate_condition(d, snapshot, visited_next, depth+1, budget)
            for d in condition.dependency_ids]
    if any dependency is ERROR: return ERROR("dependency failure")
    return typed_evaluate(condition, deps, snapshot)
Termination depends on finite registry, depth, time and evaluation budgets.

9. INVARIANTS AND BOUNDARIES
- Every evaluation references an immutable input snapshot and condition version.
- A transition is not executed merely because a condition exists.
- Missing, conflicting or inaccessible evidence must not silently become TRUE.
- Provenance includes evaluator identity, timestamp, evidence and outcome.
- Guard evaluation and state commit require concurrency controls where relevant.
- Acyclic dependency validation and bounded execution prevent runaway recursion.
- Determinism requires stable inputs, rules and external observations.
- No universal correctness, safety or execution guarantee is asserted.

10. SEMANTIC EQUIVALENCE
Two conditions are equivalent only relative to a declared domain, data model,
null/error policy and evaluation context if they yield identical results for
all admissible inputs. Textual similarity alone does not establish equivalence.
For example, amount >= 100 and NOT(amount < 100) can diverge if amount is NULL,
UNKNOWN or produces a type error under different evaluation policies.

11. WORKED EXAMPLE — DOCUMENT APPROVAL
Workflow state: REVIEW_PENDING.
Condition C1: document.validation_status == "PASSED".
Condition C2: reviewer.role contains "APPROVER".
Condition C3: document.version == review.version.
Guard G = C1 AND C2 AND C3.
Snapshot: validation PASSED; reviewer APPROVER; versions both 7.
Evaluation: C1=TRUE, C2=TRUE, C3=TRUE, G=TRUE.
Decision: transition REVIEW_PENDING -> APPROVED is eligible, subject to
separate authorisation and atomic commit checks.
If the document changes to version 8 before commit, C3 is stale; block the
transition and re-evaluate against a new snapshot.

12. CITATION AND PROVENANCE
Citation: Higgins, Mark Anthony; Sky Recursive AI. "Workflow Condition Ontology — Flow Algebra v1.0", Kireth Research Semantic Library, 12 November 2026.
Source URL: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/computational-workflow-entities/workflow-condition-ontology-2.html
This text is a constructed conceptual mapping. Verify source-page definitions separately before claiming exact alignment with the published ontology.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ