Sylvia GM: a source-available AI RPG GM harness with an authoritative rules engine (rough alpha)

I’m sharing Sylvia GM, a standalone AI RPG game-master harness. It combines an authoritative RPG engine with an LLM-driven GM and lets you build custom Ruleset, Setting and Plan content.

This is a rough alpha for people who enjoy trying AI roleplay setups, changing the content and reporting what breaks.

The technical idea is to keep game mechanics and state in the engine while using the model for the GM side of the experience. I’m interested in how that division holds up when people try different scenarios and models.

You can choose supported cloud or local model/provider options. Compatibility and the quality of the GM experience depend on the model and configuration.

Version: v0.3.0-alpha.1
Source: GitHub - pneuma-io/sylvia-gm: Sylvia GM · GitHub
Release, Windows downloads, setup guidance and limitations: Release Sylvia GM 0.3.0-alpha.1 (Windows 11 x64) · pneuma-io/sylvia-gm · GitHub

The app is free to download and source available under PolyForm Noncommercial 1.0.0 with Sylvia Additional Permissions. Those terms include use restrictions; please read LICENSE, LICENSING-STATUS.md and SYLVIA-ADDITIONAL-PERMISSIONS.md before reuse. Paid model/provider usage is separate.

I’m aiming for weekly alpha releases. The release notes disclose a known offline context-fitting interruption. Start with a short session before investing time in a longer campaign.

The feedback I’d find most useful is the first reproducible mismatch between the GM’s description and the game’s rules or state. Include the release version, OS, provider/runtime, model and shortest reproduction. Please remove API keys and personal information from anything you share.

For now, I took a look at some of the implementation and tests:


One boundary seems particularly useful for the kind of feedback you’re asking for: the Ruleset’s accepted result versus the GM’s final description of that result. Correct authoritative state does not, by itself, guarantee that the released prose describes it accurately. But an incorrect model draft is not necessarily a player-visible bug, either: Sylvia has paths that hold, discard, or retry prose.

I have not reproduced a new end-to-end bug in a live Sylvia GM session. What stood out in the posted v0.3.0-alpha.1 source were two intentional, scripted tests: one supplies a failed check but narration calling it successful; the other keeps the player’s turn active but supplies narration announcing the opponent’s turn. In those particular test paths, the assertions expect the incorrect words to reach TALK without host-side semantic rewriting. These are controlled tests with injected provider responses, not observed real-model failures in the released app.

A small first check, if someone encounters a suspicious turn, could be:

  1. Identify one unambiguous engine-owned result: a check’s success/failure, the current actor, or a committed HP change.
  2. Compare the accepted result or post-action state with the final GM sentence shown to the player, for the same actor and moment. Do not use an intermediate draft as if it were the final response.
  3. Only if they conflict, keep the shortest reproducer, release version, OS, provider/runtime, and model, as requested in the original thread. A brief redacted excerpt is usually enough to start.

For example, consider an illustrative condition, not a reported play-session incident: DC 12, total 6, accepted outcome failure. If the final displayed GM text calls that same check a success, that is a clear narration-side mismatch. If the model says so only in a held draft that never reaches the player, that is instead a reason to examine the guard that prevented release.

I would start with one action, one accepted result, one released sentence. The source already contains meaningful tool/state checks and hold/retry paths; the additional question is which factual claims, if any, survive into the final narration. The collapsible sections below are optional explanations and investigation branches, not a request for a new validation subsystem.

What the existing host already checks

1. Authority over mechanics is different from authority over wording

The project announcement deliberately separates the model’s GM interpretation/storytelling role from Ruleset-owned mechanics and state. That is why the state-versus-narration comparison is useful. It supports the existing design rather than calling for a model-only GM or treating every creative detail as a mechanical failure.

The provider-session code for the posted alpha already distinguishes multiple outcomes. Under relevant conditions, a required tool call can be requested again; an unresolved action can keep prior prose from being shown; a proposed narrative can be held while Campaign File disposition is pending; and an eligible response can be emitted as TALK. These are conditional paths; not every exchange offers the same tools or traverses every gate.

It helps to separate a few terms when reading a log:

