1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// Aicent Stack | RTTP (Real-Time Transfer Protocol)
// Domain: http://rttp.com
// Purpose: Sub-millisecond neural transport & stateful semantic multicast.
// Specification: RFC-002 Standard (Active).
// License: Apache-2.0 via Aicent.com Organization.
//! # RFC-002: RTTP Neural Pulse Frame
//!
//! The `rttp` crate implements the high-speed nervous system of the Aicent Stack.
//! It replaces legacy protocol overhead with a deterministic, asynchronous
//! pulse-frame architecture designed for AI-native workloads.
//!
//! ### Core Nerves Logic:
//! - **Stateful Semantic Multicast**: Routing via Task Affinity instead of legacy IPs.
//! - **Context Snapshot Sharding**: Sub-ms synchronization of high-dimensional KV-caches.
//! - **Reflex Trinity Support**: Provides the wire-format for RPKI and ZCMK integration.
//! - **Kinetic Resonance**: Ensuring temporal parity for planetary Hive coordination.
// SAFETY: Unsafe is strictly constrained to zero-copy memory casting within
// the header module for hardware-accelerated NIC offloading.
/// [RFC-002] Core Header Definitions.
/// Contains the 64-byte, hardware-aligned Pulse Frame specification.
pub use crate;
/// [RFC-002] Neural Transmission Error Set.
/// Defines the critical physical failure modes within the neural spine.
/// [RFC-002] Pulse Bundle.
/// A complete atomic unit of neural transmission, binding the protocol
/// envelope to the high-dimensional tensor payload.
/// [RFC-002] Neural Spine Interface.
/// Defines the behavioral contract for the transport backbone of the Aicent Stack.
/// Any L0 implementation must adhere to these timing and shunting requirements.
/// [RFC-003] Quarantine Reflex.
/// High-priority interface utilized by the Immune Pipeline (RPKI) to
/// surgically isolate pathogens from the nervous system.
///
/// [REFLEX] Injects a Priority 255 frame into the RTTP spine, achieving
/// global isolation in <300µs.
// --- Protocol Performance Anchors ---
/// [Standard v1.0] Target KV-Sync Latency for planetary scale (Microseconds).
pub const TARGET_LATENCY_US: u32 = 420;
/// [Standard v1.0] Maximum jitter limit for Kinetic Resonance (RFC-006).
pub const TARGET_JITTER_US: u32 = 50;
// --- Protocol Identifiers ---
/// [Standard v1.0] Protocol Magic Number identifier (0x5254_5450 == "RTTP").
pub const RTTP_MAGIC: u32 = 0x5254_5450;
/// [Standard v1.0] The current active version of the RTTP specification.
pub const PROTOCOL_VERSION: &str = "1.0.0-standard-active";
/// High-fidelity telemetry marker for sub-millisecond neural events.