Skip to main content

Repository Map

Purpose

Inventory repository ownership so contributors know where to read and change code.

Responsibilities

  • Own the canonical description of repository map within the architecture book.
  • Identify the Rust modules, reports, tests, and operational artifacts that support the subsystem.
  • Explain how the subsystem participates in deterministic execution, receipt production, replay, recovery, and federation when applicable.
  • Distinguish implemented foundations from scaffold-level or planned work.

Non-Responsibilities

  • It does not make renderer, observer, dashboard, or analytics data authoritative.
  • It does not bypass canonical serialization, root comparison, receipt validation, or replay verification.
  • It does not replace crate-level API documentation or source code review for implementation details.
  • It does not claim production maturity for modules explicitly marked partial, scaffold, or planned.

Internal Components

  • Workspace crates.
  • Runtime module trees.
  • Deployment, world, wasm, and security reports.
  • Test suites and test vectors.

Data Flow

Input → validation at the subsystem boundary → deterministic processing by the owning runtime module → state mutation only through canonical state or subsystem-specific ledgers → receipt, root, checkpoint, projection, or synchronization artifact generation → verification by replay, hash comparison, signature checks, continuity validation, or reconciliation.

Deterministic Execution Pipeline

User Input

Host Runtime

WASM Guest or Native Fixture Executor

State Diff

Canonical State

State Root

Receipt

Journal / Store

Replay Verification

Where federation or projection participates, the deterministic receipt remains the source of truth and the downstream artifact is verified against the authoritative roots.

Determinism Guarantees

  • Hashing strategy: state roots, execution roots, receipt hashes, checkpoint roots, and continuity roots are compared as stable digests rather than inferred from wall-clock behavior.
  • Canonical serialization: protocol objects are serialized through repository-owned ABI/codec/canonical boundaries before hashing or replay comparison.
  • Replay guarantees: a verifier can rerun the same input, prior state, package, and protocol epoch to recompute roots and receipts.
  • Validation rules: invalid signatures, malformed bundles, root mismatches, missing checkpoint ancestry, or non-contiguous replay windows are rejected or quarantined.

Failure Modes

  • Corruption: detected by hash, signature, manifest, checkpoint, archive, or proof mismatch.
  • Divergence: detected by comparing state roots, execution roots, receipt hashes, checkpoint roots, projection roots, or continuity records.
  • Recovery: uses checkpoints, receipt ranges, replay windows, archive hydration, rollback plans, and peer resynchronization.
  • Reconciliation: selects canonical material, suspends unsafe advancement, repairs gaps, and resumes continuity only after validation.

Future Evolution

Regenerate crate and module sections as Cargo workspace membership changes.

Architecture Notes

  • Map workspace crates and major non-crate trees.
  • Record maturity levels and validation surfaces.
  • Show how reports, tests, and scripts support architecture claims.
  • It is not a generated file index.
  • It does not classify vendored or dependency code.

Complete Workspace Crate Inventory

