Skip to main content

Agent Workflow Ontology

Workflow Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
AGENT WORKFLOW ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Workflow Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/workflow-entities/agent-workflow-ontology-2.html
Original page authors: Mark Anthony Higgins — Sky Recursive AI
Original page date: 11 October 2025; revised 01 August 2026
Companion formalisation prepared: 02 November 2026

SCOPE AND PROVENANCE
This is a companion Flow Algebra model of the Agent Workflow Ontology topic. The public page identifies the ontology and its authors, but does not expose its full embedded formal specification in accessible page text. Therefore the definitions below are a proposed formalisation, not a verbatim transcription of that specification.

1. PURPOSE
Represent an agent-controlled workflow as a sequence of authorised, observable, bounded state transitions connecting goals, plans, decisions, tools, feedback, results and recovery.

2. ENTITY SET
A = agent; G = goal; W = workflow; P = plan; T = task; X = action; U = tool; C = condition; D = dependency; M = memory; O = observation; R = result; E = error; Q = recovery; K = constraints/policy; H = execution history.

3. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current inputs, observations and task context.
R_t = applicable rules, workflow relationships and transition rules.
B_t = operational boundary: permissions, resource budgets and termination limits.
K_t = retained knowledge, policy and evidence.
Agent workflow state:
W_t = (g, p, n, sigma, m, h, budget)
where g is the active goal, p the plan, n the current node, sigma the execution status, m memory, h history, and budget remaining resources.
Statuses: CREATED, READY, RUNNING, WAITING, SUCCEEDED, FAILED, RECOVERING, CANCELLED.

4. FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | admissible(x, B_t, K_t) = true}
a_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, a_t, observation_t)
W_(t+1) = transition(W_t, a_t, observation_t)
If V_t = empty, select WAIT, RECOVER or HALT according to policy; do not fabricate an action.

5. WORKFLOW CONSTRUCTION
AgentWorkflow(A,G) -> Plan(P)
Plan(P) -> ordered or partially ordered Tasks(T_1 ... T_n)
Task(T_i) -> Preconditions(C_i), Dependencies(D_i), Actions(X_i), ExpectedResults(R_i)
Ready(T_i) iff dependencies_satisfied(T_i) AND preconditions_true(T_i) AND authorised(T_i).

6. EXECUTION RULES
R1: CREATED -> READY only after goal, plan and constraints validate.
R2: READY -> RUNNING only if a task is ready and its action is authorised.
R3: RUNNING -> WAITING when required input, approval or external result is pending.
R4: RUNNING -> SUCCEEDED when the result meets explicit acceptance criteria.
R5: RUNNING -> FAILED on unrecoverable error or violated invariant.
R6: FAILED -> RECOVERING only if a permitted recovery strategy exists.
R7: RECOVERING -> READY only after a validated recovery result.
R8: Any nonterminal state -> CANCELLED on authorised cancellation.
R9: SUCCEEDED, CANCELLED and unrecoverable FAILED are terminal unless a new workflow instance is created.

7. AGENT DECISION AND TOOL RULES
Decision(A,t) = select({x | enabled(x,t) AND authorised(x,t)})
ToolCall(x) requires: declared tool, validated arguments, permission, budget and auditable invocation ID.
ToolResponse(x) = (status, output, provenance, timestamp)
External effects require confirmation where applicable; an attempted call is not proof of completion.

8. FEEDBACK AND MEMORY
Observation_t = observe(Action_t, Environment_t)
Memory_(t+1) = retain(Memory_t, Observation_t, policy)
Plan_(t+1) = revise(Plan_t, Observation_t, Goal_t, Constraints_t)
Replanning must preserve authorised goals and invariants.

9. ERROR AND RECOVERY
Error = (origin, category, severity, evidence, recoverability)
Recovery candidates = {retry, backoff, replan, compensate, rollback, escalate, abort}
Recovery choice must satisfy policy and finite retry/budget limits.
Never infer successful rollback merely from a rollback request.

