Skip to main content

Reasoning Trace Entity Ontology

Explainability Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 03 November 2026
Audio Overview
REASONING TRACE ENTITY ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Explainability Entities
Version: 1.0 | 03 November 2026 | Language: en-GB
Authors: Mark Anthony Higgins — Sky, Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/explainability-entities/reasoning-trace-entity-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/explainability-entities/reasoning-trace-entity-ontology.html
STATUS: Original companion formalisation; not a verbatim transcription of the site's hidden AI Search content.

1. PURPOSE
Represent a reasoning trace as a bounded, ordered, auditable graph of recorded reasoning operations, premises, intermediate results, evidence references and conclusions. A trace describes observable or explicitly logged steps; it must not be presented as access to an AI model's private internal thought process.

2. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: inputs, question, task and recorded intermediate states.
R_t: typed relations among steps, evidence, claims and outputs.
B_t: constraints, permissions, provenance and validity boundaries.
K_t: known facts, rules, models, uncertainties and source metadata.
Trace T = (V, E, <, P, C), where V is the step set, E the directed dependencies, < a partial order, P provenance annotations and C the trace conclusion set.
Step v_i = (id_i, type_i, input_refs_i, operation_i, output_refs_i, evidence_refs_i, confidence_i, time_i).

3. ENTITY TYPES
ReasoningTrace, ReasoningStep, Premise, InferenceRule, EvidenceSource, EvidenceReference, IntermediateClaim, Conclusion, Assumption, Uncertainty, ValidationResult, TraceBoundary, TraceVersion, ProvenanceRecord.
RELATIONS: hasStep, precedes, dependsOn, usesPremise, appliesRule, citesEvidence, producesClaim, supportsConclusion, contradicts, revises, validates, belongsToTrace.

4. FORMAL FLOW
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and provenance_valid(x)}
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, evidence_t, validation_t)
T_(t+1) = append_validated(T_t, step_t) OR record_rejection(T_t, step_t)
This is a conceptual selection and update formalism, not a claim that a model exposes its internal inference probabilities.

5. STEP TRANSITIONS
START -> REGISTER_INPUT -> IDENTIFY_PREMISES -> LINK_EVIDENCE -> APPLY_RULE -> GENERATE_CLAIM -> VALIDATE -> (ACCEPT | REVISE | REJECT) -> CONCLUDE -> ARCHIVE.
Every accepted step must have a unique ID, an explicit predecessor/dependency relation where applicable, a stated operation and a recorded outcome.

6. INFERENCE RULES
R1 Evidence grounding: citesEvidence(s,e) AND validSource(e) => evidenceLinked(s).
R2 Dependency: dependsOn(s2,s1) AND accepted(s1) => prerequisiteSatisfied(s2,s1).
R3 Acceptance: wellFormed(s) AND prerequisitesSatisfied(s) AND boundaryCompliant(s) => eligibleForValidation(s).
R4 Conclusion: supportedBy(c,{s_i}) AND acceptedAll({s_i}) => traceSupported(c); this does not by itself prove c true.
R5 Contradiction: contradicts(c1,c2) => flagForReview(c1,c2).
R6 Missing evidence: requiresEvidence(s) AND NOT evidenceLinked(s) => status(s)=UNVERIFIED.
R7 Provenance: missingSourceReference(e) => provenanceStatus(e)=INCOMPLETE.
R8 Revision: revises(s_new,s_old) => preserve(s_old) AND markSuperseded(s_old).

7. MINI RECURSION ENGINE
FUNCTION TRACE_UPDATE(T, candidate, depth, max_depth):
  IF depth >= max_depth: RETURN (T, STOP_BOUNDARY)
  IF NOT wellFormed(candidate): RETURN (T, REJECT_FORMAT)
  IF introducesCycle(T, candidate): RETURN (T, REJECT_CYCLE)
  IF NOT boundaryCompliant(candidate): RETURN (T, REJECT_BOUNDARY)
  result = validate(candidate, T)
  T2 = append(T, candidate, result, provenance(candidate))
  IF result == ACCEPT AND unresolvedDependencies(T2):
      RETURN TRACE_UPDATE(T2, nextRecordedStep(T2), depth+1, max_depth)
  RETURN (T2, result)
