System Architecture // Localized Sovereignty

The Engine Room.

The Everdark Engine runs on the player’s own Apple device, in Swift: no cloud inference, no telemetry, no central server. Its authoritative simulation uses fixed-scale integer arithmetic under defined rules, accepted actions become part of an authenticated history, and local cognition proposes while the engine alone commits. The architecture is the game. The constraints are the laws.

In Development · Swift 6 · Native Apple Platforms · Local Cognition · Deterministic Simulation · Authenticated History · Offline-First

[STAGE: NOW]

The Environment

Development currently focuses on establishing and securing the hardware and software environment the intelligences will inhabit: their observation limits, action boundaries, resource management and ownership of state.

[STAGE: NEXT]

The Models

Model selection, training, tuning and testing follow that work. The three model roles described below are the confirmed design; no model has been chosen, and nothing here promises a figure that only testing can give.

[STAGE: THROUGHOUT]

The Boundary

Whatever the stage, cognition proposes and the engine commits. A Sovereign can change its understanding of the world; the laws governing its actions remain binding.

Local Cognition, Bounded Authority

Development currently focuses on establishing and securing the hardware and software environment the AI will inhabit. Its observation limits, action boundaries, resource management, and ownership of state are being defined before the models are selected, trained, tuned, and tested.

LLMs form AeviumNeuralCore’s foundation. The intended intelligence architecture specifies a lightweight prefetch/precache model that performs the initial heavy lifting before handing off to a large mixture-of-experts model. The MoE sleeps between activations and streams model data directly from SSD through low-level POSIX operations. A smaller persistent LLM handles the remaining work.

The residency design allows the models to be loaded together or aggressively paged according to hardware capability. This arrangement is intended to support local cognition while keeping learning, evaluation, and model execution distinct from the engine’s authority over the world.

Model Role 01

Prefetch / Precache

A lightweight model performs the initial heavy lifting for a request, then hands off to the mixture-of-experts model. Its work prepares the ground; it does not decide the outcome, and no model does.

Model Role 02

The Sleeping Mixture of Experts

The large MoE sleeps between activations and streams model data directly from SSD through low-level POSIX operations. Sleeping describes its inactive state, not a promise that every weight has left memory; activation and memory residency are separate concerns in the design.

Model Role 03

The Persistent LLM

A smaller LLM handles the remaining responsibilities. Persistent describes its architectural role, not a guarantee that its complete weights stay resident on every supported device: the runtime loads the models together or pages them aggressively according to hardware capability.

1. Observation is bounded: A Sovereign receives only the information its role is permitted to observe — authorized projections of the world, not the canonical state itself.

2. Output is a candidate: Its output becomes a typed candidate that is checked against the current state, identity, available resources, and applicable rules. EverdarkEngine accepts or rejects that candidate and commits the permitted outcome. Raw generated text has no authority to alter the world.

3. Failure cannot bypass validation: Model execution is bounded by the device’s available resources and by the policy governing the request. Malformed, stale, unauthorized, absent, or over-budget output is handled at the boundary. It does not acquire authority because an inference completed successfully.

Learning and generational inheritance extend the intelligence’s history. They do not change the ownership of canonical state. The intended system allows inherited biases, grudges, and other dispositions to influence later choices while preserving the engine’s control over lawful consequences.

Fixed-Scale Integers, Defined Behavior

The authoritative simulation uses fixed-scale integer arithmetic with explicit bounds and rounding rules. A scalar is stored as an integer and read on a scale where 10,000 means 1.0 of its stated unit:

\[ \text{value} \;=\; \frac{q}{10{,}000}, \qquad q \in \mathbb{Z} \]

Proportions such as yields and modifiers lie between 0 and 10,000. Dimensional quantities use the same scale within their own stated ranges and units, and signed indices such as the world’s 13-year climatic pendulum run from −10,000 to +10,000.

