The CVL CORE Universal Entity Taxonomy & Memory Allocation Subsystem governs the authoritative lifecycle, physical memory layout, and concurrency contracts of all simulated actors within the spatial micro-kernel. By binding an 11-role behavioral taxonomy to a pre-warmed, contiguous 64-byte memory substrate with permanent generational heap isolation, the engine guarantees deterministic single-tick updates, zero runtime heap allocations, and sub-4.0 ms execution across 500 concurrent physical proxies.
At its foundational level, CVL CORE is a domain-agnostic, authoritative 3D spatial computing engine. The mathematical substrates required to route autonomous warehouse robots (AGVs), deconflict autonomous drone flight corridors, track heavy equipment in automated mining pits, or coordinate massive virtual worlds are functionally identical: high-frequency 3D coordinate evaluation, O(1) spatial partitioning, rigid bounding volume sweeps, and deterministic kinematics enforcement.
Traditional simulation platforms treat actors as dynamic, polymorphic objects instantiated across managed garbage-collected heaps. Under high concurrency, this architecture causes severe memory fragmentation, CPU cache thrashing, and unpredictable stop-the-world garbage collection pauses.
CVL CORE eliminates dynamic heap overhead through a strict Data-Oriented Design (DOD) paradigm. The engine decouples physical simulation state from external visual representations or client scene graphs. Simulation actors exist within an authoritative, pre-allocated memory matrix where every registered entity leases a dedicated, cache-aligned memory slot.
+---------------------------------------------------------------------------------------------------+| CVL CORE UNIVERSAL SPATIAL MICRO-KERNEL (30Hz AUTHORITATIVE) |+---------------------------------------------------------------------------------------------------+| • Contiguous Pre-Warmed Memory Substrate • O(1) Bitshifted Broadphase Spatial Hashing || • Single-Threaded Deterministic Orchestrator • 15Hz Asymmetric Egress Conflation Engine || • Role-Aware Kinematic Anti-Cheat & CCD Slabs • Crash-Isolated Out-of-Process IPC Bus |+---------------------------------------------------------------------------------------------------+ | Authoritative Spatial Authority & Role Taxonomy | +---------------------------------------+---------------------------------------+ | | v v+------------------------------------+ +------------------------------------+| ENTERPRISE & INDUSTRIAL SYSTEMS | | "THE CRUCIBLE" STRESS BENCHMARK || (Autonomous Logistics & IoT) | | (High-Density Virtual Worlds) |+------------------------------------+ +------------------------------------+| • Autonomous Drone Corridors (UAV) | | • 500 Active Kinematic Proxies || • Warehouse AGV Fleet Deconfliction| | • Sub-4.0 ms Frame Tick Validation || • Open-Pit Mining Telematics | | • Zero-Allocation Presentation SDK || • Smart City Geofencing & Volumes | | • Dynamic Mount & Vehicle Sockets || • 16-Byte High-Speed Telemetry Ingest| | • Real-Time Damage & Vitals Sync |+------------------------------------+ +------------------------------------+Actors are classified into an authoritative 11-role taxonomy. An entity’s role is established during initial admission, remains immutable for the lifetime of the session, and dictates kinematic validation bounds, collision sweeps, spatial indexing, and egress broadcast filters across both industrial and virtual world deployments:
| Role Identifier | Symbolic Constant | Industrial / Telematics Application | Crucible / Virtual World Application |
|---|---|---|---|
1 |
ROLE_DEFAULT |
Unassigned staging beacon validating cryptographic handshakes. | Unauthenticated connection socket completing protocol validation. |
2 |
ROLE_OBSERVER |
Passive telemetry visualizer or remote monitoring console. | Non-physical spectator camera banished to -9999.0, -9999.0, -9999.0. |
3 |
ROLE_ADMIN |
Privileged operations console, field supervisor, or diagnostic logger. | Privileged admin operator streaming 1.0Hz server vitals and diagnostics. |
4 |
ROLE_OPERATOR_HUMAN |
Human teleoperation pilot (teleoperated crane, remote vehicle). | Interactive human player evaluated under strict 30Hz anti-cheat rules. |
5 |
ROLE_OPERATOR_SYNTHETIC |
Simulated traffic actor or automated synthetic fleet load. | Autonomous stress bot swarm proving multi-hundred proxy concurrency. |
6 |
ROLE_MOBILE_GROUNDED |
Automated Guided Vehicle (AGV), haul truck, or pallet rover. | Ground avatar or terrestrial mount subject to gravity and jump limits. |
7 |
ROLE_MOBILE_AERIAL |
Autonomous inspection drone or delivery UAV (6-DOF flight limits). | Aerial vehicle, flying mount, or aircraft subject to flight ceilings. |
8 |
ROLE_MOBILE_AMBIENT |
Non-critical sensor beacon or cullable ambient facility marker. | Ambient wildlife or decorative world actor cullable during CPU spikes. |
9 |
ROLE_PROJECTILE_BALLISTIC |
High-velocity sensor ping, laser scanner ray, or ballistic ping. | Continuous collision detection (CCD) ballistic projectile. |
10 |
ROLE_STATIC_WORLD_OBJECT |
Warehouse rack, boundary barricade, or surveyed mining obstacle. | Static world architecture or barrier bypassing 15Hz kinematic broadcast. |
11 |
ROLE_VOLUME_TRIGGER |
Geofenced hazard perimeter, automated loading dock, or blast zone. | Non-blocking trigger volume applying environmental status effects. |
The 11-role taxonomy segregates processing workloads into three distinct execution paths within the authoritative 30Hz simulation frame:
Roles 4, 5, 6, 7): Evaluated via role-aware kinematic governors, broadphase cell re-binning, and static obstacle sweeps. Grounded roles enforce vertical displacement ceilings (5.0m maximum delta), whereas aerial roles evaluate full 6-DOF translation constrained to configured altitude ceilings.Roles 9, 11): Ballistic projectiles bypass standard kinematic clamps, stepping along Cartesian trajectory vectors with inverse-direction continuous collision sweeps. Volume triggers evaluate localized 9-cell proximity sweeps to apply status flags and speed modifiers without running expensive depenetration solvers.Roles 2, 8, 10): Spectator proxies maintain telemetry ingestion without consuming physics cycles. Static world objects publish geometry definitions once during client staging and are excluded from 15Hz world broadcast streams.All entity registry transitions, 16-byte canonical Entity Identifier (EID) bindings, and 64-byte memory slot assignments execute atomically on the Main Thread via the Authoritative Simulation Orchestrator.
flowchart LR
classDef gateNode fill:#0c1322,stroke:#00a8ff,stroke-width:2px,color:#ffffff;
classDef stageNode fill:#071912,stroke:#10b981,stroke-width:2px,color:#ffffff;
classDef activeNode fill:#150d24,stroke:#a855f7,stroke-width:2px,color:#ffffff;
subgraph S1 ["Phase 1: Handshake & Staging"]
direction TB
U0["<b>0 // UNAUTHENTICATED</b><br/>TCP Socket Accepted<br/>Zero Spatial Presence"]:::gateNode --> H1["<b>1 // HANDSHAKING</b><br/>ATH Token & CRC32<br/>Protocol Parity Check"]:::gateNode
end
subgraph S2 ["Phase 2: Hydration & Queueing"]
direction TB
ST2["<b>2 // STAGED</b><br/>Assign 16B EID • Stream<br/>Config & 0x09 Geometry"]:::stageNode
Q3["<b>3 // QUEUED (If Full)</b><br/>FIFO Waiting Room or<br/>VIP Synthetic Bot Eviction"]:::stageNode
end
subgraph S3 ["Phase 3: Active Simulation & Reclamation"]
direction TB
A4["<b>4 // ACTIVE (CHR Ready)</b><br/>Lease 64B Slot & 16-Bit NetID<br/>30Hz Authoritative Stepping"]:::activeNode --> T5["<b>5 // TEARDOWN</b><br/>Zero-Fill 64B Slot • Recycle<br/>NetID & Offset in O(1)"]:::activeNode
end
H1 --> ST2
H1 -.->|"At Capacity"| Q3
Q3 --> ST2
ST2 ==>|"CHR\n Signal"| A4
style S1 fill:#0f172a,stroke:#38bdf8,stroke-width:1.5px,color:#fff
style S2 fill:#0f172a,stroke:#10b981,stroke-width:1.5px,color:#fff
style S3 fill:#0f172a,stroke:#a855f7,stroke-width:1.5px,color:#fff
linkStyle default stroke:#94a3b8,stroke-width:1.5px;
Entities advance through a deterministic state machine before obtaining simulation authority:
0): Socket accepted by the network reactor; assigned a temporary connection token with zero presence in the spatial grid.1): Client submits protocol version credentials. The server verifies compile-time protocol parity before allocating resources.2): Client identity is validated. The engine assigns a fixed 16-byte Entity Identifier (EID), transmits world configuration and static geometry, and halts to allow client-side collider baking.3): If active sessions reach commercial capacity, authenticated clients enter a FIFO waiting room, receiving real-time queue position updates.4): The client confirms hydration readiness (CHR\n). The engine leases a 64-byte memory slot, allocates an active 16-bit NetID, places the entity at a configurable/loaded spawn location, and begins 30Hz physics validation.5): Initiated by clean logout, anti-cheat eviction, transport silence, or socket error. Memory offsets and NetIDs are immediately reclaimed and scrubbed.Network Identifiers (NetIDs) are 16-bit unsigned integers (1 to 65535) utilized across network frames to minimize wire overhead. NetID 0 is strictly reserved as an invalid sentinel denoting unassigned entities or detached mounts.
When an entity is admitted, the engine assigns the lowest available NetID. Upon eviction, the identifier returns to a recycling pool. Re-admitted clients receive recycled identifiers only after active leases roll over, preventing stale in-flight packets from interacting with newly spawned proxies.
When interactive human operators connect to an engine instance operating at capacity, the Session Admission Controller performs an atomic VIP replacement: the oldest synthetic benchmark bot (Role 5) is evicted, its slot is cleared, and the incoming human operator is promoted into the vacated slot within a single 33.3 ms frame.
The entity taxonomy decouples physical coordinate processing from client-side visual representation. While the server tracks authoritative coordinates, spatial boundaries, and kinematics, client visualizers (such as Unity) serve strictly as presentation layers.
To maintain strict memory boundaries and eliminate allocation latency on the 30Hz simulation loop, the engine enforces two low-level invariants:
CVLEngineAPI)Client visualizers in Unity interact with the entity taxonomy and allocation substrate through the public CVLEngineAPI interface. The presentation client acts strictly as a visual proxy; it never tracks raw memory offsets or server NetID reclamation.
The integration pattern below demonstrates how client scripts subscribe to lifecycle events, bind visual proxy GameObjects from pre-warmed pools, and decouple presentation logic from network identifiers:
using System;using UnityEngine;using CVLCore.SDK;
namespace CVLCore.Client{ public sealed class CVLEntityLifecycleHandler : MonoBehaviour { [Header("Object Pooling")] [SerializeField] private GameObject localPlayerPrefab; [SerializeField] private GameObject remoteProxyPrefab;
private void OnEnable() { // Subscribe to public CVLEngineAPI lifecycle events CVLEngineAPI.OnEntitySpawned += HandleEntitySpawned; CVLEngineAPI.OnEntityDespawned += HandleEntityDespawned; CVLEngineAPI.OnNetworkStateChanged += HandleNetworkStateChanged; }
private void OnDisable() { // Enforce clean subscription hygiene to prevent delegate leaks CVLEngineAPI.OnEntitySpawned -= HandleEntitySpawned; CVLEngineAPI.OnEntityDespawned -= HandleEntityDespawned; CVLEngineAPI.OnNetworkStateChanged -= HandleNetworkStateChanged; }
private void HandleEntitySpawned(string eid, GameObject proxyInstance, bool isLocal) { // Entities are referenced strictly via permanent 16-byte canonical EID strings. // Raw transient NetIDs remain encapsulated within the core SDK transport. if (isLocal) { Debug.Log($"[CVL CLIENT] Local controller spawned for EID: {eid}"); ConfigureLocalActor(proxyInstance); } else { ConfigureRemoteProxy(proxyInstance); } }
private void HandleEntityDespawned(string eid, byte reasonCode) { // Reason codes: 0x00 Logout, 0x01 Timeout, 0x02 Speedhack, // 0x03 Duplicate Auth, 0x04 AOI Exit, 0x05 Server Shutdown Debug.Log($"[CVL CLIENT] Entity {eid} evicted with reason code: {reasonCode}");
// Proxies return to pre-warmed pools; GameObject.Destroy is strictly prohibited }
private void HandleNetworkStateChanged(EngineConnectionState state, string message) { if (state == EngineConnectionState.InQueue) { Debug.Log($"[CVL CLIENT] Connection queued: {message}"); } }
private void ConfigureLocalActor(GameObject instance) { // Enable local controller and presentation camera }
private void ConfigureRemoteProxy(GameObject instance) { // Ensure CharacterController and PhysX sync components remain stripped } }}The entity taxonomy and memory allocation subsystem enforce strict operational boundaries to ensure deterministic execution, memory stability, and zero runtime fragmentation.
All core state structures enforce pre-allocated, slotted memory layouts. Dynamic instance dictionaries are permanently barred from the simulation micro-kernel. Any attempt to set undeclared attributes at runtime raises an immediate exception, halting execution before memory corruption can occur.
Dynamic reflection, property inspection, and string-based attribute lookups are prohibited across the simulation hot path. Reflection invalidates CPU branch prediction and forces runtime engines into interpreted fallback routines. All state access must occur via direct static references or unmanaged memory offsets.
All state transitions, connection admissions, and memory reclamation routines belong exclusively to the Authoritative Simulation Orchestrator on the Main Thread. Asynchronous network workers and background tasks must never mutate entity registries directly.
Bypassing authoritative atomic methods creates descriptor leaks, dangling network identifier assignments, and desynchronization between the contiguous memory substrate and spatial grid partitions. A continuous 1.0Hz Parity Sentinel audit verifies registry conservation invariants on the simulation thread.
Client scripts and external integrations must bind exclusively to 16-byte canonical Entity Identifier (EID) strings. Network Identifiers (NetIDs) are ephemeral transport indices recycled dynamically upon entity eviction. Caching raw NetIDs across frames in client-side scripts creates targeting corruption if an entity drops and a new actor claims the recycled identifier.
Client visualizers must never invoke GameObject.Destroy() when handling entity despawns. All proxies must be retrieved from and returned to pre-warmed object pool stacks. Furthermore, non-local remote proxies must have CharacterController components and solid colliders disabled upon instantiation to prevent client-side physics engines from competing with authoritative server snapshots.
Memory capacity ceilings, role-based kinematic envelopes, and out-of-process lifecycle persistence hooks are governed through the master engine configuration and Sidecar IPC bus:
cvlcore_engine_config.json)Entity slab capacity limits and role-aware kinematic thresholds are declared in the master SSOT configuration file and mirrored directly to the Unity client via the Setup Wizard:
{ "ENGINE_CORE": { "MAX_COMMERCIAL_ENTITIES": 500, "MEMORY_STRIDE_BYTES": 64 }, "ROLE_KINEMATICS": { "MAX_GROUNDED_SPEED": 12.0, "MAX_FLYING_SPEED": 35.0, "MAX_JUMP_HEIGHT": 5.0, "MAX_FLIGHT_CEILING": 250.0 }}55557): When an entity is admitted or evicted from the allocator, the orchestrator emits immutable lifecycle frames across the loopback IPC bus so external SQLite WAL or PostgreSQL ledgers can commit state changes with 0.00 ms simulation tick impact. See Sidecar Microservices & IPC Integration Guide.CVLEngineAPI): For zero-allocation client event hooks (OnEntitySpawned, OnEntityDespawned, and OnVitalsUpdated), see Public Delegation Broker & Telemetry Controller.