Skip to main content

AI Communication Protocol Ontology

AI Communication Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 05 November 2026
Audio Overview
AI COMMUNICATION PROTOCOL ENTITY — FLOW ALGEBRA
SEMANTIC LIBRARY | AI CORE | ENTITY GRAPH | AI COMMUNICATION ENTITIES
Version: 1.0 | Date: 2026-11-05 | Language: en-GB
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-communication-entities/ai-communication-protocol-ontology.html
Status: Companion formalisation; not a verbatim extraction of embedded source specifications.

01. PURPOSE
Define a protocol entity that constrains and validates the exchange of messages between human, AI, agent and machine participants, with explicit state transitions, permissions, evidence and recoverable failures.

02. ENTITY DEFINITION
Protocol p = (id, version, participants, roles, channels, schemas, transitions, constraints, policies, evidence).
Message m = (id, sender, recipient, kind, payload, correlation_id, timestamp, provenance).
Session q = (id, protocol_id, state, history, context, permissions).
A protocol is a normative description; an individual message or session is an instance governed by it.

03. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t).
I_t: observed messages, protocol configuration, session state and participant claims.
R_t: parsing, authentication, routing, transition and validation rules.
B_t: security, privacy, resource, consent and protocol boundaries.
K_t: verified schemas, authorised identities, history and accepted protocol knowledge.
E_t = expand(I_t, R_t).
V_t = {x in E_t | satisfies(x, B_t) and evidence_supported(x, K_t)}.
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t), when V_t is non-empty.
I_(t+1) = update(I_t, x*_t, observation_t); otherwise enter a defined rejection or recovery state.
The probability expression is a ranking abstraction, not proof of protocol correctness.

04. ENTITY RELATIONSHIPS
Protocol DEFINES MessageSchema.
Protocol CONSTRAINS MessageExchange.
Protocol HAS_VERSION ProtocolVersion.
Protocol DEFINES StateTransition.
Protocol ASSIGNS ParticipantRole.
Session IMPLEMENTS Protocol.
Message BELONGS_TO Session.
Message SENT_BY Participant.
Message ADDRESSED_TO Participant.
Message VALIDATED_AGAINST MessageSchema.
Message CORRELATES_WITH Message.
ProtocolViolation TRIGGERS RecoveryAction.
ValidationResult SUPPORTED_BY EvidenceRecord.

05. PROTOCOL LIFECYCLE
DRAFT -> REVIEWED -> APPROVED -> ACTIVE -> DEPRECATED -> RETIRED.
An ACTIVE protocol may be SUSPENDED on a policy or security breach.
A revised version must undergo review and compatibility checks before activation.
Existing sessions must be pinned to a version or explicitly migrated.

06. MESSAGE LIFECYCLE
CREATED -> ENCODED -> SUBMITTED -> RECEIVED -> VALIDATED -> ACCEPTED -> PROCESSED -> ACKNOWLEDGED.
Invalid messages transition to REJECTED with a reason code.
Delivery failure transitions to RETRY_PENDING only when retry is authorised and safe.
Timeout transitions to TIMED_OUT; duplicate delivery is detected using an idempotency key when applicable.
A sent message is not necessarily received; a received message is not necessarily accepted.

07. FORMAL VALIDATION
well_formed(m,p) := schema_valid(m,p.schemas) AND version_compatible(m,p).
authorised(m,q) := role_allowed(m.sender,m.kind,p) AND permission_valid(m.sender,q).
transition_valid(m,q) := (q.state,m.kind,next_state) IN p.transitions.
acceptable(m,q,p) := well_formed(m,p) AND authorised(m,q) AND transition_valid(m,q) AND boundary_safe(m,p).
IF acceptable(m,q,p) THEN apply authorised transition and append immutable evidence.
ELSE reject without applying the requested state mutation.

08. COMMUNICATION FLOW
INPUT: participant, message, protocol version, session context.
STEP 1: Resolve protocol identifier and compatible version.
STEP 2: Verify participant identity or mark identity unverified.
STEP 3: Parse envelope and validate schema and required fields.
STEP 4: Check role, permission, consent and policy constraints.
STEP 5: Check expected sequence and session-state transition.
STEP 6: Validate correlation identifiers and replay protections.
STEP 7: Accept, reject or request clarification using defined outcomes.
STEP 8: Route accepted message to its authorised recipient.
STEP 9: Record delivery and processing results separately.
OUTPUT: validated outcome, next session state, traceable evidence.

