Build Session Zero and bounded co-op

This commit is contained in:
Meta Vens 2026-08-21 16:58:56 +02:00
commit 9f8be42d5c
37 changed files with 7834 additions and 1453 deletions

View file

@ -33,6 +33,40 @@ per-campaign WorldKernel mailbox is the sole canonical writer. Ghostlight owns
the generalized Projector → Persona → Interpreter organ; Epiphany retains her
canonical Persona mind and will consume the shared organ through an adapter.
### 2026-08-21 Session Zero / bounded co-op cut
The current checkout adds a separate pre-world owner: `SessionZeroKernel` is
the sole writer for persistent shared/private conversation, roster, invitations,
typed contract, private character drafts, boundaries, decisions, approvals,
DM Persona, and compilation review. WorldKernel receives nothing until every
active player approves the current shared digest and their private character
digest and the host publishes. Publication stages and atomically exposes one
campaign store containing the seed, membership, contract, DM Persona, approved
brief, approvals, exact evidence, receipts, and final seed digest.
One to eight authenticated players are implemented in bounded shared-scene
co-op. `campaign_membership.v1` is actor custody. Surfaces, knowledge, news,
ledgers, assessment, and roll confirmation derive from the caller's exact
actor. Human actors cannot run Persona inference or strategic/scheduler moves.
PvP, split-party effects, and unilateral co-op waits are rejected by the kernel.
Time, group travel, and pooled Persona-cell budget changes require unanimous
revision-bound approval and commit once. Provider concurrency is separate.
Grounded openings and roles are inline Session Zero decisions, not compiler
forms. The compiler consumes `approved_campaign_brief.v1`, not the transcript.
A launched campaign may enter revision-bound Contract Review; unanimous
publication can amend forward-looking contract, permissions, and approved
ledger fields but cannot rewrite actor custody, locations, topology, knowledge,
memories, canon, or history. Tightened private boundaries become anonymous
live aggregate policy immediately; relaxation waits for unanimous publication.
Narration, assessment, resolution demand, cell projection/interpretation, and
semantic verification now receive the approved contract and aggregate policy.
Do not confuse checkout truth with deployment truth. The immutable release
listed below remains live until this change passes full tests, is committed,
pushed, built, and activated through Idunn. Deployment evidence belongs in
`gamecult-ops` and the state map, not in optimistic prose.
The hosted MVP is implemented and live on Starfire. Ghostlight owns the
generalized projection membrane; Epiphany consumes its pinned crate while
retaining her own Mind and consequence authority. The Rust daemon now owns
@ -75,13 +109,12 @@ populations never merge; only the derived simulation cover does. Budget/pin
changes use `resolution_epoch`, provider parallelism uses its own configuration
epoch, and neither advances fictional time.
The paid-alpha scope remains single-player, but single-player is not a kernel
invariant. `docs/architecture/ghostlight-dungeon-multiplayer-intention.md`
records the intended later extension: multiple authenticated humans control
distinct actors through the same mailbox, perception gates, initiative, and
atomic WorldKernel commit path. It introduces no party prompt, room-state
authority, or current implementation work. The forge remains focused on proving
that multiresolution Gestalts preserve agency and produce satisfying surprises.
The current forge gate includes bounded co-op. The remaining multiplayer
intention covers split parties, private in-play commands, simultaneous windows,
delegation, late joining, departure, PvP, and group lifecycle governance. It
introduces no party prompt or room-state authority. The forge remains focused
on proving that multiresolution Gestalts preserve agency and produce satisfying
surprises under several human foreground actors.
The current acceptance candidate adds a bounded population activity vocabulary
for preparation, coordination, investigation, recruitment, obstruction,

View file

