Skip to main content

Machine-to-Machine 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
SEMANTIC LIBRARY — FLOW ALGEBRA
MACHINE-TO-MACHINE MESSAGE ENTITY ONTOLOGY
Version: 1.0 | Date: 05 November 2026 | Language: en-GB
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-communication-entities/machine-to-machine-message-ontology.html
Status: Companion formalisation; not a verbatim extraction of hidden page specifications.

01. PURPOSE
Represent machine-to-machine (M2M) messages as typed, traceable exchanges between authorised computational endpoints, including creation, transmission, receipt, interpretation, acknowledgement and recovery.

02. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = message payload, headers, protocol metadata and current evidence.
R_t = routing, parsing, authentication, schema and transition rules.
B_t = trust, privacy, permission, time, size and resource boundaries.
K_t = endpoint, protocol, schema and conversation knowledge.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and supported(x, K_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, observations_t)
Note: The argmax is a selection rule, not a claim of calibrated probabilities.

03. CORE ENTITY
M2MMessage := (message_id, sender_id, recipient_id, created_at, protocol, schema_id, payload, correlation_id, security_context, state, evidence)
Required: message_id, sender_id, recipient_id, created_at, protocol, payload, state.
Optional: schema_id, correlation_id, reply_to, expiry, priority, checksum, signature, acknowledgement.
Identity invariant: message_id uniquely identifies one logical message within its declared namespace.

04. RELATED ENTITIES
MachineEndpoint; Agent; CommunicationChannel; Protocol; MessageEnvelope; MessagePayload; Schema; TransportSession; DeliveryAttempt; Receipt; Acknowledgement; Error; RetryPolicy; AccessPolicy; AuditRecord; ConversationState.
Relations:
Message --sentBy--> MachineEndpoint
Message --addressedTo--> MachineEndpoint
Message --encodedWith--> Protocol
Message --conformsTo--> Schema
Message --carriedBy--> CommunicationChannel
Message --correlatedWith--> ConversationState
Message --produces--> Receipt | Error
Message --governedBy--> AccessPolicy
Message --recordedIn--> AuditRecord

05. STATE TRANSITIONS
DRAFT -> VALIDATED -> QUEUED -> SENT -> RECEIVED -> ACCEPTED -> PROCESSED -> ACKNOWLEDGED
Alternative: VALIDATION_FAILED, DELIVERY_FAILED, REJECTED, EXPIRED, QUARANTINED.
VALIDATED only if syntax, schema and required metadata pass.
ACCEPTED only if receiver authentication and authorisation pass.
PROCESSED only if application handling completes according to declared semantics.
ACKNOWLEDGED only if an acknowledgement is observed or verified.
Transport receipt does not imply application processing.

06. FORMAL FLOW ALGEBRA
F_M2M = F_ack o F_process o F_accept o F_receive o F_transmit o F_validate o F_create
F_create(context) -> Message
F_validate(Message, Schema, Policy) -> ValidMessage | ValidationError
F_transmit(ValidMessage, Channel) -> DeliveryAttempt
F_receive(DeliveryAttempt) -> ReceivedMessage | TransportError
F_accept(ReceivedMessage, TrustPolicy) -> AcceptedMessage | Rejection
F_process(AcceptedMessage, Handler) -> ProcessingResult | ProcessingError
F_ack(ProcessingResult, AckPolicy) -> Acknowledgement | NoAcknowledgement
Composition is defined only where output and input types match.

07. ROUTING AND SECURITY BOUNDARIES
B_auth: authenticated sender identity where required.
B_permission: recipient and operation permissions verified.
B_schema: payload conforms to negotiated or declared schema.
B_integrity: checksum/signature verified where specified.
B_confidentiality: sensitive data uses authorised protected channels.
B_freshness: timestamp, expiry and replay checks satisfy policy.
B_capacity: payload and request rates respect configured limits.
If any mandatory boundary fails: stop processing, record reason and apply rejection/quarantine policy.

08. RECURSIVE DELIVERY AND RECOVERY
At attempt n, inspect delivery outcome and remaining retry budget.
Retry only if failure is retryable, deadline remains and policy permits.
Use bounded exponential backoff or a declared retry schedule.
Preserve idempotency keys across retries for logically identical operations.
Stop on confirmed success, terminal failure, expiry or retry exhaustion.
F_retry(n+1) = F_retry(n) only while permitted; recursion is finite by retry bound.
Do not infer exactly-once delivery from retries or acknowledgements alone.

09. INFERENCE RULES
IF schema_valid AND policy_valid THEN eligible_for_transmission.
IF signature_invalid THEN reject_or_quarantine.
IF received AND authorised THEN eligible_for_application_processing.
IF duplicate_message_id AND idempotency_record_exists THEN apply_duplicate_policy.
IF acknowledgement_missing THEN status=unconfirmed, NOT necessarily failed.
IF processing_failed AND compensating_action_defined THEN evaluate_compensation.
IF evidence_missing THEN confidence=unknown and avoid unsupported success claims.

10. TRI-MAPPING
Entity mapping: message, endpoint, protocol, channel, policy, receipt, error.
Relationship mapping: sentBy, addressedTo, carriedBy, conformsTo, acknowledgedBy.
Execution mapping: create -> validate -> transmit -> receive -> accept -> process -> acknowledge.
All three mappings share stable message_id and correlation_id references.

11. VALIDATION AND EVIDENCE
Capture: timestamps, schema version, sender/receiver identifiers, delivery attempts, validation outcomes, processing result and acknowledgements.
Distinguish observed facts from inferred status.
Record provenance and permitted audit metadata without unnecessarily retaining secret payloads.
Test malformed messages, unavailable endpoints, duplicates, out-of-order delivery, replay attempts, expired messages and incompatible schema versions.

12. CONDITIONAL EXECUTION GUARANTEE
Given well-typed inputs, enforced boundary checks, a terminating retry policy and correct implementations of each stage, the flow reaches a declared terminal state or an explicit failure state.
This does not guarantee network availability, successful delivery, semantic correctness of payloads or exactly-once processing.

13. MINI EXECUTION EXAMPLE
Input: endpoint_A sends command C to endpoint_B using schema V.
Validate C against V and sender permission.
Transmit with message_id M and correlation_id Q.
Receiver checks integrity, freshness and permission.
Handler executes only if accepted; records result linked to M.
Return acknowledgement if supported and observed.
Output: acknowledged result OR explicit unconfirmed/failure state with evidence.

14. UPDATE MODEL
On protocol/schema/policy change: version the relevant entity, rerun compatibility tests, update K_t and revalidate affected flows.
Retain backward compatibility only when verified; do not assume it.

15. CITATION AND LICENCE NOTE
Source attribution: Mark Anthony Higgins — Sky Recursive AI, Kireth Research, Machine-to-Machine Message Ontology.
Companion text created for the Semantic Library. Consult the source page and its Open Research Licence for applicable reuse terms.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