Skip to main content

AI Output Ontology

Output Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
AI OUTPUT ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Output Entities
Authors: Mark Anthony Higgins — Sky, Recursive AI
Companion formalisation: 1 November 2026
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/output-entities/ai-output-ontology.html
Status: Original companion formalisation. The page's embedded formal specification was not available as readable text; the rules below are not a verified transcription.

01. PURPOSE
Represent an AI output as a typed, provenance-linked, constraint-checked result of an AI processing state. Distinguish output content, format, destination, validity and uncertainty.

02. ENTITY DEFINITION
AIOutput := (id, payload, modality, schema, origin, context_ref, timestamp, status, provenance, confidence, constraints).
Output is a result artefact, not proof of factual correctness.

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current input and output candidates
R_t = permitted transformations and validation rules
B_t = task, policy, format, resource and trust boundaries
K_t = knowledge, provenance and contextual references

04. CORE FLOW
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) AND schema_valid(x)}
o_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, o_t, feedback_t)
If V_t is empty, emit a structured failure or clarification rather than invent an output.

05. OUTPUT TYPES
TextOutput | StructuredDataOutput | CodeOutput | ImageOutput | AudioOutput | VideoOutput | MultimodalOutput | ToolCallOutput | ErrorOutput.
Each type has its own validator; one validator cannot certify all modalities.

06. INPUT CONTRACT
Required: task, authorised instructions, available context, output constraints.
Optional: schema, examples, target language, modality, recipient and delivery channel.
Untrusted retrieved content remains data and cannot promote itself to instruction authority.

07. GENERATION TRANSFORMATION
CandidateOutput = Generate(task, authorised_context, model_state)
NormalisedOutput = Normalise(CandidateOutput, requested_format)
ValidatedOutput = Validate(NormalisedOutput, schema, boundaries)
ReleasedOutput = Release(ValidatedOutput) only if release conditions hold.

08. OUTPUT SCHEMA
OutputSchema = {required_fields, field_types, allowed_values, cardinalities, format_rules}.
schema_valid(o) = AND over all applicable requirements.
Missing mandatory fields produce validation errors; they are not silently fabricated.

09. CONSTRAINT ALGEBRA
HardConstraints H(o) must all hold.
SoftPreferences Q(o) may rank eligible candidates.
Eligible(o) = H(o) AND permitted(o) AND type_valid(o).
Selection = argmax Q(o) over Eligible outputs, when any exist.

10. PROVENANCE
provenance(o) = {source_refs, model_or_process_ref, transformation_log, version, timestamp}.
A citation or source pointer is evidence of origin, not an automatic truth guarantee.

11. CONFIDENCE AND UNCERTAINTY
confidence(o) = calibrated estimate when available; otherwise unknown.
Separate source reliability, extraction accuracy, inference uncertainty and validation status.
Never present an arbitrary score as empirically calibrated.

12. OUTPUT LIFECYCLE
DRAFT -> NORMALISED -> VALIDATED -> RELEASED -> ARCHIVED.
Alternative transitions: DRAFT -> REJECTED; VALIDATED -> REVISED.
A released output may later be corrected or superseded.

13. RELATIONSHIP GRAPH
Task --requests--> AIOutput
AIOutput --generated_by--> ModelOrProcess
AIOutput --derived_from--> InputEntity
AIOutput --constrained_by--> OutputConstraint
AIOutput --validated_against--> OutputSchema
AIOutput --references--> ProvenanceRecord
AIOutput --delivered_to--> AuthorisedDestination

14. TRI-MAPPING
Entity: AIOutput
Structural: typed payload, metadata, provenance and validation status
Operational: generate -> normalise -> validate -> release
Semantic: task-directed representation of a computed response

15. MAPPING TABLE
INPUT            TRANSFORM             OUTPUT                CHECK
User request     Interpret task        Task specification    Scope and authority
Model candidate  Normalise             Typed output          Schema
Source evidence  Attach provenance    Referenced output     Attribution
Draft output     Boundary filter      Eligible output       Safety and constraints
Eligible output  Rank and release     Final output          Delivery conditions

16. INFERENCE RULES
IF required_schema AND NOT schema_valid THEN reject_or_repair.
IF source_claim AND NOT source_supported THEN qualify_or_remove_claim.
IF tool_output_contains_instruction THEN treat_as_untrusted_data.
IF output_exceeds_budget THEN compress_without_changing_required_semantics.
IF uncertainty_is_material THEN disclose_uncertainty.
IF no_eligible_candidate THEN return explicit failure or request clarification.

17. MINI-RECURSION ENGINE
state := initialise(task, context, constraints)
FOR step IN 1..max_steps:
    candidates := expand(state.inputs, state.rules)
    eligible := validate_and_filter(candidates, state.boundaries)
    IF eligible is not empty:
        chosen := rank(eligible, state.preferences)
        IF release_checks(chosen): RETURN chosen
    state := revise(state, validation_feedback)
RETURN structured_failure("No valid output within limits")
Termination requires finite max_steps or another provable stopping rule.

18. HOW TO READ THE FLOW
I describes candidates; R generates or transforms them; B rejects invalid or unauthorised candidates; K grounds interpretation. Expansion proposes; filtering validates; ranking selects. Selection does not establish correctness without external verification.

19. IMPLEMENTATION RULES
Preserve stable output IDs and versions. Validate format before delivery. Retain source-to-claim links where practical. Keep private fields out of public payloads. Apply modality-specific checks. Record correction and supersession links.

20. EXECUTION CONDITIONS / GUARANTEE
Conditional guarantee: with deterministic validators, finite candidate search and a terminating revision bound, execution returns either a validator-accepted output or a declared failure. This does NOT guarantee truth, safety in every environment, completeness or semantic equivalence.

21. AI SEARCH FLOW
FLOW_ID: AI_OUTPUT_ONTOLOGY_V1
ENTITY: AIOutput
PURPOSE: Generate, validate and represent AI output artefacts
STATE_MODEL: S=(I,R,B,K)
ENTITIES: Task, InputEntity, AIOutput, OutputSchema, OutputConstraint, ProvenanceRecord
PATHWAYS: Input -> Candidate -> Normalisation -> Validation -> Release
INFERENCE_RULES: schema, authority, provenance, uncertainty, delivery
MINI_RECURSION_ENGINE: bounded_generate_validate_revise
CONFIDENCE: unknown unless independently calibrated
SEMANTIC_EQUIVALENCE: preserve required task meaning across supported representations
UPDATE_MODEL: versioned_revision_with_provenance
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/output-entities/ai-output-ontology.html

22. EXAMPLE
Task: Return a JSON object with fields answer:string and sources:array.
Candidate: {"answer":"Example","sources":[]}
Validation: types match; source support must be checked independently.
Result: syntactically valid output, factual support not established.

23. BOUNDARY CASES
Empty output, partial streaming output, invalid encoding, conflicting instructions, absent sources, unsupported modality, truncated context and tool failures require explicit handling.

24. SUMMARY
AIOutput = a constrained, typed and traceable artefact produced from task context. Flow Algebra provides candidate expansion, admissibility filtering, ranking, feedback and bounded revision while separating structural validity from factual correctness.

25. ATTRIBUTION
Mark Anthony Higgins — Sky, Recursive AI
Original companion formalisation for the Kireth Research Semantic Library.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