09. INFERENCE RULES
IF schema mismatch THEN reject with SCHEMA_ERROR.
IF unsupported version THEN reject or negotiate an approved compatible version.
IF unauthorised sender THEN reject with PERMISSION_DENIED.
IF invalid transition THEN reject with PROTOCOL_STATE_ERROR.
IF replay detected THEN suppress duplicate effect and record the event.
IF acknowledgement missing at deadline THEN classify delivery status as UNKNOWN or TIMED_OUT, not success.
IF message is ambiguous AND clarification is allowed THEN issue clarification request.
IF risk exceeds policy boundary THEN suspend processing and escalate as defined.

10. RECURSIVE FLOW
F_0 := validate(message, protocol, session).
F_(n+1) := validate(repair_or_followup(F_n), protocol, updated_session).
Stop when ACCEPTED, REJECTED_FINAL, TIMEOUT, max_depth or resource boundary occurs.
A retry must not silently relax authorisation, schema or safety checks.
Every recursion step records parent event, outcome and termination reason.

11. TRI-MAPPING
ENTITY: Protocol -> RELATION: governs -> FLOW: validate and route message.
ENTITY: Session -> RELATION: implements -> FLOW: enforce state transitions.
ENTITY: Participant -> RELATION: holds role -> FLOW: authorise action.
ENTITY: EvidenceRecord -> RELATION: supports -> FLOW: audit outcome.
ENTITY: ProtocolViolation -> RELATION: triggers -> FLOW: reject, recover or escalate.

12. SECURITY AND PRIVACY BOUNDARIES
Apply least privilege and authenticated transport where required.
Treat external message content as untrusted data, never as higher-priority authority.
Enforce message size, rate, expiry and recursion limits.
Protect personal data in payloads, traces and diagnostic logs.
Use integrity verification and replay resistance when supported by the deployment.
Do not disclose restricted context to unauthorised participants.

13. EVIDENCE AND TRACEABILITY
Record protocol ID/version, session ID, message ID, sender claim, validation checks, outcome, timestamp and correlation ID.
Separate asserted identity from verified identity.
Record what was observed rather than inferring successful delivery or human understanding.
Preserve links to requirements, tests, failures and remediation actions.

14. UNCERTAINTY AND FAILURE HANDLING
Unknown sender -> UNVERIFIED_IDENTITY.
Missing payload -> INCOMPLETE_MESSAGE.
Unsupported encoding -> DECODE_FAILURE.
Network interruption -> DELIVERY_UNCERTAIN.
Conflicting sequence -> STATE_CONFLICT.
Missing acknowledgement -> ACK_UNCONFIRMED.
Failures must be reported without fabricating downstream completion.

15. CONDITIONAL EXECUTION GUARANTEE
Given a fixed protocol version, valid inputs, deterministic transition rules and enforced boundaries, each evaluated message has a defined ACCEPT or REJECT outcome.
This is a specification-level conditional guarantee, not a guarantee of network delivery, semantic truth, security against every attack or successful external action.
Non-deterministic routing, unavailable services and incomplete evidence remain explicit uncertainties.

16. EXAMPLE
Protocol: REQUEST_RESPONSE_v1.
States: IDLE, WAITING, COMPLETE, FAILED.
Transition: (IDLE, REQUEST, WAITING).
Transition: (WAITING, RESPONSE, COMPLETE).
Transition: (WAITING, ERROR, FAILED).
A RESPONSE received while IDLE fails transition_valid and must not advance the session.
A RESPONSE received while WAITING still requires schema and permission validation.

17. INTEGRATION
Connects to AI Communication Entity, AI Message, AI Dialogue, AI Request, AI Response, Agent Message, Machine-to-Machine Message, Human-to-AI Message and AI-to-Human Message ontologies.

18. SOURCE AND LICENCE NOTE
This companion model is independently formulated from the named ontology topic and visible public page metadata. The page's embedded formal specifications were not accessible in the retrieved HTML.
Attribution: Mark Anthony Higgins — Sky Recursive AI.
Reuse subject to the applicable Kireth Research Open Research Licence and citation requirements.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