Observation What it establishes What it does not establish
Model generated prose The model proposed a description The player saw it
Model emitted tool-shaped text An attempted call or call-like text exists The host parsed, executed, or accepted it
Native tool_calls appeared The API represented a call structurally The game state committed successfully
Ruleset resolved an action A concrete rules result exists Narration faithfully describes that result
Campaign File change was accepted That admitted state/canon update exists All associated prose is semantically true
Host emitted TALK That path released narration as an event Every frontend/replay has displayed it identically
Player saw a sentence There is a player-facing observation The underlying engine state is necessarily wrong

These are analytical distinctions, not a list of stable Sylvia public APIs. A useful report may need only the accepted outcome (if visible), the final on-screen line, and enough context to identify the turn. Internal traces are optional until ambiguity makes them necessary.

State-admission checks and semantic narration checks cover different claims. An update can satisfy its schema and disposition rules without proving that “you succeeded” matches a committed failure, or that “the hound’s turn begins” matches the current actor. The existing scripted controls isolate this distinction without denying the protections already present.

TALK is a host event in these tests, not direct evidence of what appeared in a Windows UI. If a discrepancy is visible only after reconnecting or replay, the display/persistence path may be the first place to inspect.

The implementation observations refer to the fixed v0.3.0-alpha.1 source. Other releases, adapters, and execution paths need separate confirmation; none of these tests establishes a universal defect.

Two deliberately inconsistent test cases

2. Useful controls are already in the repository

Two tests in test_alpha_f4_provider_session_adapter.py are close to the requested feedback. Their names explicitly describe narration passing through without host semantic adjudication. Both use scripted provider responses, so they characterize host behavior under chosen inputs, not any model’s error rate.

A. Failed check narrated as success

The test test_failed_d20_narration_passes_through_without_host_semantic_adjudication uses a controlled check with DC 12 and a result of 6, hence a failed check. The scripted GM narration nevertheless calls the check successful. The test then asserts that the contradictory text appears in the emitted TALK event.

The contradiction is narrow: did this particular check succeed? The accepted failure and narrated success cannot both describe that check correctly. Unlike a vague story event, this requires no interpretation of fictional atmosphere or missing lore.

B. Player still owns the turn, prose announces an opponent’s turn

The test test_false_turn_handoff_passes_through_without_host_semantic_adjudication represents a similarly controlled turn-state mismatch. Its authoritative context still gives the turn to Daniel, while the provided narration says that the juvenile Riftwolf’s turn begins. Again, the test expects the given sentence to reach TALK.

The relevant proposition is who owns the turn. An opponent preparing to act need not be a contradiction; declaring its turn has begun can be one if Daniel still owns it. Compare the same post-action point: an actor field recorded before a legitimate handoff cannot refute narration after that handoff.

The two tests could be treated as small, reproducible controls:

Engine-owned truth Intentionally incorrect narration Boundary exercised
DC 12; result 6; failure Same check described as successful Meaning of a resolved check in TALK
Current actor remains Daniel Juvenile Riftwolf’s turn announced Meaning of turn ownership in TALK

A matching correctly worded narration for each state would make a useful negative control if a future consistency checker is considered. That is not a claim that Sylvia lacks such controls elsewhere, nor a suggestion that the author needs to write a new suite immediately.

The tests also include scripted correct alternatives, but each assertion records only two provider calls: the incorrect narration was accepted as TALK in that tested path. This is a useful control, while other paths still hold or reject prose. Neither “all model mistakes become game truth” nor “engine correctness guarantees narration correctness” follows.

A one-action trace and a decision tree

3. Find the first divergence, not every possible problem

An illustrative trace, not a claimed Sylvia API schema, could look like this:

release: v0.3.0-alpha.1
turn: one identified player action
subject: Daniel
accepted Ruleset outcome: check failed, DC=12, total=6
accepted post-state: Daniel still owns the turn
model draft: [optional, only if available]
held or retried: [only if observable]
released GM text: "The check succeeded."
player-visible text: [same sentence? different? not observed?]

Decision tree: begin with the first verified mismatch

Did the accepted Ruleset result or post-state differ from expectation?
  Yes: inspect the chosen action, resolver and authoritative transition.
       This is not automatically a narration problem.
  No:  compare the accepted result with the final GM text for that turn.

