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 Commerce"
classification: "executive-department"
chamber: "executive"
code: "EXEC-COMMERCE"
head: "us/executive/commerce/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 Commerce
Executive department, established by 5 U.S.C. § 101. Headed by the [Secretary of Commerce](/us/executive/commerce/secretary.md).
## Referenced by the U.S. Code
420 sections of the U.S. Code reference this department. A sample:
- [2 U.S.C. § 4575](/legal/us/code/title-02/chapter-45/section-4575.md)
- [2 U.S.C. § 6317](/legal/us/code/title-02/chapter-63/section-6317.md)
- [2 U.S.C. § 900](/legal/us/code/title-02/chapter-20/section-900.md)
- [2 U.S.C. § 901](/legal/us/code/title-02/chapter-20/section-901.md)
- [2 U.S.C. § 904](/legal/us/code/title-02/chapter-20/section-904.md)
- [5 U.S.C. § 101](/legal/us/code/title-05/chapter-1/section-101.md)
- [5 U.S.C. § 406](/legal/us/code/title-05/chapter-4/section-406.md)
- [5 U.S.C. § 422](/legal/us/code/title-05/chapter-4/section-422.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. § 7103](/legal/us/code/title-05/chapter-71/section-7103.md)
- [5 U.S.C. § 7531](/legal/us/code/title-05/chapter-75/section-7531.md)
- [6 U.S.C. § 112](/legal/us/code/title-06/chapter-1/section-112.md)
- [6 U.S.C. § 121](/legal/us/code/title-06/chapter-1/section-121.md)
- [6 U.S.C. § 1501](/legal/us/code/title-06/chapter-6/section-1501.md)
- [6 U.S.C. § 512](/legal/us/code/title-06/chapter-1/section-512.md)
- [6 U.S.C. § 575](/legal/us/code/title-06/chapter-1/section-575.md)
- [7 U.S.C. § 136a](/legal/us/code/title-07/chapter-6/section-136a.md)
- [7 U.S.C. § 16](/legal/us/code/title-07/chapter-1/section-16.md)
- [7 U.S.C. § 178](/legal/us/code/title-07/chapter-8a/section-178.md)
- [7 U.S.C. § 178b](/legal/us/code/title-07/chapter-8a/section-178b.md)
- [7 U.S.C. § 1926c](/legal/us/code/title-07/chapter-50/section-1926c.md)
- [7 U.S.C. § 2009aa4](/legal/us/code/title-07/chapter-50/section-2009aa-4.md)
- [7 U.S.C. § 2009bb4](/legal/us/code/title-07/chapter-50/section-2009bb-4.md)
- [7 U.S.C. § 2020](/legal/us/code/title-07/chapter-51/section-2020.md)
- …and 395 more (full set in data/section_authority_edges.jsonl)
@@ -0,0 +1,50 @@
---
type: Body
title: "Secretary of Commerce"
classification: "executive-office"
chamber: "executive"
code: "EXEC-COMMERCE-SECRETARY"
parent: "us/executive/commerce"
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 Commerce
Cabinet-rank office (Executive Schedule Level I, 5 U.S.C. § 5312), head of the [Department of Commerce](/us/executive/commerce/index.md).
## Empowered by the U.S. Code
843 sections of the U.S. Code vest authority in this office. A sample:
- [3 U.S.C. § 19](/legal/us/code/title-03/chapter-1/section-19.md)
- [5 U.S.C. § 13101](/legal/us/code/title-05/chapter-131/section-13101.md)
- [5 U.S.C. § 2902](/legal/us/code/title-05/chapter-29/section-2902.md)
- [5 U.S.C. § 5312](/legal/us/code/title-05/chapter-53/section-5312.md)
- [5 U.S.C. § 8332](/legal/us/code/title-05/chapter-83/section-8332.md)
- [5 U.S.C. § 8334](/legal/us/code/title-05/chapter-83/section-8334.md)
- [5 U.S.C. § 8422](/legal/us/code/title-05/chapter-84/section-8422.md)
- [5 U.S.C. § 8501](/legal/us/code/title-05/chapter-85/section-8501.md)
- [5 U.S.C. § 9001](/legal/us/code/title-05/chapter-90/section-9001.md)
- [6 U.S.C. § 121](/legal/us/code/title-06/chapter-1/section-121.md)
- [6 U.S.C. § 1532](/legal/us/code/title-06/chapter-6/section-1532.md)
- [6 U.S.C. § 194](/legal/us/code/title-06/chapter-1/section-194.md)
- [6 U.S.C. § 195f](/legal/us/code/title-06/chapter-1/section-195f.md)
- [6 U.S.C. § 322](/legal/us/code/title-06/chapter-1/section-322.md)
- [6 U.S.C. § 573](/legal/us/code/title-06/chapter-1/section-573.md)
- [6 U.S.C. § 576](/legal/us/code/title-06/chapter-1/section-576.md)
- [6 U.S.C. § 580](/legal/us/code/title-06/chapter-1/section-580.md)
- [6 U.S.C. § 771](/legal/us/code/title-06/chapter-2/section-771.md)
- [6 U.S.C. § 822](/legal/us/code/title-06/chapter-2/section-822.md)
- [7 U.S.C. § 1292](/legal/us/code/title-07/chapter-35/section-1292.md)
- [7 U.S.C. § 178a](/legal/us/code/title-07/chapter-8a/section-178a.md)
- [7 U.S.C. § 178b](/legal/us/code/title-07/chapter-8a/section-178b.md)
- [7 U.S.C. § 178d](/legal/us/code/title-07/chapter-8a/section-178d.md)
- [7 U.S.C. § 178h](/legal/us/code/title-07/chapter-8a/section-178h.md)
- [7 U.S.C. § 2009bb12](/legal/us/code/title-07/chapter-50/section-2009bb-12.md)
- …and 818 more (full set in data/section_authority_edges.jsonl)