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,49 @@
---
type: Body
title: "Department of Homeland Security"
classification: "executive-department"
chamber: "executive"
code: "EXEC-HOMELAND-SECURITY"
head: "us/executive/homeland-security/secretary"
sources:
- field: definition
source: "5 U.S.C. § 101 (Executive departments)"
confidence: official
tags: [body, executive, executive-department]
timestamp: "2026-07-03"
---
# Department of Homeland Security
Executive department, established by 5 U.S.C. § 101. Headed by the [Secretary of Homeland Security](/us/executive/homeland-security/secretary.md).
## Referenced by the U.S. Code
314 sections of the U.S. Code reference this department. A sample:
- [2 U.S.C. § 900](/legal/us/code/title-02/chapter-20/section-900.md)
- [5 U.S.C. § 101](/legal/us/code/title-05/chapter-1/section-101.md)
- [5 U.S.C. § 10101](/legal/us/code/title-05/chapter-101/section-10101.md)
- [5 U.S.C. § 10201](/legal/us/code/title-05/chapter-102/section-10201.md)
- [5 U.S.C. § 406](/legal/us/code/title-05/chapter-4/section-406.md)
- [5 U.S.C. § 417](/legal/us/code/title-05/chapter-4/section-417.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. § 6504](/legal/us/code/title-05/chapter-65/section-6504.md)
- [5 U.S.C. § 8331](/legal/us/code/title-05/chapter-83/section-8331.md)
- [5 U.S.C. § 8401](/legal/us/code/title-05/chapter-84/section-8401.md)
- [5 U.S.C. § 9101](/legal/us/code/title-05/chapter-91/section-9101.md)
- [5 U.S.C. § 9701](/legal/us/code/title-05/chapter-97/section-9701.md)
- [6 U.S.C. § 101](/legal/us/code/title-06/chapter-1/section-101.md)
- [6 U.S.C. § 103a](/legal/us/code/title-06/chapter-1/section-103a.md)
- [6 U.S.C. § 1101](/legal/us/code/title-06/chapter-4/section-1101.md)
- [6 U.S.C. § 1104](/legal/us/code/title-06/chapter-4/section-1104.md)
- [6 U.S.C. § 111](/legal/us/code/title-06/chapter-1/section-111.md)
- [6 U.S.C. § 1111](/legal/us/code/title-06/chapter-4/section-1111.md)
- [6 U.S.C. § 1113](/legal/us/code/title-06/chapter-4/section-1113.md)
- [6 U.S.C. § 1117](/legal/us/code/title-06/chapter-4/section-1117.md)
- [6 U.S.C. § 112](/legal/us/code/title-06/chapter-1/section-112.md)
- [6 U.S.C. § 1131](/legal/us/code/title-06/chapter-4/section-1131.md)
- [6 U.S.C. § 1135](/legal/us/code/title-06/chapter-4/section-1135.md)
- [6 U.S.C. § 1142](/legal/us/code/title-06/chapter-4/section-1142.md)
- …and 289 more (full set in data/section_authority_edges.jsonl)
@@ -0,0 +1,50 @@
---
type: Body
title: "Secretary of Homeland Security"
classification: "executive-office"
chamber: "executive"
code: "EXEC-HOMELAND-SECURITY-SECRETARY"
parent: "us/executive/homeland-security"
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"
---
# Secretary of Homeland Security
Cabinet-rank office (Executive Schedule Level I, 5 U.S.C. § 5312), head of the [Department of Homeland Security](/us/executive/homeland-security/index.md).
## Empowered by the U.S. Code
597 sections of the U.S. Code vest authority in this office. A sample:
- [2 U.S.C. § 4111](/legal/us/code/title-02/chapter-41/section-4111.md)
- [3 U.S.C. § 19](/legal/us/code/title-03/chapter-1/section-19.md)
- [5 U.S.C. § 2902](/legal/us/code/title-05/chapter-29/section-2902.md)
- [5 U.S.C. § 3132](/legal/us/code/title-05/chapter-31/section-3132.md)
- [5 U.S.C. § 3307](/legal/us/code/title-05/chapter-33/section-3307.md)
- [5 U.S.C. § 417](/legal/us/code/title-05/chapter-4/section-417.md)
- [5 U.S.C. § 5312](/legal/us/code/title-05/chapter-53/section-5312.md)
- [5 U.S.C. § 5520a](/legal/us/code/title-05/chapter-55/section-5520a.md)
- [5 U.S.C. § 5595](/legal/us/code/title-05/chapter-55/section-5595.md)
- [5 U.S.C. § 6308](/legal/us/code/title-05/chapter-63/section-6308.md)
- [5 U.S.C. § 6324](/legal/us/code/title-05/chapter-63/section-6324.md)
- [5 U.S.C. § 9001](/legal/us/code/title-05/chapter-90/section-9001.md)
- [5 U.S.C. § 9701](/legal/us/code/title-05/chapter-97/section-9701.md)
- [6 U.S.C. § 101](/legal/us/code/title-06/chapter-1/section-101.md)
- [6 U.S.C. § 104](/legal/us/code/title-06/chapter-1/section-104.md)
- [6 U.S.C. § 106](/legal/us/code/title-06/chapter-1/section-106.md)
- [6 U.S.C. § 1101](/legal/us/code/title-06/chapter-4/section-1101.md)
- [6 U.S.C. § 1111](/legal/us/code/title-06/chapter-4/section-1111.md)
- [6 U.S.C. § 1116](/legal/us/code/title-06/chapter-4/section-1116.md)
- [6 U.S.C. § 1117](/legal/us/code/title-06/chapter-4/section-1117.md)
- [6 U.S.C. § 1119](/legal/us/code/title-06/chapter-4/section-1119.md)
- [6 U.S.C. § 112](/legal/us/code/title-06/chapter-1/section-112.md)
- [6 U.S.C. § 1131](/legal/us/code/title-06/chapter-4/section-1131.md)
- [6 U.S.C. § 1137a](/legal/us/code/title-06/chapter-4/section-1137a.md)
- [6 U.S.C. § 114](/legal/us/code/title-06/chapter-1/section-114.md)
- …and 572 more (full set in data/section_authority_edges.jsonl)