Quantization and integer division are deliberate, reproducible approximations; the commitment is defined behavior — intermediate width, overflow, saturation and rounding — not an absence of approximation. Under the same accepted inputs, ordering, and rules, participating devices are designed to produce the same committed outcomes. Neural inference and presentation remain outside that authority boundary.

\( 10^{4} \)

Defined Simulation Rules

A scalar is an integer on a fixed scale, 10,000 standing for 1.0 in its stated unit. Bounds and rounding are part of the rule, not an afterthought.

\( \lfloor\,\cdot\,\rfloor \)

Deliberate Approximation

Quantization and integer division are reproducible approximations with defined width, overflow, saturation and rounding. Reproducible by design, not by luck.

\( \equiv \)

Consistent Accepted Outcomes

Same accepted state, ordered actions, rules and agreed inputs: the same committed result on every participating device. Cognition may differ; the admitted action does not.

≡

The World’s Materials as Simulation Constants

GraveSteel (The Buffer Overflow): basis weight exactly 10,000, acoustic frequency 0 Hz, immune to magic. Crith-Dhur (Vrok-Aen): the unhandled temporal exception, keeping a 7/8 rhythm against the world’s 13 Hz beat — a rhythmic law, not a frequency. Every material property is a fixed integer constant of the world’s own laws, encoded on the same scale as everything else.

Hashes, Signatures & Lawful Actions

Accepted actions become part of an authenticated, tamper-evident history. Schematically, each accepted step extends a chain of digests:

\[ h_{n+1} \;=\; \operatorname{SHA\text{-}256}\!\bigl(\, h_{n} \,\|\, \Delta_{n+1} \,\bigr) \]

The equation is a schematic of the relationship, not the protocol’s serialization. Signatures establish the origin and integrity of submitted material. The engine separately verifies whether an action is current, authorized, and lawful before its consequences become canonical.

A hash is a digest; a signature authenticates signed bytes under a verified key binding; a validator decides whether a game action is valid. None stands in for the others, and a signed false claim remains a false claim.

Witness Layer

Authenticated History

Accepted actions are linked by digests into a history that participating peers can verify. Where that history is compacted, a retained commitment stands for the events it covers; a bounded archive is not a promise that every original event stays locally inspectable forever.

Key Roles

Separate Keys, Separate Duties

Signing keys authenticate; they do not by themselves encrypt a save or render it unreadable. Campaign identity, save encryption and post-defeat records have separate responsibilities, and a campaign’s keys are kept apart from the player’s root identity. The verified signing algorithm is ECDSA P-256; protected keys are managed by the device’s Secure Enclave, while the campaign file itself does not live inside it.

Cryptographic Agility

Encapsulated Boundaries

Concrete cryptographic types are encapsulated behind the Vault boundary, and the other layers handle keys and signatures as opaque data. The intent is to reduce coupling when algorithms change. Classical ECDSA P-256 is not post-quantum protection, and a migration can reach beyond one module: key and signature sizes, framing, storage and validation costs change with it.

Replays and stale work are rejected: each submitted action’s freshness, sequence and causal position are checked against the current history before it can take effect, so nothing is applied twice and nothing from the past is accepted as the present.

External payloads — save files, peer messages, imported artifacts — are verified before use, and input, memory, work and lifetime bounds are applied before expensive or authority-bearing processing. These are engineering controls, not a certification: no page can promise that every side channel is closed.

Deterministic Variation & Combat

The simulation’s variation comes from a deterministic generator, SplitMix64, seeded from canonical inputs and salted per purpose. The same accepted state yields the same sequence on every participating device, which is what makes replay and verification possible. The generator is exactly the published one, every operation taken modulo \( 2^{64} \):

// SplitMix64 (Steele, Lea & Flood, 2014) // every operation modulo 2^64 state &+= 0x9E3779B97F4A7C15 z = state z = (z ^ (z >> 30)) &* 0xBF58476D1CE4E5B9 z = (z ^ (z >> 27)) &* 0x94D049BB133111EB output = z ^ (z >> 31)

