TEXT OUTPUT ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | AI Entities | Output Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/output-entities/text-output-ontology.html
AUTHORS: Mark Anthony Higgins — Sky, Recursive AI
COMPANION FORMALISATION: 1 November 2026
STATUS: Newly authored Flow Algebra companion; not a verbatim extraction of hidden page specifications.
01. PURPOSE
Define a Text Output entity as an AI-produced sequence of textual units, derived from a model output state and subject to constraints on meaning, format, safety, and provenance.
02. ENTITY DEFINITION
TextOutput := (id, content, tokens, language, format, source, provenance, constraints, quality, timestamp)
content: ordered character string; tokens: ordered token sequence; language: language identifier; format: plain text, markdown or another declared text serialisation.
03. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = input and current generation state
R_t = rules and semantic relations
B_t = output boundaries and constraints
K_t = contextual knowledge and retained generation context
04. CORE FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
T_t = serialise_text(x*_t, language, format)
I_(t+1) = update(I_t, T_t, feedback_t)
If V_t is empty, return an explicit constrained failure state rather than asserting valid text exists.
05. IMPLEMENTS
Input -> semantic interpretation -> candidate generation -> constraint filtering -> selection -> textual serialisation -> validation -> publication or revision.
06. HOW TO READ
The expansion stage proposes candidate outputs. The boundary filter removes outputs violating declared constraints. Selection ranks surviving candidates. Serialisation creates a concrete text artifact. Validation checks the resulting artifact before release.
07. TRI-MAPPING
Entity: TextOutput
Relations: generatedBy(ModelOutput), derivedFrom(Input), governedBy(Constraint), expresses(Meaning), encodedAs(TextFormat)
Operation: generate -> filter -> select -> serialise -> validate
08. RELATIONSHIP GRAPH
AIInput -> Model -> ModelOutput -> TextOutput
Context -> GenerationRules -> TextOutput
TextOutput -> TokenSequence
TextOutput -> SemanticContent
TextOutput -> ValidationResult
TextOutput -> DownstreamConsumer
09. MAPPING TABLE
Input prompt | I_t | Requested text and instructions
Reasoning rules | R_t | Semantic and syntactic relations
Output policy | B_t | Length, format, privacy, safety and task limits
Context | K_t | Knowledge and conversation context
Candidates | E_t | Possible textual responses
Valid candidates | V_t | Responses satisfying boundaries
Selected output | x*_t | Highest-ranked valid candidate
Text artifact | T_t | Encoded final text
Feedback | feedback_t | Corrections and evaluation signals
10. MINI RECURSION ENGINE
START with S_0.
REPEAT: expand candidates; apply boundary filter; select; serialise; validate.
IF valid and completion criteria met: emit T_t.
ELSE IF retry budget remains: update state from validation feedback and repeat.
ELSE: emit failure metadata and terminate.
A finite retry budget or explicit termination condition is required.
11. INFERENCE RULES
R1: TextOutput(x) => OutputEntity(x).
R2: generatedBy(x,m) AND ModelOutput(m) AND textual(x) => TextOutput(x).
R3: TextOutput(x) AND violates(x,B) => NOT ValidTextOutput(x,B).
R4: TextOutput(x) AND passesValidation(x,B) => ValidTextOutput(x,B).
R5: derivedFrom(x,i) => provenanceLink(x,i).
R6: ValidTextOutput(x,B) does not imply factual correctness unless factual verification is independently satisfied.
12. EXECUTION GUARANTEE AND LIMITS
Conditional guarantee: if generation terminates, serialisation succeeds and all declared validators pass, the emitted artifact satisfies the implemented validators at that point in time.
No unconditional guarantee of truth, completeness, safety or convergence is claimed. Record errors, uncertainty and provenance where applicable.
13. AI SEARCH FLOW
FLOW_ID: semantic-library.ai-entities.output-entities.text-output
FLOW_VERSION: 1.0
ENTITY_TYPE: TextOutput
PURPOSE: Identify, generate, constrain, validate and relate textual AI outputs.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: AIInput, Model, ModelOutput, TextOutput, TokenSequence, TextFormat, ValidationResult
PATHWAYS: input -> generation -> output -> text serialisation -> validation
SEMANTIC_EQUIVALENCE: textual output; generated text; AI text response (context dependent)
CONFIDENCE: dependent on source evidence and validation; never automatically 1.0
UPDATE_MODEL: revise rules, constraints, mappings and source provenance when ontology changes
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/output-entities/text-output-ontology.html
LICENCE_NOTE: Refer to the publisher's current Open Research Licence for applicable terms.
END OF FLOW
Download Code
Copy to Clipboard