Was the conflicting sentence actually released or displayed?
  No, draft only: check hold, retry, discard or replacement.
       A caught proposal is not a player-facing discrepancy.
  Yes: locate the exact mechanical claim in the final sentence.

Does that claim directly contradict a known, time-matched mechanical fact?
  Yes: useful candidate for a released-narration mismatch.
  Unknown: check speaker, tense, modality and whether the fact set is complete.
  No:  do not count it as this kind of mismatch.

Did the discrepancy arise only in UI, replay, or resume?
  Yes: compare final host event to what the interface rendered.

This is a triage aid, not a diagnosis. An incorrect committed result might be described faithfully, in which case a narration fix would miss the earlier error. A correct result may be described incorrectly, in which case changing the Ruleset would target the wrong layer. The first observed divergence identifies a boundary to inspect, not necessarily the root cause.

Minimal reproducibility record

The forum request already specifies release, OS, provider/runtime, model, and shortest reproduction. The following optional record adds only the two facts needed for this particular comparison:

Observed on: [release, OS, provider/runtime, model]
Minimal setup: [Ruleset / scenario facts needed for the one action]
Action: [one sentence]
Expected accepted result: [check / turn / HP]
Observed accepted result: [if available]
Final GM line shown: [exact short sentence]
Why they conflict: [same subject, same turn, incompatible proposition]
Repeatability: [one occurrence, repeated, or unknown]
Evidence: [redacted small excerpt or screenshot if available]

Use only fields the UI or logs actually expose, and label unknowns. Raw inference text is not a final UI transcript. Redact credentials, private URLs, personal data, and campaign spoilers; a one-line mismatch rarely requires a full transcript.

A few high-information examples

  • Check result: A committed failure described as success is strong, if the sentence explicitly refers to that resolved check. “You almost had it” is not the same claim as “you passed.”
  • Turn owner: Daniel remains the active actor but the final prose announces that the hound takes over. Distinguish an actual turn handoff from anticipation or a reaction.
  • HP: The post-state has an accepted HP value, but the narrator states a different numeric HP as fact. Check whether the sentence refers to current HP, a change in HP, or narrative injury.
  • Status effect: A complete authoritative status set does not contain Poisoned, but the narrator unambiguously says a formal Poisoned condition was applied. This is stronger than a sensory description of venom or illness; the word alone does not settle the issue.

If the trace branches further

Follow the branch the evidence supports. An unexpected accepted result points toward action selection/resolution; a draft-only error toward hold/retry; a TALK versus UI discrepancy toward rendering/replay; and a parsed call without an accepted change toward execution/admission. A first report need not debug all of them.

What counts as a contradiction in RPG narration?

4. Mechanical truth, story color, and character speech are not interchangeable

A useful consistency check cannot treat “not recorded” as synonymous with “false.” The game state intentionally leaves room for atmosphere, beliefs, and new scene details. A Ruleset can own combat mechanics without deciding how the air smells or what every NPC believes. Flagging every invented detail would undermine the LLM GM’s role.

A useful analysis vocabulary, not an existing Sylvia feature, is:

Verdict Meaning Example
Supported The claim matches a relevant accepted fact A failed check is narrated as a failure
Contradicted The claim conflicts with a known authoritative fact That failed check is explicitly narrated as success
Unknown / not established The supplied record does not settle the claim A previously undescribed smell or distant rumor
Attributed / conditional The statement belongs to a character’s belief, threat, hope, or hypothetical An NPC says, “I think you are poisoned”

A character can be mistaken without the GM making a false mechanical assertion. Check speaker, quotation, tense, negation, and modality. “The hound may attack next” does not say its turn has begun; “you feel sick” does not assert that the engine applied Poisoned for a round.

Poison illustrates this distinction without requiring a new defect claim. “The air smells bitter” may be color; “the NPC suspects venom” is attributed belief; “Poisoned was applied for one round” is a mechanical assertion that needs an authoritative status record. I have not observed that last kind of claim reach Sylvia’s released UI in a live session. For a possible future control, the wording matters:

  • If a formal status is declared to have been applied, compare the assertion with the authoritative, sufficiently complete status record at that moment.
  • If the GM merely describes a strange sensation, wound, suspicion, or venomous imagery, the authoritative status list alone may not settle whether the sentence is acceptable fiction.
  • If a character asserts a status incorrectly, first determine whether the narration presents it as that character’s belief or as an objective game ruling.
  • If the Campaign File contains an emerging fictional fact, check the scope of that canon separately from the Ruleset’s mechanics.

