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:
Fabio
2026-07-06 11:37:12 -04:00
parent 76b8ec33a7
commit a8594d786c
48 changed files with 30086 additions and 2 deletions
@@ -0,0 +1,50 @@
---
type: Body
title: "Attorney General"
classification: "executive-office"
chamber: "executive"
code: "EXEC-JUSTICE-ATTORNEY-GENERAL"
parent: "us/executive/justice"
schedule_level: "I"
sources:
- field: definition
source: "5 U.S.C. § 5312 (Executive Schedule, Level I)"
confidence: official
tags: [body, executive, executive-office]
timestamp: "2026-07-03"
---
# Attorney General
Cabinet-rank office (Executive Schedule Level I, 5 U.S.C. § 5312), head of the [Department of Justice](/us/executive/justice/index.md).
## Empowered by the U.S. Code
2,386 sections of the U.S. Code vest authority in this office. A sample:
- [2 U.S.C. § 1331](/legal/us/code/title-02/chapter-24/section-1331.md)
- [2 U.S.C. § 1407](/legal/us/code/title-02/chapter-24/section-1407.md)
- [2 U.S.C. § 1605](/legal/us/code/title-02/chapter-26/section-1605.md)
- [2 U.S.C. § 190m](/legal/us/code/title-02/chapter-6/section-190m.md)
- [2 U.S.C. § 1977](/legal/us/code/title-02/chapter-29/section-1977.md)
- [2 U.S.C. § 288k](/legal/us/code/title-02/chapter-9d/section-288k.md)
- [2 U.S.C. § 5503](/legal/us/code/title-02/chapter-55/section-5503.md)
- [2 U.S.C. § 5571](/legal/us/code/title-02/chapter-55/section-5571.md)
- [3 U.S.C. § 19](/legal/us/code/title-03/chapter-1/section-19.md)
- [5 U.S.C. § 1212](/legal/us/code/title-05/chapter-12/section-1212.md)
- [5 U.S.C. § 1213](/legal/us/code/title-05/chapter-12/section-1213.md)
- [5 U.S.C. § 1214](/legal/us/code/title-05/chapter-12/section-1214.md)
- [5 U.S.C. § 13104](/legal/us/code/title-05/chapter-131/section-13104.md)
- [5 U.S.C. § 13106](/legal/us/code/title-05/chapter-131/section-13106.md)
- [5 U.S.C. § 13107](/legal/us/code/title-05/chapter-131/section-13107.md)
- [5 U.S.C. § 13122](/legal/us/code/title-05/chapter-131/section-13122.md)
- [5 U.S.C. § 13145](/legal/us/code/title-05/chapter-131/section-13145.md)
- [5 U.S.C. § 2303](/legal/us/code/title-05/chapter-23/section-2303.md)
- [5 U.S.C. § 2902](/legal/us/code/title-05/chapter-29/section-2902.md)
- [5 U.S.C. § 3151](/legal/us/code/title-05/chapter-31/section-3151.md)
- [5 U.S.C. § 3330a](/legal/us/code/title-05/chapter-33/section-3330a.md)
- [5 U.S.C. § 401](/legal/us/code/title-05/chapter-4/section-401.md)
- [5 U.S.C. § 404](/legal/us/code/title-05/chapter-4/section-404.md)
- [5 U.S.C. § 406](/legal/us/code/title-05/chapter-4/section-406.md)
- [5 U.S.C. § 408](/legal/us/code/title-05/chapter-4/section-408.md)
- …and 2,361 more (full set in data/section_authority_edges.jsonl)
@@ -0,0 +1,49 @@
---
type: Body
title: "Department of Justice"
classification: "executive-department"
chamber: "executive"
code: "EXEC-JUSTICE"
head: "us/executive/justice/attorney-general"
sources:
- field: definition
source: "5 U.S.C. § 101 (Executive departments)"
confidence: official
tags: [body, executive, executive-department]
timestamp: "2026-07-03"
---
# Department of Justice
Executive department, established by 5 U.S.C. § 101. Headed by the [Attorney General](/us/executive/justice/attorney-general.md).
## Referenced by the U.S. Code
549 sections of the U.S. Code reference this department. A sample:
- [2 U.S.C. § 1605](/legal/us/code/title-02/chapter-26/section-1605.md)
- [2 U.S.C. § 1614](/legal/us/code/title-02/chapter-26/section-1614.md)
- [2 U.S.C. § 1808](/legal/us/code/title-02/chapter-28/section-1808.md)
- [2 U.S.C. § 185](/legal/us/code/title-02/chapter-5/section-185.md)
- [2 U.S.C. § 190m](/legal/us/code/title-02/chapter-6/section-190m.md)
- [5 U.S.C. § 101](/legal/us/code/title-05/chapter-1/section-101.md)
- [5 U.S.C. § 13107](/legal/us/code/title-05/chapter-131/section-13107.md)
- [5 U.S.C. § 2303](/legal/us/code/title-05/chapter-23/section-2303.md)
- [5 U.S.C. § 2902](/legal/us/code/title-05/chapter-29/section-2902.md)
- [5 U.S.C. § 3106](/legal/us/code/title-05/chapter-31/section-3106.md)
- [5 U.S.C. § 3401](/legal/us/code/title-05/chapter-34/section-3401.md)
- [5 U.S.C. § 405](/legal/us/code/title-05/chapter-4/section-405.md)
- [5 U.S.C. § 406](/legal/us/code/title-05/chapter-4/section-406.md)
- [5 U.S.C. § 413](/legal/us/code/title-05/chapter-4/section-413.md)
- [5 U.S.C. § 416](/legal/us/code/title-05/chapter-4/section-416.md)
- [5 U.S.C. § 419](/legal/us/code/title-05/chapter-4/section-419.md)
- [5 U.S.C. § 422](/legal/us/code/title-05/chapter-4/section-422.md)
- [5 U.S.C. § 424](/legal/us/code/title-05/chapter-4/section-424.md)
- [5 U.S.C. § 5314](/legal/us/code/title-05/chapter-53/section-5314.md)
- [5 U.S.C. § 5315](/legal/us/code/title-05/chapter-53/section-5315.md)
- [5 U.S.C. § 5316](/legal/us/code/title-05/chapter-53/section-5316.md)
- [5 U.S.C. § 552](/legal/us/code/title-05/chapter-5/section-552.md)
- [5 U.S.C. § 6372](/legal/us/code/title-05/chapter-63/section-6372.md)
- [5 U.S.C. § 7323](/legal/us/code/title-05/chapter-73/section-7323.md)
- [5 U.S.C. § 7531](/legal/us/code/title-05/chapter-75/section-7531.md)
- …and 524 more (full set in data/section_authority_edges.jsonl)