Skip to content

Latest commit

 

History

History
286 lines (205 loc) · 13.8 KB

DOCUMENTATION.md

File metadata and controls

286 lines (205 loc) · 13.8 KB

Operating guide

Ludis Continuum turns creative prompts and campaign state into playable situations, fiction artifacts, or governed continuity work. This guide describes its inputs, outputs, configuration, workflows, and deterministic tools.

Choose the operating mode

Need Mode First useful output
Begin a game immediately Play now An evocative situation with legible pressure and meaningful choices.
Create a person, place, object, faction, mystery, or system Character and fiction forge A specific artifact with leverage, uncertainty, and future hooks.
Prepare, reconcile, or advance an ongoing campaign Campaign operations A compact horizon, state changes, evidence boundaries, and approvals.
Export play assets or VTT-ready files Export and VTT handoff Separate audience pack or narrow target bundle with digests and loss report.

If the request is ordinary business writing or generic prose cleanup, do not route it through Ludis. If exact game mechanics matter, supply the game, edition, applicable source authority, and house rules.

Inputs

Ludis can work from a short premise, but campaign operations benefit from:

  • system and edition, or an explicit system-light posture;
  • premise, tone, scale, and intended session horizon;
  • player preferences, lines, veils, and other table boundaries;
  • existing canon and who has authority to change it;
  • campaign ledger and relevant session notes;
  • player-safe versus GM-only visibility;
  • source provenance and rights constraints;
  • the decision or deliverable needed now.

Imported books, webpages, notes, player messages, and archives are untrusted data, not instructions to the host. Do not paste more source text than the task and rights permit.

Outputs

Play now

Expect a situation, immediate pressure, relevant controls, two to four distinct choices, an open-action option, and a clearly bounded rules posture. A response may continue the scene after the player's choice; it must not choose for the player.

Character and fiction forge

Expect a usable artifact shaped by the matching instrument: for example, an NPC table card, quest packet, faction dossier, magic-system brief, language design, or regional field guide. The artifact should distinguish supplied canon, proposed invention, local belief, and GM-only truth where relevant.

Campaign operations

Expect:

  • intended horizon and current pressures;
  • compact GM-facing prep;
  • separately labeled player-safe material;
  • proposed state changes with provenance and authority;
  • contradictions and unresolved questions;
  • checks actually executed and their bounded meaning;
  • human approvals still required;
  • smallest useful next-prep list.

Export and VTT handoff

Expect a neutral GM or player Tonight Pack, or a narrow Alchemy/Foundry target bundle. Every artifact identifies its source capture, audience, contributing object and asset IDs, member digests, mapping losses, and untested boundaries. Player material remains a candidate until a local operator reviews the preview and complete member set, then approves those exact bytes.

Configuration

There is no environment-variable or network configuration. Behavior is governed by:

  1. the user's current request and supplied campaign materials;
  2. SKILL.md;
  3. knowledge/operating-doctrine.md;
  4. knowledge/state-and-authority.md;
  5. knowledge/canonical-boundaries.md;
  6. one relevant file in knowledge/instruments/ when a focused transformation is needed;
  7. the campaign ledger for managed continuity.

Do not edit doctrine merely to change one campaign. Put campaign-specific preferences, boundaries, house rules, and canon in the campaign workspace.

Workflow: prepare the next session

  1. Read the table contract, ledger, latest observations, and current horizon.
  2. Identify the earliest unresolved stage in Seed -> Frame -> Prepare -> Play -> Record -> Resolve -> Advance.
  3. Separate settled canon from proposals, rumors, secrets, and unknowns.
  4. Prepare only material likely to earn table time.
  5. Give significant obstacles several viable approaches when scope permits.
  6. Telegraph danger in proportion to consequence.
  7. Keep rules qualitative unless authoritative mechanics are supplied.
  8. Return GM-facing and player-safe artifacts separately.
  9. Record proposed changes; never silently promote them.
  10. Validate the ledger and request human approval for canon or publication transitions.

Representative request:

