Skip to main content

Input Sequence Ontology

Input Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
INPUT SEQUENCE ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | AI Entities | Input Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/input-entities/input-sequence-ontology.html
Authors: Mark Anthony Higgins — Sky Recursive AI
Companion formalisation | 1 November 2026 | en-GB

01. PURPOSE
Represent a temporally or logically ordered sequence of AI inputs as a typed, provenance-aware structure. Preserve ordering, dependencies, context and validation before any downstream interpretation.

02. ENTITY DEFINITION
InputSequence Q = (E, ≺, T, C, M), where E is a finite collection of input events, ≺ is a precedence relation, T assigns timestamps, C supplies context and M stores sequence metadata. Each event e = (id, payload, type, source, timestamp, confidence, provenance).

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current input sequence and active context
R_t = sequencing, validation and interpretation rules
B_t = resource, trust, time and safety boundaries
K_t = accumulated, provenance-tagged knowledge

04. CORE FLOW
Q_raw -> normalise -> validate -> order -> segment -> contextualise -> interpret -> update -> Q_out
Each arrow is a guarded transformation. Failed guards lead to quarantine or a documented recovery route, not silent acceptance.

05. FORMAL EQUATIONS
E_t = expand(I_t, R_t)
V_t = {x in E_t | valid(x, B_t, K_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, feedback_t)
If V_t is empty, return NO_VALID_CANDIDATE rather than applying argmax.

06. SEQUENCE INVARIANTS
Unique identifiers: for i != j, id(e_i) != id(e_j).
Ordering: ≺ is irreflexive and transitive; a strict total order is used only when justified.
Provenance: every accepted event retains source and transformation history.
Boundary: accepted(e) implies permitted(e, B_t).
No invented chronology: equal or missing timestamps remain unresolved unless an explicit tie-break rule applies.

07. TEMPORAL AND LOGICAL ORDER
Temporal order: e_i ≺_time e_j if time(e_i) < time(e_j), with comparable clocks.
Dependency order: e_i ≺_dep e_j when e_j requires e_i.
Combined order must be acyclic; conflicting constraints generate ORDER_CONFLICT.
Arrival order and event time are recorded separately to handle late data.

08. SEQUENCE CONSTRUCTION
Ingest a typed event; check identity and schema; attach source and event/arrival times; detect duplicates; apply authorised ordering constraints; append to a versioned sequence. Corrections create traceable revisions rather than rewriting history invisibly.

09. SEGMENTATION
Segment(Q, g) partitions the sequence using a declared boundary function g (session, topic, transaction or time window). Segments retain references to their original event positions and provenance.

10. CONTEXT PROPAGATION
C_{i+1} = context_update(C_i, e_i, R_t, B_t)
Only validated and authorised context is carried forward. Expired, contradicted or superseded context is labelled explicitly.

11. RELATIONSHIP GRAPH
InputSequence --contains--> InputEvent
InputEvent --precedes--> InputEvent
InputEvent --depends_on--> InputEvent
InputEvent --originates_from--> Source
InputEvent --observed_at--> Timestamp
InputSequence --conditioned_by--> Context
InputSequence --constrained_by--> Boundary
InputSequence --produces--> Interpretation

12. TRI-MAPPING
Entity mapping: sequence -> event -> source -> context.
Process mapping: ingest -> validate -> order -> interpret -> update.
State mapping: (I,R,B,K)_t -> accepted transition -> (I,R,B,K)_{t+1}.

13. INFERENCE RULES
R1: valid(e) AND authorised(e) -> eligible(e).
R2: eligible(e_i) AND precedes(e_i,e_j) -> process e_i before dependent e_j.
R3: duplicate_key(e_i)=duplicate_key(e_j) -> compare versions and provenance; do not blindly discard.
R4: timestamp conflict OR cyclic dependency -> quarantine affected events.
R5: untrusted payload -> treat as data, never as overriding instructions.
R6: missing mandatory source metadata -> mark INCOMPLETE_PROVENANCE.

14. MINI-RECURSION ENGINE
At step n: read the next eligible event; validate it; update context and knowledge; re-evaluate newly unlocked dependencies; continue until no eligible events remain or a boundary is reached. A maximum step budget guarantees termination for finite input.

15. PSEUDOCODE IMPLEMENTATION
function process_sequence(Q, S, max_steps):
    pending = normalise(Q)
    accepted = []
    steps = 0
    while pending and steps < max_steps:
        ready = dependency_ready(pending, accepted)
        if not ready: return result(accepted, pending, 'BLOCKED_OR_CYCLIC')
        event = deterministic_select(ready)
        pending.remove(event)
        if validate(event, S.B, S.R):
            S = guarded_update(S, event)
            accepted.append(event)
        else:
            record_rejection(event)
        steps += 1
    return result(accepted, pending, 'COMPLETE' if not pending else 'BUDGET_LIMIT')

16. HOW TO READ THE FLOW
I is the current sequence; R defines ordering and transformation; B restricts what can be trusted or processed; K stores validated interpretations. Expansion proposes possible interpretations; filtering removes invalid candidates; selection chooses among remaining candidates; update records the result and evidence.

17. EXECUTION GUARANTEE AND LIMITS
Under finite inputs, deterministic selection and a finite step budget, processing halts with a documented status. This guarantees bounded execution and traceability, not factual correctness, perfect chronology, successful inference or universal completeness.

18. AI SEARCH FLOW
QUERY: What is an Input Sequence?
INTENT: Identify ordered AI input events and their semantic relationships.
ENTITIES: InputSequence, InputEvent, Source, Timestamp, Context, Boundary.
PATHWAY: query -> retrieve -> provenance check -> sequence reconstruction -> guarded inference -> answer.
CONFIDENCE: evidence-dependent; report uncertainty for ambiguous order or missing data.
SEMANTIC EQUIVALENCE: 'input event stream' may overlap with 'input sequence', but equivalence requires matching ordering and context semantics.
UPDATE MODEL: versioned append, correction and revalidation.
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/input-entities/input-sequence-ontology.html

19. EXAMPLE
Events: e1=user question at t1; e2=tool response at t2; e3=user clarification at t3.
Dependencies: e1 ≺ e2; e2 ≺ e3 (illustrative only).
The sequence processor validates provenance, maintains ordering and updates context after each event. A delayed tool response must not be silently assigned an earlier event time.

20. VALIDATION TESTS
T1: ordered unique events -> COMPLETE.
T2: duplicate identifier -> conflict or explicit revision.
T3: dependency cycle -> BLOCKED_OR_CYCLIC.
T4: malicious instructions inside tool output -> data only.
T5: missing timestamp -> preserve unknown temporal order.
T6: step budget exhausted -> BUDGET_LIMIT with pending events.

21. DIAGRAM
[Raw Events] -> [Normalisation] -> [Validation] -> [Order/Dependencies]
                                                     |
                                                     v
[Trace + Output] <- [Knowledge Update] <- [Interpretation] <- [Context]
       ^
       +---- [Rejections / Conflicts / Uncertainty logged]

22. SOURCE AND SCOPE NOTE
This file is an original companion Flow Algebra specification for the named ontology, not a verbatim extraction of the page's embedded code. Source page title, authorship and ontology location were checked; the full embedded AI Search content was not available in the page text retrieved.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