CratePurposeStatus / MaturityMajor modulesTestsValidation scripts / reports
everarcade-abiShared ABI types for execution plans, receipts, VM input/output, state, and serialization.Implemented foundation.lib0 crate integration testsABI docs and protocol consumers validate it indirectly.
execution-coreDeterministic protocol runtime and canonical execution foundation.Production foundation with partial higher-level domains.state_engine, receipt_runtime, replay_runtime, checkpoint, lineage, federation_runtime, world_runtime, world_scheduler, economy_runtime, governance_runtime, inventory_runtime, world_partition, wasm_abi276wasm/reports, world/reports, benchmarks/reports, test_vectors
contract-apiContract-facing API and protocol records for deterministic packages/rustrigs.Implemented foundation; registry validation partial.abi_v1, registry_validation, protocol_records, rustrig0Contract examples and JSON/ABI docs.
control-planeProvider/control-plane abstractions for deployment, registry, alerts, topology, leases, and API.Partial / scaffold.deployment, provider, registry, api, alerts, topology, leases0Deployment readiness reports.
provider-evernodeEvernode provider adapter, deployment, runtime, lease, topology, upgrade, rollback.Partial.deployment, adapter, rollback, runtime, lease, topology, upgrade0Evernode readiness/deployment reports.
rustrigsReusable gameplay/domain packages for AI, economy, inventory, world, quests, XRPL, and related domains.Partial content scaffold.ai, diplomacy, movement, crafting, interaction, dialogue, deployment, quests, plus domain folders0Rustrig reports and package validation reports.
contracts/set-contractMinimal deterministic set-state example contract.Implemented example.lib0Contract hash/test vectors indirectly.
contracts/increment-contractMinimal deterministic increment example contract.Implemented example.lib0Contract examples.
contracts/counter-worldCounter world example.Implemented example / tutorial.lib0Example docs.
contracts/counter-contractCounter contract example.Implemented example.lib0Example docs.
everarcade-hostHost runtime for packages, receipts, persistence, federation, recovery, Evernode, signing, query, archive, distributed execution, and operator flows.Production foundation with partial operational domains.runner, package_loader, receipt_store, checkpoint_store, federation_network, federation_transport, distributed_sync, recovery, evernode, signing, security, node150Host integration tests, deployment reports, runbooks.
sdk/everarcade-sdkPrimary developer SDK for game/session/input/state/runtime abstractions.Partial but usable for onboarding.game, input, session, state, runtime, validation1SDK docs and validation report.
sdk/everarcade-world-sdkWorld authoring SDK.Partial scaffold.lib0SDK docs.
sdk/everarcade-entity-sdkEntity authoring SDK.Partial scaffold.lib0Entity reports.
sdk/everarcade-simulation-sdkSimulation authoring SDK.Partial scaffold.lib0Simulation workflow reports.
sdk/everarcade-economy-sdkEconomy SDK.Partial scaffold.lib0Economy reports.
sdk/everarcade-governance-sdkGovernance SDK.Partial scaffold.lib0Governance reports.
sdk/client-bridgeClient bridge API for runtime/client integration.Partial.lib0Client bridge docs.
src-bin-everarcadeProduct CLI entry point and commands.Partial / operator-facing.main, config, product, runtime_snapshot, commands0CLI quickstart and product command reports.
runtime/clientLocal sovereign runtime client shell with projection service, playback, console, world/inventory views.Scaffold-level client runtime.projection_service, render_tick, world_view, renderer, playback, console, event_view0Client README and projection docs.
runtime/renderer-clientRenderer/projection/history/federation client runtime.Scaffold-level runtime domain.runtime, world_renderer, playback_renderer, event_renderer, hud, federation, persistence, history, transport_runtime0Projection, observer, replay transport, and history reports.
toolsCreator/operator tooling: package certification, creator pipeline, vertical slice certification, plus tool subtrees.Partial toolchain.package_certification, creator_pipeline, creator_productization, vertical_slice_certification1Tools READMEs and creator reports.
runtime/content-registryContent registry package/manifest/signature validation runtime.Partial.package, manifest, signature, validation, runtime0Content registry/package reports.
studio-guiGUI/editor surface for gameplay authoring, viewport, marketplace, terrain, assets, replay, and workspace.Scaffold-level product UI.app, window, layout, workspace, gameplay_authoring, world_authoring, viewport, marketplace, terrain, assets0Studio/editor/authoring reports.

Non-Crate Inventory

  • runtime/: operational runtime modules for nodes, routing, WAN recovery, storage fabric, autoscaling, security, simulation/civilization federation, observer civilization, and packages. These are partial/scaffold operational domains supporting deployment and recovery research.
  • deployment/reports/: historical milestone, validation, launch, readiness, runtime, federation, projection, release, Evernode, SDK, creator, and operations reports. They are evidence, not independent authority.
  • world/reports/: world simulation, projection, replay, restoration, scheduling, partition, performance, and continuity reports.
  • wasm/reports/: WASM runtime, fuel metering, isolation, checkpoint restore, replay, and stateful execution validation reports.
  • security/reports/: capability, isolation, resource governance, quarantine, abuse, and runtime overflow validation reports.
  • docs/runbooks/: machine startup/recovery/rejoin, checkpoint restore, rollback, and transport failure procedures.
  • test_vectors/: binary fixtures for receipts, snapshots, replay consensus, distributed execution, verifier sync, proof markets, archival continuity, entity identity, and lineage.
  • examples/ and templates/: onboarding games/worlds for deterministic arena, RTS, persistent world, cooperative session, governance world, and simulation worlds.

Repository Evidence Commands

The crate inventory was generated from Cargo.toml, crate src folders, and crate tests folders using targeted filesystem inspection rather than a workspace rebuild.