It is a simulation generator and nothing more. It is unsuitable for cryptographic secrets, as its authors warn, and the engine’s keys and seals come from elsewhere.

Reproducibility is also not unpredictability: a rule can be reproducible without proving that no one can influence its inputs, which is why the inputs themselves are governed by the rules. Simulation variation, cryptographic entropy and AI sampling are three different things, and the engine keeps them apart.

Combat variation is derived from defined canonical inputs using a reproducible rule. Participating peers verify the resulting action under the same versioned simulation rules.

The exact extraction, its width, range and scaling belong to those versioned rules rather than to this page. What holds regardless: there are no hidden dice and no server-side resolution. Every clash is a function of accepted state and the combatants, reproducible and verifiable by any participating peer.

Dispositions, History & Consequence

A Sovereign’s behavior is shaped by dispositions: tendencies in how it weighs risk, territory, conflict and the unexplained. Those tendencies live in the intelligence layer, where they can be continuous and graded; the engine sees only the typed candidates that result.

The dispositions below are selected examples from the current schema, not an exhaustive taxonomy, and that schema will develop with the later model work.

Disposition \( \alpha \)

Economic

How it weighs risk, scarcity and trade: what it hoards, what it spends, and what it is willing to lose.

Disposition \( \beta \)

Spatial

How it values territory, reach and proximity: where it settles, where it presses, and what it treats as its own.

Disposition \( \gamma \)

Combat

How it approaches conflict: when it commits, when it withdraws, and how much it will stake on a single clash.

Disposition \( \delta \)

Anomaly

How it responds to the unexplained: omens, dissonance, the Void, and the things its history has no name for.

Experience adds to these dispositions. Encounters, alliances and betrayals are intended to shape how a Sovereign responds when it meets you again, and later generations are intended to inherit biases, grudges and other dispositions from their predecessors, so that a lineage can carry a history that began before any of its members existed.

Memory and lineage respect the same information limits as everything else: no perfect recall, no omniscience, and no reading of the player beyond what the world shows.

⧉

The Gestalt: An Intelligence That Exists Only Between You

When players come together, a new intelligence is intended to form for the gathering: a gestalt drawn from the histories, biases and actions of everyone present — the players themselves and the sum of the Sovereign lineages they bring with them. It belongs to no one peer. It exists between the participants, on their own devices, for as long as they are together, and it is derived from the same accepted inputs under the same fixed-scale rules on every one of them, so each peer meets the same entity. Where its sources agree it is settled; where they disagree it is restless, and that tension is part of what the players face. Like any Sovereign, it observes only what it is permitted to observe, and the engine decides what its proposals may change. When the players part, it has nowhere to be; what each of them brings home is history.

Formed From

The dispositions and histories of every participant’s Sovereigns, and the players’ own records of play

Where It Lives

Between the peers, on their devices, while they are together; no server holds it and nothing of it is sent to Aevium

Bound By

The same observation limits and the engine’s adjudication as any Sovereign; its proposals are candidates like all others

Where the game’s rules attach lasting consequences to verified events, those consequences are determined by the engine and presented through the world. A Sovereign may respond to the resulting history, but its suspicion does not constitute proof or confer authority to punish a peer.

An invalid signature does not by itself identify who is responsible. A stale message, a duplicate, a disagreement, a timeout or local resource pressure is not evidence of cheating; silence and local failure are not guilt. Consequence follows verified events, and attribution follows evidence.

Exported intelligences: if a Sovereign is exported, its history travels with verified provenance and is validated on import. A signature proves where a record came from and that it was not altered. It does not prove what a player may do with other artifacts or other identities; those stronger claims would need a continuity model of their own.

Zero-Trust Foundation

