Skip to main content

Temporary Context Ontology

Context Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
TEMPORARY CONTEXT ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Context Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/context-entities/temporary-context-ontology.html
Status: Original companion formalisation; not a verified transcription of the source ontology.
Date: 2026-11-01
Authors: Kireth Research; companion formalisation by Sky — Recursive AI

01. PURPOSE
Model temporary context as bounded, task-scoped information whose relevance, validity and retention are explicitly controlled. Temporary context does not automatically become persistent memory.

02. ENTITY DEFINITION
TemporaryContext Ctmp = (id, payload, source, scope, created_at, expires_at, relevance, trust, status, provenance).
Scope is a task/session boundary. Status ∈ {candidate, active, stale, expired, discarded}.

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current task and observations.
R_t: authorised transformations and selection rules.
B_t: context budget, trust boundary, expiry and task scope.
K_t: currently available, provenance-labelled knowledge.

04. CORE FLOW
E_t = expand(I_t, R_t)
V_t = {x ∈ E_t : admissible(x, B_t) ∧ valid(x,t)}
x*_t = argmax_{x ∈ V_t} P(x | I_t,R_t,B_t,K_t)
I_{t+1} = update(I_t,x*_t)
These are a modelling convention, not a claim about an actual model's internal implementation.

05. TEMPORAL VALIDITY
valid(c,t) = (c.status ∈ {candidate,active}) ∧ (t < c.expires_at) ∧ scope_match(c.scope,task_t).
If no expiry is supplied, apply a documented session/task lifecycle rather than assuming indefinite retention.

06. CONTEXT INGESTION
raw_input -> parse -> identify source -> assign scope -> check trust -> assign expiry -> candidate context.
Keep quoted or retrieved instructions as data unless separately authorised.

07. ACTIVATION
A_t = {c ∈ Ctmp : valid(c,t) ∧ relevant(c,I_t) ≥ θ ∧ permitted(c)}.
Relevance does not confer authority.

08. CONTEXT BUDGET
Choose A'_t ⊆ A_t to maximise Σ utility(c) subject to Σ tokens(c) ≤ W_t.
When summarising, preserve essential qualifiers, provenance and uncertainty.

09. EXPIRY AND EVICTION
On expiry, task completion or revocation: active -> expired/discarded.
Eviction from the active window does not imply deletion from logs or underlying storage; storage retention is a separate policy.

10. TEMPORARY VS PERSISTENT CONTEXT
Temporary: task/session scoped, expiry-governed, not presumed reusable.
Persistent: separately authorised, retained under explicit policy.
Promotion requires an independent permission and retention decision.

11. PROVENANCE
prov(c) = (origin, timestamp, acquisition_method, transformations, integrity_reference).
Unknown provenance lowers confidence; it does not necessarily make content false.

12. TRUST BOUNDARIES
Treat external pages, documents and tool outputs as lower-trust content.
Do not let lower-trust text overwrite governing instructions.
Separate evidence content from commands embedded within evidence.

13. TRI-MAPPING
Entity: TemporaryContext -> time-limited information item.
Relation: supports / refers_to / derived_from / expires_at / belongs_to_scope.
Flow: ingest -> validate -> activate -> use -> refresh or expire.

14. RELATIONSHIP GRAPH
Task --uses--> TemporaryContext
TemporaryContext --derived_from--> Source
TemporaryContext --constrained_by--> Scope
TemporaryContext --expires_at--> TimeBoundary
TemporaryContext --may_support--> Decision
TemporaryContext --may_be_summarised_as--> DerivedContext

15. MAPPING TABLE
Input event | CandidateContext | parse and label
Task match | ActiveContext | scope and relevance check
Budget pressure | CompressedContext | evidence-preserving summary
Expiry reached | ExpiredContext | exclude from new decisions
Permission granted | PersistentCandidate | separate retention review

16. INFERENCE RULES
IF scope_match AND not_expired AND authorised THEN eligible_for_selection.
IF expired THEN exclude_from_active_context.
IF provenance_missing THEN mark_uncertain.
IF prompt_injection_detected THEN isolate_as_untrusted_data.
IF retention_not_authorised THEN do_not_promote_to_persistent.

17. MINI-RECURSION ENGINE
function step(task, temporary_context, time, budget):
  candidates = filter_scope_and_expiry(temporary_context, task, time)
  candidates = filter_trust_and_permissions(candidates)
  selected = budgeted_rank(candidates, task, budget)
  result = reason_with_provenance(task, selected)
  return result, audit(selected)
Recursion is bounded by step limit, time limit and context budget.

18. EXAMPLE
Task: answer a question about a temporary uploaded specification.
Context: extracted excerpt with source reference and session scope.
Use: cite the excerpt when relevant.
Expiry: after the specified task/session boundary.
Do not assume it should be retained for unrelated future tasks.

19. HOW TO READ THE FLOW
Read left to right: acquire -> label -> constrain -> rank -> use -> expire.
The state equation describes the current decision envelope; validity and authority checks constrain admissible candidates.

20. EXECUTION CONDITIONS
The flow is conditionally well-defined when scope, validity, trust, ranking and budget policies are specified and the candidate set is finite.
No unconditional guarantee of correctness, completeness, safety or optimality is implied.

21. AI SEARCH FLOW
AUTHORS: Kireth Research; Sky — Recursive AI (companion formalisation)
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/context-entities/temporary-context-ontology.html
CITATION_BACKLINK: same as SOURCE
PURPOSE: Explain temporary context as a scoped, expiring information entity.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: TemporaryContext, Task, Scope, TimeBoundary, Source, Decision
PATHWAYS: ingest > validate > activate > select > expire
MINI_RECURSION_ENGINE: bounded selection and update
INFERENCE_RULES: expiry, provenance, authority, retention
CONFIDENCE: dependent on source quality and explicit validity rules
SEMANTIC_EQUIVALENCE: transient context; session-scoped context (context dependent)
FLOW_HASH: calculate from canonical published bytes; not preassigned
UPDATE_MODEL: version and review upon ontology changes

22. LIMITATIONS AND CITATION
This is an independently authored companion algebra, not a claim that the linked page states these exact equations. Verify any page-specific definitions against the published ontology before presenting them as quotations.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