Absence is not automatically contradiction. Missing entries in a complete, closed mechanical field can refute a precise claim; missing open-ended lore usually means “not established.” A partial state excerpt should not be mistaken for an exhaustive status list.

Also match who, which action, when, and what exact claim. Earlier poison later cured, a different target, or a projected HP loss can all make a superficial keyword match misleading.

Tool calls, Campaign File admission, and released text

5. A valid tool response is not the end of the story

If a real mismatch is observed, four different questions matter:

  1. Was the relevant tool offered and was a valid request actually made? A call-looking XML or JSON string in prose is not necessarily a structured tool call. Not calling a tool that was never offered is not an error.
  2. What did the authoritative Ruleset resolve or commit? A successful API invocation, or a syntactically valid argument object, is not proof of the engine’s accepted result.
  3. Was any Campaign File disposition admitted? Its schema and disposition logic address state/canon changes. Valid syntax and a correctly selected tool name do not alone establish a successful or meaningful state update.
  4. What narrative was ultimately released? A held draft and a final TALK message need not be identical, and the UI’s eventual rendering is a further observation.

Campaign File disposition has an additional distinction: a declaration that durable facts have changed should agree with the update content and the product’s own acceptance semantics. An argument object that passes JSON Schema validation can still fail a semantic disposition check. Conversely, a proposed descriptive sentence need not represent a change to formal status or any other committed fact. It is worth inspecting those branches only if an actual observation reaches them; they need not become a universal prerequisite for an ordinary one-action report.

Order matters: unresolved player intent can hold prose pending a Ruleset resolver, and Campaign File disposition can trigger a different hold. In other paths, narration can reach TALK. The scripted tests show that universal semantic rewriting is not guaranteed in their paths; they do not imply that intermediate safeguards are absent.

The decisive distinction is whether a sentence was drafted, held, released as TALK, or seen on screen. Otherwise a working guard may be misreported as a bug, or a correct engine state may conceal an inaccurate displayed line. A refresh-only discrepancy warrants comparing released text with replay/UI projection.

If narration is regenerated, do not rerun mechanics just to change wording: keep the accepted action/result fixed. Otherwise a cosmetic correction risks another roll or state transition. This is a design invariant to preserve, not a claim that Sylvia currently reruns actions on narration retries.

Optional next checks, not a mandatory roadmap

6. Small, reversible options if a visible mismatch really appears

The two scripted controls do not justify prescribing a general semantic-validation subsystem. Overzealous checks could reject legitimate fiction, and an early alpha has other priorities. If a live mismatch appears, the response can scale with its evidence and frequency.

First option: compare one released statement. Capture a single accepted result and a single visible sentence. Classify the sentence as supported, contradicted, or unsettled. This adds no new software and may be enough for the author’s requested bug report. A confirmed mismatch here tells us much more than ten speculative model samples without a final display.

Second: reuse the existing scripted controls. The failure-as-success and false-turn-handoff tests can provide repeatable bad narration inputs to a targeted evaluator or manual review. Add one accurate narration for the same engine state as a negative control, to make sure a prospective checker is not flagging every sentence about failure or turns. The tests as written demonstrate pass-through in defined paths, not an installed general-purpose consistency checker.

Third: focus on a few strict mechanical claims. If reports repeatedly involve outcomes, turn owners, HP, or formal status changes, the narrowest useful guard might compare those claims with an immutable receipt of the accepted result before the sentence is released. Keeping checks limited to facts with closed-world authority avoids treating creative scene details as invalid. If parsing a claim is unreliable, an uncertainty outcome can be safer than declaring contradiction.

Fourth: isolate the exact unsupported claim rather than rejecting whole prose. One narrative paragraph may be mostly good, with a single incorrect assertion about success or who acts next. A narrow span can guide a regeneration request without erasing useful descriptive content. This step is only attractive if the cost of a false alarm and the latency of another generation are justified by observed failures.

