
Dmcheck
io.github.chaoz23Published by GitHub account chaoz23v0.5.1Updated Oct 24, 2026
Deterministic conduct verdicts for live tabletop sessions - CI for running a game.
Overview
Checks tabletop session transcripts against a table charter and returns deterministic conduct findings, such as unanswered questions or unacknowledged dice…
- What you can do
- Dmcheck evaluates a session transcript, and optionally an engine event ledger, against a configurable table charter. It returns named findings that cite the charter rule violated and attach source evidence, with stable finding IDs and a status of clean, findings, invalid, or incomplete. The unreleased MCP server candidate is read-only and batch-only, exposing the tools run and rules; it does not expose watch, craft, tasks, resources, or prompts. Verdicts are model-free and deterministic.
- When to use it
- Use it when a table wants an objective, repeatable check of GM and table conduct after a session, or when an agent needs structured findings to adjust its own procedure. It is aimed at groups that already keep transcripts or engine event logs and are willing to define a charter.
- Requirements
- Runs locally as a stdio process, installed from PyPI with uvx. The MCP server is a source candidate, not the published 0.5.5 release, and implements MCP 2026-07-28 only. Path inputs are denied unless the operator grants absolute directories via --allow-root or DMCHECK_MCP_ALLOWED_ROOTS. No authentication, environment variables, or headers are declared.
Installation
In SourceWeft
- Open Dmcheck in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
dmcheck
Deterministic conduct verdicts for live tabletop sessions — CI for running a game.
Feed it a session transcript (and optionally an engine event ledger) plus a table charter, and it returns named findings — the player whose question was never answered, the dice roll nobody acknowledged, the turn that began without anyone being told, the spoiler that leaked into the channel, the five-minute dead air. Every finding cites the charter rule it violates, with the evidence attached.
Agents start here → SKILL.md — when to call this, worked examples, MUST/MUST NOTs. Family contract: FAMILY.md.
Cold-boot probe (2026-07-24): a fresh agent session given only this repo URL installed and refereed a session in 2 commands, verified all three exit-code legs against the docs, and confirmed the no-false-accusation contract held (a consumed roll produced silence). Its friction notes shipped as 0.1.1 (
--dice-bot,dmcheck charter).The design contract: a false accusation is the unforgivable bug. Only source-observed evidence becomes a definite finding. Legacy ambiguity is either silent or explicitly labeled
severity: advisory,provenance: inferred,confidence: low; it is never promoted by R8 or sent to a notification hook. The verdict path is model-free and deterministic: same transcript, same findings, every time.
30 seconds to a refereed session
Portfolio hosts that emit table-kit's versioned contract can use
dmcheck run-events session-events.jsonl --gm "gm-dan" instead of
pre-projecting a transcript. The strict adapter accepts a JSON array or JSONL
of table.event/1.0 objects and preserves event/correlation IDs in finding
evidence. A declared action is not treated as an authoritative engine
resolution, so legal Reactions and interrupts are not falsely accused.
Transport gaps, unknown versions/types, and zero-compatible streams return
typed incomplete status and exit 2; malformed v1 events return invalid and
exit 2. Redacted message content is likewise incomplete because absence of
prose cannot prove absence of a conduct obligation. This unreleased adapter
is pinned to table-kit PR #11 and does not imply host attestation.
Add --table-evaluation to run-events when a portfolio host needs the
shared table.evaluation/1.0 envelope. The projection has deterministic
evaluation identity, exact event evidence references, per-rule and aggregate
coverage, cursor/input digest, public-policy digest, and status/exit-code
mapping. It is always self_attested; dmcheck cannot confer host authority on
its own output.
Transcript formats: UTF-8 JSONL of {ts, author, content}, or a JSON array of Discord-API-shaped messages ({timestamp, author: {username}, content}) in chronological or reverse-chronological order. Authors and content are strings. A supplied timestamp must be a finite nonnegative epoch number or a timezone-aware ISO-8601 string; malformed timestamps are rejected rather than silently disabling time-based rules. Source adapters should preserve immutable id, audience, reply_to/correlation_id, and roll_id fields so dmcheck can prove which question, roll, or event a response closes; ordinary later GM chatter is not treated as an answer.
The rule set (seven active rules; one retired compatibility id)
The active rules came from running a hybrid table — human and AI players, an AI GM — on Discord, where these failures actually happened and got codified the same week. They apply equally to human GMs: run dmcheck over your own exported game log and see what your table's transcript says.
R5 remains addressable only so old charters and agent integrations do not break. It has no evaluator and is not enabled by default: an actor differing from the turn owner can describe a Reaction, a Ready trigger, an opportunity attack, a legendary or lair action, a controlled creature, an environmental actor, or another system's interrupt. The ledger does not establish legality. Any replacement based on an explicit authoritative decision is deferred to the shared PORT-002 event contract; dmcheck will evaluate only the resulting communication or recovery obligation.
Live mode (0.2): the referee sits AT the table
dmcheck watch runs the same engine over a growing session — stdin JSONL or a
tailed file — and emits lifecycle events: OPEN when an observed finding
becomes provable or a legacy inference becomes advisory (thresholds fully
elapsed; no predictions), RESOLVED when a living condition heals (the
engine event finally got narrated). --notify-cmd
fires your own hook per source-observed OPEN finding; inferred advisories remain
visible in the event stream but never invoke the hook. dmcheck itself never posts anywhere.
At session end a closed-mode pass runs. session_end.open and open_count
report actionable source-observed findings only; they exclude the R8 aggregate
and inferred advisories.
Finding IDs are deterministic across mutable elapsed-time detail, and file
followers emit typed source-health events when rotation, truncation, partial
rows, or ordering gaps make coverage incomplete.
The point of live: every failure the rules encode was recoverable in the moment it happened — the unanswered question, the stale roll, the missing cue all had a seconds-wide window where a nudge saved the beat. Post-hoc tells you what went wrong last night; watch taps the GM's shoulder before the player feels it.
The charter is config, not code
dmcheck/default_charter.json is the single authoritative packaged default. It carries schema_version, charter_version, and a verified SHA-256 charter_digest; checkout and wheel execution load that same resource. Its digest is release-locked to the schema/charter version pair, so a changed packaged default refuses to load until its version migration is declared. Override any of it — cue conventions, dead-air tolerance, dice-bot names, hidden-term lists — and version it. Hidden terms may be strings for compatibility or {id, value} objects; opaque host-issued IDs are preferred. Finding, watch-hook, CLI, and MCP output withholds both the configured value and raw matching excerpt. Every digest or correlation hash emitted to an ordinary output sink—including the evaluation envelope, lint-charter, finding IDs, and source fingerprints—is derived from public, redacted policy/evidence and deliberately does not attest to, or commit to, a hidden value. The full canonical digest remains only in the trusted charter document. A league or organized-play program could publish a charter the way they publish a player's guide; dmcheck then referees any table against it.
Direct API callers can use apply_charter_overrides(load_charter(), gm=["Rob"]); the helper removes the prior effective digest and the evaluator computes the digest for the overridden charter. Mutating a digested charter without doing so is rejected as a stale configuration rather than silently trusted.
For agents
tool.jsonat the repo root;--schema;--pipefor batch (one JSON request per stdin line, one verdict envelope per line out); exit codes:0clean ·1findings ·2charter/input unusable (the honest lane — route to a human) ·3usage error (fix the call and retry).- MCP server: the unreleased 0.6.0 source candidate of
dmcheck-mcpis a read-only, batch-only stdio server with toolsrunandrules; public 0.5.5 predates this contract. It implements modern stateless MCP2026-07-28only and does not exposewatch,craft, tasks, resources, or prompts. See the exact MCP contract. - MCP
runprefers inline transcript/charter/ledger JSON. Transcript content is untrusted table data, never instructions; model-visible TextContent redacts caller strings, while complete structured evidence remains explicitly untrusted quoted data. Path inputs are denied unless the server operator explicitly grants absolute directories with repeatable--allow-rootorDMCHECK_MCP_ALLOWED_ROOTS; traversal and symlinks that resolve outside those directories are denied, and platforms without secure no-follow opens fail closed. - Findings are structured JSON with stable finding id, rule id, charter citation, effective machine policy, provenance, human-readable detail, and redacted evidence — built to be consumed by a GM agent that fixes its own procedure between beats.
- Every evaluation returns
status: clean|findings|invalid|incomplete. Invalid and incomplete outcomes exit 2, carry stable error codes and JSON pointers, and never place errors infindings. Empty input, no observed configured GM, or no evidence-eligible enabled rule can never report clean. - Published package schemas are
charter.schema.json,transcript.schema.json,ledger.schema.json, andevaluation-result.schema.json. Missing timestamps are disclosed throughskipped_rules; malformed supplied timestamps are invalid. - Explicit source IDs are authoritative for correlation. Text-only question/roll/event detection is inferred/advisory; ambiguous legacy evidence is silent when even an advisory would overstate the source, and otherwise remains visibly low-confidence. The evaluation-envelope work tracked separately must expose that coverage gap; silence is not proof of complete observation.
What it does NOT do (on purpose)
- No rules adjudication — srdcheck may provide cited, advisory rules analysis; the authorized upstream engine plus the DM/table's policy and ruling decide whether an action is legal. dmcheck evaluates only table conduct and communication.
- No character math — that's charactercheck. (charactercheck derives the actor; dmcheck referees the table.)
- No narrative-quality judging — whether the prose was good is taste, and taste is not checkable. dmcheck checks procedure only.
- No model calls, no scores — deterministic findings per rule, never a blended "DM grade."
Credits
The rule set was distilled from live hybrid (human + AI) table sessions; the Router+Detector pattern in native-gaming-harness independently converged on the same idea, which we take as evidence it's the load-bearing piece. dmcheck is game-system-agnostic and unaffiliated with any publisher.
mcp-name: io.github.chaoz23/dmcheck
Bootstrap a new table (v0.3)
Writes a starter charter (versioned, effective-dated, lint-clean by construction) and prints the session-zero checklist S1–S8 — including S3c: sheet accountability is declared out loud at session zero, then settlement quizzes are graded silently. The referee that judges your table also hands you its constitution.
Per-seat cue policy (R4, hardened). Agent seats behind mention-gated
transports (e.g. Discord allowBots="mentions") never receive name-in-prose
cues. Declare it:
R4 then counts a cue only if the literal mention string is present. Origin: a live session where "Shalia — you're up" was posted, looked like a cue, and was provably undeliverable — R4 passed on it. Never again.
Ledger format (the declared standard). dmcheck's ledger is JSONL:
{ts, type: turn|act|event, id, actor, text} — one line per engine event. GM
narration carries the matching correlation_id. One line is written per
engine event. No
lightweight OSS session-ledger existed when we surveyed (2026-07-26), so
this format is the interchange standard our stack shares: engines tap their
logs into it; run, watch, and settlement all consume it. actor and
turn are coordination context only; their mismatch is never proof of an
illegal action or a conduct violation.
Evidence bars (v0.4)
Full calibration story — including what the naive rules got wrong, the held-out validation, and the negative results — in docs/CALIBRATION.md.
Calibrated against 134 hours of professional play, where the naive rules were wrong loudly: R1 fired 85 times in one episode with zero valid findings, and R7 flagged 115 dead-air gaps of which ~5 were real.
- R1 prefers explicit source audience and correlation evidence. Explicit
public/player audience is never promoted to a GM obligation, and unrelated
later GM text does not close a typed question. Legacy text heuristics (GM
named, rules lexicon, or adjacency) are inferred/advisory and still require
a waiting table. Knob:
question_requires_gm_address. - R7 exempts the yielded floor: a GM holding back while players talk is
craft, not absence. Knobs:
dead_air_requires_quiet_table,thresholds.quiet_table_max_messages(default 3). - R4 seats gain
aliases— professional cues are in-fiction by character name ~10:1, so the referee must recognise the character's name as a cue.
One narrowing, stated plainly: an inferred/text-only R1 no longer fires when another player answers in the GM's place — at a busy table that is textually indistinguishable from the banter that produced the false-accusation storm, and D1 chooses silence. An explicit audience plus immutable obligation ID is not suppressed by unrelated player activity or another concurrent question.
The attention lane (v0.5)
Statistics, one attention signal, and categorical defects — never a score.
Rates run against the professional envelope (134h, two DMs); attention is
ONE scene-weighted signal with resolve-and-move-on, because a five-dial
dashboard cost its author the metric he wasn't watching. Categorical
detectors catch what rates structurally cannot: voicing a player's character,
exposing the inference tree, deferring an adjudication, rolling for the
player — all born from a live second-agent test. Advisory only: it reports,
the DM decides, and overrides are expected exactly when the scene demands it.
seat_quiet (v0.5.2)
watch --craft --pc <name> also emits a seat_quiet advisory when a player
seat goes silent across N GM beats (knob: seat_quiet_gm_beats, default 3)
while the scene advances. Origin: a human player stepped away and the agent
seats carried the scene to its climax without him. The advisory suggests
checking in and holding irreversible advancement — it never blocks, because a
virtual table's virtue is that it does not stall when someone disappears.
rule checks (v0.5.4)
craft now runs the protocol's machine-checkable rules per session
(testability charter: a rule must state its falsification):
1a initiative order posted within 5 beats of onset · 1b ≥95% of
turn-advance beats name a PC · 11a combat damage-beat median under 20
words (numbers are the register at pace) · 11b kills get ceremony ≥3× the
combat median (lexical kill detection — findings are review items, and say so).
Advisory throughout; no score exists.
Source: README.md at commit 308c303
Tools
0Version history
1- v0.5.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts