Aeternalis Evolution, a custom-engine persistent evolutionary MMO. This first commit establishes the project skeleton: - Architecture and design docs: project vision, system overview, engineering constitution, roadmap, 19 ADRs, and the simulation, world, network, persistence and infrastructure architectures. - Headless engineering proof: deterministic synthetic particles, component lifecycle, explicit PRNG streams, canonical snapshots and restored execution. - Build and tooling: CMake 3.28+ / Ninja presets, C++23 feature check, clang-format and clang-tidy config, format check script, Windows check script, and a Docker build context. - Tests: unit tests, benchmarks, a snapshot fuzz target and CLI integration wiring. No gameplay, renderer, network service or running deployment yet. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
35 lines
1.2 KiB
Markdown
35 lines
1.2 KiB
Markdown
# ADR-0016: Persistence and region ownership
|
|
|
|
## Status
|
|
|
|
Proposed; no persistent services in M0.
|
|
|
|
## Context
|
|
|
|
Semantic history alone cannot recover physical state; timeout-only ownership permits stale writes.
|
|
|
|
## Decision
|
|
|
|
PostgreSQL fenced epochs and expected heads, immutable recovery segments, snapshots, transactional decisions/history/outbox, distinct simulated/committed ticks. Same command ID with different request digest fails.
|
|
|
|
## Alternatives Considered
|
|
|
|
Per-tick DB, universal scalar event sourcing, snapshots alone and broker/Redis/Kubernetes leases alone do not satisfy complete replay/fencing requirements.
|
|
|
|
## Benefits
|
|
|
|
Inspectable authority and idempotent irreversible biology.
|
|
|
|
## Costs
|
|
|
|
Commit latency, complete replay verification, gateway epoch registration and orphan GC.
|
|
|
|
## Risks
|
|
|
|
Incomplete recovery, stale gateway output, partitions and host disaster loss.
|
|
|
|
## Consequences
|
|
|
|
Fault-test every upload/commit/ACK/handoff boundary before M7. Same lease-row lock guards acquire/renew/commit/release. PostgreSQL time decides expiry; local deadlines fail conservatively. Resolve independent disaster durability before World0. [PostgreSQL locks](https://www.postgresql.org/docs/current/explicit-locking.html).
|
|
|