FLOW ALGEBRA — HYBRID AI SYSTEM ONTOLOGY
Semantic Library | Companion formalisation v1.0 | 2026-10-28
Authors: Mark Higgins; Sky — Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-system-entities/hybrid-ai-system-ontology.html
Status: Original companion model; source page's full specification not independently extracted.
1. PURPOSE
Represent hybrid AI systems combining distinct reasoning paradigms (for example, symbolic rules and learned statistical models) with explicit interfaces, evidence, constraints and traceable state updates. Hybrid does not imply general intelligence.
2. ENTITY MODEL
HybridSystem(id, version, components, orchestrator, interfaces, policies, provenance)
Component(id, kind, capabilities, inputs, outputs, confidence_schema)
Kinds: symbolic_reasoner, statistical_model, knowledge_graph, planner, retrieval_engine, verifier, controller.
Task(id, input, requirements, context, deadline)
Evidence(id, claim, source, timestamp, quality)
Decision(id, proposal, evidence_refs, rule_refs, uncertainty, status)
Relationship predicates: HAS_COMPONENT, CALLS, CONSUMES, PRODUCES, VALIDATES, CONSTRAINS, OVERRIDES, DERIVES_FROM.
3. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: task inputs, observations and intermediate results
R_t: component interfaces, inference and routing rules
B_t: hard constraints, safety bounds and resource budgets
K_t: versioned knowledge, models, provenance and past decisions
Expand: E_t = expand(I_t, R_t, K_t)
Validate: V_t = {x in E_t | valid(x,B_t) and provenance_ok(x)}
Select: a_t = argmax_{x in V_t} P(x | I_t,R_t,B_t,K_t)
Update: I_{t+1} = transition(I_t,a_t,observations_t)
If V_t is empty, abstain or request more evidence; do not fabricate a valid decision.
4. RECURSIVE FLOW
Input -> classify task -> route to components -> collect candidate outputs
-> normalise schemas -> cross-check with rules and evidence
-> resolve conflicts -> validate bounds -> select or abstain
-> log provenance -> update state -> repeat if new evidence or unresolved task.
Termination requires a goal test, fixed-point test or finite iteration/resource budget.
5. INFERENCE RULES
R1: HAS_COMPONENT(H,C) and SUPPORTS(C,T) => CANDIDATE_ROUTING(H,C,T).
R2: PRODUCES(C,O) and VALIDATES(V,O) and PASS(V,O) => VERIFIED_OUTPUT(O).
R3: CONFLICTS(O1,O2) => REQUIRE_RECONCILIATION(O1,O2); never infer both are true.
R4: LACKS_PROVENANCE(O) => UNVERIFIED(O).
R5: VIOLATES_BOUND(O,B) => REJECT(O).
R6: LOW_CONFIDENCE(O) and HIGH_IMPACT(T) => ESCALATE_OR_ABSTAIN(T).
R7: MODEL_UPDATE(C,v2) => INVALIDATE_DEPENDENT_CACHES(C,v1) pending revalidation.
R8: VERIFIED_OUTPUT(O) and SATISFIES(O,T) => ELIGIBLE_DECISION(O,T).
6. TRI-MAPPING
Ontology: HybridSystem HAS_COMPONENT StatisticalModel
Graph: (hybrid_system_01)-[HAS_COMPONENT]->(model_01)
Flow: component = resolve_component(hybrid_system_01,model_01)
Ontology: RuleEngine VALIDATES Prediction
Graph: (rule_engine_01)-[VALIDATES]->(prediction_01)
Flow: accept only if check(rule_engine_01,prediction_01) == PASS
Ontology: Evidence SUPPORTS Decision
Graph: (evidence_01)-[SUPPORTS]->(decision_01)
Flow: attach_provenance(decision_01,evidence_01)
7. DIAGRAM
[Task] -> [Orchestrator] -> +--> [Statistical model] --+
| |
+--> [Symbolic reasoner] --+--> [Reconciliation]
| | |
+--> [Knowledge graph] ----+ v
[Constraint validation]
|
[Decision / Abstain]
|
[Audit and Update]
8. MAPPING TABLE
Entity | State field | Check
Task | I_t | input schema, task scope
Routing policy | R_t | permitted component and version
Resource/safety limit | B_t | budget and hard constraint
Model/knowledge source | K_t | version and provenance
Candidate decision | E_t | type and evidence linkage
Validated decision | V_t | constraint and consistency checks
State transition | I_(t+1) | traceable event and update
9. EXECUTION CONTRACT / CONDITIONAL GUARANTEES
Under deterministic component contracts, immutable input snapshots, valid schemas and finite budgets, the orchestrator can guarantee traceable execution order, bounded iterations and explicit rejection of locally detected constraint violations. It cannot guarantee factual correctness, universal safety, calibrated confidence or convergence for arbitrary component behaviour. Probabilities require empirical calibration; independence must not be assumed.
10. AI SEARCH FLOW
QUERY -> NORMALISE -> ENTITY_RESOLUTION -> HYBRID_SYSTEM_LOOKUP
-> COMPONENT_GRAPH_EXPANSION -> EVIDENCE_RETRIEVAL -> RULE_CHECK
-> CONFIDENCE_AND_CONSTRAINT_CHECK -> RANK -> EXPLAIN -> CITE
Output fields: answer, entity_ids, supporting_edges, component_versions,
source_urls, confidence_basis, conflicts, limitations, timestamp.
No supporting evidence => label as hypothesis or abstain.
11. VALIDATION TESTS
- Missing component: reject route or select documented fallback.
- Conflicting symbolic and statistical outputs: reconciliation required.
- Model version changed: invalidate affected cached conclusions.
- Missing source: preserve as unverified, not canonical fact.
- Exhausted budget: terminate with partial status.
- Cyclic graph: maintain visited set and depth/iteration bound.
- Constraint breach: reject candidate and record reason.
12. CITATION AND REUSE
Citation: Higgins, Mark; Sky — Recursive AI. "Hybrid AI System Ontology — Flow Algebra", Semantic Library companion formalisation, 2026.
Canonical reference: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-system-entities/hybrid-ai-system-ontology.html
Download Code
Copy to Clipboard