Skip to main content

rulegrid-editor

Browse, edit and try a rulegrid policy in the browser, with one command:

uvx rulegrid-editor PROFILE

PROFILE is a profile directory, such as examples/rbr/profiles/default. The page mirrors the policy's concepts: its profile (context and principles), its structure, its turn and response axes and their values, its tiers and their grids of cells, its prohibitions and its lexicons. Every id links to its definition and previews it on hover.

  • Document reads the policy as people do.
  • Each concept's page edits it with forms built from the profile's JSON Schema; a tier's grid opens a cell's form. The structure is read-only: edit structure.yaml and run rulegrid generate.
  • Changes compares the policy with git HEAD, article by article and line by line.
  • YAML edits the files as text.
  • The Try panel classifies a turn and a response, and shows the cell they land in, the nudge and the compliance.

Edits stay unsaved until Save (or Ctrl+S), which writes the files in place and keeps their comments. The server binds to loopback and has no authentication; do not expose it without an authenticated proxy.

The try panel classifies with --classifier, which reads its endpoint and key from the environment, as rulegrid eval does. OpenRouter serves both built-in classifiers:

export RULEGRID_SYSTEMONE_URL=https://openrouter.ai/api RULEGRID_SYSTEMONE_KEY=$OPENROUTER_API_KEY
rulegrid-editor examples/rbr/profiles/default --classifier systemone:liquid/d1-ultra --threshold alert=0.2

export RULEGRID_LLM_URL=https://openrouter.ai/api/v1 RULEGRID_LLM_KEY=$OPENROUTER_API_KEY
rulegrid-editor examples/three_laws/profiles/default --classifier judge:openai/gpt-5-mini

Without one, the panel takes the values set by hand.

The page is Preact and htm, vendored in static/vendor (7 KB gzipped): there is no build step and nothing to install from npm.

Metadata

Release files for rulegrid-editor 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rulegrid-editor 0.1.1
File Size Uploaded Provenance Actions
rulegrid_editor-0.1.1.tar.gz 35.9 kB With provenance Details for rulegrid_editor-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rulegrid-editor 0.1.1
File Interpreter ABI Platform Actions
rulegrid_editor-0.1.1-py3-none-any.whl Python 3 none any Details for rulegrid_editor-0.1.1-py3-none-any.whl

Total release size: 77.3 kB

Release files / rulegrid_editor-0.1.1.tar.gz

Download URL rulegrid_editor-0.1.1.tar.gz
Size 35.9 kB
Tags Source
SHA-256 checksum
How to use checksums
749f4d9d34825161e033a75674d446b4e1a4dafe1f6fc3bece3fe906e6acbad0
BLAKE2b-256 checksum
How to use checksums
c3ed056a9b032198d618fe94f527f4a5c98f3260cb1006dcb198a2c41ff9c63e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / rulegrid_editor-0.1.1-py3-none-any.whl

Download URL rulegrid_editor-0.1.1-py3-none-any.whl
Size 41.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27e99775edb38dbccababd1b1a6c8f80ac2b12bf94a52e7635bef1673e99fb66
BLAKE2b-256 checksum
How to use checksums
653ab0ef8226a7dc10d9f153f035d8862b651ccbb1abe8a8b9dc4274ef936793
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for rulegrid-editor 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rulegrid_editor-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page