FLOW ALGEBRA — INTERACTIVE AI SYSTEM ONTOLOGY
Semantic Library | Companion formalisation | 2026-10-28
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-system-entities/interactive-ai-system-ontology.html
AUTHORS: Mark Higgins; Sky — Recursive AI (companion formalisation)
STATUS: Conceptual specification; source page's embedded formalism not independently extracted.
flow "InteractiveAISystemOntology" v1.0
PURPOSE
Represent an interactive AI system as a bounded, observable, human-directed process that receives input, interprets context, generates candidate responses, applies constraints, presents outputs, and updates its interaction state from feedback.
STATE_MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current input, interaction history, user intent and session context
R_t = typed relations among user, interface, system, models, tools and outputs
B_t = permissions, safety constraints, privacy limits, resource limits and consent
K_t = domain knowledge, policies, model metadata and supported capabilities
E_t = expand(I_t, R_t)
V_t = {x in E_t | valid(x, B_t, K_t)}
a_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, a_t, observed_feedback_t)
If V_t is empty, abstain or request clarification; do not invent a valid action.
ENTITY_TYPES
InteractiveAISystem: system_id, version, capabilities, lifecycle_state
HumanParticipant: participant_id, role, authorisations
InteractionSession: session_id, context, start_time, expiry
InputEvent: event_id, modality, content_ref, timestamp
IntentHypothesis: intent_id, interpretation, confidence, evidence
DialogueState: state_id, history_ref, unresolved_slots, turn_index
ModelComponent: model_id, version, supported_tasks
InterfaceComponent: interface_id, modalities, accessibility_properties
ToolEndpoint: tool_id, contract, permission_scope
CandidateResponse: response_id, provenance, quality_estimate
PolicyConstraint: policy_id, scope, decision
OutputEvent: event_id, content_ref, delivery_status
FeedbackEvent: event_id, signal, source, timestamp
AuditRecord: record_id, trace_ref, provenance, redaction_state
RELATIONSHIPS
HumanParticipant --initiates--> InteractionSession
InteractionSession --receives--> InputEvent
InputEvent --updates--> DialogueState
DialogueState --conditions--> IntentHypothesis
InteractiveAISystem --uses--> ModelComponent
InteractiveAISystem --exposes--> InterfaceComponent
ModelComponent --proposes--> CandidateResponse
CandidateResponse --checked_against--> PolicyConstraint
CandidateResponse --may_require--> ToolEndpoint
InteractiveAISystem --emits--> OutputEvent
HumanParticipant --provides--> FeedbackEvent
FeedbackEvent --revises--> DialogueState
AuditRecord --documents--> InteractionSession
PATHWAYS
P1: Receive input -> validate encoding and permissions -> identify modality
P2: Resolve user intent -> detect ambiguity -> clarify if necessary
P3: Retrieve authorised context -> propose candidate responses
P4: Evaluate policy, tool contracts, factual support and confidence
P5: Execute authorised tool only when allowed -> capture result
P6: Produce accessible output -> record delivery state
P7: Receive feedback -> update bounded session state -> continue or close
MINI_RECURSION_ENGINE
seed = (current_event, session_state, allowed_relations)
frontier_0 = {seed}
frontier_(n+1) = valid_expand(frontier_n, R_t, B_t)
visited_(n+1) = visited_n union frontier_(n+1)
stop when: no new valid nodes; sufficient evidence; depth/resource cap; or user interruption
Guard against cycles, repeated tool calls, stale context and unbounded history.
INFERENCE_RULES
R1: IF input is ambiguous AND disambiguation materially affects action THEN request clarification.
R2: IF action requires authorisation AND authorisation is absent THEN do not execute.
R3: IF candidate violates a binding constraint THEN exclude candidate.
R4: IF tool output contradicts prior assumption THEN revise hypothesis and preserve provenance.
R5: IF user feedback corrects an interpretation THEN update dialogue state without rewriting the original event.
R6: IF confidence is inadequate for a consequential claim THEN qualify, verify or abstain.
R7: IF interaction ends or retention expires THEN follow applicable retention and deletion policy.
R8: IF accessibility preference is known and supported THEN select compatible output presentation.
TRI_MAPPING
Semantic: user intent, AI capability, role, context, feedback, trust boundary
Structural: typed entity graph, session states, event edges, policy gates
Operational: receive -> interpret -> constrain -> act/respond -> observe -> update
DIAGRAM
[Human input]
|
[Interface + consent]
|
[Intent and session state] <---- [Feedback]
|
[Candidate generation]
|
[Constraint / evidence gate] --reject--> [Clarify / abstain]
|
[Authorised action or response]
|
[Accessible output] ---------> [Feedback]
MAPPING_TABLE
InputEvent | I_t | session receives new evidence
TypedRelation | R_t | links participants, tools, events and outputs
PolicyConstraint | B_t | filters disallowed actions
Knowledge/Capability | K_t | supports interpretation and candidate generation
CandidateResponse | E_t | expanded possibilities
ValidResponse | V_t | admissible candidates
SelectedResponse | a_t | selected bounded output/action
FeedbackEvent | update | next interaction state
VALIDATION
- Every entity has a stable scoped identifier and declared type.
- Events preserve timestamps, provenance and causal order where known.
- Claims about capabilities are not treated as evidence of actual performance.
- Tool use is constrained by explicit permissions and contracts.
- No inferred user preference is promoted to consent.
- Conflicting feedback is retained as uncertainty until resolved.
- Recursion terminates under configured depth, time and resource budgets.
- Privacy and accessibility checks are applied at the interface boundary.
CONDITIONAL_EXECUTION_GUARANTEE
Given valid typed inputs, consistent policy definitions, deterministic rule ordering, bounded recursion and functioning dependencies, the flow either selects a permitted candidate or returns an explicit clarification/abstention state. This is a specification-level property, not a claim that arbitrary deployed AI systems are safe, correct or deterministic.
AI_SEARCH_FLOW
QUERY: interactive AI system, human-AI interaction, dialogue state, feedback loop, interface, tool permissions
ENTITY: InteractiveAISystem
CANONICAL_SOURCE: URL above
INTENT: explain | classify | compare | trace | validate | infer
PATH: query -> resolve entity -> follow typed relationships -> check provenance -> evaluate constraints -> return qualified answer
EVIDENCE: prefer primary specifications and observed system behaviour; label unverified assertions
CITATION: cite source page and supporting evidence when reused
UPDATE: new input or verified feedback -> append versioned event -> re-evaluate state
END FLOW
Download Code
Copy to Clipboard