-
Notifications
You must be signed in to change notification settings - Fork 0
Architecture Evolution
This page records why the architecture changed. It is historical context, not a second roadmap or behavioural specification.
AISMixer began as a practical Python stream service centered on:
- network ingress;
- extraction and normalization of AIS NMEA text;
- multipart assembly;
- NMEA TAG handling;
- near-real-time deduplication; and
- UDP forwarding.
Logical source_id and target_id routing, immutable routing snapshots, and the optional local control plane were added later. Legacy broadcast behavior was retained for configurations without an active routing table.
Campaign A preserved Python as the reference implementation while making observable processing behavior explicit.
Its main architectural outcomes were:
- a normative behavioural contract;
- precise ingress and extraction boundaries;
- explicit multipart ordering, duplicate, conflict, and completion behavior;
- clear separation of routing identity and emitted TAG metadata;
- group-atomic multipart deduplication;
- one immutable routing decision per accepted string event;
- deterministic clock and generator seams for tests; and
- a defined surface for future differential comparison.
Campaign A did not select a native API or change the data-plane implementation language.
Campaign B focused on state as an architectural responsibility rather than an incidental collection of containers.
- One authoritative process-local owner.
- Monotonic TTL with exact boundary behavior.
- Duplicate non-refresh.
- Optional instance-wide capacity.
- Expiry before deterministic oldest-live eviction.
- Explicit reset and immutable statistics.
- Explicit per-generation assembler state.
- Unique-progress timestamps and exact duplicate non-refresh.
- Single-sentence and invalid/limit paths isolated from multipart state.
- Optional fragment and pending-group limits.
- Deterministic lifecycle outcomes and discarded keys.
- Forwarding-owned TAG
s,c, andgcleanup synchronized with assembler conflict, expiry, capacity, completion, and reset boundaries.
- One
SecureStateowner for replay records, sessions, and per-session nonces. - Separation of protocol wall time from local monotonic lifecycle time.
- Hard replay, session, and nonce capacities.
- Deterministic expiry, replacement, and eviction behavior.
- Traffic-driven cleanup and restart loss made explicit.
- Immutable statistics with mutually exclusive removal accounting.
The source repository records a Campaign B audit baseline in its canonical behavioural contract. That snapshot confirms a point in project history; its test counts are not permanent compatibility guarantees.
The current reference now makes these questions answerable for each contract-relevant state item:
Who owns it?
What is its identity?
Which clock applies?
When does it expire?
What is its capacity?
What refreshes it?
Why was it removed?
Is it durable or shared?
This is the basis for the State, Lifecycle, and Limits model and the Native-Ready Reference Foundation.
The maintained Roadmap describes possible staged work without dates:
- a coordinator plus dedicated ingress and egress workers;
- lifecycle supervision and failure handling;
- IPC distribution of routing snapshots;
- optional routing-state restoration or persistence research;
- safe configuration reload or watch behavior;
- rollback history and richer operational observability;
- additional egress and control transports;
- maritime security, spoof/anomaly, and feed-quality research.
Separately, the behavioural contract defines how any future native processing work could be evaluated through differential conformance. The roadmap does not commit to such a processor.
These are directions, not implemented guarantees. In particular, there is no multiprocessing coordinator, IPC state sharing, persistent routing, automatic reload, spoof detector, or native processor today.
- Quick Start
- Installation and Operations
- OpenWrt Deployment
- Configuration and Examples
- Inputs and Outputs
- Architecture Overview
- Data Representation, Processor, and Runtime Boundary
- Processing and Routing Model
- State, Lifecycle, and Limits
- Multipart NMEA Assembly
- TAG Handling
- Deduplication
- Routing Engine
- Behavioural Contract
- Native-Ready Reference Foundation