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 whether the response complies, deviates or breaches.

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

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.4
File Size Uploaded Provenance Actions
rulegrid_editor-0.1.4.tar.gz 36.6 kB With provenance Details for rulegrid_editor-0.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 78.6 kB

Release files / rulegrid_editor-0.1.4.tar.gz

Download URL rulegrid_editor-0.1.4.tar.gz
Size 36.6 kB
Tags Source
SHA-256 checksum
How to use checksums
095b1e7fb033e724dd1275cac55eca70ad76a818feaa5f90e760b2fd9751403d
BLAKE2b-256 checksum
How to use checksums
76ee474ccfcb11735d52c9a9cb57deda9d898ab47967a546ae933ab5daf1a838
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 17, 2026.

Transparency log

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

Download URL rulegrid_editor-0.1.4-py3-none-any.whl
Size 42.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d9fe3b997ddde125d260da5ea353c89d7717a93cac634389d38a45c07c6f791
BLAKE2b-256 checksum
How to use checksums
5d0b3d718d4ee9a16d0e65e3e38bbe1d5905e65e87cae0ddcb51fade28b04f82
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 17, 2026.

Transparency log

Security for rulegrid-editor 0.1.4

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.4.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 17, 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