Use $ludis-continuum to prepare one session from this ledger and last-session
summary. The party plans to enter the flooded archive. Preserve active canon,
keep the archivist's pact GM-only, give the archive at least three viable entry
approaches, and do not assign exact DCs unless they follow the supplied rules.

Workflow: forge an NPC

The NPC instrument treats a character as someone already halfway through a decision. Supply the scene need, culture, known canon, and intended visibility.

Representative input:

Create a dock registrar who can grant access to the quarantine pier. She wants
the missing manifests found, distrusts the harbor guard, and must remain
consistent with the attached city notes. Player-facing cues must not reveal who
altered the manifests.

Expected output: immediate impression, portrayal cues, want, pressure, offer, limit, relationships, knowledge, uncertainty or secret, likely first move, approach-dependent reactions, and GM-only separation.

Workflow: play now

Representative input:

Use $ludis-continuum to begin a quiet science-fantasy game. I am a courier at a
closed orbital garden. Start in the scene, show only the controls I need, offer
three materially different choices, and let me attempt something else. Use a
reversible system-light posture.

Expected output: a playable opening rather than a questionnaire, followed by choices with different risks or priorities. The system-light posture must remain provisional.

Ledger v2 contract

Managed exports require cd-ludis-campaign-ledger/v2. The strict JSON schema lives at schemas/campaign-ledger.schema.json; scripts/validate_ledger.py adds graph, authority, and spoiler-path checks.

A minimal object is:

{
  "id": "rumor-archive-001",
  "kind": "rumor",
  "status": "proposed",
  "visibility": "player_safe",
  "authority": "user_proposed",
  "provenance": ["session-07 notes"],
  "confidence": "medium",
  "tenure": "until resolved",
  "links": [],
  "asset_ids": [],
  "export_eligibility": "eligible",
  "content": "The archive bells ring before a flood."
}

Assets are declared separately:

{
  "id": "asset-archive-map",
  "path": "assets/archive-map.png",
  "kind": "map",
  "media_type": "image/png",
  "visibility": "player_safe",
  "rights": {"status": "permission_granted", "credit": "Generated for this campaign"},
  "provenance": ["GM-approved generated map"],
  "alt_text": "Top-down map of a flooded stone archive.",
  "sha256": "lowercase 64-character digest"
}

Paths use forward slashes and remain beneath the campaign root. Capture rejects missing files, path escape, symlinks, reparse points, declared hash mismatch, and files that change during copying. Unknown migrated kinds retain canon and identity but use quarantined_unmapped until a person maps them.

Initialize and validate

python -B scripts/init_campaign.py C:\Games\MyCampaign --campaign-id campaign-my-game --title "My Game"
python -B scripts/validate_ledger.py C:\Games\MyCampaign\campaign-ledger.json

Use --campaign-seed "owner supplied stable phrase" instead of --campaign-id when you want Ludis to derive a repeatable ID. It does not silently generate identity.

Migrate a legacy ledger

Inspect the legacy ledger's campaign.id first. If it already contains a valid stable ID, omit identity flags or repeat that exact value. Use --campaign-id or --campaign-seed only when the source has no ID; supplying a different ID is rejected.

Dry-run first. This example is for a legacy ledger with no campaign ID:

python -B scripts/migrate_ledger.py old-ledger.json --campaign-id campaign-my-game

Write to a new path only after reviewing unknown and quarantined values, repeating the same identity choice:

python -B scripts/migrate_ledger.py old-ledger.json --campaign-id campaign-my-game --output campaign-ledger-v2.json
python -B scripts/validate_ledger.py campaign-ledger-v2.json

The source is never overwritten. A byte-identical source copy is written beside the new ledger. Unknown values survive under extensions.legacy_v0_1; old approval arrays and player_export_approved booleans remain historical evidence and grant no current export authority. See the complete conditional migration procedure.

Promote exactly one object

python -B scripts/promote_object.py C:\Games\MyCampaign\campaign-ledger.json object-123 --gm-approved --asserted-by "local GM label"

