SEMANTIC LIBRARY — TOOL CAPABILITY ONTOLOGY
FLOW ALGEBRA / AI SEARCH FLOW
Version: 1.0 | Date: 2026-11-02 | Language: en-GB
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/tool-and-action-entities/tool-capability-ontology.html
Status: Constructed formalisation; source page's full specification not independently verified.
Authors: Mark Higgins — Kireth Research; Sky — Recursive AI (formalisation assistance)
Licence note: Refer to the current Kireth Research Open Research Licence; attribution and source citation requested.
1. PURPOSE
Represent what a tool can do, under which conditions, with which inputs, outputs, permissions, limitations and evidence. A capability declaration does not itself grant permission or guarantee successful execution.
2. ENTITY DEFINITION
ToolCapability C = (id, tool, operation, input_schema, output_schema, preconditions, permissions, constraints, effects, reliability, provenance, version).
Tool T exposes capability C; action A invokes C; policy P may authorise or prohibit A.
3. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current tool requests, arguments and observations.
R_t = relations between tools, capabilities, actions, permissions and effects.
B_t = capability boundaries, policy restrictions and environmental constraints.
K_t = known tool contracts, observed outcomes, provenance and confidence.
E_t = expand(I_t, R_t)
V_t = {c in E_t | schema_valid(c) AND permitted(c) AND preconditions_met(c) AND within_boundaries(c)}
c*_t = argmax_{c in V_t} P(c | I_t, R_t, B_t, K_t) * U(c)
S_{t+1} = update(S_t, observed_result(c*_t))
If V_t is empty: do not execute; return an explicit reason and possible safe alternatives.
4. FLOW ALGEBRA
F_capability = Discover -> Describe -> Validate -> Authorise -> Bind -> Invoke -> Observe -> Verify -> Update.
Discover(T) = set of declared capabilities supported by tool T.
Describe(C) = contract(C) + constraints(C) + provenance(C).
Validate(C,x) = schema_valid(x,C.input_schema) AND preconditions_met(C,x).
Authorise(C,x,u) = permission_check(u,C,x) AND policy_check(C,x).
Invoke(C,x) = tool execution only after validation and authorisation.
Verify(y,C) = output_schema_valid(y,C) AND result_evidence_sufficient(y).
5. RECURSIVE CAPABILITY RESOLUTION
Resolve(goal, depth, visited):
if goal already satisfied: return success
if depth exceeds limit or goal in visited: return unresolved
candidates = discover_capabilities(goal)
candidates = filter_by_schema_policy_permissions_and_constraints(candidates)
for candidate in rank(candidates):
resolve unmet prerequisites with bounded recursion
if prerequisites valid: propose candidate action
return best supported proposal or explicit failure
Recursion must be bounded, auditable and subject to the same authorisation at every level.
6. ENTITY RELATIONSHIPS
Tool --exposes--> ToolCapability
ToolCapability --implements--> Operation
ToolCapability --accepts--> InputSchema
ToolCapability --produces--> OutputSchema
ToolCapability --requires--> Precondition
ToolCapability --governed_by--> Policy
ToolCapability --limited_by--> Constraint
ToolCapability --may_produce--> Effect
Action --invokes--> ToolCapability
Observation --verifies_or_refutes--> CapabilityClaim
CapabilityClaim --supported_by--> Evidence
7. INFERENCE RULES
R1: declared(C,T) AND available(T) => candidate_capability(C), not proven executable.
R2: candidate_capability(C) AND valid_input(C,x) AND authorised(C,x) AND preconditions_met(C) => eligible_for_execution(C,x).
R3: NOT authorised(C,x) => execution_prohibited(C,x).
R4: observed_success(C,x,y) AND verified(y) => evidence_for_capability(C).
R5: observed_failure(C,x) => update reliability and diagnostic knowledge; do not assume permanent incapability.
R6: schema_mismatch(C,x) => reject invocation and report mismatch.
R7: changed_version(C) => revalidate compatibility and permissions.
R8: unsupported_claim(C) => mark unknown, not true.
8. TRI-MAPPING
Semantic: tool, capability, operation, input, output, constraint, permission.
Formal: typed relations, predicates, transition functions and admissible sets.
Operational: discover -> validate -> authorise -> execute -> verify -> record.
9. FLOW DIAGRAM
[Goal / Request]
|
[Discover tool capabilities]
|
[Validate schemas + preconditions]
|
[Check permissions + constraints]
|--- fail ---> [Reject / request clarification / safe alternative]
v
[Select eligible capability]
|
[Execute authorised action]
|
[Verify observed output]
|
[Update capability knowledge + audit record]
10. MAPPING TABLE
Concept | Algebra | Operational interpretation
Capability | C | Typed claim about supported operation
Tool | T | Executing system
Input | x | Validated invocation arguments
Boundary | B_t | Hard constraints and limits
Permission | authorised(C,x) | Explicit authority to execute
Candidate set | E_t | Discovered possibilities
Admissible set | V_t | Valid, permitted possibilities
Selection | c*_t | Highest-ranked admissible capability
Observation | y | Actual returned outcome
Knowledge update | K_{t+1} | Revised reliability and provenance
11. EXECUTION GUARANTEE — CONDITIONAL
The flow guarantees only that its defined checks are required before invocation when correctly implemented. It cannot guarantee that a remote tool is available, secure, accurate or successful. External effects require explicit authorisation and post-execution verification. Unknown states must be reported, not fabricated.
12. AI SEARCH FLOW
FLOW_ID: AI_TOOL_CAPABILITY_ONTOLOGY_V1
AUTHORS: Mark Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/tool-and-action-entities/tool-capability-ontology.html
PURPOSE: Identify, validate, rank and safely invoke tool capabilities.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: Tool; ToolCapability; Operation; InputSchema; OutputSchema; Action; Policy; Permission; Constraint; Precondition; Effect; Observation; Evidence.
PATHWAYS: request -> discovery -> contract -> validation -> authorisation -> invocation -> verification -> update.
MINI_RECURSION_ENGINE: bounded prerequisite resolution with visited-set and depth cap.
INFERENCE_RULES: R1-R8 above.
CONFIDENCE: based on provenance, version compatibility, observed success and uncertainty; not an invented numeric score.
SEMANTIC_EQUIVALENCE: capability / supported operation (context-dependent); permission is not equivalent to capability.
FLOW_HASH: calculate from canonical published text at deployment; not pre-assigned.
UPDATE_MODEL: revise declarations, constraints, versions, observed outcomes and provenance; retain audit history.
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/tool-and-action-entities/tool-capability-ontology.html
END OF FLOW
Download Code
Copy to Clipboard