From c9e4ea861c6b9ebd6b8e479e521308eea0668baa Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 26 Aug 2026 17:47:28 +0200 Subject: [PATCH] Define the Godot and CultGeometry game foundation --- AGENTS.md | 7 +++++-- Delvehold/Documentation/Authority Map.md | 15 +++++++++++---- Delvehold/Game Design/DELVE/Extraction Play.md | 2 +- .../DELVE/Living Dungeon Generation.md | 12 ++++++++++++ .../Foundations/First Playable World.md | 7 ++++++- .../Game Design/Foundations/Game Overview.md | 4 ++-- .../Acceptance Criteria.md | 8 ++++++++ .../Shared World/Economy and Contracts.md | 2 +- .../Shared World/Simulation Architecture.md | 7 ++++++- .../Game Design/Shared World/World Signals.md | 2 +- .../Game Design/Shared World/World State Model.md | 7 ++++++- README.md | 9 ++++++--- 12 files changed, 65 insertions(+), 17 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 155b046..6afcd52 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -9,8 +9,11 @@ ## Architecture - CultMesh is the typed world-state and capability surface. -- Shared state belongs to world organs, not the Unity client, browser client, or documentation site. -- Unity projects dungeon expeditions. The browser projects cozy workshop and neighborhood play through Eve/CultUI. +- Shared state belongs to world organs, not the Godot client or documentation site. +- One Godot C# client contains both DELVE and HOLD. Mode changes select different projections and interactions over the same persistent world; they do not cross a client boundary. +- One central C# world host owns Delvehold canonical state through explicitly separated internal organs. +- The Godot client and world host communicate through typed CultMesh commands, projections, capabilities, and receipts. Client-local prediction and presentation cannot commit shared truth. +- Authoritative dungeon generation runs in the world host using GameCult.Math (CultMath), including `CultMath.Random`. CultGeometry (`GameCult.Geometry`) owns reusable isosurface extraction and neutral mesh artifacts; Godot only adapts committed results into engine objects. - Commands cross authority boundaries as typed intents and produce typed receipts. - Workshop shards are nodes in a persistent neighborhood graph. Shared edges require explicit ownership, capacity, provenance, and consent. - Dungeon delving is part of a core's lifecycle. Industrial systems must remain legible to dungeon instinct as bounded, contested delving rather than direct tissue damage. diff --git a/Delvehold/Documentation/Authority Map.md b/Delvehold/Documentation/Authority Map.md index cfadd50..36fd2ee 100644 --- a/Delvehold/Documentation/Authority Map.md +++ b/Delvehold/Documentation/Authority Map.md @@ -19,11 +19,18 @@ CultMesh carries two directions of typed exchange. Delvehold publishes a derived `greathold` is no longer an owner; it is derived from Delvehold state. It receives no Ghostlight Persona or strategic turn. The bridge is no longer an owner; it transports documents and receipts. Neither side can mutate the other's canonical domain or use reconciliation to disguise a rejected effect. -## Client projections +## Game client projection -The Unity client projects an expedition. It may predict movement and presentation, but it does not own shared economic or dungeon-lifecycle truth. +One Godot C# client projects both DELVE and HOLD. DELVE scenes present embodied +expeditions; HOLD scenes present workshops, neighborhoods, contracts, news, and +civic play. The client's shared session owns its CultMesh connection, local +projections, prediction, controls, animation, and presentation. It does not own +economic, dungeon-lifecycle, or civic truth. -The browser client projects the workshop and relevant neighborhood subgraph through Eve/CultUI. It does not own the world simply because bounded work can continue while a player is absent. +One central C# world host contains the canonical Delvehold organs. Every +client-originated action crosses CultMesh as a typed intent and returns a typed +receipt. Switching modes changes the active projection and interaction set; it +does not synchronize two clients or transfer authority. ## Contract handoff @@ -37,6 +44,6 @@ Factory and delver interfaces expose different projections of that state. Incomp Each franchised workshop owns its seal and the intents it submits: vote, petition, amendment, capacity pledge, refusal, or withdrawal. The Delvehold world organ owns the resulting assembly state, jurisdiction derived from the world graph, ratified common commitments, and institutional consequences. -A ballot cannot directly mutate a mine, contract market, or military order. The ratified mandate is the input through which the responsible institutions act, and those actions update the same typed world state seen by both clients. +A ballot cannot directly mutate a mine, contract market, or military order. The ratified mandate is the input through which the responsible institutions act, and those actions update the same typed world state seen through both modes. See [[Simulation Architecture]] and [[Ghostlight Boundary]] for the complete exchange contract. diff --git a/Delvehold/Game Design/DELVE/Extraction Play.md b/Delvehold/Game Design/DELVE/Extraction Play.md index 6c50dbe..3c20739 100644 --- a/Delvehold/Game Design/DELVE/Extraction Play.md +++ b/Delvehold/Game Design/DELVE/Extraction Play.md @@ -20,7 +20,7 @@ During a run, the party repeatedly chooses among: - recovering a fallen delver or lost equipment; - preserving scarce supplies; - retreating before the dungeon's response escalates; -- pressing deeper for a return that may transform both clients. +- pressing deeper for a return that may transform both modes. Extraction is successful when something meaningful returns, not only when the original number is met. Injuries, maps, creature observations, evidence of core behaviour, broken equipment, and expedition history are persistent outputs alongside material. diff --git a/Delvehold/Game Design/DELVE/Living Dungeon Generation.md b/Delvehold/Game Design/DELVE/Living Dungeon Generation.md index 9a3d257..dc58aa0 100644 --- a/Delvehold/Game Design/DELVE/Living Dungeon Generation.md +++ b/Delvehold/Game Design/DELVE/Living Dungeon Generation.md @@ -7,6 +7,18 @@ Procedural generation projects a persistent dungeon state into playable expediti The generator receives the target region, core lifecycle, known topology, ecological populations, stored matter, active pressures, remembered intrusions, adaptations, discoveries, and contract-relevant affordances. It emits a bounded route network, chambers, encounters, hazards, resources, evidence, and extraction paths together with provenance back to those inputs. +The central C# world host owns this decision. Authoritative choices use +GameCult.Math (CultMath), including its deterministic `CultMath.Random`; they do +not use Godot, `System.Random`, or a project-local random stream. CultGeometry +(`GameCult.Geometry`) owns engine-neutral isosurface extraction and typed mesh +artifacts. The Godot client converts those artifacts into render meshes, +colliders, materials, and scene nodes without earning a reroll. + +Each committed projection records its seed, generator version, canonical input +digest, output digest, and generation receipt. The same accepted inputs, seed, +and version reproduce the same projection. A changed dungeon state is a changed +input, not permission to reroll an unchanged expedition. + ## Continuity - Stable landmarks and discovered routes can recur. diff --git a/Delvehold/Game Design/Foundations/First Playable World.md b/Delvehold/Game Design/Foundations/First Playable World.md index 0fdc964..4a29966 100644 --- a/Delvehold/Game Design/Foundations/First Playable World.md +++ b/Delvehold/Game Design/Foundations/First Playable World.md @@ -14,6 +14,11 @@ The slice is complete only when: 5. the dungeon responds to the actual methods used; 6. the party returns with material, evidence, injury, loss, or some combination; 7. the outcome changes workshop decisions and the next expedition; -8. the history remains after both clients disconnect and reload. +8. the history remains after the game client reconnects and the world host restarts. One institutional contract keeps DELVE playable without a workshop manager online. One public need keeps HOLD meaningful without requiring a delver to accept a personal order immediately. The slice does not need a broad item catalogue, global war, or complete combat metagame. It needs one honest return stroke. + +Its dungeon projection is generated authoritatively by the world host from the +committed dungeon state and a CultMath seed. CultGeometry extracts the neutral +isosurface mesh. Reconnect and restart reproduce the same committed projection +unless canonical dungeon inputs advance. diff --git a/Delvehold/Game Design/Foundations/Game Overview.md b/Delvehold/Game Design/Foundations/Game Overview.md index 76bdc19..167b5fe 100644 --- a/Delvehold/Game Design/Foundations/Game Overview.md +++ b/Delvehold/Game Design/Foundations/Game Overview.md @@ -13,8 +13,8 @@ The game is for players who enjoy cooperative PvE, expressive preparation, autom ## Product shape -- Unity projects embodied dungeon expeditions. -- The browser projects workshops, neighborhoods, contracts, news, and civic play through Eve/CultUI. +- One Godot C# client projects both embodied dungeon expeditions and workshop, neighborhood, contract, news, and civic play. +- One central C# world host owns the canonical Delvehold simulation. Changing modes changes presentation and available interaction, not world authority. - CultMesh carries typed state and capabilities from their owning world organs. - One canonical world history survives player absence. There are no seasonal wipes used to repair inflation or erase consequence. diff --git a/Delvehold/Game Design/Narrative and Validation/Acceptance Criteria.md b/Delvehold/Game Design/Narrative and Validation/Acceptance Criteria.md index efdc90c..5974df0 100644 --- a/Delvehold/Game Design/Narrative and Validation/Acceptance Criteria.md +++ b/Delvehold/Game Design/Narrative and Validation/Acceptance Criteria.md @@ -28,3 +28,11 @@ The design is proven by visible paths, not by the existence of schemas. - Private beliefs do not become public news or canonical fact automatically. - Catch-up is bounded, names the interval it summarizes, and never puppets an absent player. - The visible news, price, contract, expedition, and workshop changes can be traced to typed events and receipts at the layer where players experience them. + +## Procedural dungeon proof + +- Identical canonical input, CultMath seed, and generator version reproduce the same dungeon projection after host restart. +- Reconnecting the Godot client does not reroll routes, chambers, hazards, resources, or encounters. +- A pinned generation fixture proves version-bound output and records its input and output digests. +- The world host rejects client-supplied canonical rooms, random choices, and mesh results. +- CultGeometry emits engine-neutral geometry; no Unity, Godot, `System.Random`, or duplicate project-local mesher decides canonical generation. diff --git a/Delvehold/Game Design/Shared World/Economy and Contracts.md b/Delvehold/Game Design/Shared World/Economy and Contracts.md index a982b07..89429aa 100644 --- a/Delvehold/Game Design/Shared World/Economy and Contracts.md +++ b/Delvehold/Game Design/Shared World/Economy and Contracts.md @@ -41,4 +41,4 @@ Workshop contracts should remain more personal and expressive: unusual equipment A canonical contract records issuer class, objective, offered equipment, reward allocation, target region, accepted party, lifecycle status, outcome references, and the authority under which it was published. -Extraction, retreat, discovery, injury, loss, breach, rescue, and returned materials update the same world state. Outcomes alter both institutional demand and workshop plans; neither client owns a private version of what happened. +Extraction, retreat, discovery, injury, loss, breach, rescue, and returned materials update the same world state. Outcomes alter both institutional demand and workshop plans; the client owns no private version of what happened. diff --git a/Delvehold/Game Design/Shared World/Simulation Architecture.md b/Delvehold/Game Design/Shared World/Simulation Architecture.md index 142e037..f34845d 100644 --- a/Delvehold/Game Design/Shared World/Simulation Architecture.md +++ b/Delvehold/Game Design/Shared World/Simulation Architecture.md @@ -7,12 +7,17 @@ The game uses two canonical simulation domains joined by typed exchange. ## Owners -The **Delvehold world organ** owns the Greathold: players, workshops, parties, contracts, expeditions, dungeons, civic state, quantitative goods, production, prices, orders, and local consequences. +One central C# **Delvehold world host** contains the Greathold organs and owns players, workshops, parties, contracts, expeditions, dungeons, civic state, quantitative goods, production, prices, orders, and local consequences. Process containment does not collapse their internal authority boundaries. One persistent **Ghostlight WorldKernel** owns the world outside the Greathold: foreign regions, actors, institutions, population Gestalts, their knowledge, relationships, goals, posture, pressure, strategic decisions, external events, and news. The CultMesh bridge carries documents. It schedules no independent truth and earns no right to repair either side. +One Godot C# client contains the DELVE and HOLD projections. It submits typed +commands and renders typed projections and receipts over CultMesh. Client-local +prediction, navigation presentation, camera state, and animation are derived; +they cannot commit canonical state. + ```text Delvehold committed state -> derived Greathold boundary state and realized effects diff --git a/Delvehold/Game Design/Shared World/World Signals.md b/Delvehold/Game Design/Shared World/World Signals.md index 19fab7f..63db13d 100644 --- a/Delvehold/Game Design/Shared World/World Signals.md +++ b/Delvehold/Game Design/Shared World/World Signals.md @@ -17,7 +17,7 @@ The same disturbance reaches DELVE as altered contract volume, equipment shortag > diplomatic rupture → trade shock → workshop response → contract market → delver experience -Ghostlight owns the foreign decision and external event. Delvehold owns the resulting quantitative trade, capacity, contract, and expedition consequences after admitting the typed response. Neither client invents a parallel explanation, and neither simulation rewrites the other's decision. +Ghostlight owns the foreign decision and external event. Delvehold owns the resulting quantitative trade, capacity, contract, and expedition consequences after admitting the typed response. The game client invents no parallel explanation, and neither simulation rewrites the other's decision. ## The news feed diff --git a/Delvehold/Game Design/Shared World/World State Model.md b/Delvehold/Game Design/Shared World/World State Model.md index 0c47a37..9863d50 100644 --- a/Delvehold/Game Design/Shared World/World State Model.md +++ b/Delvehold/Game Design/Shared World/World State Model.md @@ -16,10 +16,15 @@ DELVE/HOLD canonical state is typed CultCache state published through CultMesh. | Dungeon ecology | cores, lifecycle pressure, populations, adaptations, memory, topology, hazards, responses and extraction provenance | | Civic life | assemblies, proposals, seals, testimony, ratified mandates, capacity commitments, withdrawals and institutional actions | | Information | facts, observations, reports, rumours, sources, confidence, disclosure and knower scope | -| Continuity | world time, revisions, events, commands, receipts, causal references and schema versions | +| Continuity | world time, revisions, events, commands, receipts, causal references, schema versions, generation seeds, generator versions, input and output digests | ## Derived state Scenes, dashboards, prices, digests, forecasts, generated dungeon rooms, news layouts, active navigation, and the aggregate Greathold boundary are projections. They may be rebuilt from canonical state and cannot repair it. +The world host commits each dungeon generation record and its provenance. +CultGeometry mesh artifacts are deterministic outputs of that record. Godot +resources are disposable adaptations of the artifacts, not another persistence +layer. + Quantities, conservation, recipes, orders, contracts, and production capacity remain Delvehold authority. Ghostlight's current strategic resource handles are not a substitute for the HOLD economic model. diff --git a/README.md b/README.md index 50994be..00fd0f7 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,14 @@ # DELVE/HOLD -`DELVE/HOLD` is a tiny persistent-world experiment built as a proving ground for CultMesh and the broader Aetheria architecture. +`DELVE/HOLD` is a persistent-world game designed as a proving ground for CultMesh and the broader Aetheria architecture. One shared world is projected through two modes: -- **DELVE** — a cooperative Unity RPG in which players enter procedurally generated living dungeons. -- **HOLD** — a cozy browser incremental about a mage's workshop growing into a networked magical factory. +- **DELVE** — cooperative expeditions into procedurally generated living dungeons. +- **HOLD** — cozy workshop play about manual magic growing into a networked magical factory. + +One Godot C# client contains both modes. One central C# world host owns the +canonical simulation, and the two processes communicate through CultMesh. The published project notes live in `Delvehold/`. The site is a thin consumer of the shared [`GameCult-Quartz`](https://github.com/GameCult/GameCult-Quartz) engine and deploys to [delvehold.gamecult.org](https://delvehold.gamecult.org).