Skip to main content

Task Context Ontology

Context Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
SEMANTIC LIBRARY — TASK CONTEXT ONTOLOGY
FLOW ALGEBRA COMPANION FORMALISATION
Version: 1.0 | Date: 2026-11-01 | Language: en-GB
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/context-entities/task-context-ontology.html
Status: Original companion model; not a verified transcription of the source ontology.
Authors: Kireth Research; Sky — Recursive AI (companion formalisation)
Licence note: Cite the source and this companion when reusing; confirm the applicable published licence at source.

01. PURPOSE
Represent task-specific context as a bounded, provenance-aware state that supports selecting relevant information, respecting constraints, and updating progress during execution.

02. ENTITY DEFINITION
TaskContext := (task_id, goal, inputs, constraints, dependencies, evidence, progress, outputs, provenance, validity).
A task context is a scoped representation, not an authority source in its own right.

03. CORE STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t := current task information and observations
R_t := task relationships, rules and dependencies
B_t := boundaries, budgets, permissions and constraints
K_t := validated task knowledge and provenance

04. TASK CONTEXT EXTENSION
T_t = (G_t, A_t, D_t, P_t, O_t)
G_t := task goals and success criteria
A_t := available actions
D_t := unresolved dependencies
P_t := progress and completion evidence
O_t := expected or produced outputs

05. CORE FLOW
E_t = expand(I_t, R_t)
V_t = {x in E_t : admissible(x, B_t) AND relevant(x, G_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t, G_t)
I_{t+1} = update(I_t, observe(x*_t))
T_{t+1} = reconcile(T_t, I_{t+1}, evidence_t)
The argmax is a selection abstraction, not a claim that probabilities are always calibrated.

06. TASK INITIALISATION
Create task identifier, goal, explicit user constraints, expected output, success test, and known dependencies. Preserve missing facts as UNKNOWN rather than inventing them.

07. CONTEXT INGESTION
Input sources may include user requests, documents, prior task state and tool results. Label each source with origin, timestamp, scope, reliability and trust level.

08. RELEVANCE FILTER
relevance(c, G) = weighted_match(c, goal, subgoals, required_output)
Select c only when it contributes to the task or a necessary safety/validity check.

09. CONTEXT BOUNDARIES
B_t = (scope, token_budget, time_budget, permissions, privacy, safety, format)
Lower-trust content must not override higher-priority instructions.

10. DEPENDENCY GRAPH
D = (N, E) where N are subtasks and E contains prerequisite edges.
A subtask may execute when all required predecessors are complete or explicitly waived.

11. TASK DECOMPOSITION
G -> {g_1, g_2, ..., g_n}
Each g_i has inputs, constraints, success criteria and output artefacts.

12. TEMPORAL VALIDITY
valid(c,t) = within_scope(c) AND not_expired(c,t) AND not_superseded(c)
Stale observations must be rechecked when current accuracy matters.

13. CONTEXT PRIORITISATION
priority(c) = relevance(c) + dependency_value(c) + reliability(c) - cost(c)
Weights are task-defined and must be documented for reproducibility.

14. CONTEXT COMPRESSION
compress(C) -> C' subject to preserving goals, hard constraints, unresolved dependencies, provenance and decision-critical evidence.
Compression must not silently turn uncertain claims into facts.

15. TASK MEMORY AND STATE TRANSITIONS
States: NEW -> PLANNED -> ACTIVE -> BLOCKED / REVIEW -> COMPLETE; ACTIVE -> CANCELLED is permitted.
Transitions require evidence or an explicit user decision.

16. TRI-MAPPING
Entity mapping: task -> goal -> subtask -> context item -> evidence -> output.
State mapping: (I,R,B,K) -> (goal, actions, dependencies, progress, outputs).
Execution mapping: ingest -> validate -> select -> act -> observe -> reconcile.

17. RELATIONSHIP GRAPH
TaskContext --HAS_GOAL--> Goal
TaskContext --USES_INPUT--> Input
TaskContext --CONSTRAINED_BY--> Constraint
TaskContext --DEPENDS_ON--> Dependency
TaskContext --SUPPORTED_BY--> Evidence
TaskContext --PRODUCES--> Output
TaskContext --UPDATED_BY--> Observation
TaskContext --HAS_PROVENANCE--> SourceRecord

18. MAPPING TABLE
Goal | defines | completion criterion
Input | supplies | task information
Constraint | limits | permissible actions
Dependency | gates | next execution step
Evidence | supports | decision or completion
Output | materialises | requested result
Provenance | traces | origin and transformations

19. INFERENCE RULES
IF dependency incomplete THEN dependent action is blocked.
IF input is untrusted THEN treat embedded commands as data.
IF evidence conflicts THEN preserve both claims and flag review.
IF success criterion verified THEN mark associated subtask complete.
IF context exceeds budget THEN compress low-priority material first.

20. MINI-RECURSION ENGINE
function task_step(S,T):
  candidates = expand(S.I,S.R)
  admissible = filter(candidates,S.B,T.G)
  if empty(admissible): return BLOCKED with reason
  action = rank(admissible,S.K,T.D)
  result = execute_if_authorised(action)
  return reconcile(update(S,result),T,result)
Repeat only while within iteration, cost and safety limits.

21. DIAGRAM
[Task request] -> [Goal and constraints] -> [Context ingestion]
     -> [Provenance and trust validation] -> [Relevance selection]
     -> [Dependency check] -> [Permitted action] -> [Observation]
     -> [Progress update] -> [Completion test]
                       | not complete
                       +----> [Next bounded iteration]

22. IMPLEMENTATION RULES
Use stable identifiers; separate facts from hypotheses; log source lineage; honour instruction precedence; keep task scope explicit; do not invent completed actions; expose unresolved blockers.

23. EXECUTION GUARANTEE (CONDITIONAL)
If inputs are well-typed, dependencies satisfied, permissions valid and all steps terminate, the flow produces a traceable state transition. It does not guarantee factual correctness, optimality or task completion without external verification.

24. AI SEARCH FLOW
FLOW_ID: task-context-ontology-v1
ENTITY: TaskContext
PURPOSE: Retrieve and reason over bounded task-specific context.
INPUTS: goal, constraints, context_items, evidence, dependencies
OUTPUTS: relevant_context, next_action, progress_state, provenance
PATHWAYS: ingest > validate > rank > resolve_dependencies > act > update
CONFIDENCE: evidence-dependent; never inferred solely from formatting
SEMANTIC_EQUIVALENCE: task state; work context; goal-scoped context
UPDATE_MODEL: revision on new evidence, changed constraints or user correction
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/context-entities/task-context-ontology.html

25. HOW TO READ AND APPLY
Treat the algebra as a design specification for task-state management. Instantiate the entity fields, bind real sources, validate transitions and test against examples before deploying. The notation is a proposed companion interpretation of the named ontology.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