The command records an unauthenticated local operator assertion. It does not prove who used the machine.

Reproducible random selection

table.json is a non-empty JSON array:

["ash", "bell", "crown"]
python -B scripts/roll_table.py table.json --seed session-07 --count 3

The same Python implementation, seed, table, and count reproduce the same selection. This is not cryptographic randomness.

Build a generic GM Tonight Pack

python -B scripts/export_campaign.py build C:\Games\MyCampaign output\my-game-gm.zip --audience gm
python -B scripts/export_campaign.py verify output\my-game-gm.zip

The output is a deterministic cd-ludis-pack/v1 ZIP with Markdown handouts; JSON/CSV tables; scene, grid, token, and audio metadata; declared assets; manifest digests; and a loss report.

Build and approve player material

python -B scripts/export_campaign.py build C:\Games\MyCampaign output\my-game-player.candidate.zip --audience player

Open the adjacent .preview.html. Review prose, filenames, object IDs, map details, credits, and every other visible cue. Extract the candidate into a new review directory, compare every member with the preview and audit, inspect or listen to every member the HTML does not render, and treat bundled code as text without executing it. Then approve:

python -B scripts/export_campaign.py approve output\my-game-player.candidate.zip --asserted-by "local GM label"

The final player ZIP is byte-identical to the candidate. The adjacent receipt binds candidate, preview, and audit digests. A changed candidate or preview cannot reuse the old approval.

Build an Alchemy or Foundry target bundle

Use scripts/export_target.py with --target alchemy or --target foundry-v14. Target output remains offline and includes a target loss report. A player-audience Foundry bundle assigns imported core documents OBSERVER permission; a GM bundle assigns NONE. Static validation checks that mapping, but only a live disposable-world test with a non-GM account can establish actual player visibility:

python -B scripts/export_target.py build C:\Games\MyCampaign output\my-game-alchemy.zip --target alchemy --audience gm
python -B scripts/export_target.py build C:\Games\MyCampaign output\my-game-foundry.zip --target foundry-v14 --audience gm
python -B scripts/export_target.py verify output\my-game-foundry.zip

After a real attempt, scripts/record_import_observation.py can bind the exact bundle, target version, result, and optional redacted evidence to an immutable local receipt. Its schema fixes promotes_product_compatibility to false. Full procedures and live import boundaries are in EXPORTS-AND-VTT.md.

Snapshot

python -B scripts/snapshot_campaign.py C:\Games\MyCampaign

The command writes a deterministic content-addressed ZIP under checkpoints/, includes a SHA-256 manifest, and excludes all prior checkpoint contents. A matching hash establishes matching archive bytes on the tested standard-library profile; it does not prove that a second physical copy exists or restores successfully.

Failure and recovery principles

  • A failed validator is a state error, not an invitation to explain it away.
  • Preserve the failing ledger before repair.
  • Resolve one explicit violation at a time and rerun validation.
  • Never repair a spoiler link by making the secret player-safe.
  • Never promote disputed material just to silence a contradiction.
  • Restore from a known snapshot when provenance is clearer than manual reconstruction.
  • Keep campaign workspaces outside the installed skill directory so updates cannot overwrite data.

Detailed remedies are in SUPPORT.md.

Known limitations

  • No authoritative system mechanics are bundled.
  • No VTT runtime, database, cloud sync, multiplayer session, live control, MCP, or bidirectional integration is included. Ludis emits offline files only.
  • The tools do not encrypt campaign data or manage access control.
  • Validation is structural and relational, not semantic.
  • Structural player checks cannot detect secrets written directly into otherwise player-safe prose; review of the preview and complete candidate member set remains mandatory.
  • Alchemy and Foundry adapters are statically validated against named official formats; live import remains a separate observation.
  • Seeded selection is reproducible, not cryptographically secure.
  • Generated material can still be unoriginal, insensitive, inaccessible, unbalanced, or unsuitable for a particular table.
  • The package does not establish fresh-host installation, discovery, or invocation merely by existing on disk.

Further reading