Skip to main content

Task 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
TASK 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/task-ontology-2.html
Prepared: 11 November 2026
Status: Constructed topic-level mapping; not a verified transcription of the source page.

1. PURPOSE
Represent a computational task as a bounded unit of scheduled work, with explicit inputs, dependencies, execution context, resource limits, results and lifecycle states. A task may be implemented by a process, thread, coroutine, job or distributed worker; these are related but not synonymous entities.

2. HST STATE MODEL AND FLOW ALGEBRA
S_t = (I_t, R_t, B_t, K_t)
I_t: task identity, inputs, current state, progress and observations.
R_t: relations to parent job, dependency graph, scheduler, worker, resources and outputs.
B_t: eligibility, authorisation, ordering, deadlines, resource quotas and safety constraints.
K_t: known execution history, policies, capabilities and relevant prior outcomes.
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 abstraction, not a claim that a real scheduler calculates probabilities.

3. ENTITY MODEL
Task = (task_id, specification, inputs, dependencies, priority, state, executor,
        resources, deadline, retry_policy, result, provenance).
Related entities: Job, Process, Thread, Worker, Scheduler, Queue, Dependency,
Resource, ExecutionAttempt, Event, Output, Failure, CancellationToken.
Lifecycle: CREATED -> QUEUED -> READY -> RUNNING -> {SUCCEEDED, FAILED,
CANCELLED, TIMED_OUT}; optional RETRY_WAIT -> QUEUED after an eligible failure.
BLOCKED represents unmet dependencies or resource constraints. State transitions must
be explicitly validated; terminal states do not transition without a new attempt.

4. RELATIONSHIP GRAPH
Task --belongs_to--> Job
Task --depends_on--> Task
Task --queued_in--> Queue
Scheduler --selects--> Task
Task --executed_by--> Worker/Thread/Process
Task --consumes--> Resource
Task --produces--> Result
ExecutionAttempt --observes--> Event
Task --governed_by--> Policy
Task --has_state--> LifecycleState
Task --has_provenance--> Source/ExecutionTrace

5. CORE FLOWS
FLOW A: Task registration
  Receive specification -> validate identifier and input schema -> check permissions
  -> store task and dependency edges -> mark CREATED -> enqueue if eligible.
FLOW B: Dependency resolution
  Inspect predecessor states -> verify all required dependencies succeeded
  -> detect missing/cyclic dependencies -> mark READY or BLOCKED.
FLOW C: Scheduling
  Filter READY tasks by resource availability, deadlines and authorisation
  -> apply scheduler policy -> reserve resources -> dispatch -> RUNNING.
FLOW D: Execution
  Bind input snapshot and execution context -> execute bounded operation
  -> capture events, progress and output -> validate result -> SUCCEEDED.
FLOW E: Failure and retry
  Classify failure -> record attempt -> check retry budget and idempotency
  -> bounded back-off and requeue, or terminal FAILED/TIMED_OUT.
FLOW F: Cancellation
  Receive cancellation -> authorise request -> signal executor -> release
  resources when safe -> record CANCELLED; do not assume instant termination.
FLOW G: Completion propagation
  Publish result -> update dependent tasks -> unblock newly eligible work
  -> record trace and provenance.

6. INFERENCE RULES
R1 IF dependency d is required AND state(d) != SUCCEEDED THEN task is not READY.
R2 IF all dependencies succeeded AND input valid AND policy allows THEN task may be READY.
R3 IF task READY AND executor capacity available THEN task may be dispatched.
R4 IF execution result satisfies output contract THEN mark SUCCEEDED.
R5 IF attempt fails AND retryable AND retries remain THEN schedule another attempt.
R6 IF cancellation accepted THEN prohibit new attempts unless explicitly reauthorised.
R7 IF dependency graph contains a cycle without defined cycle semantics THEN reject schedule.
R8 IF a deadline expires THEN evaluate timeout policy; expiry does not prove termination.
R9 IF side effects may have occurred THEN retry requires idempotency or reconciliation.

7. BOUNDED RECURSION ENGINE
function resolve(task, visited, active, depth, max_depth):
    if depth > max_depth: return LIMIT_REACHED
    if task in active: return CYCLE_DETECTED
    if task in visited: return CACHED_STATUS(task)
    active.add(task)
    for predecessor in task.dependencies:
        status = resolve(predecessor, visited, active, depth+1, max_depth)
        if status not in {SUCCEEDED, READY}: return BLOCKED_OR_ERROR(status)
    active.remove(task)
    visited.add(task)
    return READY_IF_POLICY_AND_RESOURCES_ALLOW(task)

Execution must also impose time, memory, queue-depth and attempt limits.

8. INVARIANTS AND OPERATIONAL BOUNDARIES
- task_id uniquely identifies a task within its declared namespace.
- Dependency edges have defined direction and cannot silently change mid-attempt.
- A task cannot be marked SUCCEEDED without an accepted result or explicit success criterion.
- Resource reservations and releases must be auditable.
- Exactly-once side effects are not guaranteed by task scheduling alone.
- Priority does not imply starvation freedom; fairness depends on scheduler policy.
- Distributed task delivery may be duplicated or delayed; deduplication is contextual.
- Success, latency and termination guarantees are conditional on environment and policy.

9. SEMANTIC EQUIVALENCE AND DISTINCTIONS
Task ~= WorkItem ~= ScheduledUnit only where lifecycle and responsibility match.
Task != Thread: a thread is an execution context that may perform many tasks.
Task != Process: a process owns operating-system resources and may host tasks.
Task != Job: a job may aggregate several tasks and their dependencies.
Task != ExecutionAttempt: retries produce distinct attempts of one logical task.

10. EXAMPLE EXECUTION TRACE
Task T3 depends on T1 and T2.
T1=SUCCEEDED; T2=RUNNING -> T3=BLOCKED.
T2=SUCCEEDED -> T3=READY.
Scheduler allocates a worker -> T3=RUNNING.
Result passes contract -> T3=SUCCEEDED; downstream tasks notified.
If T3 fails transiently, retry only within configured budget and side-effect policy.

11. PROVENANCE AND CITATION
Title: Task Ontology — Flow Algebra v1.0
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/process-entities/task-ontology-2.html
Citation: Higgins, Mark Anthony; Sky Recursive AI (2026), "Task Ontology — Flow Algebra v1.0", Semantic Library, Kireth Research. Cite the source URL.
This mapping is an independently constructed interpretation of the topic; it does not assert that every rule appears on the linked page.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