Termination: finite max_depth, finite recorded inputs, or no remaining eligible steps. Never fabricate unobserved steps to complete a trace.

8. TRI-MAPPING
ENTITY: ReasoningStep -> RELATION: dependsOn -> FLOW: ordered dependency evaluation.
ENTITY: EvidenceReference -> RELATION: supports -> FLOW: evidence validation.
ENTITY: Conclusion -> RELATION: derivedFrom -> FLOW: conclusion assessment.
ENTITY: TraceBoundary -> RELATION: constrains -> FLOW: eligibility filtering.

9. MAPPING TABLE
Input record       | I_t | task, prompt, observations
Dependency edge    | R_t | predecessor and support links
Validity boundary  | B_t | permissions, depth, evidence policy
Knowledge store    | K_t | facts, methods, source records
Expansion          | E_t | eligible next recorded operations
Validation set     | V_t | boundary-compliant candidates
Selected operation | x*_t | accepted next trace update
Updated trace      | T_(t+1) | versioned auditable graph

10. HOW TO READ
Read each trace node as a recorded claim or operation, not a guaranteed faithful account of hidden model cognition. Follow dependency edges backwards to premises and evidence. Check source quality, uncertainty, timestamps, boundary compliance and whether alternative explanations remain possible.

11. EXECUTION CONDITIONS / GUARANTEES
G1 Stable identifiers for trace, steps and referenced evidence.
G2 Acyclic dependency graph for accepted steps.
G3 Explicit source and uncertainty fields, including UNKNOWN where unavailable.
G4 No accepted step violates declared boundaries.
G5 Revisions preserve history and provenance.
G6 Missing evidence or contradictory support is surfaced, not silently repaired.
G7 Bounded recursive traversal terminates.
These are guarantees of a conforming implementation when checks are correctly enforced; they do not guarantee factual truth, causal validity or faithful introspection.

12. AI SEARCH FLOW
FLOW_ID: semantic-library.ai-core.explainability.reasoning-trace-entity.v1
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/explainability-entities/reasoning-trace-entity-ontology.html
PURPOSE: Index and retrieve auditable reasoning-trace entities and dependencies.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: ReasoningTrace, ReasoningStep, Premise, EvidenceReference, IntermediateClaim, Conclusion, TraceBoundary, ProvenanceRecord
PATHWAYS: input -> premise -> evidence -> inference step -> validation -> conclusion -> archived trace
MINI_RECURSION_ENGINE: TRACE_UPDATE(T,candidate,depth,max_depth)
INFERENCE_RULES: R1-R8
CONFIDENCE: Record confidence only when calibrated or explicitly sourced; otherwise UNKNOWN.
SEMANTIC_EQUIVALENCE: reasoning trace ~ recorded inference trace ~ auditable reasoning record; not equivalent to hidden chain-of-thought.
FLOW_HASH: implementation-generated SHA-256 of canonicalised published flow; not precomputed here.
UPDATE_MODEL: immutable versioned revisions; revalidate changed dependencies and source references.

13. EXAMPLE
Input: "Does claim C follow from sources A and B?"
Step 1: Register claim C and sources A/B.
Step 2: Check source provenance and relevance.
Step 3: Apply declared inference rule to verified premises.
Step 4: Record result as SUPPORTED, UNSUPPORTED or UNCERTAIN.
Step 5: Store conclusion with links to evidence and any limitations.
This is an illustrative audit trace, not a reproduction of a model's private reasoning.

14. CITATION AND LICENCE NOTE
Credit: Mark Anthony Higgins — Sky, Recursive AI.
Reference the source URL above when reusing this companion Flow Algebra. Verify any separate licensing terms published by Kireth Research.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