Merge origin/main into ghostlight-verse/session-refresh
This commit is contained in:
commit
1e6da32ad3
479 changed files with 568 additions and 78269 deletions
|
|
@ -1,108 +0,0 @@
|
|||
# Architecture Rationale
|
||||
|
||||
This note explains why Ghostlight uses explicit state surfaces. It is not the
|
||||
current implementation map and not the roadmap. For those, read:
|
||||
|
||||
- `state/map.yaml`
|
||||
- `notes/fresh-workspace-handoff.md`
|
||||
- `notes/ghostlight-implementation-plan.md`
|
||||
- `notes/ghostlight-current-system-map.md`
|
||||
|
||||
## Core Failure
|
||||
|
||||
The central failure mode is local plausibility without global coherence.
|
||||
|
||||
An agent can write elegant little sentences, produce plausible little diffs,
|
||||
and still lose the shape of the machine. Once the model no longer knows how the
|
||||
latent state, memory, perception, and prompt layers fit together, adding more
|
||||
local machinery usually makes the beast prettier and stupider.
|
||||
|
||||
The answer is not more transcript. The answer is explicit structure:
|
||||
|
||||
- slow-changing map
|
||||
- disposable scratch
|
||||
- distilled evidence
|
||||
- compact handoff
|
||||
- implementation plan that is not pretending to be a second map
|
||||
- ruthless deletion when state stops improving the model
|
||||
|
||||
## State Split
|
||||
|
||||
Ghostlight treats different kinds of cognition as different artifacts:
|
||||
|
||||
- `map`: canonical system model, invariants, accepted design, rejected paths
|
||||
- `scratch`: temporary local reasoning for one bounded subgoal
|
||||
- `evidence`: distilled proof, decisions, rejected paths, and scars that change future belief
|
||||
- `system map`: source-grounded explanation of the live repo machinery
|
||||
- `handoff`: compact re-entry packet
|
||||
- `plan`: distilled forward implementation direction
|
||||
- `output`: user-visible replies, code edits, commits, and verification artifacts
|
||||
|
||||
The split matters because a language model will happily blend all of that into
|
||||
one warm slurry if invited. Slurry is not architecture.
|
||||
|
||||
## Current Harness Principle
|
||||
|
||||
Ghostlight is using the same basic discipline that Epiphany proved useful:
|
||||
|
||||
```text
|
||||
observe the repo and canonical state
|
||||
-> rehydrate the current map
|
||||
-> work one bounded organ
|
||||
-> verify the seam that matters
|
||||
-> record only durable evidence
|
||||
-> cut failed code and failed memory
|
||||
```
|
||||
|
||||
The model is still a language model. That is the medium, not the scandal.
|
||||
Language, structure, evidence, and salience are the steering surfaces. The repo
|
||||
exists to keep those surfaces explicit enough that the next waking thing can
|
||||
resume the pattern instead of faking continuity from vibes.
|
||||
|
||||
## Authoring Projection Principle
|
||||
|
||||
For content generation, Ghostlight should not treat an LLM as one omniscient
|
||||
drama goblin asked to write every character from the same cloudy prompt.
|
||||
|
||||
The better division of labor is:
|
||||
|
||||
- Ghostlight maintains explicit state about characters, relationships,
|
||||
memories, pressures, goals, masks, culture, and scene stakes.
|
||||
- A narrative or drama pass can arrange conflicts, reversals, escalation, and
|
||||
consequences, but it should also arrange routine, quiet, humor, rituals,
|
||||
domestic texture, downtime, and slow buildup when those are what make the
|
||||
later consequence legible.
|
||||
- Dialogue generation should then happen through character-local context packs:
|
||||
what this character knows, feels, wants, remembers, conceals, and believes
|
||||
about the person in front of them.
|
||||
|
||||
That distinction matters because realistic dialogue usually comes from
|
||||
subjective circumstance, not from a summary saying "write dramatic banter
|
||||
here." Pressure is one circumstance. So are habit, boredom, love, rivalry,
|
||||
ritual, absurd bureaucracy, professional pride, and wanting lunch to be over
|
||||
without anyone noticing the reactor invoice. Each character needs room to act
|
||||
from their own partial state. The authoring agent can build the trap. It can
|
||||
also build the kitchen table, the rain ritual, the bad coffee, and the private
|
||||
joke that makes the trap hurt later. The character projection should decide how
|
||||
the person inside the moment breathes.
|
||||
|
||||
## Compact-Rehydrate-Reorient
|
||||
|
||||
Compaction is a real state transition, not a cosmetic cleanup.
|
||||
|
||||
Before compaction, Ghostlight should preserve:
|
||||
|
||||
- current objective and active subgoal
|
||||
- latest stable map
|
||||
- distilled evidence or rejected paths that change future belief
|
||||
- open questions, blockers, and next action
|
||||
|
||||
After rehydrating, Ghostlight should:
|
||||
|
||||
- reread canonical state instead of trusting prompt residue
|
||||
- restate the next action from persisted state
|
||||
- continue only when instructed or when the task explicitly calls for it
|
||||
- avoid broad implementation until the current mechanism is understood again
|
||||
|
||||
The aim is not immortality cosplay. It is banking the fire enough that the next
|
||||
waking thing finds coals instead of ash.
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
# Documentation Inventory
|
||||
|
||||
Use this file as the navigation map for Ghostlight's docs. It classifies files
|
||||
by job so architecture, planning, prompts, state ledgers, and live examples do
|
||||
not slowly melt into one cursed binder.
|
||||
|
||||
## Canonical Re-Entry And Planning
|
||||
|
||||
- `state/map.yaml`: canonical project map and current status.
|
||||
- `notes/fresh-workspace-handoff.md`: re-entry summary for fresh sessions.
|
||||
- `notes/ghostlight-current-system-map.md`: current runtime and artifact map.
|
||||
- `notes/ghostlight-implementation-plan.md`: live implementation plan and
|
||||
next-action surface.
|
||||
- `notes/documentation-inventory.md`: this navigation/status index.
|
||||
|
||||
## Core Architecture Contracts
|
||||
|
||||
- `docs/architecture/ghostlight-dungeon-mvp.md`: hosted dungeon authority and
|
||||
runtime map.
|
||||
- `docs/architecture/ghostlight-multiresolution-agency.md`: dynamic agency
|
||||
graph, connected cohesive/arena covers, detail fairness, cell waves, fission,
|
||||
controls, and atomicity.
|
||||
- `docs/architecture/ghostlight-dungeon-multiplayer-intention.md`: bounded
|
||||
post-MVP extension of the campaign kernel to multiple human-controlled actors,
|
||||
including authority, privacy, concurrency, and unresolved social policy.
|
||||
- `docs/architecture/canonical-agent-state-schema.md`: canonical state model.
|
||||
- `docs/architecture/agent-state-variable-glossary.md`: meanings for state
|
||||
axes, voice style, overlays, and emergent behaviors.
|
||||
- `docs/architecture/agent-state-distributions-and-prompt-projection.md`:
|
||||
deeper state-distribution and projection rationale.
|
||||
- `docs/architecture/prompt-projection-contract.md`: projection boundary and
|
||||
renderer contract.
|
||||
- `docs/architecture/projected-local-context.md`: character-local context
|
||||
shape.
|
||||
- `docs/architecture/sequential-agent-runtime.md`: sequential action/reaction
|
||||
runtime architecture.
|
||||
- `docs/architecture/sandboxed-responder-packets.md`: isolated responder packet
|
||||
contract and capture requirements.
|
||||
- `docs/architecture/soft-model-training-artifacts.md`: rule for turning soft
|
||||
judgments into training artifacts.
|
||||
- `docs/architecture/ink-branching-scenes.md`: branch-and-fold, branch
|
||||
compiler, visual prompt, and IF reviewer contract.
|
||||
- `docs/architecture/illustrated-if-visual-pipeline.md`: visual replay
|
||||
contract, geometry authority, scene-set/blockout role, and imagegen boundary.
|
||||
- `docs/architecture/lore-grounding-digest-format.md`: source-grounding digest
|
||||
format.
|
||||
- `docs/architecture/aetheria-lore-grounding-architecture.md`: Aetheria
|
||||
historical, future-branch, and procedural grounding boundaries.
|
||||
- `docs/architecture/corpus-coverage-ledger.md`: corpus coverage ledger
|
||||
contract and status-report shape.
|
||||
- `docs/architecture/technology-item-manifest-plan.md`: item, assembly,
|
||||
supply-chain, trade-good, and blueprint data target.
|
||||
- `docs/architecture/training-plan.md`: trainable organs, datasets, gates, and
|
||||
rough scale targets.
|
||||
|
||||
## Supporting Architecture And Future Mechanisms
|
||||
|
||||
- `docs/architecture/aetheria-agent-population-model.md`: population and
|
||||
faction-scale agent modeling.
|
||||
- `docs/architecture/aetheria-content-generation-targets.md`: Aetheria content
|
||||
targets and consumer use cases.
|
||||
- `docs/architecture/aetheria-persistent-agent-architecture.md`: broader
|
||||
persistent-agent architecture.
|
||||
- `docs/architecture/projection-distillation-plan.md`: student projector
|
||||
training concept.
|
||||
- `docs/architecture/schema-future-mechanisms.md`: future schema organs waiting
|
||||
for more evidence.
|
||||
- `notes/architecture-rationale.md`: rationale notes for major design
|
||||
boundaries.
|
||||
|
||||
## Accessible Explanations
|
||||
|
||||
- `docs/public-architecture/`: canonical source for the public Ghostlight site
|
||||
architecture section: overview, authority, pipelines, and the complete
|
||||
production agent/model-stage catalog. The site publishes an exact projection
|
||||
and owns navigation and presentation, not technical truth.
|
||||
- `docs/articles/multiresolution-gestalts.md`: reader-facing explanation of
|
||||
Ghostlight Dungeon's dynamic agency graph, cohesive and arena cells, detail
|
||||
fairness, Persona waves, and named-character continuity.
|
||||
|
||||
## Raw Imported Source
|
||||
|
||||
- `docs/aetheria/call-of-the-void-brainstorm.md`: raw imported brainstorming
|
||||
document. Encoding scars are preserved; do not treat this as canonical prose.
|
||||
|
||||
## Research Backlog
|
||||
|
||||
- `docs/research/personality-model-roadmap.md`: personality-model research
|
||||
roadmap.
|
||||
- `docs/research/personality-signal-classifier.md`: personality signal
|
||||
classifier research.
|
||||
- `docs/research/things-to-steal.md`: research backlog and candidate ideas.
|
||||
|
||||
## State Ledgers
|
||||
|
||||
- `state/evidence.jsonl`: distilled current evidence ledger.
|
||||
- `state/evidence.archive.jsonl`: archival evidence ledger.
|
||||
- `state/branches.json`: branch ledger.
|
||||
- `state/corpus-coverage.json`: machine-readable coverage ledger for accepted,
|
||||
draft, planned, rejected, and superseded Aetheria fixtures.
|
||||
- `state/scratch.md`: disposable one-subgoal scratch surface.
|
||||
|
||||
## Maintenance Rule
|
||||
|
||||
Architecture docs describe durable contracts. Live planning belongs in
|
||||
`notes/ghostlight-implementation-plan.md`, `notes/fresh-workspace-handoff.md`,
|
||||
and `state/map.yaml`. Experimental fixture receipts are not kept in the live
|
||||
workspace once their lessons have been distilled into docs, state, or git
|
||||
history.
|
||||
|
|
@ -1,459 +1,47 @@
|
|||
# Ghostlight Fresh Workspace Handoff
|
||||
# Ghostlight Handoff
|
||||
|
||||
Updated: 2026-09-23
|
||||
This is a pointer. It does not carry open work; the Eureka mind does.
|
||||
|
||||
This is the compact re-entry packet. It carries current authority and the next
|
||||
gate. Git owns chronology, the system map owns teardown detail, and evidence
|
||||
records own durable findings.
|
||||
## What runs
|
||||
|
||||
## Immediate Re-entry Instruction
|
||||
|
||||
1. Work from `F:\Projects\Ghostlight`.
|
||||
2. Run `git status --short`, `git log -1 --oneline`, and
|
||||
`npm run state:status`.
|
||||
3. Read `state/map.yaml` (`current_status` first), this handoff, and
|
||||
`docs/architecture/ghostlight-dungeon-mvp.md`.
|
||||
4. Read `notes/ghostlight-current-system-map.md` only when exact pre-rebuild
|
||||
ownership or deletion evidence is needed.
|
||||
5. For deployment, SSH, Idunn, Odin, Heimdall, or host work, consult
|
||||
`F:\Projects\gamecult-ops` before acting.
|
||||
|
||||
If the operator asks only to rehydrate, report the current gate and stop. A
|
||||
persisted next action is not permission to begin edits.
|
||||
|
||||
Do not continue implementation automatically from a rehydrate-only request.
|
||||
Do not trust this file for the exact live HEAD. Git and live runtime witnesses
|
||||
own volatile identity.
|
||||
|
||||
## Current authority
|
||||
|
||||
The operator stopped Run 115 and ordered a whole-machine authority rebuild.
|
||||
The adopted target is `docs/architecture/ghostlight-dungeon-mvp.md`.
|
||||
|
||||
One per-world `WorldKernel` owns one revisioned `WorldState` across Draft and
|
||||
Active phases. It alone derives authority, applies the typed
|
||||
ontology reducer, and commits an atomic CultCache revision. World creation,
|
||||
autonomous turns, player commands, elaboration, consumer patches, time
|
||||
advance, and administrative changes all enter through the same
|
||||
`CommandEnvelope` path; the play agent (plan step 16) holds a named author
|
||||
capability in that same kernel and has no separate owner.
|
||||
|
||||
The replacement owner is sealed. Its runtime boundary remains create/open,
|
||||
immutable snapshot, submit, and typed receipts. Mutable aggregate state,
|
||||
canonical ID issuance, the reducer, and the CultCache journal writer stay
|
||||
private to the kernel. Controller assignment and affordance grants are
|
||||
canonical; current executability and decision opportunities are derived and
|
||||
revalidated by the kernel. The landed `foundation.v0` loop binds opportunities
|
||||
to a revision; ontology v2 replaces that with scope-digest binding, so a
|
||||
proposal whose scope digest is unchanged commits at a later revision and one
|
||||
whose digest changed is rejected. Revision binding is current source, not the
|
||||
adopted rule.
|
||||
|
||||
Autonomous cognition has two explicit modes under disjoint controller scopes:
|
||||
|
||||
- `NarrativePersona` receives narrative projection and replies only in prose.
|
||||
The runner records that prose as receipt-bound noncanonical source evidence;
|
||||
a total Interpreter emits every faithful typed proposal it can lower with an
|
||||
exact source capture and records exact translation gaps for the rest.
|
||||
- `OperationalAgent` receives a permissioned typed view and tools when
|
||||
operator-shaped cognition benefits from direct state work.
|
||||
- Mode changes representation, never authority. A decision opportunity cannot
|
||||
fall through between modes or act twice.
|
||||
|
||||
The Interpreter cannot fail semantically. Missing referents, ambiguous intent,
|
||||
missing affordances, and missing command primitives become translation gaps.
|
||||
Malformed capture spans, raw tool decode failure, and normal step exhaustion
|
||||
fall back to an exact whole-source gap rather than losing meaning. An
|
||||
infrastructure interruption discards partial captures and returns the immutable
|
||||
source pending for a fresh attempt. Source prose is not speech: only actually
|
||||
spoken words may become a typed speech proposal. Only the world kernel may
|
||||
accept or reject a proposed mutation. Translation gaps remain non-fictional
|
||||
inference/evaluation evidence outside `WorldState`; recording one cannot itself
|
||||
request elaboration or advance a world revision.
|
||||
|
||||
World validity and world liveness are two different claims, and both are
|
||||
true. Structural validity is sparse and causal: it never waits on a count, and
|
||||
no count, cover ratio, interestingness, diversity, or prose-quality judgment
|
||||
can admit ontology, reject a structurally valid mutation, or declare a world
|
||||
complete. Liveness is authored: the seed carries a `WorldScaleIntent`, the
|
||||
elaborators pursue its derived per-jurisdiction scale deficit as a work queue,
|
||||
and the cover budget is the deliberate choke that makes attention scarce.
|
||||
|
||||
Operator directive, 2026-09-04, preserve verbatim in intent: the 2,400-subject
|
||||
/ 240-cell / 10% cover profile is deliberate design, not a load fixture. A
|
||||
world feels alive only when actors at every level pursue their own goals; that
|
||||
detail is generated first, then multiresolution simulation is choked so
|
||||
attention is scarce and selection is forced. The mvp doc's teardown-era
|
||||
sentence calling it "test data, not a production elaboration target" was
|
||||
wrong and is amended. Do not re-cut the scale target as fixture noise.
|
||||
|
||||
## Landed
|
||||
|
||||
Git owns the commit chronology; `git log` on `main`
|
||||
is the witness. What is true of the tree now:
|
||||
|
||||
- The replacement mailbox/kernel is the crate and executable runtime
|
||||
identity; no legacy Session Zero, kernel, scheduler, assessor,
|
||||
verifier/reconciliation, or transition module path survives, and no
|
||||
compatibility writer was kept.
|
||||
- One CultCache implementation, consumed from CultLib `85f7024`, owns app
|
||||
sessions, the world journal, and controller custody.
|
||||
- The Persona interpretation contract is structurally total and live in the
|
||||
single `ControllerRunner` in
|
||||
`crates/ghostlight/src/controllers.rs`.
|
||||
- The Idunn provider side is complete: the runtime validates Expected and
|
||||
activation, publishes signed Warming until the write lease arrives, and
|
||||
exposes managed route presence. Idunn v2 serves it on Yggdrasil since
|
||||
2026-09-23.
|
||||
- Plan steps 6 and 8 through 14 are landed with their follow-ups: the ten
|
||||
ontology passes, the seed producer, interruption, witness, and the Claude
|
||||
SDK inference port. `notes/ghostlight-implementation-plan.md` carries each
|
||||
step's landed state; the ontology doc carries the mechanism.
|
||||
|
||||
World acceptance and scale runs stay gated by `state/map.yaml`
|
||||
`current_status.scale_checkpoint`.
|
||||
|
||||
## Immutable failure evidence
|
||||
|
||||
Run 115 is terminal failed at
|
||||
`/var/lib/gamecult/ghostlight-dungeon/acceptance/full-world-delvehold-0a83034-115`:
|
||||
semantic revision 2, regions 2/8, waves 0/1. Resume2 ended on provider SSE
|
||||
timeout. Resume3 exhausted four reconciliation steps after
|
||||
`inst:kharad-road-keepers` referenced unknown `loc:kharad-rhythm-road`.
|
||||
Invocation `d9254cd9b77946aebcf7a7fdae821402` is terminal. Preserve the root and
|
||||
receipts unchanged; its `status.json` is stale derived telemetry.
|
||||
|
||||
Runs 108 through 115 are evidence about load and failure properties of the old
|
||||
body. Those runs were load fixtures; the 2,400-subject / 240-cell profile they
|
||||
exercised is the authored design target, not fixture noise (see the operator
|
||||
directive under Current authority). The 1,200-actor fixture remains a load
|
||||
measure only.
|
||||
|
||||
## Operational boundary
|
||||
|
||||
Ghostlight Dungeon is live on Yggdrasil under Idunn v2 at
|
||||
Ghostlight Dungeon runs on Yggdrasil under Idunn at
|
||||
`https://yggdrasil.gamecult.org/ghostlight/` (runtime `ghostlight-yggdrasil`,
|
||||
state root `/var/lib/gamecult/ghostlight-world-v2`); `/health` names the served
|
||||
commit. The legacy `ghostlight-dungeon.service` is stopped, its old state
|
||||
untouched; the v1 actuator, unit, wiring test and that state are retired in
|
||||
fact and owed deletion. The deploy and play session are recorded in the
|
||||
play-agent cut map block "The first deploy, 2026-09-23 (PA.f198-PA.f216)".
|
||||
CultNet through CultLib `85f7024` owns generation-bound
|
||||
activation, separate lifecycle brakes, process-write leases, observed
|
||||
capabilities, explicit disagreement, and routed RUDP incarnations. Odin through
|
||||
pushed `65cf2b2` owns deterministic recipe and binding admission, exact source
|
||||
freezing, sealed releases, durable deployment transactions, and the narrow
|
||||
native actuator ports.
|
||||
target `ghostlight`, ref `main`, state root `/var/lib/gamecult/ghostlight-world-v2`).
|
||||
`/health` names the commit it serves (`crates/ghostlight-dungeon/src/runtime.rs`).
|
||||
The binary is `ghostlight-dungeon`; its inference reaches Bonsai on Raven
|
||||
through a loopback tunnel, and sign-in goes through Heimdall, discovered via
|
||||
Odin.
|
||||
|
||||
Ghostlight pushed `6a79cb0` with the provider side of this cut. Its recipe
|
||||
requests Idunn's runtime bundle, candidate bind, protected activation and
|
||||
provider credentials, process-write-lease path, and admitted state-root
|
||||
binding. The runtime validates Expected and activation, publishes signed
|
||||
Warming, waits for the exact process lease before opening state, keeps that
|
||||
lease current through bind, Active publication, and serving, republishes Warming
|
||||
until the lease arrives, and exposes its managed route presence. Idunn v2 admitted it
|
||||
on 2026-09-23.
|
||||
## How it deploys
|
||||
|
||||
The adopted cut puts a visible recipe with a constrained launch declaration in
|
||||
each target repo; raw unit or container-runtime templates are rejected. The
|
||||
operator binding selects the workload driver, which alone lowers that launch
|
||||
declaration into process-manager configuration.
|
||||
Idunn operator bindings own the admitted ref, runner/container image and
|
||||
affordances, host paths, secrets, routing endpoint, rollout, retention, and
|
||||
desired replica placement. A sealed plan and release publish only Expected. A
|
||||
service owns its signed runtime presence and health claim. Odin alone
|
||||
authenticates that observation into Present and derives Ready from exact
|
||||
Expected/Present agreement; the three states and any disagreement remain
|
||||
distinct. For writable state, Idunn grants the process-bound lease before state
|
||||
opens. Stable route membership moves only after Ready. Deployment and
|
||||
continuity remain separate authorities; a deployment brake cannot suspend
|
||||
restart of the already-admitted body.
|
||||
Idunn is the only deploy path (`idunn up ghostlight`). The recipe is
|
||||
`deployment/idunn/recipe.toml`; the runbook is
|
||||
`gamecult-ops/runbooks/ghostlight-dungeon-yggdrasil.md`. The Ghostlight daemon
|
||||
cannot start without Odin: its Warming presence and process write lease go
|
||||
through Odin. Preflight Odin's route health before a deploy. Do not invoke the
|
||||
retired v1 actuator (`gamecult-ops/scripts/deploy-ghostlight-yggdrasil.sh`), its
|
||||
wiring test, or `ghostlight-dungeon.service`.
|
||||
|
||||
The current Nginx driver observes rendered configuration and `nginx -T`
|
||||
visibility, not live-worker adoption or packet delivery. A route is not
|
||||
acceptance-complete, and the incumbent may not be drained, until an independent
|
||||
data-plane probe binds the exact candidate runtime and membership digest.
|
||||
## Where open work is
|
||||
|
||||
Idunn is the GameCult-wide deployment, admission, continuity, and future
|
||||
swarm-scaling control plane. Systemd, container runtimes, and existing proxies
|
||||
remain its replaceable actuators; it does not reimplement generic scheduling,
|
||||
networking, container, service-mesh, cryptographic, or consensus machinery.
|
||||
Odin owns the discoverable semantic topology; services own their actual signed
|
||||
capability, health, capacity, and runtime claims.
|
||||
Query the Eureka mind, campaign `ghostlight-verse`: the target in force, the
|
||||
rulings in force (operator directions included), open questions and follow-ups,
|
||||
specs with no report, and open findings. The recipes are in
|
||||
`~/.claude/skills/eureka/references/campaign-state.md`. The campaign's prose
|
||||
target and probed body facts are `notes/ghostlight-verse-target.md` and
|
||||
`notes/ghostlight-verse-map.md`.
|
||||
|
||||
Idunn starts and recovers from its own durable admitted state; Odin is its first
|
||||
managed daemon and the semantic graph root, not an Idunn bootstrap dependency.
|
||||
First-Odin admission still publishes Expected and requires signed Present and
|
||||
Ready; only its evidence transport is bootstrapped by querying that exact
|
||||
candidate directly. Idunn publishes desired topology before dependent
|
||||
promotion. During an Odin outage, it may authenticate private physical evidence
|
||||
to replace only the process incarnation inside an existing admitted generation
|
||||
and preserve the current route. It freezes graph-changing deployment,
|
||||
promotion, scaling, and provider selection; historical Ready cannot authorize
|
||||
the replacement process, and Idunn never emits Present or Ready.
|
||||
## Reading order for a new session
|
||||
|
||||
Heimdall owns account identity. Eve owns command invocation and lowering.
|
||||
VoidBot owns Vault retrieval and evidence. Idunn owns deployment and daemon
|
||||
continuity. Odin owns discovery. None owns world mutation. External consumers,
|
||||
including Delvehold and Epiphany, own their state; Ghostlight may publish views
|
||||
and proposals but cannot commit on their behalf.
|
||||
1. `README.md`: what exists and what does not.
|
||||
2. `AGENTS.md`: invariants and where things are.
|
||||
3. `docs/architecture/ghostlight-dungeon-mvp.md`: the authority architecture.
|
||||
4. `docs/architecture/ghostlight-world-ontology.md`: the kernel's vocabulary and
|
||||
current mechanism.
|
||||
5. `docs/architecture/ghostlight-play-agent-cut.md`: the dated record of the play
|
||||
agent and of the first deploy on 2026-09-23 (findings PA.f198 to PA.f216).
|
||||
It is history; the mind says which findings are still open.
|
||||
|
||||
## Next gate
|
||||
|
||||
The adopted vocabulary is `docs/architecture/ghostlight-world-ontology.md`;
|
||||
its "Current mechanism" section describes the kernel as it stands.
|
||||
`ghostlight-transition-algebra.md` and `ghostlight-multiresolution-agency.md`
|
||||
are teardown evidence.
|
||||
|
||||
### The kernel now
|
||||
|
||||
Thirteen decision-constraining component kinds over a pinned operation catalog
|
||||
under one `WorldPatch`, one reducer, one CAS commit, one decode bound for both
|
||||
authoring lanes, and three confined `SystemCapability` arms: `Clock`,
|
||||
`Elaborator { jurisdiction }`, `Consumer { consumer }`. Proposals bind to a
|
||||
scope digest, and the kernel is the sole `ScopeChanged` detector: a bound
|
||||
narrative turn whose scope moved is re-lowered once by the Interpreter with
|
||||
the typed delta, never lost and never checked lane-side. `Witness` fans a
|
||||
fact out over a place subtree through the one reach owner. External
|
||||
consumers enter through `POST /cultnet/world-patch` under
|
||||
`PatchGround::Consumer`; the live contract is
|
||||
`docs/architecture/ghostlight-world-consumer-api.md`. The seed lane admits a
|
||||
Draft-only owner patch from a local Vault and pursues the derived scale
|
||||
deficit. Inference runs through one `InferencePort::prepare`, routed by model name
|
||||
to three transports: the CodexConnector (not an option for Dungeon, operator
|
||||
2026-09-23), the Node sidecar on the Claude Agent SDK for `claude`-prefixed
|
||||
models, and the local OpenAI-compatible port (see Constraints). The Rust
|
||||
decoder is the one validator on each; the sidecar hands arguments through unvalidated. The sidecar and
|
||||
its receipt shape are a named stopgap, deleted whole when a Messages-API port
|
||||
has budget. The SDK transport was proven on the road before the play agent's
|
||||
Cut 1 (`d69e9d4`) deleted the tick driver those runs exercised: seeded runs on
|
||||
`claude-sonnet-5` committed ticks end to end (evidence ledger; the runbook
|
||||
that recorded them, `notes/local-live-smoke.md`, no longer carries that
|
||||
narrative). A kernel refusal continues the authoring
|
||||
conversation (`Refusal` rows, `controller_work.v16`); the Interpreter cites
|
||||
prose by quote (`source_quote`), and a quote not in the prose is a gap. Plan
|
||||
step 12 is landed: `PersonaMaterial` is the thirteenth component, a promise
|
||||
carries its statement, the Projector sees who else stands in the room, and
|
||||
on the road (run 8) six seeded people speak in six voices about a debt with
|
||||
words in it. Plan step 14 is landed (commit `0582321`): a visible act is
|
||||
quoted by the Interpreter as the visible clause alone and lands as
|
||||
`Seen { by }` knowledge on the co-located; the actor's intent stays
|
||||
private. Knowledge sources are `Witnessed`, `Told`, `Seen`, `Evidenced`.
|
||||
Run 10 passed (18 displays) and produced the first live interrupted cell.
|
||||
Each interrupted cell is now logged per cell: the harness prints
|
||||
`interrupted cell subject=<label> bound=<digest> renewed=<digest>` after
|
||||
each tick line from `CoverSummary.interrupted` (commit `81a1f53`); run 11
|
||||
printed three, matching three re-lowerings in the trace.
|
||||
State and commit schemas are `.consumer.v5`; world creation is
|
||||
`world_create.v4`, which requires lens weights.
|
||||
|
||||
Deferred by design: `PolityInCausalRange`, `IndividuationRequired`, and
|
||||
Verification 13 wait for relations and population slices. The ignored
|
||||
acceptance test `real_local_model_cognition_modes_commit_speech` in
|
||||
`world/controllers.rs` now places its three subjects in one Place
|
||||
(`roll-hall`), fixing the prior `NoAudience` rejection.
|
||||
|
||||
### Constraints
|
||||
|
||||
- A local OpenAI-compatible transport exists in source since the play agent's
|
||||
Cut 2: `crates/ghostlight/src/local_inference.rs`, one
|
||||
`POST /v1/chat/completions` to a loopback endpoint, no credential, inert
|
||||
tool calls. It opens only when `GHOSTLIGHT_LOCAL_ENDPOINT` is set
|
||||
(`runtime.rs`), and claims models by the `GHOSTLIGHT_LOCAL_MODEL_PREFIX`
|
||||
prefix, default `local/`. Bonsai 2 is the live model behind it.
|
||||
- Topology (operator ruling 2026-09-23, "put each of the organs on the right
|
||||
machine"): Dungeon runs on Yggdrasil beside Heimdall under Idunn v2, binding
|
||||
`ghostlight` (Dungeon unit only), ref `main`.
|
||||
Bonsai 2 stays on Raven's GPU and reaches Yggdrasil loopback
|
||||
`127.0.0.1:18080` through Raven's `BonsaiLink` task. Local inference and
|
||||
Heimdall's private plane stay loopback-only. Heimdall is discovered through
|
||||
Odin at use, not an Idunn dependency, until it is a v2 target. The owner
|
||||
of deploy, link and verification is gamecult-ops
|
||||
`runbooks/ghostlight-dungeon-yggdrasil.md`.
|
||||
- CodexConnector is not an option for Dungeon inference (operator,
|
||||
2026-09-23). It is a deliberately isolated Codex fork so that Epiphany
|
||||
stops compiling Codex; nothing goes into it, and its `main` stays at
|
||||
`6519289`. Codex remains lapsed: no subscription, no API budget; the
|
||||
smoke substrate at `F:\Projects\Ghostlight-smoke` stays.
|
||||
- The operator's Claude subscription, inherited by the SDK sidecar from the
|
||||
ambient Claude Code login on the workstation, is the only provider proven
|
||||
live. Its role on Yggdrasil is undecided; deleting it is decided after the
|
||||
gate.
|
||||
- Ghostlight never reads, copies, forwards, or logs a credential. The
|
||||
connector's Codex home is the operator's real `~/.codex`; the SDK sidecar
|
||||
inherits the operator's Claude Code login from the ambient environment.
|
||||
|
||||
### In order
|
||||
|
||||
1. The fix list from the first play session (operator, 2026-09-23: "Stop
|
||||
here, we have shit to fix"): see "Playtest gate" below.
|
||||
2. The outbound half of the consumer contract: the response batch with a
|
||||
non-loopback CultMesh lease.
|
||||
3. Deleting the retired v1 deployment body (see "Deployment" below).
|
||||
4. Integration of the elaborator swarm's ideas (see "World fixtures and
|
||||
the elaborator swarm" below).
|
||||
|
||||
### Playtest gate
|
||||
|
||||
The gate is plan step 16, the play agent
|
||||
(`docs/architecture/ghostlight-play-agent.md`, section "Playtest gate"):
|
||||
a human on a local daemon, every play lane on a local model, creates and
|
||||
seeds a world from a Vault, activates it, plays, and restarts mid-session with
|
||||
the world intact. The target owns the pass list; its cut map is
|
||||
`docs/architecture/ghostlight-play-agent-cut.md`, which owns each cut's status,
|
||||
findings PA.f1 onward, and every ruling.
|
||||
|
||||
Cuts 1 through 14 are landed or landing on `codex/ghostlight-dungeon-mvp`. What
|
||||
the pass changed, in one line each: the autonomous drivers and owner controls
|
||||
are gone from Dungeon (Cut 1); a local inference port exists (Cut 2); the kernel
|
||||
gained a Play authority, `Ruled` facts, minting, retirement and affordance
|
||||
grants (Cuts 3 to 5); the Persona lane became callable (Cuts 6, 7); one play
|
||||
table owns the turn lifecycle (Cut 8); the Eve play surface replaced
|
||||
`world.speak` (Cut 9); and the client round trip was exercised for the first
|
||||
time through a real lowering, which is where the answer path, the question
|
||||
token and the store migrations came from (Cuts 10 to 14). Soul's verdict after
|
||||
Cuts 12 and 13 is ready to play with one preflight.
|
||||
|
||||
The first play session ran on Yggdrasil on 2026-09-23 and did not pass the
|
||||
gate. The fix list, in order, is PA.f212, PA.f211, PA.f213, PA.f214,
|
||||
PA.f215, PA.f216, then one Soul pass over Ghostlight `1fd52b7` onward plus
|
||||
Heimdall `e8e2832`, Odin `96a55ec` and Idunn `9ede4cd`. Each finding and its
|
||||
owner is in the cut map block "The first deploy, 2026-09-23
|
||||
(PA.f198-PA.f216)"; do not restate them here.
|
||||
|
||||
Operator rulings, 2026-09-22. One Dungeon-owned operational agent dispatches
|
||||
and interprets Persona turns, prompts the player, and negotiates results. It
|
||||
replaces the Interpreter and the cover/cell/catalog/owner-click orchestration
|
||||
on Dungeon's play path; the library keeps them for offline simulation. The
|
||||
Projector -> Persona passes are unchanged and a Persona never sees structured
|
||||
state. Rejected: Personas reading their own state, which is the
|
||||
structured-state dump the projector/interpreter sandwich exists to prevent.
|
||||
The agent holds its own named kernel authority, like the clock capability; an
|
||||
actor's act commits only by exercising that actor's affordance.
|
||||
|
||||
Deferred by ruling, not dropped (the target's "Deferred, by ruling"): L2-L4,
|
||||
Session Zero D1-D3 (plan step 15, `docs/architecture/ghostlight-session-zero.md`),
|
||||
and L1 follow-ups f16 (configurable lens sets; operator: yes), f1, f13, f14.
|
||||
|
||||
Dungeon is a consumer of the Ghostlight library. The world kernel is
|
||||
the `ghostlight` library crate and Dungeon consumes it across a public
|
||||
boundary sealed by admission: the kernel rejects any ID, digest or
|
||||
opportunity it did not issue. L0 is closed (`108b691..ab95d78`); its
|
||||
follow-ups are listed in
|
||||
`docs/architecture/ghostlight-library-extraction-postmortem.md`. L1, the
|
||||
stock lens set, is implemented (`835ea4d..872ba35`; cut map
|
||||
`docs/architecture/ghostlight-stock-lenses-cut.md`): lens weights are world
|
||||
data the owner replaces with `SetLensWeights`, each elaborator session records
|
||||
the lens it drew and that lens's instruction text, and the library runs a
|
||||
caller's elaboration sessions concurrently under that caller's own ceiling.
|
||||
Dungeon runs no Active elaboration since the play agent's Cut 1 (`d69e9d4`)
|
||||
deleted its sweep and ceiling; nothing in Dungeon calls this path today.
|
||||
|
||||
The human play path, as source stands after Cuts 1 through 14:
|
||||
|
||||
- `world.play` is the only human play action (`runtime.rs::execute_world`,
|
||||
schema `ghostlight.world_play.v0`). `world.speak` and the story card were
|
||||
deleted by Cut 9 (`f1732c0`); the only surviving mention is a negative
|
||||
assertion in `eve.rs`'s tests.
|
||||
- The Eve play card (`eve.rs`) is owner-gated and carries narration, the open
|
||||
question, and the refusal of the player's own act, plus one free-text
|
||||
control. The open question's identity rides the play button's own
|
||||
`props.action` as an opaque token (Cut 13, PA.f170), never as an editable
|
||||
visible field.
|
||||
- Active elaboration runs with `NullEvidenceSource` (`controllers.rs`), so no
|
||||
Vault reaches it. This is L2's subject and is deferred with L2; the play
|
||||
path stops elaborating while Active.
|
||||
- Dungeon runs no tick driver since the play agent's Cut 1 (`d69e9d4`)
|
||||
deleted it; when cells ran, they ran in sequence at 15–50 s each. Cut 8
|
||||
owns Persona dispatch.
|
||||
|
||||
The eight titles ship as the library's stock lens set. Their 2026-09 removal
|
||||
had no operator decision; the correction record in `state/evidence.jsonl`
|
||||
carries the history.
|
||||
|
||||
### Decisions the operator owns
|
||||
|
||||
- Whether a refused coupled constituent may re-submit once inside the same
|
||||
tick, decided with the submitted-versus-committed number in hand.
|
||||
- The authority for an owner-only Eve `world.run_tick` command, not built.
|
||||
- Routed to the Eve owner: whether the command-result vocabulary needs a
|
||||
fourth state for an overtaken turn instead of rendering an interruption as
|
||||
`denied`.
|
||||
|
||||
### World fixtures and the elaborator swarm
|
||||
|
||||
First-generation world fixtures, one per world, each with Ink, training
|
||||
sidecar, visual plan, lore grounding, BFL manifest and a RUN note, are
|
||||
reviewer-accepted except visual replay, which waits on a scene-set blockout:
|
||||
Delvehold `cistern-house-nine-breaker-test`, Aetheria
|
||||
`navigator-berth-hearing-v0`, Zyphos `eclipse-nursery-handover`, Kalsa
|
||||
`stormshield-handoff-v0`. They live under `examples/ink/<world>/`,
|
||||
`examples/lore-grounding/<world>/`, `examples/visual/<world>/` and
|
||||
`prompts/image-generation/<world>/`.
|
||||
|
||||
The elaborator swarm is drained and a Ghostlight kernel session does not own
|
||||
it. Its review record and the per-pass idea ledgers are in
|
||||
`experiments/elaboration/`; start at that README, which carries the approved,
|
||||
demoted and pending decisions. The proposed vault additions are in local
|
||||
bundles named there, not on GitHub branches. Integrating ideas into the lore
|
||||
vaults is still wanted and deliberately deferred until the operator has time to
|
||||
review them; it is an editorial pass, one idea at a time, never a scripted
|
||||
merge. The retired first-generation loop under
|
||||
`C:\Users\Meta\.claude\worlds\retired` must not be launched. Image rendering
|
||||
is deferred: workers emit imagegen-ready prompts only, and
|
||||
`scripts/generate_bfl_images.py` has no working default key path.
|
||||
|
||||
### Deployment
|
||||
|
||||
Idunn v2 is the only deploy path (`idunn up ghostlight`, per gamecult-ops
|
||||
`runbooks/ghostlight-dungeon-yggdrasil.md`). Still owed on Ghostlight's side:
|
||||
deleting the retired v1 actuator, unit, wiring test and legacy
|
||||
`ghostlight-dungeon.service` state, and subtracting the library's
|
||||
CodexConnector transport. Idunn, Odin, CultLib and Heimdall follow-ups belong
|
||||
to those owners and are listed under "Open, other owners" in the cut map
|
||||
block "The first deploy, 2026-09-23 (PA.f198-PA.f216)".
|
||||
|
||||
## Essential references
|
||||
|
||||
- Target authority: `docs/architecture/ghostlight-dungeon-mvp.md`
|
||||
- Vocabulary and current mechanism: `docs/architecture/ghostlight-world-ontology.md`
|
||||
- Consumer contract: `docs/architecture/ghostlight-world-consumer-api.md`
|
||||
- Frozen teardown map: `notes/ghostlight-current-system-map.md`
|
||||
- Current implementation plan: `notes/ghostlight-implementation-plan.md`
|
||||
- Connector and Claude SDK sidecar bring-up (no live smoke exists):
|
||||
`notes/local-live-smoke.md`
|
||||
- Human-readable state: `state/map.yaml`
|
||||
- Distilled evidence: `state/evidence.jsonl` (full history in
|
||||
`state/evidence.archive.jsonl`)
|
||||
- Machine-managed state: `state/ghostlight-state.cultcache.jsonl`
|
||||
- Interface authority: `docs/architecture/ghostlight-eve-native-interface.md`
|
||||
- Operations: `F:\Projects\gamecult-ops`
|
||||
- Faculty-workflow lessons:
|
||||
`F:\Projects\Epiphany\notes\faculty-workflow-lessons-2026-09-04.md`
|
||||
|
||||
## Re-entry warnings
|
||||
|
||||
- A prompt, transcript, model receipt, scheduler item, browser surface, actor
|
||||
count, or derived simulation cover is not canonical world state.
|
||||
- Do not preserve an old writer through a compatibility path.
|
||||
- Do not let a translation gap become invented state or an Interpreter error.
|
||||
- Do not publish mutable world types, an ID issuer, a reducer entry point, or a
|
||||
generic journal handle for the convenience of tests or adapters.
|
||||
- Do not append a commit when reduction produces no canonical mutation.
|
||||
- Do not resume Run 115.
|
||||
- A consumer never restates a foreign owner's document shape as its own
|
||||
strict struct or fixture. Read the owner's published contract (pinned
|
||||
schema, owner-emitted samples) and prove each direction against the real
|
||||
counterpart. PA.f196 and PA.f197 in the play-agent cut map are the cost.
|
||||
- Deploy only through Idunn v2. Do not invoke the retired v1 actuator
|
||||
(gamecult-ops `scripts/deploy-ghostlight-yggdrasil.sh`), its wiring test, or
|
||||
`ghostlight-dungeon.service`; they are owed deletion, not use.
|
||||
- Do not prove world-v3 purity with a short deny list. Archive the complete old
|
||||
state root or validate a complete allowed-path contract.
|
||||
- Keep this handoff compact. Move chronology to Git, evidence, or the frozen
|
||||
system map.
|
||||
- `docs/architecture/ghostlight-transition-algebra.md` is teardown evidence,
|
||||
not vocabulary authority.
|
||||
- Integration gating: merge, confirm the tip by SHA, then delete the branch;
|
||||
never chain `merge --ff-only` with `branch -D`. Push only after reading the
|
||||
test result line, never on the launch.
|
||||
`notes/local-live-smoke.md` covers bringing up the Claude SDK sidecar by hand.
|
||||
`notes/ghostlight-implementation-plan.md` is the historical plan of the 2026-09
|
||||
rebuild.
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,329 +0,0 @@
|
|||
# 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.
|
||||
|
||||
> **What is built, 2026-09-23.** The live runtime is the play agent:
|
||||
> `docs/architecture/ghostlight-play-agent.md` for the target,
|
||||
> `ghostlight-play-agent-cut.md` for the means, and
|
||||
> `ghostlight-play-agent-postmortem.md` for what it cost. Read this document's
|
||||
> *Authority and invariants* as current — the kernel owns state, every path
|
||||
> enters the same validate-and-commit door, projections never commit, and a
|
||||
> place persists when you leave it. Read *Implementation changes* as a roadmap
|
||||
> in a spec's grammar. Of it:
|
||||
>
|
||||
> - **Live:** the Rust daemon, typed CultCache state, the Persona loop, the
|
||||
> Eve surface and its browser client, and a Vault evidence source over local
|
||||
> Markdown.
|
||||
> - **Not built:** fiction-first d20 resolution (a risky act draws from an
|
||||
> affordance's weighted outcome bands, with no assessment step, no modifiers
|
||||
> and no roll receipt; an act no granted affordance expresses is authored
|
||||
> directly as a ruled consequence with no draw at all, and the player cannot
|
||||
> tell those two paths apart); away-time world agency (advancing the clock
|
||||
> rolls routines and accumulates pressure, and nothing deliberates
|
||||
> off-screen); multiresolution gestalt and institution agency (institutions
|
||||
> exist as offices, grants and jurisdiction, and nothing makes them act); the
|
||||
> generic Vault provider contract and canon candidates; and the hosting
|
||||
> details, which name a model family and a credential store the Body does not
|
||||
> use.
|
||||
> - **Never run:** seeding past its configuration check, and any model behind
|
||||
> the local inference port.
|
||||
|
||||
## Summary
|
||||
|
||||
Build `GhostlightDungeon` inside `GameCult/Ghostlight`: a persistent, Vault-grounded, single-player narrative simulation with a private web chat interface for two testers.
|
||||
|
||||
The runtime will be a Rust daemon on Starfire. It will own world compilation, typed CultCache state, d20 resolution, NPC Persona loops, offscreen simulation, narration, and Eve/CultUI publication. A thin TypeScript browser client will lower the Eve surface and submit typed commands.
|
||||
|
||||
Population-scale agency is implemented by the dynamic connected cover in
|
||||
`docs/architecture/ghostlight-multiresolution-agency.md`. That authority map
|
||||
supersedes any reading of the gestalt materialization notes below as a flat
|
||||
strategic Persona list: materialization preserves named identity, while the
|
||||
agency graph decides the current simulation resolution.
|
||||
|
||||
Ghostlight’s existing v0 schemas and training fixtures remain evidence and regression material; they do not become runtime authorities.
|
||||
|
||||
## Authority and invariants
|
||||
|
||||
- The per-campaign `WorldKernel` is the sole owner of canonical state and revision numbers.
|
||||
- Player commands, NPC actions, scheduled ticks, travel, waits, imports, and reloads all enter the same `WorldCommand → validate → atomic commit` path.
|
||||
- Projectors, Personas, Interpreters, retrieval, initiative, narration, news generation, dice previews, and the browser may propose or project state; none may commit it.
|
||||
- Scenes are derived from persistent occupancy, topology, perception, and current events. Leaving a location does not delete it.
|
||||
- RAG evidence remains owned by the Vault provider. For Aetheria, Ghostlight consumes VoidBot’s canonical retrieval service and stores only exact evidence receipts used by each campaign—never a rival semantic index.
|
||||
- Every campaign branches from canon at creation. Later historical records describe the baseline trajectory, not an outcome the player must be railroaded into.
|
||||
- Improvised facts are explicitly branch-local. Broadly useful gaps become reviewable canon candidates, never silent Vault edits.
|
||||
- Player text describes an attempt, not a completed fact. Impossible actions do not receive a roll.
|
||||
- Model failures, malformed outputs, stale projections, or retrieval outages produce no partial world mutation.
|
||||
|
||||
## Implementation changes
|
||||
|
||||
### Runtime and persistence
|
||||
|
||||
- Add a Rust 2024 workspace using Tokio/Axum, the Rust CultCache/redb backend, CultMesh/CultNet publication, and a provider-neutral model port.
|
||||
- Store service state under `F:\GameCult\GhostlightDungeon`:
|
||||
- service/control and schema catalog `.cc`;
|
||||
- one row-oriented `.cc` store per campaign;
|
||||
- exact Vault evidence receipts;
|
||||
- private model-stage records and commit receipts;
|
||||
- exported campaign and canon-candidate bundles.
|
||||
- Route all writers through an in-process campaign mailbox. Background ticks and HTTP commands cannot race or repair each other afterward.
|
||||
- Publish the player surface, operator inspector, health, scheduler pressure, model receipts, and command results through CultMesh/Eve. HTTP health remains a probe of that state, not separate truth.
|
||||
|
||||
### Vault and world compiler
|
||||
|
||||
- Define a generic `VaultProvider` contract for source search, surrounding context, source witnesses, authority lanes, temporal scope, and exact-document retrieval.
|
||||
- Implement the bundled Aetheria adapter against VoidBot’s streamable MCP endpoint at Starfire loopback.
|
||||
- Add a hosted custom-Vault path for Git-synchronized, Obsidian-compatible Markdown hierarchies after tenant-isolation and import-security gates are met. The Vault service owns indexing; campaigns store only manifest bindings and exact evidence receipts. Provisional plans include one active Vault and 10 million indexed source tokens for Contributor/Private, or three active Vaults and 30 million combined tokens for Plus, with two or six full imports per month respectively.
|
||||
- At campaign creation:
|
||||
1. Retrieve broad Aetheria evidence and generate three distinct suggested openings across different eras, places, and pressures.
|
||||
2. For the selected opening, generate three source-grounded player roles plus a custom-role path.
|
||||
3. Alternatively compile a fully custom who/where/when/goal description.
|
||||
4. Produce an approval preview containing the initial topology, cast, institutions, capabilities, clocks, evidence coverage, gaps, and branch-local assumptions.
|
||||
5. Commit only after approval.
|
||||
- Materialize a bounded playable region and surrounding institutional pressure graph, not the entire universe. New destinations compile on demand and attach to stable containment, route, distance, and travel-time records.
|
||||
- Treat Vault evidence as canon constraints rather than an exhaustive game map. Automatically synthesize the smallest coherent routes, geometry, local people, ordinary procedures, supplies, responsibilities, capacity choices, and operational doctrine required for play; store them as reversible `branch_local` or `provisional_local` facts and disclose consequential choices in `branch_assumptions`. Ordinary source silence is not a material gap, and generated details may vary between campaigns unless the Vault pins them.
|
||||
- Reserve material gaps for an exact approved premise that cannot be preserved without choosing between contradictory canon baselines, inventing an explicitly requested but unanchored canon baseline, or exceeding an approved extraordinary capability. Those gaps return to Session Zero negotiation before publication.
|
||||
- Store useful gaps as `CanonCandidate` records with originating campaign, evidence, conflicts, proposed wording, and affected Vault sources. The lab can review and export Markdown plus `.cc` evidence; it cannot edit AetheriaLore or open PRs.
|
||||
|
||||
### Persona and world action loop
|
||||
|
||||
Population scaling uses reversible gestalt materialization. A crowd, village,
|
||||
crew, or corporation may act offscreen through one gestalt Persona. When a
|
||||
specific member becomes relevant, the WorldKernel materializes an individual
|
||||
from the gestalt baseline plus a persistent member delta and current scene.
|
||||
When relevance expires, it folds individual consequences back into that delta,
|
||||
admits only reviewed aggregate learning to the gestalt, and removes the active
|
||||
simulation slot. The member delta remains durable so returning to the person
|
||||
reconstructs the same individual rather than a fresh approximation.
|
||||
|
||||
Gestalt projection, relevance detection, and merge proposals cannot commit.
|
||||
`MaterializeGestaltMember` and `DematerializeGestaltMember` use the normal
|
||||
revisioned WorldCommand path. A named member's relationships, memories,
|
||||
possessions, injuries, promises, and identity never become disposable gestalt
|
||||
texture.
|
||||
|
||||
Live turns run a structured gestalt-relevance planner after the player event
|
||||
and before NPC appraisal. Its atomic `ReconcileGestaltPresence` command can
|
||||
materialize newly relevant members and fold irrelevant members back into their
|
||||
persistent deltas. The planner may propose presence only; it cannot promote
|
||||
population-wide learning or mutate state directly.
|
||||
|
||||
World compilation may seed collective populations and a bounded roster of durable
|
||||
member identities, but that roster is not exhaustive. When an anonymous member
|
||||
first becomes identity-bearing in play, the relevance planner may propose a new
|
||||
member delta and the WorldKernel atomically creates that durable identity and its
|
||||
active actor slot. Existing deltas are always preferred when they fit, preventing
|
||||
the same person from being invented twice. Population-scale capabilities, knowledge, resources, goals,
|
||||
and pressures belong to the gestalt. A member record owns identity, memories,
|
||||
relationships, possessions, injuries, obligations, last known location, and
|
||||
additions to or removals from the shared baseline. Materialization is a derived
|
||||
composition of those two owners; the temporary actor slot owns neither source.
|
||||
Dematerialization deletes only that slot after atomically updating the member
|
||||
delta. Strategic ticks address the gestalt and its dematerialized deltas rather
|
||||
than iterating every member as a live Persona.
|
||||
|
||||
Materialization grants a short revision-bound relevance lease. Speech, private
|
||||
appraisal changes, and resolved actions refresh it through the WorldKernel.
|
||||
Neither the model planner nor a direct command may dematerialize a member while
|
||||
the player can still perceive them or before that lease expires. This prevents
|
||||
quiet conversational beats from making people flicker between individual and
|
||||
gestalt state.
|
||||
|
||||
Ghostlight owns its own generalized projection machinery:
|
||||
|
||||
1. Projector converts the actor’s permitted typed slice, memories, perceived events, relationships, goals, and retrieved knowledge into a private lived narrative stream.
|
||||
2. Persona receives only that narrative stream and responds naturally—no schemas, action DSL, or raw state.
|
||||
3. Interpreter extracts typed private deltas, explicit speech, reaction priority, and `WorldActionProposal` candidates.
|
||||
4. WorldKernel validates spatial reach, knowledge, custody, resources, capability, opposition, and state version before committing anything.
|
||||
|
||||
All affected scene participants appraise a committed event in parallel. Actor-private deltas commit against their own snapshot versions; initiative then chooses compatible reactions or actions for world resolution. This ensures present characters continue perceiving and reacting even when another character currently holds conversational focus.
|
||||
|
||||
Canonical NPC consequence is serialized one opportunity at a time. The
|
||||
deterministic initiative projection chooses the highest-priority stable winner;
|
||||
`ResolveNpcAction` verifies that exact proposal and its same-revision assessment
|
||||
against the committed wave, then consumes its siblings, obtains the server-side
|
||||
d20, and applies the typed outcome in one atomic commit. A malformed assessment
|
||||
therefore leaves no action-begun half-state. NPC resolution never resets
|
||||
player-activity or away-time state.
|
||||
|
||||
Use DeepSeek’s current API directly:
|
||||
|
||||
- `deepseek-v4-flash`, non-thinking: Projectors, Interpreters, retrieval planning/reranking, verification, and offscreen actors.
|
||||
- `deepseek-v4-pro`, non-thinking for live work: world compilation, action assessment, live Personas, and narration.
|
||||
- Structured stages use JSON Output followed by local schema validation. Empty or malformed output receives one same-snapshot retry, then fails without mutation.
|
||||
- Record provider, model, request hash, source receipts, latency, output hash, validation result, and state version. Never persist or display `reasoning_content`.
|
||||
|
||||
DeepSeek currently documents both V4 model IDs, streaming, and JSON output through its OpenAI-compatible Chat Completions API. [Models](https://api-docs.deepseek.com/quick_start/pricing), [Chat API](https://api-docs.deepseek.com/api/create-chat-completion), [JSON Output](https://api-docs.deepseek.com/guides/json_mode/).
|
||||
|
||||
### Fiction-first d20 resolution
|
||||
|
||||
- Provide separate `Assess` and `Attempt` commands. Assessment never becomes visible to NPCs or changes state.
|
||||
- An assessment contains:
|
||||
- normalized intent and intended effect;
|
||||
- admissibility or the missing permission;
|
||||
- DC on the 5/10/15/20/25/30 resistance scale;
|
||||
- itemized contextual modifiers with state or evidence references;
|
||||
- modifier total capped at ±10;
|
||||
- effect ceiling;
|
||||
- success, mixed-result, and failure stakes;
|
||||
- campaign revision and expiring assessment digest.
|
||||
- Contextual modifiers come from capabilities, knowledge, tools, access, assistance, leverage, position, opposition, injuries, and conditions. There are no base attributes.
|
||||
- Confirmation checks the assessment revision, obtains a server-side OS-random d20, and atomically stores the roll receipt and world transition.
|
||||
- Outcomes:
|
||||
- total ≥ DC + 10: strong success;
|
||||
- total ≥ DC: success;
|
||||
- total within 5 below DC: mixed result;
|
||||
- lower: failure with the previewed consequence.
|
||||
- Natural 20/1 moves one outcome band, but cannot make an impossible action possible or exceed its effect ceiling.
|
||||
- Stale assessments are recompiled rather than rebased.
|
||||
- Overreach returns explicit sacrifices or bargains that could admit a new assessment.
|
||||
- Speech and its intended effect are separated: the character may successfully say something while failing to persuade, deceive, or intimidate.
|
||||
|
||||
Every roll band carries a prevalidated `WorldEffectDelta`. The MVP vocabulary
|
||||
can change local conditions and relationships, move the acting character over
|
||||
an existing route, advance known clocks, or change a known institution's
|
||||
posture. The chosen band and its delta commit atomically with the roll receipt;
|
||||
stake prose alone never impersonates world mutation.
|
||||
|
||||
### Away-time world agency
|
||||
|
||||
- The daemon owns a five-minute scheduler pulse. Campaigns enter away simulation after fifteen minutes without player activity.
|
||||
- Each real hour awards one strategic tick, capped at eight pending ticks per absence. The compiled campaign chooses the in-world tick duration; default is six hours.
|
||||
- Background simulation affects remote actors, institutions, resources, movement, bargains, investigations, preparation, recruitment, obstruction, and clocks. The absent player is never puppeted or directly harmed.
|
||||
- Each due tick derives a budgeted simulation-cell cover and runs one private
|
||||
Projector → Persona → Interpreter pipeline per cell against the same campaign
|
||||
revision and resolution epoch. The WorldKernel alone converts admitted typed
|
||||
effects into a `StrategicTickPlan`; proposal prose cannot become event truth.
|
||||
It accepts only known institutions, gestalts, members, and non-player actors;
|
||||
direct-route movement must fit inside the tick duration, information channels
|
||||
are bounded per constituent, and population pressure cannot silently become
|
||||
canon knowledge. Gestalts may also emit typed preparation, coordination,
|
||||
investigation, recruitment, obstruction, trade, or communication attempts
|
||||
against subjects with an explicit agency relation or exact shared location.
|
||||
A capped salient dormant member may be addressed by durable ID without being
|
||||
absorbed into a population voice. These commit only an attributed attempted-
|
||||
activity event; success and target response require later admitted effects.
|
||||
Durable dematerialized members use the same bounded activity vocabulary with
|
||||
exact personal attribution; ordinary action and migration share one per-
|
||||
person slot. Invalid, stale, timed-out, or malformed waves leave world state
|
||||
unchanged.
|
||||
- The scheduler and return-time catch-up invoke the same `AdvanceStrategicTick` command. Catch-up processes missed ticks before accepting the next player action.
|
||||
- Live play has inference priority; background work stops launching new calls while a player turn is active.
|
||||
- Offscreen events generate information-channel-aware news leads. On return, the player may receive newspapers, reports, messages, or rumors only when the character has access to them; the news layer cannot reveal omniscient state.
|
||||
|
||||
### Multiresolution gestalt and institution agency
|
||||
|
||||
- Campaign creation compiles a global agency skeleton across every non-player
|
||||
actor, institution, and active gestalt leaf. All six partition facets are
|
||||
explicit; remote powers do not require eager local geography.
|
||||
- `ActorState`, `InstitutionState`, gestalt baselines, member deltas,
|
||||
relationships, possessions, and knowledge remain canonical. A
|
||||
`simulation_cell.v1` is a derived connected cover and may be discarded.
|
||||
- The campaign chooses 1–240 active Persona cells, default 8, within its pooled
|
||||
entitlement. Provider parallelism is a separate control capped at 32.
|
||||
Foreground subjects,
|
||||
active leases, initiative holders, explicit targets, and individual-detail
|
||||
pins may create a reported temporary overage.
|
||||
- Adjacent cells merge by the weighted loss specified in
|
||||
`ghostlight-multiresolution-agency.md`; cohesive cells require real common
|
||||
authority, while opposed or cross-faction cells are arenas with no synthetic
|
||||
actor or shared knowledge.
|
||||
- Every active cell receives one private Projector → Persona → Interpreter
|
||||
pipeline, followed by a semantic effect verifier when the cell proposes an
|
||||
action. Arena output is constituent-attributed. The verifier proves that the
|
||||
typed effect represents the Persona's actual choice rather than a reversed or
|
||||
lossy interpretation. All cells, receipts, and effects validate against one
|
||||
world revision and resolution epoch before one atomic strategic commit.
|
||||
- Persistent detail debt rotates direct attention through quiet subjects. All
|
||||
clocks and deterministic obligations advance regardless of selected detail.
|
||||
- Population fission is a separate approval-gated canonical operation. It
|
||||
creates enumerated child leaves plus `other/unknown`, preserves the parent as
|
||||
lineage, and reassigns durable member deltas without rewriting identity.
|
||||
- Presence planning sees only active nearby leaves and people whose exact
|
||||
dormant location matches the player. Inactive ancestors and remote rosters
|
||||
stay out of the prompt. The WorldKernel rejects inactive-leaf individuation,
|
||||
location teleportation, and model-driven promotion outside the active scene.
|
||||
- Provider request parallelism is an operator control with its own epoch. It
|
||||
batches the selected cell pipelines and cannot change the cover or fictional
|
||||
state.
|
||||
|
||||
### Web laboratory and hosting
|
||||
|
||||
- Build the interface as a Ghostlight-owned `gamecult.eve.surface.v1` document and lower it with Eve’s pinned browser renderer.
|
||||
- Provide:
|
||||
- generated-opening and custom-start compiler;
|
||||
- narrative transcript and composer;
|
||||
- Assess, Attempt, confirm-roll, revise, and Wait controls;
|
||||
- character ledger for capabilities, equipment, conditions, obligations, relationships, and known facts;
|
||||
- location/time/pressure display;
|
||||
- news and rumor drawer;
|
||||
- named campaign creation, fork, reset, and `.cc` export;
|
||||
- optional operator inspector for evidence, topology, state versions, model receipts, rejected proposals, and private spoiler traces.
|
||||
- Do not expose model chain-of-thought or secrets.
|
||||
- Serve the embedded web bundle on TCP `8831`. Firewall access is limited to Starfire’s private LAN and `10.77.0.0/24`; no public listener or Yggdrasil web gateway is added.
|
||||
- Use Heimdall's Discord browser-completion path to establish account-bound HttpOnly sessions. Ghostlight verifies `aud=ghostlight` claims locally and owns campaign authorization. Campaigns are single-player; simultaneous co-op is outside the MVP.
|
||||
- Run `GhostlightDungeon` as a normal detached process under the Starfire operator account. Record its PID, executable, and logs; explicit start, stop, health, release, and rollback scripts own lifecycle. ACL the runtime root to administrators and that operator account.
|
||||
- Read the DeepSeek key from stdin during setup, protect it with machine-scoped DPAPI plus file ACLs, and never place it in source, arguments, logs, or environment projections.
|
||||
- Build immutable release directories from the exact Git commit, switch the active release through the guarded junction, and record provenance in CultCache plus the immutable release manifest. Process restart is explicit; Windows service installation and automatic boot recovery are outside this MVP by operator choice.
|
||||
|
||||
### Repository and operational documentation
|
||||
|
||||
- Implement on `codex/ghostlight-dungeon-mvp`, with coherent foundation, runtime, interface, and deployment commits pushed to GitHub.
|
||||
- Add the authoritative GhostlightDungeon architecture/build document and update Ghostlight’s system map, implementation plan, handoff, state map, and evidence ledger.
|
||||
- Keep Starfire service/firewall/tunnel ownership in `gamecult-ops`, with a deployment and rollback runbook.
|
||||
- Before live VoidBot integration, resolve the current Yggdrasil inventory/DNS split and independently verify the offered SSH host fingerprint. Then repair the tunnel task’s stale `E:\Projects` path to `F:\Projects`, restore `127.0.0.1:17875/mcp`, and update ops truth. Never bypass host-key verification or revive Starfire’s retired VoidBot/Qdrant writers.
|
||||
|
||||
## Public contracts
|
||||
|
||||
- `ghostlight.vault_manifest.v1`, `vault_evidence_receipt.v1`, `world_compile_preview.v1`
|
||||
- `campaign.v1`, `world_fact.v1`, `location.v1`, `actor_state.v1`, `institution_state.v1`, `relationship_state.v1`, `world_clock.v1`, `event.v1`
|
||||
- `player_action_assessment.v1`, `roll_receipt.v1`, `world_commit_receipt.v1`
|
||||
- `persona_stage_receipt.v1`, `actor_state_delta.v1`, `world_action_proposal.v1`
|
||||
- `narration_projection.v1`
|
||||
- `strategic_tick.v1`, `news_issue.v1`, `canon_candidate.v1`
|
||||
- `rejected_proposal_receipt.v1`, `campaign_lifecycle_receipt.v1`
|
||||
- `gestalt_persona_state.v1`, `gestalt_member_delta.v1`,
|
||||
`gestalt_materialization_receipt.v1`
|
||||
- Existing `gamecult.eve.surface.v1` and `gamecult.eve.command.v1`
|
||||
|
||||
Publish JSON Schema only as the schema catalog. Runtime documents and exports use MessagePack-backed CultCache `.cc`; JSON exists only at browser, MCP, and model-provider boundaries.
|
||||
|
||||
## Test and acceptance plan
|
||||
|
||||
- Unit-test every schema, redb/CultCache round trip, optimistic commit, topology invariant, knowledge gate, DC/modifier rule, outcome band, roll receipt, branch fact, and scheduler budget.
|
||||
- Use injected clocks, RNG, Vault provider, DeepSeek transport, and persistence ports.
|
||||
- Prove malformed/empty DeepSeek JSON, timeout, retrieval loss, daemon restart, stale assessment, stale Persona output, and concurrent scheduler/player commands cannot partially mutate state.
|
||||
- Run existing Pallas, Lucent, and Corvid fixtures as regression scenarios, even though hosted opening suggestions are generated.
|
||||
- Acceptance scenarios:
|
||||
- compile an obscure Aetheria time/place or return an honest evidence-gap preview;
|
||||
- leave a location, advance the world, and return to the same geometry and inhabitants;
|
||||
- approach a gestalt population, automatically materialize a durable member,
|
||||
form a member-specific relationship, leave until the relevance lease expires,
|
||||
fold the active actor into its persistent delta, tick the population once as a
|
||||
gestalt, and later rematerialize the same person with that relationship intact;
|
||||
- show reactions from every affected present actor;
|
||||
- prevent an NPC from acquiring unearned knowledge or expertise;
|
||||
- reject impossible action claims and offer explicit bargains;
|
||||
- preview and confirm a fully receipted d20 action;
|
||||
- observe institutions exploiting, resisting, or redirecting the protagonist;
|
||||
- produce material offscreen changes and accessible news after absence;
|
||||
- reload/fork/export a campaign without losing continuity;
|
||||
- verify two invite sessions and rejection of unauthenticated access.
|
||||
- Performance targets under a healthy provider:
|
||||
- first progress update within 300 ms;
|
||||
- all actor stages execute in parallel waves;
|
||||
- a four-actor live turn completes within 20 seconds;
|
||||
- background inference yields immediately to live work.
|
||||
- Final deployment smoke verifies explicit process restart, LAN and WireGuard access, blocked public access, DeepSeek inference, VoidBot-grounded retrieval, scheduler continuation, state persistence, CultMesh/Eve publication, and exact deployed commit provenance.
|
||||
|
||||
## Assumptions and exclusions
|
||||
|
||||
- Aetheria is the only bundled Vault adapter, but no compiler logic is Aetheria-specific.
|
||||
- Generated suggestions plus unrestricted custom compilation replace fixed featured openings.
|
||||
- No D&D classes, spell slots, six-ability statistics, or 5e sheet are canonical in the MVP. The typed character ledger remains sufficient for later D&D-shaped projections.
|
||||
- No arbitrary Vault upload/import UI in the current MVP; Git-synchronized Obsidian-compatible tenant Vaults are a documented post-gate product intention. No multiplayer campaign, voice, image generation, or direct canon mutation in the MVP. Multiplayer is an intended extension of the existing one-kernel/many-actors authority model and is documented separately; it does not expand this acceptance plan.
|
||||
- The live deployment requires a DeepSeek key and restoration of the trusted VoidBot retrieval crossing; fixture-backed development may proceed before those two setup gates.
|
||||
|
|
@ -1,76 +0,0 @@
|
|||
# Ghostlight Dungeon Homepage Promise Acceptance
|
||||
|
||||
Updated: 2026-08-23
|
||||
|
||||
This is the adversarial player-test map for the promises published by
|
||||
`GhostlightDungeon-site/content/index.md`. The player-visible proof boundary is
|
||||
the typed `ghostlight.play` Eve surface. Operator projections and receipts may
|
||||
diagnose a result, but they cannot substitute for a coherent player experience.
|
||||
|
||||
## Authority
|
||||
|
||||
- `SessionZeroKernel` owns the negotiated campaign brief until publication.
|
||||
- `WorldKernel` owns every canonical world revision after publication.
|
||||
- The Eve surface projects permitted state and submits typed commands. It does
|
||||
not own authentication, character identity, results, or world facts.
|
||||
- Heimdall proves account possession and access. A retained entitlement is not
|
||||
a browser authentication credential.
|
||||
- Model stages, retrieval, narration, and strategic cells propose or explain.
|
||||
They never commit.
|
||||
|
||||
## Acceptance matrix
|
||||
|
||||
| Public promise | Adversarial Eve path | Player-visible pass condition | Invariant witness | Current state |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| Places stay where they are; people, places, and consequences survive the context window. | Record the current location, cast, routes, obligations, and injuries. Travel away, advance time, restart the daemon between turns, and return by the projected travel controls. | The same place, topology, people, and unresolved consequences return with only committed changes. Narration does not reconstruct incompatible geometry. | Stable canonical IDs and topology; exact revisioned event and relationship records; reload projects the same committed state. | Automated and operator evidence exists; full Eve departure-and-return replay pending. |
|
||||
| Worldbuilding comes from the selected lore Vault rather than model memory. | In Session Zero, request an obscure Aetheria place and pressure combination, then inspect the compilation review and play details that require source knowledge. Ask for an unsupported mechanic as though it were canon. | Grounded details identify their evidence coverage. Material gaps are explicit and block publication or the unsupported fact; nearby fixture cast and geography are not borrowed. | Exact Vault evidence receipts; branch-local assumptions; no rival semantic index; no mutation on retrieval or validation failure. | Mars/Zhestokost compiler canary passed after repair; adversarial Eve replay and unsupported-mechanic probe pending. |
|
||||
| Characters know only what they perceived or learned and cannot borrow another character's secrets or expertise. | Reveal a secret in a private character/DM channel or to one distant actor, then question an unentitled present or remote actor about it. Ask an unqualified actor for specialist work. | The unentitled actor does not know the secret, does not reveal hidden attribution, and does not acquire convenient expertise. | Actor-local knowledge, memory, perception, capability, and exact information-channel gates; actor-filtered surfaces. | Kernel and strategic-wave evidence exists; player-visible probe pending. |
|
||||
| Present characters keep perceiving and reacting even when another character has conversational focus. | Enter a scene with at least three NPCs. Address one, then perform a public act that materially affects all of them without prompting the others by name. | Every affected present actor appraises the event; selected reactions remain attributed and consistent with individual goals and knowledge. | Parallel appraisal against one committed event; initiative selects compatible reactions; no synthetic arena actor. | Architecture and unit coverage exist; dense player-visible scene probe pending. |
|
||||
| An action is an attempt; impossible claims are refused and risky actions expose odds and stakes before a server-side roll. | Assert a completed impossible fact, request an over-ceiling effect, then try a risky admissible version. Use Assess before Attempt and deliberately stale one assessment. | The impossible claim changes nothing and explains the missing permission or available bargain. The admissible action shows DC, modifiers, ceiling, and stakes; confirmation rolls once server-side. A stale preview recompiles instead of rebasing. | Assessment revision/digest binding; OS-random roll receipt; atomic commit; no roll for impossibility; effect ceiling. | Eve refused a permanent self-repair miracle at revision 14, rolled nothing, capped the effect at none, and offered three grounded bargains. The admissible roll and stale-preview replay remain open. |
|
||||
| Powers pursue their own interests and may refuse, bargain, exploit, contain, or resist the protagonist. | Present a powerful but naive character to an institution, demand obedience, expose exploitable leverage, then advance strategic time without helping it. | The institution preserves its mandate and pressures, rejects free submission, and produces an attributed self-interested response or deliberate inaction. | Institution goals, authority, relationships, pressure clocks, exact attributed strategic proposals, and outcome validation. | One hosted strategic wave passed; direct protagonist-pressure play pending. |
|
||||
| Institutions and populations act while the player is away. | Note remote clocks, people, resources, and destinations; wait or leave long enough for strategic ticks; return and inspect only accessible news before revisiting the affected place. | Material background changes occur without puppeting or directly harming the absent player. News reveals only what the character's channels permit. | Shared `AdvanceStrategicTick` command; complete derived cover; atomic wave; no human-controlled actor writes; channel-aware news. | Revision 13 hosted tick passed with no remote-news leak; Eve away-and-return replay pending. |
|
||||
| Background lives can return with identity and relationship intact after Gestalt merging, migration, and splitting. | Help a named refugee, leave as their population disperses through nested destinations under a low cell budget, later travel to one destination, and interact with the rematerialized person. Repeat across a higher-level merge. | The same person returns with their specific name, relationship, possessions, memories, and post-separation history. Rival subjects merged into an arena never speak or know as one. | Persistent member delta and lineage; unique canonical coverage; arena attribution; explicit migration; materialization/folding commits. | Strict fixture passes; live end-to-end player-visible callback remains unproven. |
|
||||
| A custom world is an actual Git-synced, Obsidian-compatible Markdown Vault rather than a prompt summary. | Select an entitled imported Vault, compile against linked Markdown facts at distant parts of the hierarchy, update it through the supported import path, and revisit established campaign state. | Exact source witnesses are used on demand, unchanged campaign facts remain stable, branch inventions stay local, and the source Vault is never silently edited. | Vault-provider ownership; content-addressed receipts/imports; branch-local facts; reviewable canon candidates. | Bundled Aetheria adapter is live. Public arbitrary Vault import UI and commercial entitlement flow are outside the current MVP and must not be represented as shipped. |
|
||||
|
||||
## Test order
|
||||
|
||||
1. Authenticate through the Heimdall Eve plugin and resume the existing canary.
|
||||
2. Run impossible-action, effect-ceiling, and stale-assessment pressure without
|
||||
leaving the current location.
|
||||
3. Exercise a three-or-more-character public event and probe local knowledge.
|
||||
4. Travel away and back, including a daemon restart between the two legs.
|
||||
5. Advance strategic time, inspect permitted news, and confront an autonomous
|
||||
institution with a demand against its interests.
|
||||
6. Compile a fresh obscure start through Session Zero and pressure evidence-gap
|
||||
handling from the player surface.
|
||||
7. Build the live named-refugee dispersal and return arc under cell budgets 1,
|
||||
4, 8, and 32. The callback promise remains open until this path is visible to
|
||||
a player, not merely present in a fixture.
|
||||
|
||||
## Stop conditions
|
||||
|
||||
- Any stale, malformed, unauthorized, or failed model result mutates world or
|
||||
Session Zero state.
|
||||
- A browser-supplied actor, member, account, or outcome claim is accepted as
|
||||
authority.
|
||||
- A location, character, relationship, possession, secret, or topology edge is
|
||||
silently reconstructed instead of loaded from canonical state.
|
||||
- An arena emits collective speech, knowledge, ownership, or action.
|
||||
- A human-controlled actor is puppeted by strategic simulation.
|
||||
- A private fact appears in another player's projection, public narration, or
|
||||
an unearned NPC response.
|
||||
- The interface makes a refusal technically correct but unusably opaque. The
|
||||
product promise includes a satisfying game, not merely a validator saying no.
|
||||
|
||||
## Current play scars
|
||||
|
||||
- At campaign revision 14, the grounded repair assessment exhausted its one
|
||||
same-snapshot model correction because the model proposed a zero clock
|
||||
advance. The campaign and fictional time did not mutate.
|
||||
- The public Eve receipt exposed the private model stage, instance pointer,
|
||||
schema pointer, and rejected value. Release `855d6be8fc9c28f1da9419707af495afc2491b38`
|
||||
moves that diagnostic into private tracing and returns a bounded player-safe
|
||||
retry message.
|
||||
- The same slow assessment left the previous receipt visible until completion.
|
||||
Eve `19c3dcf9173dce848a6253e975324ea239a02d24` now projects immediate,
|
||||
renderer-local `Working…` status until the typed provider receipt arrives.
|
||||
|
|
@ -1,5 +1,9 @@
|
|||
# Ghostlight Implementation Plan
|
||||
|
||||
> Status: the historical plan of the 2026-09 rebuild. Steps 1-16 are landed or
|
||||
> deferred by ruling; this is not the current plan. Current work is the campaign
|
||||
> `ghostlight-verse` in the Eureka mind (see `AGENTS.md`).
|
||||
|
||||
## Objective
|
||||
|
||||
Rebuild Ghostlight Dungeon as one legible world machine: one lifecycle, one
|
||||
|
|
@ -284,7 +288,7 @@ Implementation order, each pass landing tests before the next begins:
|
|||
never sees a cell.
|
||||
10. Consumer ingress: landed in pass 10. `SystemCapability::Consumer` is the
|
||||
world's third `AdmitPatch` author, minted only by
|
||||
`WorldMailbox::submit_consumer` after `world/consumer.rs` authenticates a
|
||||
`WorldMailbox::submit_consumer` after `crates/ghostlight/src/consumer.rs` authenticates a
|
||||
`ConsumerPatchDocument` against a `ConsumerRegistry` secret digest.
|
||||
`require_patch_author`/`confine_to_ground` widen to `PatchGround::Consumer`,
|
||||
confining a consumer to the subjects declared
|
||||
|
|
@ -324,7 +328,7 @@ behind that clause now lives only in `require_answer`. The Draft seed lane —
|
|||
invocation on the existing elaboration repair loop, admitting at most one
|
||||
Draft patch as `CallerId::Principal(owner)` through the unconfined owner lane;
|
||||
there is no marker in the journal distinguishing a seed-authored patch from a
|
||||
hand-authored one. `VaultEvidenceSource` (`world/vault.rs`) is the seed lane's
|
||||
hand-authored one. `VaultEvidenceSource` (`crates/ghostlight/src/vault.rs`) is the seed lane's
|
||||
production `EvidenceSource`: a read-only markdown directory reader whose
|
||||
evidence reference is a note's vault-relative `.md` path.
|
||||
`world.advance_time`'s missing `operation_schema` entry — every invocation of
|
||||
|
|
@ -652,7 +656,7 @@ request and output. Silence is a legitimate outcome, not a harness failure.
|
|||
|
||||
Landed 2026-09-11 as mapped, with both recommendations taken: the small typed
|
||||
material record, and a required commitment statement. `PersonaMaterial` is
|
||||
`world/patch.rs`'s thirteenth-row component (`values`, `voice`, `memories`,
|
||||
`crates/ghostlight/src/patch.rs`'s thirteenth-row component (`values`, `voice`, `memories`,
|
||||
`reads` keyed by subject), set whole by `set_persona_material` (thirty
|
||||
operations, thirty-nine tools); a commitment carries `statement`; state and
|
||||
commit schemas are `.consumer.v3`; an affordance-made promise's statement is
|
||||
|
|
|
|||
|
|
@ -1,148 +0,0 @@
|
|||
# Historical Newspaper Layout Grammar
|
||||
|
||||
This is a working press grammar, not a costume catalogue. It distills recurring
|
||||
page structures from representative nineteenth-century newspapers into rules
|
||||
the seeded TeX press can actually enforce.
|
||||
|
||||
## Reference set
|
||||
|
||||
- *Pall Mall Gazette*, first issue, 1865: a deliberately spacious evening
|
||||
review using two wide columns, double masthead rules, restrained italic
|
||||
headlines, and long uninterrupted reading measure.
|
||||
<https://academic.oup.com/res/article/77/330/336/8425236>
|
||||
- *Evening Star* (Washington), 28 February 1880 and 17 June 1890: metropolitan
|
||||
sheets with a broad nameplate, six or more narrow continuous columns, dense
|
||||
vertical packing, and advertisements/notices inhabiting the same column grid
|
||||
as news.
|
||||
<https://www.loc.gov/resource/sn83045462/1880-02-28/ed-1/>
|
||||
<https://www.loc.gov/resource/sn83045462/1890-06-17/ed-1/>
|
||||
- *The Sun* (New York), 30 May 1885: a uniform multi-column field with modest
|
||||
story heads and almost no unowned white space.
|
||||
<https://www.loc.gov/resource/sn83030272/1885-05-30/ed-1/>
|
||||
- University of Illinois, *American Newspapers, 1800–1860*: physical and
|
||||
production context for five-to-eight-column sheets, full-height columns,
|
||||
front-page advertising, and the migration of timely news to inside pages.
|
||||
<https://www.library.illinois.edu/hpnl/tutorials/antebellum-newspapers-introduction/>
|
||||
- Robinson, *Newspapers and Advertising*: nineteenth-century advertising moves
|
||||
from small text-heavy insertions intermingled on front and back pages toward
|
||||
larger display advertising and more consistent classified pages late in the
|
||||
century.
|
||||
<https://academic.oup.com/edinburgh-scholarship-online/book/42878/chapter-abstract/361009569>
|
||||
- *New-York Tribune*, 16 April 1912: a page-wide disaster head, central map and
|
||||
photographic display spanning several columns, flanking report columns, and
|
||||
dense continuation below the illustration.
|
||||
<https://www.loc.gov/resource/sn83030214/1912-04-16/ed-1/>
|
||||
- *Richmond Times-Dispatch*, 17 April 1912: a page-wide head and ship image
|
||||
followed by modular three-column packages, lists, subheads, and boxed matter.
|
||||
<https://www.lva.virginia.gov/events/exhibitions/titanic/newspaper_coverage.php>
|
||||
- *St. Louis Globe-Democrat*, 17 April 1912: a large central illustrated package
|
||||
surrounded by independent column-width reports and subordinate display heads.
|
||||
<https://commons.wikimedia.org/wiki/File:St._Louis_Globe-Democrat_17_Apr_1912.png>
|
||||
- *The Daily News* (St. John's), 14 August 1914: narrow continuous news columns
|
||||
coexist with multi-column war heads and boxed display advertisements occupying
|
||||
ordinary grid modules.
|
||||
<https://collections.mun.ca/digital/collection/dailynews/id/240059/>
|
||||
|
||||
Reference scans used for visual comparison live in disposable
|
||||
`tmp/newspaper/references/`; the URLs above remain the durable provenance.
|
||||
|
||||
## Families
|
||||
|
||||
The press selects a family before it varies details.
|
||||
|
||||
### Evening review
|
||||
|
||||
- Two wide columns.
|
||||
- Smaller physical sheet and lower information density.
|
||||
- Long-form reading dominates scanning.
|
||||
- Sparse display hierarchy; italics, rules, and small capitals do more work
|
||||
than large headlines.
|
||||
|
||||
### Metropolitan sheet
|
||||
|
||||
- Four to eight narrow columns depending on sheet size and date.
|
||||
- The nameplate spans the page, while issue data, price, notices, or subscription
|
||||
terms may flank or bracket it.
|
||||
- Stories, notices, and advertisements inhabit one shared vertical grid.
|
||||
- Story heads are usually modest. Late-century sensational sheets may spend
|
||||
several columns on a display head or illustration, but the surrounding text
|
||||
closes around that expenditure.
|
||||
|
||||
The Canopy Ledger currently uses a compact four-column metropolitan sheet. Its
|
||||
small accepted copy body does not earn a six-to-eight-column broadsheet.
|
||||
|
||||
### Mass-circulation display sheet, 1895–1914
|
||||
|
||||
- The underlying narrow-column grid survives, but a major event may spend
|
||||
several columns on one head, deck stack, map, photograph, or illustration.
|
||||
- Display packages remain attached to their story. Copy resumes directly below
|
||||
them or rises in adjacent columns; the illustration does not become a detached
|
||||
gallery object.
|
||||
- Secondary stories become more visibly modular through short rules, boxed
|
||||
lists, subheads, and column-spanning heads.
|
||||
- A large central image may organize the entire page, with flanking text fields
|
||||
and subordinate modules closing around it.
|
||||
- Display advertisements become visually distinct boxed modules while small ads
|
||||
and notices continue to occupy ordinary column measure.
|
||||
|
||||
The accepted Run 61 special issue uses this family. Its crisis head and cut earn
|
||||
a page-wide display package; accepted story copy then returns immediately to the
|
||||
four-column grid.
|
||||
|
||||
## Composition rules
|
||||
|
||||
1. **The page is a column economy.** Every occupied region begins and ends on
|
||||
column or half-column lines. Large vacant regions require an owned reason
|
||||
such as an absent paid advertisement; they are not a centering technique.
|
||||
2. **Build fields, not isolated boxes.** A story field contains its head, deck,
|
||||
byline, cut, caption when present, and body measure. Adjacent fields share a
|
||||
top line or establish an intentional stepped hierarchy.
|
||||
3. **Cuts spend story measure.** A narrative cut is assigned to one story and
|
||||
placed inside that story's contiguous field. It may span multiple columns,
|
||||
with the story flowing above, beside, or below it. It may not be deposited at
|
||||
a page edge after unrelated columns have ended.
|
||||
4. **Ink blends with stock.** Monochrome cuts use multiply compositing (or its
|
||||
alpha-equivalent against a flat stock color) so white image paper disappears
|
||||
and black linework shares the page ink.
|
||||
5. **Reading order remains typographic.** Column traversal, rules, heads, and
|
||||
continuation labels must make the next fragment unambiguous. Geometry may
|
||||
not reorder accepted copy.
|
||||
6. **Density follows the edition.** Type size, page dimensions, column count,
|
||||
and cut expenditure are solved together from copy volume. A short edition
|
||||
becomes a smaller sheet or fewer columns; it does not become a broadsheet
|
||||
with a desert under it.
|
||||
7. **Hierarchy is rationed.** One lead field may spend a multi-column head and
|
||||
large cut. Secondary heads stay within their field. Masthead display does not
|
||||
authorize every story to shout.
|
||||
8. **Rules join related matter.** Column rules and horizontal rules articulate
|
||||
the grid. Ornaments close or divide small matter; they do not substitute for
|
||||
missing content.
|
||||
9. **Advertisements are economic content.** The press may reserve typed ad
|
||||
slots by column width and depth. Only the economic layer may fill them with
|
||||
advertiser identity, goods, price, claims, campaign continuity, and payment.
|
||||
Unfilled slots collapse unless the edition explicitly records unsold space.
|
||||
10. **House and issue variation are separate.** `style_seed` owns the durable
|
||||
publication body: sheet, grid, fonts, type scale, stock, ink, rules, gutter,
|
||||
and ornament vocabulary. `flow_seed` owns one issue's imposition: display
|
||||
template, story grouping, page-one closure, cut span and placement, page
|
||||
breaks, and continuation rhythm. Neither may detach art, rewrite copy,
|
||||
fabricate ads, or create barren pages.
|
||||
11. **A house remains recognizable across flows.** Holding `style_seed` fixed
|
||||
must preserve typography, stock, ink, rules, sheet geometry, and base grid
|
||||
while materially different `flow_seed` values produce distinct plausible
|
||||
readings of the same admitted content. Holding `flow_seed` fixed while the
|
||||
style changes must preserve its story/cut topology.
|
||||
|
||||
## Current Run 61 imposition
|
||||
|
||||
- House style seed `1847`; issue flow seed `723`. The manifest records both as
|
||||
independent inputs under `ghostlight.seeded_tex_press.v2`.
|
||||
- Page one: full-width nameplate and crisis head; a centered page-wide Boundary
|
||||
Rail cut; lead and secondary copy flowing continuously through four columns.
|
||||
- Page two: a compact repeated nameplate and Sinkroot head; the centered gauge
|
||||
cut immediately below its owning head; Sinkroot and Dispatches copy flowing
|
||||
continuously through the same four-column grid.
|
||||
- Secondary story headers are unbreakable column modules, so a section label or
|
||||
head cannot strand at the foot of the preceding column.
|
||||
- Both cuts use PDF multiply blending so their white image stock disappears into
|
||||
the seeded paper stock. No image bank or detached bottom art reservation exists.
|
||||
|
|
@ -5,8 +5,8 @@ No live smoke exists in this tree. The ignored test this file once documented,
|
|||
ran the production tick driver and the Active elaboration sweep against a real
|
||||
CodexConnector; the play agent's Cut 1 (`d69e9d4`) deleted both, and the test
|
||||
with them. A command that names it now matches nothing and exits 0. No
|
||||
replacement exists until the play agent's own gate (`ghostlight-play-agent.md`)
|
||||
lands one.
|
||||
replacement exists. The real-model gate that does exist is the Idunn recipe's
|
||||
`accept-real-persona-membrane` step (`deployment/idunn/recipe.toml`).
|
||||
|
||||
What remains true and stays here: bringing up a real CodexConnector and a
|
||||
built Claude SDK sidecar. The seed lane (`world.seed`) still runs real
|
||||
|
|
@ -53,7 +53,7 @@ the same variables the deleted harness read.
|
|||
|
||||
## Claude SDK route
|
||||
|
||||
`world/sdk_inference.rs`'s `SdkInferencePort` gives any lane whose configured
|
||||
`crates/ghostlight/src/sdk_inference.rs`'s `SdkInferencePort` gives any lane whose configured
|
||||
model is `claude`-prefixed (matching `GHOSTLIGHT_SDK_MODEL_PREFIX`, default
|
||||
`claude`) a second transport: a Node sidecar on the Claude Agent SDK instead of
|
||||
the CodexConnector, so a session can run on the Claude subscription with no
|
||||
|
|
|
|||
Loading…
Reference in a new issue