Legislation axis: Bill schema, OpenStates ingest, validator + provenance

The legislative-process corpus, parallel to the U.S. Code statute corpus.
schemas/bill.schema.json + scripts/ingest_legislation.py (deterministic,
stdlib-only, reads per-state JSONL from the depot); validate.py gains
legislation/ as a third tree; Makefile 'legislation' target. Raw JSONL stays
off-repo on the depot (gitignored); the per-state SHA-256 manifest is the
committed provenance anchor. Vintage 2026-07-01.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Fabio
2026-07-06 17:24:31 -04:00
parent 246d014a4e
commit 7764501bcf
7 changed files with 669 additions and 2 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ import sys
from pathlib import Path
REPO = Path(__file__).resolve().parent.parent
TREES = [REPO / "data" / "jurisdictions", REPO / "legal"]
TREES = [REPO / "data" / "jurisdictions", REPO / "legal", REPO / "legislation"]
SCHEMAS = REPO / "schemas"
MAX_REPORT = 25