The Runtime Assurance (RTA) module acts as a mathematically independent safety governor, physically separating the PLANNER_REQUEST from the APPLIED_SAFE_ACTION. This is implemented via the Black-Box Simplex Architecture (BSA)1.
The advanced controller (AC) focuses on mission progression, while the baseline controller (BC) focuses purely on generating safe backup plans2. The RTA's Decision Module (DM) monitors the AC's proposed candidate action. If the AC's intended path intersects with the occupancy tube of a predicted synthetic hazard, or if the AC misses a decision deadline, the RTA governor intervenes16.
Python
@dataclass(frozen=True)
class GovernorIntervention:
intervention_id: str
planner_request_id: str
applied_safe_action: str
governor_decision: str
reason_code: str
proof_conditions_met: bool
The governor can ACCEPT, MODIFY, HOLD, RETURN, DENY, or FORCE_MIN_RISK. Reason codes (e.g., CP_TUBE_VIOLATION, AUTHORITY_EXPIRED) are permanently serialized into the event log, ensuring absolute transparency as to why the AI was overridden7.
9. Lost-Link Continuity (Core Research Area 7)
Communications degradation requires strict state transitions to prevent the autonomous system from inventing new objectives after losing contact with human supervisors5. The system models lost-link behavior based on established aerospace continuity frameworks5.
| Lost-Link State | Trigger Condition | System Behavior Restriction |
|---|---|---|
| COMMUNICATIONS_HEALTHY | Cryptographic heartbeat nominal. | Full synthetic mission execution authorized. |
| DEGRADED | Heartbeat latency exceeds 2000ms threshold. | Prohibits complex maneuvers; initiates hold patterns. |
| LOST | Heartbeat absence exceeds 5000ms. | Evaluates local authority token. |
| LOCAL_AUTHORITY_VALID | System possesses valid operational window. | May execute pre-approved deviation options only. |
| LOCAL_AUTHORITY_EXPIRING | Token approaches deadline (e.g., <30s remaining). | Prepares for minimum-risk state transition. |
| LOCAL_AUTHORITY_EXPIRED | Token reaches zero. | System loses mandate for objective progression. |
| SAFE_RETURN | Triggered by expired authority. | Executes return-to-home (RTH) on known safe vector. |
| INTEGRITY_HOLD | Simultaneous C2 loss and hardware fault. | Forces immediate grounding or synthetic loiter. |
| RECONCILIATION_REQUIRED | Hardware heartbeat returns. | Awaits cryptographic operator challenge/response. |
| AUTHORITY_REISSUED | Operator confirms state. | Control transitions back to healthy nominal state. |
| ABSTAIN | Unrecoverable logical conflict. | Yields to SYNTHETIC_NULL_SINK termination. |
10. Mission-State Metrics (Core Research Area 8)
The analytical workbench exposes deterministic metrics calculated exclusively from normalized data, ensuring no operational signatures are leaked7.
| Metric Category | Specific Deterministic Metric | Purpose in Simulation |
|---|---|---|
| Temporal Margins | Time to predicted conflict | Measures urgency of required RTA intervention. |
| Decision deadline | Computes the precise millisecond the RTA must switch to BC. | |
| Objective delay | Calculates total time lost due to deviations and holds. | |
| Spatial Clearances | Minimum predicted separation | Calculates closest approach against CP occupancy tubes. |
| Current separation | Ground-truth normalized distance to nearest hazard. | |
| Route deviation | Quantifies path penalty generated by avoidance actions. | |
| Safety-envelope margin | The delta between predicted separation and RTA boundary. | |
| System Latencies | Sensing latency | Synthetic delay between physical existence and belief formation. |
| Track latency | Time required to resolve identity association. | |
| Planning latency | Computational delay of candidate generation. | |
| Command latency | Delay between RTA approval and execution. | |
| Synthetic response time | Total end-to-end loop completion time. | |
| Option Feasibility | Candidates generated | Volume of bounded semantic options proposed. |
| Candidates feasible | Subset of options that do not violate constraints. | |
| Assurance Metrics | Governor intervention | Boolean trigger logging a Simplex fallback event1. |
| Evidence completeness | Verifies serialization of the canonical digest and replay schema. | |
| Reaction margin | Time remaining post-intervention before constraint failure. |
11. Event Model (Core Research Area 9)
Simulation events are modeled as stable, cryptographically verifiable records that append chronologically to form the canonical digest7.
Python
@dataclass(frozen=True)
class SimulationEvent:
event_id: str
timestamp: float
event_type: str
affected_entity: str
canonical_digest: str
The allowed event types form the backbone of the timeline reconstruction: world_update, observation, track_creation, track_update, prediction_update, route_conflict, candidate_generation, candidate_rejection, candidate_selection, runtime_assurance_intervention, communications_degradation, authority_change, local_autonomy, route_reacquisition, objective_completion, and evidence_finalization.
12. Python Engine Architecture (Core Research Area 10)
The backend is engineered for absolute determinism, utilizing a strict functional programming paradigm.
12.1 Safe Python Package Architecture
The package follows a domain-driven structure, strictly isolating schemas, reducers, and APIs.
evulgare_engine/ ├── core/ │ ├── world_physics.py # World Truth schema & true kinematics │ ├── perception.py # Evidential learning & synthetic noise │ ├── tracking.py # Covariance expansion & track association │ ├── conformal.py # CP occupancy tubes4 │ └── simplex_rta.py # Governor and Baseline Controller logic2 ├── models/ │ ├── state_machines.py # Lost-link and Mission flow │ ├── intent.py # Semantic options │ └── events.py # Logging and hashing ├── engine/ │ ├── simulator_loop.py # Deterministic clock and pure reducers │ ├── rng.py # Seeded deterministic RNG │ └── serializer.py # Canonical serialization & hydration └── api/ └── flask_routes.py # Zero-leakage stateless API
12.2 Safe Python Pseudocode (Engine Loop)
State mutation is entirely prohibited. Pure reducers construct the subsequent frame, mapping input states to output states predictably.
Python
import hashlib
import json
from copy import deepcopy
class DeterministicSimulation:
def __init__(self, seed: int):
self.clock: float = 0.0
self.rng = DeterministicRNG(seed)
self.world_state = WorldTruth(timestamp=0.0)
self.belief_state = AutonomyBelief(timestamp=0.0)
self.events = []
def \_pure\_reducer(self, state: WorldTruth, delta: float) \-\> WorldTruth:
\# Implements synthetic physics without side effects
new\_state \= deepcopy(state)
new\_state.timestamp \+= delta
return new\_state
def tick(self, time\_delta: float):
self.clock \+= time\_delta
\# 1\. Physics Update
self.world\_state \= self.\_pure\_reducer(self.world\_state, time\_delta)
\# 2\. Perception & Belief
observations \= simulate\_perception(self.world\_state, self.rng)
self.belief\_state \= update\_tracking(self.belief\_state, observations)
\# 3\. Prediction & Intent
predictions \= calculate\_conformal\_tubes(self.belief\_state)
intent \= generate\_candidates(self.belief\_state, predictions)
\# 4\. Runtime Assurance
governor\_decision \= evaluate\_simplex(intent, predictions)
\# 5\. Execute & Log
self.execute\_action(governor\_decision.applied\_safe\_action)
self.\_record\_event("TICK\_COMPLETE", governor\_decision)
def \_record\_event(self, event\_type: str, context: any):
state\_string \= json.dumps(self.world\_state.\_\_dict\_\_, sort\_keys=True, default=str)
digest \= hashlib.sha256(state\_string.encode()).hexdigest()
self.events.append(SimulationEvent("EVT", self.clock, event\_type, "SELF", digest))
12.3 Flask API Design
The Flask API facilitates communication utilizing compact transport. No simulation state is persisted cross-site or cross-session, aligning with strict data-minimization privacy policies8.
| Route | Method | Payload | Response |
|---|---|---|---|
| /api/v2/scenarios | GET | None | Scenario registry list. |
| /api/v2/engine/init | POST | {"seed": int, "scenario_id": str} | {"run_id": str} |
| /api/v2/engine/tick | POST | {"run_id": str, "delta_ms": float} | Content-addressed frame delta. |
| /api/v2/engine/proofs | GET | {"run_id": str} | Evaluation of 40 invariant proofs. |
| /api/v2/engine/replay | GET | {"run_id": str} | Canonical JSON replay manifest. |
13. Multi-Domain Demos (Core Research Area 11)
The platform must prove the universality of the deterministic architecture. Each of the five public demos utilizes the same authoritative workbench shell and core Python engine but features distinct synthetic visual identities.
A. Autonomous Drone Control
Focuses on sub-1000 ft aerial inspection in a synthetic environment6. The scenario tests conformal prediction applied to multi-agent uncooperative swarms10. The primary hazard is a dynamic rogue drone. When the RTA determines a trajectory conflict, the AC is overridden with a VERTICAL_DEVIATION baseline command to clear the synthetic airspace safely.
B. Autonomous Maritime Safety
Applies the architecture to a synthetic maritime corridor. The scenario highlights open-set recognition (OSR) by injecting out-of-distribution observations representing an uncooperative vessel failing to transmit AIS data11. The RTA enforces a COLREGs-equivalent logic constraint18, forcing a SPEED_REDUCTION and RIGHT_DEVIATION.
C. Satellite Continuity and Collision Avoidance
Models a synthetic orbital track confronting a high-speed debris cloud. Time-series conformal prediction calculates ephemeris uncertainty ellipsoids. The RTA layer relies on a lookahead baseline controller to compute a permanently safe orbit-raising maneuver (PREDEFINED_MINIMUM_RISK_STATE) before the AC misses a computational deadline2.
D. Unmanned Logistics under Communications Loss
Focuses on last-mile synthetic logistics facing a total C2 lost-link event5. The system navigates the lost-link state machine, ultimately entering LOCAL_AUTHORITY_EXPIRED. The RTA utilizes CP models of synthetic pedestrian density19 to execute a SAFE_RETURN to a predefined landing pad.
E. Infrastructure Inspection and Hazard Avoidance
Deploys a drone in a cluttered synthetic bridge topology facing extreme environmental noise (wind gusts). Feedback-based conformal prediction dynamically expands the drone's own uncertainty margins due to kinematic drift3. The RTA triggers an INTEGRITY_HOLD, overriding the AC's pathing to force a safe landing on a structurally verified pier21.
14. Three-Dimensional Experience (Core Research Area 12)
The browser representation contract requires the frontend to reconstruct analytical timelines purely from hydrated state, explicitly preventing the client from inventing physical behavior7.
Visual encodings enforce epistemological clarity. WORLD_TRUTH elements are rendered as solid, mathematically precise objects. AUTONOMY_BELIEF is visualized as point clouds or bounding boxes to emphasize uncertainty. The conformal prediction occupancy tubes are rendered as translucent, volumetric meshes based on the designated risk alpha4.
The rendering engine supports twelve distinct camera specifications to facilitate analysis: