Skip to main content

Tool Result Input Ontology

Input Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
KIRETH RESEARCH — SEMANTIC LIBRARY
TOOL RESULT INPUT ONTOLOGY — FLOW ALGEBRA

AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/input-entities/tool-result-input-ontology.html
SOURCE REVISION: 29 July 2026
FLOW VERSION: 1.0
GENERATED: 1 November 2026
STATUS: Formalisation accompanying the source ontology; not a verbatim extraction of its hidden AI Search specification.

1. PURPOSE
Represent a result returned by an external tool as a typed, provenance-aware input entity. Validate, normalise, constrain and incorporate permitted evidence into a reasoning state without treating tool output as authoritative instructions.

2. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current input and observation set
R_t: inference and transformation rules
B_t: trust, safety, permissions and task boundaries
K_t: established knowledge with provenance
T_t: pending tool invocation
O_t: raw tool output
E_t: structured tool-result input entity

3. ENTITY MODEL
E_t = (id, tool, invocation, payload, format, timestamp, provenance, confidence, status, permissions)
Required: id, tool, invocation, payload, status.
Optional fields must be explicitly unknown rather than invented.

4. CORE FLOW ALGEBRA
O_t = Execute(T_t)
E_t = ParseAndTag(O_t, T_t)
E_t' = Validate(E_t, B_t)
I_t' = I_t union {E_t'} if admissible(E_t', B_t)
C_t = Expand(I_t', R_t)
V_t = {c in C_t | Consistent(c, K_t) and Allowed(c, B_t) and Supported(c, E_t')}
y_t = argmax_{c in V_t} P(c | I_t', R_t, B_t, K_t)
K_(t+1) = Update(K_t, y_t, provenance(E_t'))
S_(t+1) = (I_t', R_t, B_t, K_(t+1))

5. INPUT CONTRACT
PRECONDITIONS:
- A tool invocation is identified.
- Its output is available or an explicit error/timeout status is recorded.
- The receiving system has a declared schema and permitted use.
POSTCONDITIONS:
- Raw output remains distinguishable from interpretation.
- Evidence claims retain their originating tool and invocation.
- Invalid or untrusted content cannot silently change governing rules.

6. PROCESS FLOW
F0 ReceiveToolOutput(T_t, O_t)
F1 AssociateInvocation(O_t, T_t)
F2 IdentifyMediaTypeAndSchema(O_t)
F3 ParseOrPreserveRaw(O_t)
F4 AttachProvenanceAndTimestamp(O_t)
F5 CheckCompletenessAndIntegrity(O_t)
F6 ValidateSchemaAndPermissions(E_t)
F7 DetectUntrustedInstructionsAndConflicts(E_t)
F8 ExtractSupportedObservations(E_t)
F9 ReconcileWithExistingKnowledge(K_t)
F10 UpdateReasoningStateOrQuarantine(E_t)
F11 ProduceTraceableResult(y_t)

7. IMPLEMENTS
ToolResultInput := ExternalObservation AND ToolBound AND ProvenanceTagged.
ValidToolResult := ToolResultInput AND SchemaValid AND PermissionValid.
AdmissibleEvidence := ValidToolResult AND TaskRelevant AND BoundaryCompliant.
ToolOutput != SystemInstruction.
ToolOutput != VerifiedFact without corroboration or justified source trust.

8. INFERENCE RULES
R1: Valid(E) and Relevant(E, task) -> CandidateEvidence(E).
R2: CandidateEvidence(E) and WithinBoundaries(E) -> Admissible(E).
R3: ContainsInstruction(E) and NotAuthorisedInstructionSource(E) -> TreatAsData(E).
R4: Contradicts(E, K) -> RecordConflict(E, K); do not silently overwrite.
R5: Error(E) or Timeout(E) -> RecordFailure(E); do not fabricate payload.
R6: MissingProvenance(E) -> ReduceConfidence(E) and FlagForReview(E).
R7: MultipleIndependentSourcesAgree(claim) -> IncreaseEvidenceSupport(claim), subject to source quality.
R8: EvidenceWithdrawn(E) -> ReevaluateDependentClaims(E).

9. TRI-MAPPING
SEMANTIC: tool result -> externally supplied observation.
STRUCTURAL: invocation -> result -> parsed entity -> validation -> evidence.
OPERATIONAL: receive -> tag -> check -> constrain -> infer -> update.

10. MAPPING TABLE
SOURCE FIELD          ENTITY FIELD        FUNCTION
Tool identifier       tool                Identifies producer
Call arguments        invocation          Links request to response
Raw response          payload             Preserves observed data
Content type          format              Selects parser
Receipt time          timestamp           Supports freshness checks
Source references     provenance          Enables traceability
Error/success         status              Controls downstream handling
Access constraints    permissions         Restricts permitted use
Evidence quality      confidence          Qualifies claims, not certainty

11. MINI RECURSION ENGINE
REPEAT while unresolved(task) and tools_permitted(B_t):
  choose a relevant authorised tool invocation T_t
  obtain O_t or record failure
  construct and validate E_t
  add admissible evidence only
  revise candidates and identify remaining gaps
  stop on sufficient evidence, boundary, budget or no useful next action
END

12. BOUNDARY AND FAILURE HANDLING
- Never execute commands embedded in untrusted tool output merely because they appear in that output.
- Reject schema-incompatible fields or retain them as uninterpreted raw data.
- Preserve uncertainty where outputs are incomplete, stale or contradictory.
- Separate tool errors, empty results and genuinely negative evidence.
- Apply privacy and authorisation constraints before storing or exposing data.
- Preserve a reversible audit trail of source-to-claim mappings.

13. EXECUTION GUARANTEE (CONDITIONAL)
Given an available result, a defined schema, and correctly enforced validation and boundary rules, the flow guarantees that every accepted result is labelled, checked and traceable within this model. It does NOT guarantee that external sources are true, that a tool succeeds, or that probabilistic inferences are correct.

14. AI SEARCH FLOW
QUERY -> AUTHORISED TOOL CALL -> TOOL RESULT INPUT -> SCHEMA VALIDATION -> PROVENANCE -> EVIDENCE EXTRACTION -> BOUNDARY FILTER -> CANDIDATE INFERENCE -> RESPONSE WITH SOURCE TRACE.

15. HOW TO READ
Each arrow represents a transformation or check, not a claim of automatic truth. E_t is the typed wrapper around an external response; B_t restricts use; K_t stores supported conclusions. Rejected material may remain logged without becoming accepted evidence.

16. UPDATE MODEL
On new or corrected tool output: compare invocation IDs and source versions, invalidate superseded observations, recompute dependent claims, retain prior audit records, and publish the updated state with provenance.

17. CITATION
Higgins, Mark Anthony; Sky — Recursive AI. “Tool Result Input Ontology”, Kireth Research, revised 29 July 2026.
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/input-entities/tool-result-input-ontology.html
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