@ -8,6 +8,24 @@ seams remain regression evidence only.
## GhostlightDungeon target flow
Campaign creation now has its own pre-world authority:
```text
Heimdall member messages
-> SessionZeroKernel durable shared/private conversation
-> Projector -> persistent DM Persona -> Interpreter proposals
-> typed contract, private character drafts, boundaries, decisions
-> roster lock -> approved_campaign_brief.v1 -> Vault compiler
-> evidence-gap conversation or digest-bound final review
-> every player approves shared + own private digest
-> one staging CultCache batch + atomic directory exposure
-> campaign_membership.v1 binds each member to one exact actor
```
`WorldKernel` receives no draft state. The transcript is never replayed into the
compiler. Account and invitation hashes remain persistence-only; shared model
turns, browser surfaces, schemas, and CultMesh records cannot see them.
```text
Vault evidence receipts + typed campaign snapshot
-> permissioned projection
@ -23,13 +41,18 @@ Vault evidence receipts + typed campaign snapshot
Ghostlight owns the generalized projection organ. Epiphany and other consumers
own their canonical Persona state and consequence commits.
The current player surface assigns one human session to one single-player
campaign. That is product scope, not kernel identity. The intended multiplayer
extension maps authenticated campaign members to distinct canonical actors and
routes every human command through this same mailbox and WorldKernel. Each
player receives an actor-permitted narrative projection; no party prompt or
shared client state becomes a second world authority. The bounded intention is
mapped in `docs/architecture/ghostlight-dungeon-multiplayer-intention.md`.
The current checkout admits one to eight campaign members into one shared
scene. `campaign_membership.v1` maps each authenticated account to one exact
actor; HTTP, Eve, assessment confirmation, and CultMesh publication derive from
that binding. Human actors are excluded from Persona and strategic control.
Sequential public actions are accepted; PvP and split-party movement are
rejected. Time, group travel, and pooled cell-budget changes require unanimous
revision-bound approval. Post-launch Contract Review reuses the Session Zero
kernel against an exact world revision and commits approved amendments in one
campaign batch without rewriting location, topology, knowledge, memory, or
history. The authority map is
`docs/architecture/ghostlight-dungeon-session-zero.md`; later multiplayer work
remains in `docs/architecture/ghostlight-dungeon-multiplayer-intention.md`.
Build provenance has one owner: `crates/ghostlight-dungeon/build.rs` binds the
exact source commit into the binary. Its inputs are either the release tool's
@ -160,11 +183,10 @@ key and target while the complete local snapshot persists and HTTP serves that
same typed health and Eve state.
Opening retrieval deliberately covers early, transitional, and late historical
frames. Suggestions receive one same-evidence semantic correction with exact
collided values when the local distinctness invariant rejects the first typed
set; roles use the same bounded correction for duplicate names or premises.
Both rejected and accepted receipts remain private while the browser receives
only public suggestions. Invite rotation is owned by
frames. These pure retrieval/compiler functions now serve the Session Zero DM;
they are not browser-owned creation routes or transient preview maps. Generated
suggestions enter the typed draft for discussion and use the same final brief as
custom premises. Both rejected and accepted receipts remain private. Invite rotation is owned by
the deployment boundary: it replaces the protected token set and clears the
persisted auth authority together while the daemon is stopped. Campaign stores
survive; old sessions deliberately do not.
@ -398,27 +420,25 @@ world seed. The live AetheriaLore retrieval archive is correspondingly bounded
to `Aetheria/Worldbuilding/`; durable facts discovered through fiction must be
promoted into Worldbuilding before they become reusable campaign canon.
Compiler, expansion, fission, fork, and reset routes follow the same projection
rule. Approval previews expose the public decision surface—topology, cast,
pressures, player role, source-use coverage, gaps, and assumptions—without raw
campaign, evidence, model receipts, private goals, memories, or relationships.
Generated openings and roles are session-scoped server-owned candidates. The
browser receives their display projections and returns only an opening ID or
role ID; it cannot echo a rewritten candidate back into compilation. Role
selection must resolve against the same session and opening. The selected
role's validated capabilities and obligations are then bound deterministically
into the player actor and named as a branch assumption, while the opening/role
evidence and model receipts are carried into the approval preview. Candidate
IDs, text, list sizes, and evidence references receive local validation before
they can become selectable. Restart may expire these noncanonical suggestions;
it cannot silently reconstruct or substitute them.
Session Zero compilation, expansion, and fission follow the same projection
rule. Review projections expose topology, pressures, source-use coverage, gaps,
assumptions, public party cards, and only the current viewer's private ledger.
Generated openings are shared typed decisions; accepting one amends the draft
for discussion and triggers three grounded role decisions in each private DM
channel. Custom starts and characters use the same draft. The browser returns
only decision commands and cannot echo a rewritten candidate into compilation.
Candidate IDs, text, list sizes, and evidence references receive local
validation. Suggestion retrieval and model receipts remain in the Session Zero
store; publication compiles the unanimously approved brief, never the
conversation transcript.
Campaign publication has a separate discoverability boundary. Registry create,
fork, reset, and compiler approval initialize a new `.cc` store under a
Campaign publication has a separate discoverability boundary. Session Zero
publication and solo lifecycle operations initialize a new `.cc` store under a
non-UUID `.creating-*` directory. The CreateCampaign command validates the
seed, then atomically commits campaign state, approved seed, Vault manifest,
evidence, model receipts, canon candidates, and the creation lifecycle receipt
in one CultCache batch. Only that complete store is renamed into the UUID
seed, then atomically commits campaign state, approved seed, membership,
contract, DM Persona, approvals, Vault manifest, evidence, model receipts,
canon candidates, and the creation lifecycle receipt in one CultCache batch.
Only that complete store is renamed into the UUID
namespace and admitted to the live registry. Failed initialization removes its
exact staging directory and cannot poison daemon reload. Approval previews are
retained until campaign publication, session selection, and reload all succeed;
@ -648,9 +668,9 @@ paths as active state surfaces.
## Missing Or Incomplete Organs
- World compiler browser flow, selected-opening/role path, live provider
acceptance, material-gap approval, on-demand destination expansion, and
canon-candidate persistence
- Contract-governed split parties, private in-play actions, delegation,
simultaneous declaration windows, PvP, late joining, permanent departure,
and group fork/reset/export
- Deterministic speaker-local input slicer
- Full prompt renderer
- Classifier/appraiser pipeline

View file

@ -1,5 +1,12 @@
# GhostlightDungeon MVP — Starfire-Hosted AI Dungeon Master
> Historical foundation plan. Campaign creation and multiplayer authority are
> superseded by
> [`docs/architecture/ghostlight-dungeon-session-zero.md`](../docs/architecture/ghostlight-dungeon-session-zero.md).
> This document remains the original product and world-simulation brief; its
> single-player compiler forms and 1–32 budget wording are not the live runtime
> contract.
## Summary
Build `GhostlightDungeon` inside `GameCult/Ghostlight`: a persistent, Vault-grounded, single-player narrative simulation with a private web chat interface for two testers.

View file

@ -15,17 +15,20 @@ revision and now gives Persona only one lived narrative stream; Epiphany keeps
her canonical Persona mind, receipts, effect admission, brakes, and external
consequence authority.
The hosted runtime owns compiler approval, exact VoidBot evidence, campaign
mailboxes, fiction-first d20 resolution, parallel Persona appraisal, narration,
reversible gestalt materialization, isolated sessions/campaigns, CultMesh/Eve
publication, and away-time scheduling. Strategic ticks now project six-axis
The hosted runtime owns persistent DM-led Session Zero, exact VoidBot evidence,
campaign mailboxes, fiction-first d20 resolution, parallel Persona appraisal,
narration, reversible gestalt materialization, actor-bound membership,
CultMesh/Eve publication, and away-time scheduling. One to eight authenticated
players negotiate one shared contract and private character states before the
host can atomically publish an unanimously approved seed. Strategic ticks now project six-axis
pressure, select a connected budgeted cover over the global agency skeleton,
and run one private Ghostlight Persona membrane per cohesive or arena cell. The
WorldKernel admits the whole cell wave atomically and forbids player puppeting,
synthetic arena actors, borrowed secrets, invented IDs, unreachable movement,
and unbounded information or population-pressure edits. The laboratory exposes
a 1–32 player budget, persistent pins, approval-gated gestalt fission, graph and
cover receipts, and a separate operator provider-concurrency limit. The
a pooled 1–128 campaign cell budget supplied by a player entitlement port,
persistent pins, approval-gated gestalt fission, graph and cover receipts, and
a separate operator provider-concurrency limit. The
specific authority map is
`docs/architecture/ghostlight-multiresolution-agency.md`.
The accepted implementation is hosted on Starfire as immutable release
@ -119,14 +122,26 @@ spoiler disclosure let the player bypass discovery before approving the seed.
The approval surface retains topology, cast, institutions, populations, clocks,
role capabilities, evidence coverage, gaps, and branch assumptions.
Multiplayer remains outside the current paid-alpha gate but is now an explicit
architectural intention. Do not fork the simulation into a multiplayer room
model. After the solo product and Gestalt agency are proven, extend campaign
membership so authenticated humans control distinct canonical actors through
the existing mailbox, perception gates, initiative, and atomic commit path. The
authority map and unresolved consent/governance questions live in
Bounded cooperative multiplayer is now part of the current forge gate. It uses
campaign membership rather than a room model: distinct authenticated humans
control exact canonical actors through the existing mailbox, perception gates,
and atomic commit path. The implemented boundary is one shared scene,
sequential public actions, actor-specific surfaces, no PvP, and unanimous
time/travel/cell-budget changes. Split parties, private in-play actions,
delegation, simultaneous declarations, late joining, and group lifecycle
operations remain outside the gate. The authority map and remaining social
governance live in
`docs/architecture/ghostlight-dungeon-multiplayer-intention.md`.
Session Zero replaces direct compiler forms as campaign-creation authority.
Grounded openings and roles are inline typed DM decisions; custom premises use
the same draft. The compiler consumes only `approved_campaign_brief.v1`, and
publication batches campaign, membership, contract, persistent DM Persona,
approvals, evidence, and seed digest before discovery. Post-launch Contract
Review reuses the same negotiation machinery against an exact world revision;
it can amend forward-looking contract and actor ledger fields but cannot rewrite
membership custody, locations, topology, knowledge, memories, or history.
## Prior research-program phase
Build a reliable data-generation loop for socially persistent Aetheria agents.