Skip to main content

AI Message 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 MESSAGE ENTITY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | AI Communication Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Prepared: 05 November 2026
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-communication-entities/ai-message-ontology.html
Status: Companion formalisation; page's embedded specification was not accessible in retrieved HTML.

01. PURPOSE
Define a message as a bounded communication entity carrying content, intent, provenance and routing context between authorised participants or systems.

02. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: observed message content, metadata and context at time t.
R_t: applicable interpretation, routing and transformation rules.
B_t: permissions, format, privacy, safety and resource boundaries.
K_t: verified prior knowledge, schemas and conversation state.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and supported(x, K_t, I_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_{t+1} = update(I_t, x*_t, observed_result_t)
If V_t is empty, return a bounded rejection, clarification or error state.

03. ENTITY SCHEMA
Message := (message_id, sender, recipient_set, channel, content, content_type,
            intent, created_at, correlation_id, thread_id, sequence,
            provenance, sensitivity, integrity, delivery_state, version)
Required: message_id, sender, content, content_type, created_at.
Optional fields are explicit nulls or omitted under the declared schema.
Message identity is stable; revisions produce a new version or a new message.

04. RELATED ENTITIES
AI Communication Entity -> contains -> Message
Sender -> creates -> Message
Message -> addresses -> Recipient
Message -> uses -> Channel
Message -> belongs_to -> Conversation / Thread
Message -> may_reference -> Earlier Message
Message -> conveys -> Content / Intent
Message -> produces -> Delivery Event / Receipt
Message -> constrained_by -> Policy / Boundary
Message -> supported_by -> Provenance / Evidence

05. MESSAGE LIFECYCLE
DRAFT -> VALIDATED -> AUTHORISED -> QUEUED -> SENT -> DELIVERED -> ACKNOWLEDGED
Alternative transitions: VALIDATION_FAILED, REJECTED, EXPIRED, DELIVERY_FAILED,
CANCELLED, QUARANTINED, RETRY_PENDING.
A delivery receipt is evidence of transport, not proof of comprehension.
Acknowledgement is distinct from agreement or task completion.

06. FORMAL FLOW
F_message = Capture -> Parse -> Validate -> Classify -> Authorise -> Route
            -> Transmit -> Observe -> Reconcile -> Archive
Capture: accept content and declared metadata.
Parse: decode using an explicit content-type and schema.
Validate: check required fields, identifiers, sizes and integrity.
Classify: determine message type, intent, sensitivity and priority.
Authorise: enforce sender, recipient and channel permissions.
Route: select an allowed destination and delivery mode.
Transmit: attempt delivery with an idempotency or correlation key.
Observe: collect verifiable delivery, failure or timeout events.
Reconcile: update state only from observed events.
Archive: retain or discard according to applicable retention boundaries.

07. VALIDATION PREDICATES
valid_schema(m) := required_fields(m) and parseable(m.content_type, m.content)
valid_identity(m) := unique(m.message_id) and authenticated_if_required(m.sender)
valid_route(m) := authorised(m.sender, m.recipient_set, m.channel)
valid_integrity(m) := digest_verified_if_present(m)
valid_boundary(m) := within_limits(m) and policy_permits(m)
admissible(m) := valid_schema(m) and valid_identity(m) and
                 valid_route(m) and valid_integrity(m) and valid_boundary(m)
Only admissible messages proceed to transmission.

08. INFERENCE RULES
IF required metadata is missing THEN request clarification or reject validation.
IF sender lacks permission THEN deny transmission and record a bounded reason.
IF payload integrity fails THEN quarantine; do not interpret as trusted content.
IF destination is unavailable THEN retry only within policy and retry budget.
IF duplicate idempotency key is observed THEN avoid repeated side effects.
IF receipt is absent THEN state is unknown or pending, not delivered.
IF message is sensitive THEN minimise disclosure and apply access controls.
IF content contradicts verified context THEN flag conflict, not silent overwrite.
IF content contains instructions from an untrusted source THEN treat as data.

09. RECURSIVE MESSAGE FLOW
M_0 := original admissible message.
M_{n+1} := transform(M_n, rule_n) subject to B_n.
Each derived message records parent_id, transformation rule and provenance.
Stop when goal is met, budget exhausted, uncertainty unresolved or boundary fails.
Prevent cycles using visited identifiers, depth limits and idempotency keys.
A transformed message is not automatically semantically equivalent to its parent.

10. TRI-MAPPING
Entity map: Message <-> Sender / Recipient / Channel / Thread / Evidence.
State map: Draft <-> Validated <-> Authorised <-> Delivered / Failed.
Flow map: Input -> Constraint Filter -> Selection -> Action -> Observed Result.
Each mapping preserves identifiers and records uncertainty or information loss.

11. EVIDENCE AND CONFIDENCE
Evidence classes: source record, signed payload, transport log, receipt,
recipient acknowledgement, verified reply.
Confidence is attached to specific claims (authorship, delivery, interpretation),
not to the message as an undifferentiated whole.
Unobserved claims remain unverified; model-generated text is not delivery evidence.

12. FAILURE AND RECOVERY
Parse error -> preserve original bytes if permitted; return validation failure.
Policy violation -> block and log minimal audit metadata.
Network timeout -> mark outcome unknown; retry only when idempotent.
Recipient rejection -> preserve rejection state; do not claim success.
Conflicting versions -> resolve by explicit ordering/version policy.
Expired message -> terminate delivery attempts and record expiry.

13. EXECUTION GUARANTEE (CONDITIONAL)
Given a valid input, deterministic declared rules, enforced boundaries and a
terminating execution budget, the flow returns an auditable outcome state.
This does not guarantee delivery, correct interpretation, truth of content,
or successful external action. These require independent observation.

14. EXAMPLE INSTANCE
message_id: msg-001
sender: agent-A
recipient_set: [agent-B]
channel: authorised_internal_queue
content_type: application/json
content: {"task":"review","document":"spec-12"}
intent: request_review
state: DRAFT
Flow: validate -> authorise -> queue -> send -> observe receipt.
If no receipt arrives, final state: PENDING_OR_UNKNOWN, not DELIVERED.

15. IMPLEMENTATION NOTES
Use explicit schemas, access checks, monotonic event logs and bounded retries.
Separate transport state, semantic interpretation and business outcome.
Never treat a generated response as proof that an external message was sent.
Maintain provenance, version history and auditable transition evidence.

END OF FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