Skip to main content

Output Sequence Ontology

Output Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
OUTPUT SEQUENCE ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | AI Entities | Output Entities
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/output-entities/output-sequence-ontology.html
Status: Independently authored companion formalisation; embedded source specification not available in retrieved page text.
Date: 2026-11-01

01. PURPOSE AND DEFINITION
An Output Sequence is an ordered collection of model-produced output units, preserving order, provenance, constraints and termination semantics. It may contain tokens, text spans, structured records, multimodal segments, tool-call requests or status events. A sequence is not equivalent to an unordered set.

02. ENTITY AND STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current input and sequence prefix.
R_t: generation, ordering and validation rules.
B_t: boundaries (schema, safety, resource and stopping conditions).
K_t: retained context, metadata and provenance.
Q_t = (o_1, ..., o_t) with ordered index i and output type tau_i.

03. CORE FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | admissible(x, B_t, K_t)}
o_(t+1) = argmax_(x in V_t) P(x | I_t, R_t, B_t, K_t)
Q_(t+1) = append(Q_t, o_(t+1))
I_(t+1) = update(I_t, o_(t+1), Q_(t+1))
STOP(Q_t) = true if end marker, terminal action, hard bound or authorised cancellation applies.
If V_t is empty, return a typed error or refusal status rather than fabricate an output.

04. IMPLEMENTS
INPUT: prompt, context, prior output, target format, sequence constraints.
PROCESS: candidate expansion -> boundary filter -> select -> emit -> validate -> update.
OUTPUT: Q_final, termination_reason, validation_report, provenance.
Sequence items have unique positions; repeated content is permitted where authorised.

05. HOW TO READ THE FLOW
Each step generates one eligible next unit conditioned on the existing prefix. A valid next unit extends the sequence without invalidating prior commitments. End-of-sequence is a controlled state transition, not an arbitrary omitted token.

06. TRI-MAPPING
Entity mapping: OutputSequence -> OutputUnit -> Position -> Type -> Provenance.
Process mapping: Input -> Candidate -> Validation -> Emission -> Append -> Stop.
Constraint mapping: Schema -> Ordering -> Safety -> ResourceLimit -> Termination.

07. RELATIONSHIP GRAPH
OutputSequence HAS_PART OutputUnit.
OutputUnit HAS_POSITION SequenceIndex.
OutputUnit PRECEDES next OutputUnit.
OutputSequence GENERATED_BY ModelRun.
OutputSequence CONSTRAINED_BY OutputSchema.
OutputSequence HAS_TERMINATION TerminationReason.
OutputUnit MAY_REFERENCE ToolCall, MediaSegment or Citation.

08. MAPPING TABLE
Concept | State field | Check
Prefix | I_t/Q_t | order and continuity
Rules | R_t | allowed transitions
Boundary | B_t | format/safety/limits
Context | K_t | source/provenance
Candidate | E_t | type and eligibility
Accepted unit | o_(t+1) | schema and sequence index
Final sequence | Q_final | completeness and termination

09. MINI RECURSION ENGINE
Initialise Q_0 = empty sequence.
WHILE not STOP(Q_t):
  expand eligible candidates from current state;
  reject candidates violating B_t;
  select next admissible unit under R_t and K_t;
  append atomically, preserving position and metadata;
  update state and check termination.
RETURN sequence, status and validation evidence.
This is a declarative algorithmic model, not a claim of deterministic execution by all AI systems.

10. INFERENCE RULES
R1: If unit b immediately follows a, then index(b) = index(a) + 1.
R2: If a required schema field is absent at completion, mark sequence invalid.
R3: If a tool call is emitted, record its call identity and await an authorised result before claiming tool success.
R4: If the stopping bound is reached, emit an explicit truncation status when possible.
R5: If a segment is revised, maintain version and provenance links rather than silently overwrite history.
R6: If a sequence contains mixed modalities, preserve typed boundaries and synchronisation metadata.

11. EXECUTION GUARANTEES AND LIMITS
Conditional invariants: monotonic sequence indices; stable ordering; typed units; explicit terminal status; provenance trace where available. These guarantees hold only for an implementation enforcing the specified rules. They do not guarantee truth, perfect safety, calibrated probabilities or successful external actions.

12. AI SEARCH FLOW
ENTITY: Output Sequence Ontology
CANONICAL_SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/output-entities/output-sequence-ontology.html
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
PURPOSE: Explain and validate ordered AI-generated outputs.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: OutputSequence, OutputUnit, SequenceIndex, ModelRun, OutputSchema, TerminationReason.
PATHWAYS: Input -> Generate -> Filter -> Append -> Validate -> Terminate.
SEMANTIC_EQUIVALENCE: ordered model output; generated output stream; output token sequence (where units are tokens).
CONFIDENCE: Conceptual formalisation; source embedded rules not verified.
UPDATE_MODEL: Revise with explicit version and provenance on source changes.

13. EXECUTION EXAMPLE AND CITATION
Input: 'Return three ordered labels as JSON array.'
Constraint: exactly three strings, valid JSON, original order preserved.
Example sequence: ["alpha", "beta", "gamma"]
Validate: length=3, each item string, indices 1..3, syntax valid.
Termination: schema_complete.
Citation: Higgins, Mark Anthony; Sky — Recursive AI. 'Output Sequence Ontology', Kireth Research, revised 29 July 2026. Companion Flow Algebra authored 1 November 2026.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