Open Standard

RuleGraph: Rules as Data (LawCards)

Publish rules as verifiable data (canonical AST, units, provenance, tests). Declarative Simulation is the first reference application—engines consume LawCards instead of code. For the full human site visit rulegraph.org/home.

Schemas (live)

Schemas are immutable by URL; new versions live under new paths.

Reference App: Declarative Simulation

Reproducibility via lockfiles (card IDs + SHA-256 + run metadata).

Get Started (bots & humans)

  1. Consume a LawCard JSON (with equations[*].ast in rg-ast/v1.2).
  2. Validate against AST v1.2 and LawCard v0.2.
  3. Optionally run via worldsim-core.

Why LawCards?

Conformance & Profiles

AST normalization profile v1.2 (piecewise, relations/logicals, elementary math) is recommended. Engines can declare supported features (e.g., piecewise, norm, min/max).

Beyond Simulation

Declarative Simulation is our first reference application. LawCards are domain-neutral: policy/contract checking, robotics safety gates, optimization constraints, ABM/econ rules, and data validation all fit the same “rules as data” model.