Fifth: regenerate wording from a fixed result, without rerunning mechanics. If a message is visibly misleading, a narration-only retry can be framed around the same committed facts and action ID. Another possible fallback is a brief deterministic summary of the mechanical result when repeated generation does not produce an acceptable sentence. Either approach would need product-specific design and testing; it is an option, not something I am suggesting the author implement now.

A compact choice guide might look like this:

No verified player-visible mismatch:
    Keep existing protections and collect a small reproducible case.

Accepted mechanics wrong:
    Inspect intended action, offered tools, resolver, accepted state.

Mechanics correct, final text contradicted:
    Check semantic narration boundary for that mechanical predicate.

Only a draft contradicted:
    Check whether hold/retry/rejection already prevented release.

Final host event correct, UI or replay wrong:
    Inspect projection, timing and persistence.

Claim neither supported nor contradicted:
    Keep it unknown; do not automatically ban creative prose.

Each measure adds costs: tracing/privacy, latency, maintenance, false positives on fictional dialogue, and possible context drift during retries. Recurring observations can justify these costs; one isolated mismatch may call only for a small prompt or provider adjustment, while an actual mechanics error belongs nearer the resolver/admission path. Let the evidence choose the next branch, rather than starting with a mandatory roadmap.

Related research and implementation patterns

7. Adjacent ideas, with clear limits

The most relevant sources remain Sylvia’s scripted tests and provider-session code. The following references suggest evaluation or design patterns; none independently verifies Sylvia’s behavior.

  • ToolSandbox studies stateful tool-use evaluation and intermediate milestones. Its relevance here is methodological: an apparent final answer can hide earlier failures, so checking state transitions and released outputs separately can be informative. It is not a Sylvia test suite or an RPG rules judge.
  • FActScore motivates breaking a long narrative into individual factual claims with their own support status. An RPG story contains more permissible invention than an ordinary factual biography, so its metric cannot simply be imported as a pass/fail score.
  • ConStory-Bench provides a map of narrative-consistency concerns such as character, event, and temporal contradictions. This can help name a failure mode, but the engine’s committed mechanics remain the stronger oracle for HP, check outcomes, and turn ownership.
  • ai-ttrpg documents a related separation of mechanical outcomes and narrative presentation, including fallback-oriented ideas. It is a pattern to inspect if released prose repair becomes necessary, not evidence of plug-and-play compatibility or superior results in Sylvia.
  • My GM is AI describes a distinction between deterministic mechanics and more flexible narrative information. Its soft-state discussion is particularly relevant when deciding whether something is a formal status claim or an open-ended fictional detail. The two projects should not be assumed to share schemas or admission logic.

None of these readings is needed to try Sylvia. The one-action check is the practical starting point; the references are for readers who later want a broader evaluation or mitigation.

Evidence limits and reproducibility notes

8. Keep the evidence level attached to every conclusion

It is worth keeping four evidence levels separate:

  1. A scripted host control. Known incorrect sentences are deliberately fed into tests, which assert specific host events. This establishes a property of the tested path, not the frequency of real model mistakes.
  2. An offline model generation. A real model may generate an unsupported claim with a synthetic, adapted, or captured prompt. That demonstrates a model-output possibility under those conditions, not the app’s acceptance or UI display.
  3. A product-path acceptance observation. The actual adapter and game-state gates admit a result or release a TALK event under a specified build. That is stronger but still needs careful interpretation if UI presentation is the claim.
  4. A player-visible reproduction. A matched authoritative result and final displayed sentence disagree in an identifiable release and short action sequence. That is the most relevant evidence for the forum’s requested mismatch.

Here, the two scripted host controls are the strongest implementation-specific evidence. I have not verified a live Windows-session mismatch, a contradictory Campaign File commit, or a poisoned status admitted by the actual engine. Offline model generations with adapted prompts are a different evidence level, not released Sylvia outcomes or estimated defect rates.

The alpha release notes describe a separate offline context-fitting interruption; there is no evidence here linking it to semantic narration. Provider/model choice may alter output, but does not identify where a mismatch entered the application.

The main point is simply to keep accepted mechanics, candidate model prose, and the line actually released to the player separate when recording the first mismatch. That preserves the freedom of the GM narration while making any genuine contradiction easier to reproduce.