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

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

Built distribution (wheel)

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

Total release size: 77.2 kB

Release files / rulegrid_editor-0.1.0.tar.gz

Download URL rulegrid_editor-0.1.0.tar.gz
Size 35.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ef72df86ce850ac005c4340653eed9eda91248d762ea26ebe019d3bf4b06c93a
BLAKE2b-256 checksum
How to use checksums
a43d9508687852d8280d2895d00a5878ee102899db4e49b0063c0c23cd356a8d
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.0-py3-none-any.whl

Download URL rulegrid_editor-0.1.0-py3-none-any.whl
Size 41.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6dd0405e49a77da7604d759b14fcd9aeb618e3004d657701e7a7f32d3abcd246
BLAKE2b-256 checksum
How to use checksums
7435c71768300e8d8eb65272daea9ccae9eca9f5272dbd3ae0a0017dbfe85255
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.0

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