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.2

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.2
File Size Uploaded Provenance Actions
rulegrid_editor-0.1.2.tar.gz 35.9 kB With provenance Details for rulegrid_editor-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 77.3 kB

Release files / rulegrid_editor-0.1.2.tar.gz

Download URL rulegrid_editor-0.1.2.tar.gz
Size 35.9 kB
Tags Source
SHA-256 checksum
How to use checksums
269f8cbea0493257be22faad64ae4b03ba9cf5f2ccf45fc9112d31a162b12bda
BLAKE2b-256 checksum
How to use checksums
97abd6257adb959e3ab5c08f2596d54f288c8cfbea7c05da0f6c7ee6ceb59d7e
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 14, 2026.

Transparency log

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

Download URL rulegrid_editor-0.1.2-py3-none-any.whl
Size 41.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29c823af07b10e32a6de09bbedef6b4dc0840477af4ef9e43e8c7bd86be5409b
BLAKE2b-256 checksum
How to use checksums
4fee59878ed8ace13499ec22d363273d925c52170f44b4e37f21ff41fb0121fc
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 14, 2026.

Transparency log

Security for rulegrid-editor 0.1.2

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.2.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 14, 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