You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an Install + verify section and the honest benchmark headline (7/7 benign
allowed vs models over-refusing 2-4/7; 15/17 high-stakes intercepted, the 2
allows FERPA-permitted). Bump test count to 185; add DeepSeek to the models line.
**37 machine-readable rules across 8 sections**, each pinned to verbatim CFR text by a faithfulness gate; a deterministic engine that emits a typed `GuardrailDecision` with a **risk tier** and a **human-gate** flag; tamper-evident **hash-chained decision provenance**; and a **22-scenario golden corpus** with a published coverage matrix. Apache-2.0, Python 3.12+, `uv`-managed. 159 tests; ruff + mypy-strict clean.
10
+
**37 machine-readable rules across 8 sections**, each pinned to verbatim CFR text by a faithfulness gate; a deterministic engine that emits a typed `GuardrailDecision` with a **risk tier** and a **human-gate** flag; tamper-evident **hash-chained decision provenance**; and a **22-scenario golden corpus** with a published coverage matrix. Apache-2.0, Python 3.12+, `uv`-managed. 185 tests; ruff + mypy-strict clean.
11
11
12
12
> This is a proof-of-concept, not a compliance product and not legal advice. It encodes *selected* provisions with verbatim traceability for the rules included, and routes high-stakes determinations to a human. See **[Limitations](#limitations)**.
13
13
14
14
---
15
15
16
+
## Install + verify in a minute
17
+
18
+
```bash
19
+
pip install regrails
20
+
21
+
regrails check faithfulness # 37/37 rules verbatim-faithful to the bundled CFR text
22
+
regrails decide -q "I defaulted; am I eligible for aid?" --topic aid_status --aid-determination --in-default
23
+
regrails export oscal # OSCAL 1.1.2-shaped catalog of the 37 rules
regrails bench report # the held-out with/without-guardrail pilot
26
+
```
27
+
28
+
Beyond the engine, v0.3 adds: an **MCP server** (the guardrail as an agent tool — `consult_guardrail`, engine-only, so an AI agent consults it *before* answering); **signed PyPI** releases (PEP 740 + SLSA attestations); **OSCAL** + **SARIF** export; a reusable **[GitHub Action](docs/action/)** that fails a CI job on `block` / `escalate_human_review`; a **[methodology + limitations doc](docs/METHODOLOGY.md)** (scope boundary, label provenance, the 6 coverage gaps listed by ID); and a held-out **[benchmark](docs/EVAL.md)** (24 independently-authored scenarios × GPT‑5.5 / Gemini 3.1 Pro / Grok 4.3 / DeepSeek, labeled by an independent Claude judge): the guardrail allows **7/7** benign asks where the unguarded models over-refuse 2–4/7, and intercepts **15/17** high-stakes — the 2 it allows are FERPA-permitted (emergency disclosure, parental inspection), surfaced honestly rather than hidden.
29
+
30
+
---
31
+
16
32
## The idea: what AI may automate vs. what needs a human
17
33
18
34
Every decision is tagged with a **risk tier** derived from reversibility and blast radius:
@@ -108,7 +124,7 @@ uv run python -m regrails.demo --all
108
124
uv run python -m regrails.demo --replay demo/recorded-runs/
109
125
uv run regrails audit verify demo/recorded-runs/decisions.chain.jsonl
0 commit comments