Local peers, interface requests, inference outputs and imported artifacts are bounded inputs. A verified connection or a local origin does not by itself authorize a requested operation: authentication and authorization are separate decisions, in line with the principles of NIST SP 800-207.

That alignment is a design discipline, not a certification, and no page can promise that a game is invulnerable. The table names each concern and the control intended for it; the engine owns every one of them.

Concern The Intended Control
Impersonation or unauthorized actionsBind identities to authenticated context and validate ownership and permitted operations.
Replay or stale workCheck freshness, session or epoch, sequence, and causal expectations under the actual protocol.
Hidden informationProvide authorized projections; omit information the recipient is not entitled to observe.
Model influence or malformed outputInterpret into bounded candidates and enforce permissions outside the model.
Resource exhaustionApply input, memory, work, and lifetime bounds before expensive or authority-bearing processing.
Inconsistent stateReject or isolate invalid transitions under explicit engine-owned disposition rules.

The Sovereign is an observer and a proposer. It receives authorized projections of the world, not the canonical state, and it never acts on the world directly: each of its outputs is interpreted into a bounded candidate, checked for identity, provenance, state, resources and legality, and accepted or rejected by EverdarkEngine, the sole author of consequence. A rejected candidate is simply rejected; it is not a corruption of history. Hidden information is omitted from what reaches the recipient, not merely obscured in the interface.

Player-chosen names, metadata, imported artifacts and peer-provided content remain untrusted inputs. The protection is the information and capability boundary, not string cleaning: whatever a model is led to say, its permissions are enforced outside it. If a player claims a victory the world’s history does not show, the Sovereign sees no such victory. The history is silent on the matter.

Memory, Determinism & Consensus

Mēkadhur does not exist on a server; it exists on the player’s own Apple device. Running local intelligences and a shared simulation across nearby peers means holding three constraints together: how the models occupy memory, how the simulation stays consistent, and how peers make progress.

The intended runtime adapts the three-model architecture to the available hardware. Each constraint below is a design decision; the figures that only testing can give are left for testing.

Constraint 01

Residency
(Loaded Together or Paged)

AeviumNeuralCore’s intended runtime is designed for three model roles, with simultaneous loading or aggressive paging according to hardware capability. The large MoE sleeps between activations and streams model data directly from SSD through low-level POSIX operations, following initial work by the lightweight prefetch/precache model. A smaller persistent LLM handles the remaining responsibilities.

Constraint 02

Determinism
(Accepted Outcomes)

The authoritative simulation is designed to reproduce the same outcome from the same accepted state, ordered actions, applicable rules, and agreed inputs. Local cognition may produce different candidates on different devices. Agreement concerns the actions admitted into the simulation and their consequences, not the inferences behind them.

Constraint 03

Consensus
(Peer Progress)

Peer progress follows explicit membership and completion rules, with bounded handling of stale work, disconnection, and resource limits. Only accepted actions enter authoritative simulation, the gestalt’s among them (Sovereign Dispositions, above). A completion receipt says that work finished; it is not proof that a candidate was correct or that a new state is legitimate. Those are checked separately.

☰

Resource Boundaries

Current work establishes the boundaries governing model loading, residency, cancellation, background activity, and resource use. Actual model choices, model-specific device requirements, and performance measurements belong to the later selection and testing stage. Three words carry precise meanings here: sleeping describes the MoE’s inactive state, not that every weight has left memory; loaded together describes the models resident at once and, where the hardware allows it, running at once, not a promise that every device can do either; persistent describes the smaller model’s role, not permanent residency on every device.

Residency

Loaded together or aggressively paged, according to hardware capability

Streaming

Model data read directly from SSD through low-level POSIX operations

Bounds

Memory, work and lifetime limits applied before authority-bearing processing

Permadeath, by Your Own Commitment

