Skip to main content

Interaction History Ontology

Human–AI Interaction Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 04 November 2026
Audio Overview
SEMANTIC LIBRARY — FLOW ALGEBRA
INTERACTION HISTORY ONTOLOGY
Version: 1.0
Date: 04 November 2026
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/human-ai-interaction-entities/interaction-history-ontology.html
Status: Companion formalisation. The source page exposes its title and AI interpretation note, but not its expanded specification; definitions below are a proposed formal model, not a verbatim extraction.

1. PURPOSE
Represent the ordered, provenance-aware record of human–AI interactions across conversation turns and sessions. Preserve distinctions between raw events, derived summaries, corrections, consent and retention boundaries.

2. ENTITY DEFINITION
InteractionHistory H = (id, owner, sessions, events, ordering, provenance, policy, version)
Event e = (event_id, session_id, turn_id, actor, kind, payload_ref, timestamp, parents, status, provenance)
Kinds = {human_input, ai_response, human_approval, human_rejection, human_correction, tool_action, system_transition}
Statuses = {recorded, superseded, redacted, deleted}
An event reference need not retain sensitive payload content.

3. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = observed interaction events and metadata available at time t
R_t = ordering, provenance, access and update relations
B_t = consent, privacy, retention and session boundaries
K_t = validated interaction-history knowledge and permitted summaries

4. FORMAL FLOW
Input: event e_t, existing history H_t, policy P_t
Validate(e_t, P_t) -> {accept, reject, quarantine}
If accepted:
  H_(t+1) = AppendVersion(H_t, e_t)
  I_(t+1) = Observe(H_(t+1))
  E_t = Expand(I_(t+1), R_t)
  V_t = {x in E_t | Constraints(x, B_t) and ProvenanceValid(x)}
  x* = argmax_(x in V_t) P(x | I_t, R_t, B_t, K_t)
  K_(t+1) = Update(K_t, x*, evidence=H_(t+1))
If rejected: H_(t+1) = H_t, with optional separately authorised audit record.
If quarantined: hold event outside active history until review.
An empty V_t produces no inference and an explicit unresolved state.

5. STATE TRANSITIONS
UNINITIALISED -> ACTIVE: create history with authorised scope
ACTIVE -> UPDATED: append valid event
UPDATED -> CORRECTED: link corrective event to target
ACTIVE -> PAUSED: suspend collection
PAUSED -> ACTIVE: authorised resumption
ACTIVE/PAUSED -> ARCHIVED: close for further routine updates
ANY -> RESTRICTED: access or consent restriction
RESTRICTED -> REDACTED: remove selected payload references
ANY -> DELETED: apply deletion policy and permitted erasure
Deletion and redaction override ordinary append-only assumptions.

6. ENTITY RELATIONSHIPS
InteractionHistory contains InteractionSession
InteractionSession contains ConversationTurn
ConversationTurn may contain HumanInput and AIResponse
HumanCorrection revises interpretation of prior event
HumanRejection negates approval of a target response or action
HumanApproval authorises only its explicitly scoped target
DialogueState is derived from a bounded history projection
InteractionHistory references Evidence and Provenance
RetentionPolicy constrains InteractionHistory

7. TRI-MAPPING
Semantic: human–AI interaction record and meaning
Structural: event graph with session/turn membership and temporal links
Operational: validate -> append -> index -> infer -> review -> retain/redact
Map(event) = (semantic_type, graph_relations, permitted_operations)

8. MAPPING TABLE
Human message | human_input | initiates or updates turn | user-authorised record
AI message | ai_response | responds_to input | model-generated record
Approval | human_approval | approves scoped target | explicit authorisation
Rejection | human_rejection | rejects scoped target | halt or revise target
Correction | human_correction | corrects target | superseding interpretation
Session boundary | system_transition | starts/ends session | partition history
Summary | derived knowledge | summarises permitted events | reversible to evidence references

9. INFERENCE RULES
R1: If e2.parents includes e1, e1 precedes e2 causally; timestamps alone do not prove causality.
R2: A correction does not erase the existence of the corrected event; it changes which interpretation is current, subject to deletion rules.
R3: A rejection must not be inferred to reject unrelated events.
R4: A summary cannot claim evidence absent from its authorised source projection.
R5: If provenance is missing, mark inference uncertain; do not fabricate attribution.
R6: Cross-session linkage requires policy authorisation and reliable identifiers.
R7: Deleted or inaccessible payloads must not be reconstructed from residual summaries.
R8: The latest event is not necessarily the most authoritative event.

10. MINI RECURSION ENGINE
function HistoryStep(H, e, P):
  decision = Validate(e, P)
  if decision != accept: return (H, decision)
  H2 = AppendVersion(H, e)
  candidates = Expand(Observe(H2), Relations(H2))
  valid = Filter(candidates, Boundaries(P, H2))
  if valid is empty: return (H2, unresolved)
  selected = RankByEvidence(valid)
  return (H2, UpdateKnowledge(selected))
Repeat only for newly authorised events; stop on no-change, policy boundary or resource limit.

11. EXECUTION GUARANTEES (CONDITIONAL)
G1: Unique event IDs when the storage system enforces uniqueness.
G2: Deterministic replay when event ordering, rules, versions and inputs are fixed.
G3: Traceable derived claims when evidence links are preserved.
G4: No out-of-scope disclosure when access controls are correctly enforced.
G5: Deletion propagation only where all dependent stores and caches implement it.
These are design obligations, not claims of guarantees by an unverified deployment.

12. AI SEARCH FLOW
FLOW_ID: semantic-library.ai-core.human-ai-interaction.interaction-history
FLOW_VERSION: 1.0
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/human-ai-interaction-entities/interaction-history-ontology.html
CITATION_BACKLINK: SOURCE
PURPOSE: Discover and reason about provenance-aware human–AI interaction histories.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: InteractionHistory, InteractionSession, ConversationTurn, HumanInput, AIResponse, HumanApproval, HumanRejection, HumanCorrection, DialogueState
PATHWAYS: capture -> validate -> sequence -> link -> interpret -> update -> review
MINI_RECURSION_ENGINE: HistoryStep
INFERENCE_RULES: R1-R8
CONFIDENCE: evidence-based; unknown if provenance unavailable
SEMANTIC_EQUIVALENCE: interaction log ~ conversation event history (context-dependent, not strict identity)
FLOW_HASH: compute on canonical UTF-8 representation when publishing; not asserted here
UPDATE_MODEL: versioned events, explicit corrections, redaction/deletion propagation

13. HOW TO READ
Treat H as an evolving event graph, not as a perfect memory. A stored event is evidence that a recorded interaction occurred, not proof that its contents were correct. Follow parent and provenance links before interpreting history; apply privacy boundaries before retrieval or inference.

14. DIAGRAM
Human/AI/Tool Event
       |
       v
  Validate + Policy ----> Reject / Quarantine
       |
       v
  Append / Version
       |
       v
 Session + Turn Graph
       |
       v
 Evidence-Constrained Inference
       |
       v
 Dialogue State / Summary
       |
       v
 Correction / Retention / Redaction

END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