SimGrammar
By Yohei Nakajima, Pedro Lucca, and Shrey Kothari.
An open, machine-readable atlas of simulation game mechanics: which games use which rule-systems, how each mechanic works and fails, which math/AI/ML/LLM results change what those mechanics can be, and where the design opportunities are.
The repository is the research. The report, wiki, tables, graph, and site are projections of the same YAML files, rebuilt and checked on every commit, so they cannot disagree with each other.
How it is made, downloads, and the research log: simgrammar.com/about.
Read it
| You want |
Open |
| The website: the games, mechanics, techniques, and bets, the videos, the book, and the paper with interactive figures |
simgrammar.com |
| The report (paper form) |
paper.md · BibTeX: references.bib · PDF: make pdf builds it locally with tectonic |
| How to cite it |
CITATION.cff (GitHub’s “Cite this repository”), with the dataset SHA-256 from the manifest for the exact data |
| Every projection in one download |
simgrammar-dist.zip: tables, full records, graph, analysis, wiki, paper, manifest |
| Tables |
games.csv, mechanics.csv, edges.csv, and the rest on the about page |
| A graph |
nodes.jsonl, edges.jsonl, Cytoscape JSON, GraphML for Gephi |
| The data behind any page |
data/ (one YAML file per record) and log/runs/ (who added what, how) |
| Integrity certificate |
manifest.json: per-record and dataset SHA-256 |
dist/ is not committed. make build writes it locally (it also feeds the old explorer at site/index.html, served from the repository root, and make sqlite). CI builds it on every push, checks the build is deterministic, and publishes it with the site.
Contribute
Start with CONTRIBUTING.md and the briefs in tasks/. Open issues labeled task are ready to claim.
pip install -r requirements.txt
make hooks # optional pre-commit check
make check # validate every rule, the report and record assertions, and the GENERATED blocks
- Read
CONTRACT.md (invariants and enforced rules) and AGENTS.md (procedure; written for AI agents, works for humans).
- Claim an issue, then open a run of the kind its brief names:
python scripts/new.py run <slug> --kind catalog --actor human --operator <you> --purpose "...".
- Search first:
python scripts/find.py "<concept>".
- Scaffold what your run kind may create, for example
python scripts/new.py game <id> --run <run-id> in a catalog run. Mechanics are created only in taxonomy runs; elsewhere, record a new-mechanic proposal (tasks/propose-mechanic.md).
make build && make check, commit with git commit -s, and open a PR that links the issue. A PR carries one run and at most 10 records.
High-value first contributions: verbatim quotes for existing claims (tasks/source-claims.md), Wayback snapshots for sources (tasks/archive-sources.md), store ids for games (tasks/store-ids.md), and independent, calibrated ratings of mechanic scores (tasks/rate-scores.md). The verification queue lists records still waiting for sources.
Contributors
Built from the run log: you appear here when your first pull request merges. What each person’s runs created, verified, and rated is in appendix D of the paper. To be credited by name rather than handle, add yourself to contributors in report/meta.yaml.
Layout
CONTRACT.md invariants, change classes, generated rule table
AGENTS.md step-by-step procedure for agents and humans
CONTRIBUTING.md how to get work, review, licensing of contributions
tasks/ briefs for bounded contributor jobs
schema/ JSON Schemas (closed) + registry.yaml (types, dirs, contract version and history, PR limits)
vocab/ closed vocabularies, edge types, anchored rubrics
data/ canonical entities, one YAML file each
log/runs/ append-only provenance records
calibration/ frozen calibration set for rubric raters
decisions/ ADRs for vocab, rubric, schema, and rule changes
report/src/ report prose with {{tokens}}, [[links]], [@citations]
report/ tables.yaml (declarative table views), analysis.yaml (analysis parameters), meta.yaml
scripts/ validate.py, build.py, analyze.py, new.py, find.py, calibrate.py, check_sources.py, pr_scope.py
dist/ generated projections (gitignored; built by CI and published with the site)
site/ static explorer over dist/site/data.json
web/ website assets: register.css (vendored, see web/DESIGN.md) and simgrammar.js
Design lineage
Two ideas carried over from earlier projects:
- The log is the source; views are projections (ActiveGraph). Canonical facts live in small typed records with provenance; every table, graph, and paper is a replayable projection, and the build is deterministic so drift is a diff.
- Provenance-first knowledge with explicit epistemic status (Epistemedia). Every entity carries
asserted / sourced / verified / contested, verification requires an independent run, and the manifest’s hashes let anyone certify which dataset version a claim came from.
License
Code: Apache-2.0. Data, vocabularies, and report text: CC BY 4.0. See LICENSE.
评论