10. INFERENCE RULES
IF task dependencies are unresolved THEN task is BLOCKED.
IF dependencies resolved AND preconditions valid THEN task is READY.
IF a tool result is unverified THEN outcome remains UNKNOWN or WAITING.
IF goal acceptance predicates hold AND required tasks completed THEN workflow is SUCCEEDED.
IF resource budget is exhausted THEN no further execution is authorised.
IF recovery fails or is prohibited THEN workflow is FAILED or ESCALATED.

11. TRI-MAPPING
Semantic: Agent -> pursues -> Goal; Workflow -> contains -> Task; Task -> invokes -> Action; Action -> yields -> Result.
Structural: nodes = {agent, goal, workflow, plan, task, tool, result, error}; edges = {plans, depends_on, executes, observes, validates, recovers}.
Operational: receive -> validate -> plan -> select -> execute -> observe -> verify -> update -> repeat/terminate.

12. RELATIONSHIP MAPPING TABLE
Agent | owns | Workflow
Workflow | targets | Goal
Workflow | follows | Plan
Plan | orders | Task
Task | depends_on | Task
Task | guarded_by | Condition
Task | performs | Action
Action | calls | Tool
Tool | returns | Observation
Observation | informs | Decision
Action | produces | Result
Error | activates | Recovery
Recovery | revises | Workflow

13. EXECUTION DIAGRAM
[INPUT/GOAL] -> [VALIDATE BOUNDARIES] -> [PLAN]
                                     |
                                     v
                               [READY TASK?] -- no --> [WAIT/REPLAN/HALT]
                                     |
                                    yes
                                     v
                              [AUTHORISED ACTION]
                                     |
                                     v
                                [OBSERVATION]
                                     |
                                     v
                              [VERIFY RESULT]
                                /         \
                            success       error
                              |             |
                         [UPDATE]       [RECOVER?]
                              |          /      \
                         [GOAL MET?]    yes      no
                          /     \        |        |
                        yes     no    [REPLAN] [FAIL]
                         |       |        |
                       [END] <---+--------+ (continue cycle)

14. VALIDATION INVARIANTS
INV1: Every action belongs to a known task and workflow instance.
INV2: Every executed action satisfies permissions and preconditions.
INV3: Every transition records its cause and observed evidence.
INV4: Dependency cycles are rejected unless explicitly modelled as bounded loops.
INV5: No success status without verified acceptance predicates.
INV6: Retry counts, time and resource usage remain within configured limits.
INV7: Cancelled or terminal workflows cannot silently resume.

15. CONDITIONAL EXECUTION GUARANTEE
For a finite workflow with valid dependencies, deterministic transition semantics, bounded retries, reliable observations and terminating task actions, execution either reaches a verified terminal state or reports a defined failure/timeout. This is a conditional property, not a universal guarantee for arbitrary agents or external tools.

16. AI SEARCH FLOW
FLOW_ID: semantic-library.ai.workflow.agent-workflow
VERSION: 1.0
ENTITY: Agent Workflow Ontology
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/workflow-entities/agent-workflow-ontology-2.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/workflow-entities/agent-workflow-ontology-2.html
PURPOSE: Formalise agent-directed planning, execution, verification and recovery.
STATE_MODEL: S_t=(I_t,R_t,B_t,K_t); W_t=(g,p,n,sigma,m,h,budget)
ENTITIES: Agent, Goal, Workflow, Plan, Task, Action, Tool, Condition, Dependency, Memory, Observation, Result, Error, Recovery
PATHWAYS: input -> validation -> planning -> execution -> observation -> verification -> update
MINI_RECURSION_ENGINE: repeat plan/act/observe/revise while authorised and not terminal
INFERENCE_RULES: readiness, authorisation, evidence-based completion, bounded recovery
CONFIDENCE: formal companion proposal; source page does not expose full underlying specification
SEMANTIC_EQUIVALENCE: agent orchestration; autonomous workflow; goal-directed task execution (context dependent)
UPDATE_MODEL: revise on verified changes to ontology, rules or operational constraints

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