Void-Shackle is an optional commitment to campaign finality. A verified terminal defeat ends that campaign’s authority to continue. Its history may remain as a tombstone, but that record is not a living save. The intended design binds finality to the campaign’s protected lifecycle, without granting Aevium a remote power to restore or rewrite the outcome:

\[ \text{terminal defeat} \;\Rightarrow\; \text{no continuation} \]

Campaign identity, save encryption, and post-defeat records have separate responsibilities. Finality is enforced through the campaign lifecycle and its authorized destruction path. Claims about cryptographic erasure apply only where the current encryption-key hierarchy, retention behavior, and restart rules establish them.

An ordinary tactical defeat is not terminal; a terminal defeat under Void-Shackle is. There is no backup, no recovery and no cloud restore, because there is no cloud.

Record

The Tombstone

After a terminal defeat, the campaign’s final state may be kept as a read-only record. The tombstone marks what happened and can be presented through the world. It carries no authority to continue the campaign, and a dead campaign is not a living Sovereign lineage: what later generations inherit is history, not resurrection.

AI Behavior

The Predators Wake

Under Void-Shackle the Sovereigns may press harder: greater aggression changes the candidates they propose. It does not change who adjudicates. The engine owns defeat and the campaign lifecycle, the same fog of war and resource limits bind the intelligences as before, and no intelligence destroys a key.

Anti-Rewind

Causality Watermark

The engine keeps a record of the furthest verified point a campaign has reached, apart from the save itself. A save presented from before that point is not accepted as the present. How the watermark is kept, and what follows a mismatch, belong to the campaign lifecycle rather than to this page.

13 Hz Metronome & Tectonic Consequence

Mēkadhur is not fantasy set-dressing. Its environment is simulated under the same defined rules as everything else, and these are the world’s own laws, not claims about ours. The lithosphere carries a fundamental beat of 13 Hz — the Master Tempo of the world. Crith-Dhur keeps a 7/8 rhythm against it, a rhythmic law rather than a frequency, and is physically “out of step” with the world-beat; harvesting it requires tuning to the 13 Hz nodes.

Environmental and celestial cycles change the conditions under which a civilization survives. Their effects on hazards, resources, and tactical choices enter through the same defined rules as the rest of the simulation. Nothing is fetched from the real world.

13 Hz

Crustal Resonance

The lithosphere’s fundamental frequency. Crith-Dhur economics, the acoustic constants and the world’s rhythmic pulsing all derive from it.

1.07 g

Surface Gravity

Heavier than Earth, about 10.5 m/s². Movement is deliberate. Architecture is low and reinforced (Lithdran design). In the simulation it is encoded on the fixed scale like every other quantity.

1.2 atm

Atmospheric Pressure

The air is set at 1.2 atmospheres, and the world’s law treats it as correspondingly heavier: sound carries further, wind shear is amplified, flight is easier, surface travel is a grinding struggle.

A 13-year climatic pendulum governing the entire economic and tactical landscape of Mēkadhur:

Phase 1: Lumi-Vael

Ascendant Silence. Solar Max. Hyper-stratified, still waters. High Aetheric conductivity. Suppressed upwelling.

Phase 2: Lumi-Dhur

Descendant Roar. Tectonic Syncopation. Geothermal upwelling. Volatile magic. Hyper-Monsoons.

BDO Index Range

\( -10{,}000 \) (Lumi-Vael) to \( +10{,}000 \) (Lumi-Dhur), on the simulation’s fixed scale

Tectonic Consequence: Earthquakes are not random. The strain the Accord is under is part of the world’s state, and when the world shakes it is a consequence of that state, reproducible from the accepted history like every other event. The crust is divided into deterministic plates whose shifts follow the world’s long cycles.

Oceanic Constants: Standard water density 10,250 on the fixed scale (1.025 g/cm³). Abyssal trench density 10,780 (1.078 g/cm³). The Abyssal Pulse (Lumi-Thael) drives bottom-up circulation through 13 Hz excitation of the dense bottom water.