Skip to main content

Execution State Ontology

Process Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 11 November 2026
Audio Overview
KIRETH RESEARCH — SEMANTIC LIBRARY
EXECUTION STATE ONTOLOGY — FLOW ALGEBRA v1.0
Category: Computational Entities > Process Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/process-entities/execution-state-ontology-2.html
Prepared: 11 November 2026
Status: Constructed topic-level Flow Algebra mapping; not a verified transcription of the webpage.

1. PURPOSE
Represent the observable execution state of a computational process, thread, task or job; define valid transitions, event provenance, scheduling conditions, failure handling and bounded state inference. Distinguish a lifecycle state from a process's full machine state (registers, memory and resources).

2. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = observed execution entity, state, events, timestamps and dependencies.
R_t = state transitions, scheduling, blocking, resumption and completion relations.
B_t = allowed transitions, permissions, resource constraints and consistency rules.
K_t = execution history, scheduler knowledge and operational context.
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 policy, not proof that a predicted state is true.

3. ENTITY MODEL
ExecutionEntity(id, kind, parent_id, owner, priority)
ExecutionState(entity_id, state, version, observed_at, source)
ExecutionEvent(event_id, entity_id, event_type, timestamp, sequence)
Transition(from_state, event_type, to_state, guard, action)
Dependency(entity_id, prerequisite_id, condition)
ResourceRequirement(entity_id, resource_id, quantity)
SchedulerDecision(entity_id, eligibility, allocation, rationale)
FailureRecord(entity_id, error_class, retry_count, terminal)

Illustrative state vocabulary:
CREATED, READY, RUNNING, WAITING, SUSPENDED, SUCCEEDED, FAILED, CANCELLED.
State sets differ across operating systems and execution frameworks; these labels form a normalised ontology, not a universal OS specification.

4. RELATIONSHIP GRAPH
ExecutionEntity --hasCurrentState--> ExecutionState
ExecutionEntity --emits--> ExecutionEvent
ExecutionEvent --triggers--> Transition
Transition --requires--> Guard
ExecutionEntity --dependsOn--> ExecutionEntity
SchedulerDecision --allocates--> ResourceRequirement
FailureRecord --describes--> ExecutionEntity
ExecutionState --supportedBy--> Observation

5. CORE FLOW ALGEBRA
FLOW A — INITIALISATION
Input: new execution entity + validated configuration
Expand: initialise identifiers, prerequisites and resource requirements
Filter: reject invalid or duplicate identity
Output: CREATED -> READY when admission conditions hold

FLOW B — DISPATCH
Input: READY entity + scheduler event
Expand: eligible resources, priorities and fairness constraints
Filter: dependencies complete and capacity available
Output: READY -> RUNNING on confirmed dispatch

FLOW C — BLOCK AND RESUME
Input: RUNNING entity + wait event
Expand: I/O, lock, timer or prerequisite conditions
Filter: confirm blocking condition
Output: RUNNING -> WAITING; WAITING -> READY after wake-up
Note: resumption need not imply immediate execution.

FLOW D — SUSPENSION
Input: eligible active entity + suspension request
Expand: checkpoint and policy requirements
Filter: ensure suspension supported and authorised
Output: READY/RUNNING/WAITING -> SUSPENDED where implementation permits

FLOW E — COMPLETION
Input: RUNNING entity + completion event
Expand: result, output integrity and release obligations
Filter: validate completion evidence
Output: RUNNING -> SUCCEEDED; release or account for resources

FLOW F — FAILURE / CANCELLATION
Input: active entity + error, timeout or cancellation event
Expand: recovery policy, retry budget and compensation steps
Filter: verify authorised transition and idempotency requirements
Output: FAILED or CANCELLED; optionally create a new attempt
A retry is a new attempt or explicitly modelled reset, not an automatic reversal of terminal history.

6. INFERENCE RULES
R1: current_state(e) = RUNNING => e has an observed or reported execution allocation at the relevant instant; observations may be stale.
R2: current_state(e) = WAITING and wake_condition(e) => e may become READY after scheduler acknowledgement.
R3: unmet_dependency(e) => not eligible_for_dispatch(e), unless policy explicitly permits speculative execution.
R4: terminal(e) and no new attempt => no further state transition for that attempt.
R5: duplicate event_id => do not apply the same event twice.
R6: event.sequence <= last_applied_sequence => reject, quarantine or reconcile as out-of-order.
R7: timeout alone => suspect failure; require policy and evidence before asserting FAILED.
R8: resource exhaustion => defer dispatch, throttle or fail according to configured policy.

7. MINI RECURSION ENGINE
function advance(entity, event_stream, bounds):
    visited = set()
    steps = 0
    while steps < bounds.max_steps:
        event = next_valid_event(event_stream)
        if event is None: return current_state(entity)
        key = (entity.id, event.id, current_version(entity))
        if key in visited: return current_state(entity)
        visited.add(key)
        candidates = expand_transitions(entity, event)
        valid = filter_guards(candidates, permissions, dependencies, resources)
        if not valid: record_rejection(event); continue
        chosen = select_by_policy(valid)
        apply_atomically_if_version_matches(entity, chosen)
        steps += 1
    return current_state(entity)  # bounded, possibly incomplete

8. SEMANTIC EQUIVALENCE
READY ~= RUNNABLE when both mean eligible for scheduling; not necessarily identical in all systems.
WAITING ~= BLOCKED only when awaiting a specific condition.
SUCCEEDED ~= COMPLETED_SUCCESSFULLY; COMPLETED without qualifier may include failure.
SUSPENDED is not necessarily WAITING: suspension can be externally imposed.
A job's state and its constituent threads' states are not interchangeable.

9. EXECUTION TRACE EXAMPLE
T0: Job J created -> CREATED
T1: Configuration and dependencies validated -> READY
T2: Worker assigned -> RUNNING
T3: External data pending -> WAITING
T4: Data arrives -> READY
T5: Worker reassigned -> RUNNING
T6: Result committed -> SUCCEEDED
Every transition records its triggering event, guard result and observation source.

10. BOUNDARIES AND GUARANTEES
- Safety requires validated transitions and atomic or version-checked updates.
- Liveness is conditional on scheduler fairness, available resources and resolved dependencies.
- Distributed observers may disagree temporarily; timestamps alone do not ensure total event ordering.
- State inference does not replace runtime instrumentation or proof of completion.
- Bounded recursion guarantees termination of the reasoning loop, not task completion.
- Terminal states may be immutable per attempt; new retries should be separately identified.

11. PROVENANCE AND CITATION
Ontology topic: Execution State Ontology
Canonical topic URL: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/process-entities/execution-state-ontology-2.html
Authors: Mark Anthony Higgins — Sky Recursive AI
Version: Flow Algebra v1.0
Licence: Refer to the source project's published Open Research Licence; citation required where applicable.
This independent topic mapping does not assert that its exact definitions appear on the linked page.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