Document hosted lore Vault entitlements

This commit is contained in:
Meta Vens 2026-08-19 00:25:22 +02:00
commit f2398545f3
3 changed files with 85 additions and 1 deletions

View file

@ -18,6 +18,9 @@ multiresolution agency graph for keeping large settings active at finite cost.
enters the same validated campaign mailbox and atomic CultCache commit path.
- Vault evidence grounds world compilation; branch-local invention remains
distinct from canon.
- Hosted lore Vaults are planned as Git-synchronized, Obsidian-compatible
Markdown hierarchies. The Vault service owns their indexes; campaigns retain
only manifest bindings and exact evidence receipts.
- Projector → Persona → Interpreter turns produce proposals. Models never
commit world state.
- Knowledge, perception, capability, location, custody, and authority are
@ -72,6 +75,16 @@ The durable intention and unresolved social-policy questions are recorded in
[`docs/architecture/ghostlight-dungeon-multiplayer-intention.md`](docs/architecture/ghostlight-dungeon-multiplayer-intention.md).
It does not expand the current MVP acceptance promise.
## Lore Vault Product Intention
The hosted product will accept ordinary Obsidian-compatible lore Vaults synced
through Git. Contributor and Private plans provision one active custom Vault;
their Plus variants provision three, subject to combined indexed-source and
import allowances. The entitlement, accounting rules, authority boundary, and
security gates are recorded in
[`docs/product/lore-vault-entitlements.md`](docs/product/lore-vault-entitlements.md).
Custom tenant import is not yet part of the deployed tester harness.
## Architecture
The shortest reliable re-entry path is:

View file

@ -0,0 +1,70 @@
# Lore Vault Entitlements
## Product decision
Ghostlight Dungeon will accept Git-synchronized, Obsidian-compatible lore
Vaults. A compatible Vault is a folder hierarchy of Markdown documents; it does
not require an Obsidian runtime or a proprietary export format. GameCult's
Aetheria and Zyphos lore sites use this shape and serve as reference corpora.
| Plan | Active custom Vaults | Combined indexed source allowance | Full imports per month |
| --- | ---: | ---: | ---: |
| Contributor | 1 | 10 million source tokens | 2 |
| Contributor Plus | 3 | 30 million source tokens | 6 |
| Private | 1 | 10 million source tokens | 2 |
| Private Plus | 3 | 30 million source tokens | 6 |
Prices, allowances, and import accounting remain provisional until service-rig
benchmarks establish ingestion, storage, and retrieval cost. Plus increases
both active Persona-cell capacity and lore capacity. Contributor versus Private
continues to select provider data policy; it does not change Vault ownership.
## Authority map
- **Owner:** the Vault service owns source checkout, parsing, chunking,
embeddings, indexes, incremental synchronization, deletion, and retrieval.
- **Inputs:** an authorized Git repository or synchronized directory containing
Markdown lore, its revision, and the subscriber's entitlement.
- **Outputs:** a versioned `ghostlight.vault_manifest.v1` binding and exact
retrieval witnesses through the generic `VaultProvider` contract.
- **Derived state:** campaigns retain the bound manifest revision and exact
evidence receipts used during play. They do not own a second semantic index.
- **Forbidden writers:** campaigns, model stages, and the browser cannot modify
source lore or silently promote branch inventions into the Vault.
- **Shared path:** import, Git update, reindex, campaign compilation, destination
expansion, and runtime retrieval resolve through one tenant-scoped Vault
identity and revision.
- **Cut line:** arbitrary document upload and campaign-local vector stores do
not become competing authorities.
## Resource accounting
The marketed Vault count is a comprehensible entitlement, not the resource
boundary. Enforcement also measures indexed source tokens, stored chunks and
embeddings, full imports, incremental document changes, and retrieval load.
Imports are content-addressed. Unchanged documents retain their chunks and
embeddings; a Git update replaces only changed document partitions. An update
counts as a full import only when Ghostlight must rebuild the whole Vault.
Oversized or unsupported imports receive a compatibility and size preview
before work begins. They do not create surprise usage charges.
Campaign Vault precedence is explicit:
```text
campaign branch facts
> campaign-specific lore Vault
> setting lore Vault
> optional rules/reference Vault
```
Conflicts are reported during compilation or retrieval. Sources are not blended
into an unattributed answer.
## Product and security gates
This entitlement is a product decision, not evidence that arbitrary tenant
imports are accepted by the current tester harness. Hosted import opens only
after tenant isolation, repository authorization and revocation, deletion,
provenance, size admission, Markdown/link parsing, prompt-injection resistance,
copyright reporting, and incremental-index benchmarks are verified.

View file

@ -44,6 +44,7 @@ Ghostlight’s existing v0 schemas and training fixtures remain evidence and reg
- 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.
@ -288,5 +289,5 @@ Publish JSON Schema only as the schema catalog. Runtime documents and exports us
- 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, multiplayer campaign, voice, image generation, direct canon mutation, or public internet exposure 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.
- 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.