Files
Fabio a8594d786c 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>
2026-07-06 11:37:12 -04:00

21 lines
1.0 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Body",
"description": "A government body or institution — a chamber, committee, or subcommittee. The 'repos' of the government-as-code model.",
"type": "object",
"required": ["type", "title", "classification", "chamber", "code", "confidence", "tags", "timestamp"],
"properties": {
"type": { "type": "string", "enum": ["Body"] },
"title": { "type": "string" },
"classification": { "type": "string", "enum": ["house", "senate", "executive", "executive-department", "executive-agency", "executive-office", "committee", "subcommittee"] },
"chamber": { "type": "string", "enum": ["house", "senate", "joint", "executive"] },
"code": { "type": "string" },
"parent": { "type": "string" },
"leadership": { "type": "array" },
"sources": { "type": "array" },
"confidence": { "type": "string", "enum": ["official", "reported", "inferred", "unverified"] },
"tags": { "type": "array" },
"timestamp": { "type": "string" }
}
}