Authority axis v1: mint the executive branch + link 27,804 § → office edges
The Code empowers the executive branch, but the mirror only had legislative Bodies — every authority reference pointed at nothing. Fixed by minting the executive branch from the Code's OWN enumerations: 15 Cabinet departments (5 U.S.C. § 101) + 21 Executive-Schedule Level I offices (§ 5312), 42 Body nodes under us/executive/. Then the axis: scripts/extract_authority.py matches named office/department references across all 59,740 sections (guarding against Deputy/Assistant/Under subordinates) and emits data/section_authority_edges.jsonl — 27,804 edges from 17,031 sections (28.7% of the Code) to the offices they empower. build.py renders reciprocal 'empowered by' links on each office node; the section files are never touched. Now: click the Attorney General, see all 2,386 sections that vest authority in it. Named references only in v1 (cabinet-level). Deterministic; body.schema classification enum extended (executive-department/-agency/-office); make check green at 105,746 records. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Republic OS — repeatable pipeline commands.
|
||||
# The build is deterministic: `make build` twice yields a byte-identical tree.
|
||||
|
||||
.PHONY: build validate board legal-us-code check
|
||||
.PHONY: build validate board legal-us-code authority check
|
||||
|
||||
build: ## Regenerate the entity tree from raw exports in data/
|
||||
python3 scripts/build.py
|
||||
@@ -24,4 +24,7 @@ TITLES ?= 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2
|
||||
legal-us-code: ## Ingest the pinned U.S. Code titles (override with TITLES="…")
|
||||
@for t in $(TITLES); do python3 scripts/ingest_us_code.py --title $$t; done
|
||||
|
||||
authority: ## Extract the § -> executive-office authority edges (a committed input)
|
||||
python3 scripts/extract_authority.py
|
||||
|
||||
check: build validate ## Build, then validate — the full gate
|
||||
|
||||
Reference in New Issue
Block a user