Graph: national county↔district↔legislator authority layer

The first edges in the repo. Every US county now links to the districts it
sits in, weighted by area overlap, and every legislator links to the district
they represent — county → district → representative, traversable.

Data (PostGIS, no Atlas dependency — computed directly from geometry):
- data/county_district_edges.jsonl — 16,328 weighted edges. area_weight =
  ST_Area(ST_Intersection(county, district))/ST_Area(county) over ST_MakeValid
  Census TIGER 2024 geometries, overlaps <0.5% dropped. Uses area-intersection,
  NOT centroid-in-polygon, so urban districts that carve through counties
  (e.g. GA CD-5 / Atlanta across Clayton+DeKalb+Fulton) are captured, not
  silently dropped. Per-county weights sum to ~1.0 per district type.

build.py:
- ~6,896 new district nodes: 435 CD (ACS demographics where available; sparse
  for the 8 states missing from acs_cd) + 4,927 state-house + 1,897 state-senate
  (geometry-only). GEOID/number-keyed, stable.
- county index.md gains a `districts:` block (frontmatter) + a ## Districts
  section (body links, so link-integrity checks them).
- legislators + US House members gain `represents:` pointing at their district
  node; edge stored once on the person, inverse left to the view.
- schemas/jurisdiction: classification enum + chamber/districts fields.

Honest gaps (logged, not hidden): ID + NH have no state-house geometry, so
their house districts get nodes (represents resolves) but no county edges;
CD nodes for acs_cd-missing states are demographically sparse.

Deterministic (byte-identical rebuild); validate.py passes 26,617 records,
link-integrity clean (every district/represents link resolves).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Fabio
2026-07-04 22:28:08 -04:00
parent 6c9990a115
commit 1beeaab2db
18213 changed files with 280514 additions and 3515 deletions
@@ -0,0 +1,22 @@
---
type: Jurisdiction
title: "VT Senate District Addison"
classification: state-senate-district
state: "VT"
chamber: "senate"
district: "Addison"
sources:
- field: boundary
source: "Census TIGER 2024"
confidence: official
tags: [jurisdiction, state-senate-district, vt]
timestamp: "2026-07-03"
---
# VT Senate District Addison
State Senate district Addison (VT).
## Source
- boundary: Census TIGER 2024
@@ -0,0 +1,22 @@
---
type: Jurisdiction
title: "VT Senate District Bennington"
classification: state-senate-district
state: "VT"
chamber: "senate"
district: "Bennington"
sources:
- field: boundary
source: "Census TIGER 2024"
confidence: official
tags: [jurisdiction, state-senate-district, vt]
timestamp: "2026-07-03"
---
# VT Senate District Bennington
State Senate district Bennington (VT).
## Source
- boundary: Census TIGER 2024
@@ -0,0 +1,22 @@
---
type: Jurisdiction
title: "VT Senate District Caledonia"
classification: state-senate-district
state: "VT"
chamber: "senate"
district: "Caledonia"
sources:
- field: boundary
source: "Census TIGER 2024"
confidence: official
tags: [jurisdiction, state-senate-district, vt]
timestamp: "2026-07-03"
---
# VT Senate District Caledonia
State Senate district Caledonia (VT).
## Source
- boundary: Census TIGER 2024
@@ -0,0 +1,22 @@
---
type: Jurisdiction
title: "VT Senate District Chittenden Central"
classification: state-senate-district
state: "VT"
chamber: "senate"
district: "Chittenden Central"
sources:
- field: boundary
source: "Census TIGER 2024"
confidence: official
tags: [jurisdiction, state-senate-district, vt]
timestamp: "2026-07-03"
---
# VT Senate District Chittenden Central
State Senate district Chittenden Central (VT).
## Source
- boundary: Census TIGER 2024
@@ -0,0 +1,22 @@
---
type: Jurisdiction
title: "VT Senate District Chittenden North"
classification: state-senate-district
state: "VT"
chamber: "senate"
district: "Chittenden North"
sources:
- field: boundary
source: "Census TIGER 2024"
confidence: official
tags: [jurisdiction, state-senate-district, vt]
timestamp: "2026-07-03"
---
# VT Senate District Chittenden North
State Senate district Chittenden North (VT).
## Source
- boundary: Census TIGER 2024
@@ -0,0 +1,22 @@
---
type: Jurisdiction
title: "VT Senate District Chittenden Southeast"
classification: state-senate-district
state: "VT"
chamber: "senate"
district: "Chittenden Southeast"
sources:
- field: boundary
source: "Census TIGER 2024"
confidence: official
tags: [jurisdiction, state-senate-district, vt]
timestamp: "2026-07-03"
---
# VT Senate District Chittenden Southeast
State Senate district Chittenden Southeast (VT).
## Source
- boundary: Census TIGER 2024
@@ -0,0 +1,22 @@
---
type: Jurisdiction
title: "VT Senate District Essex"
classification: state-senate-district
state: "VT"
chamber: "senate"
district: "Essex"
sources:
- field: boundary
source: "Census TIGER 2024"
confidence: official
tags: [jurisdiction, state-senate-district, vt]
timestamp: "2026-07-03"
---
# VT Senate District Essex
State Senate district Essex (VT).
## Source
- boundary: Census TIGER 2024
@@ -0,0 +1,22 @@
---
type: Jurisdiction
title: "VT Senate District Franklin"
classification: state-senate-district
state: "VT"
chamber: "senate"
district: "Franklin"
sources:
- field: boundary
source: "Census TIGER 2024"
confidence: official
tags: [jurisdiction, state-senate-district, vt]
timestamp: "2026-07-03"
---
# VT Senate District Franklin
State Senate district Franklin (VT).
## Source
- boundary: Census TIGER 2024
@@ -0,0 +1,22 @@
---
type: Jurisdiction
title: "VT Senate District Grand Isle"
classification: state-senate-district
state: "VT"
chamber: "senate"
district: "Grand Isle"
sources:
- field: boundary
source: "Census TIGER 2024"
confidence: official
tags: [jurisdiction, state-senate-district, vt]
timestamp: "2026-07-03"
---
# VT Senate District Grand Isle
State Senate district Grand Isle (VT).
## Source
- boundary: Census TIGER 2024
@@ -0,0 +1,22 @@
---
type: Jurisdiction
title: "VT Senate District Lamoille"
classification: state-senate-district
state: "VT"
chamber: "senate"
district: "Lamoille"
sources:
- field: boundary
source: "Census TIGER 2024"
confidence: official
tags: [jurisdiction, state-senate-district, vt]
timestamp: "2026-07-03"
---
# VT Senate District Lamoille
State Senate district Lamoille (VT).
## Source
- boundary: Census TIGER 2024
@@ -0,0 +1,22 @@
---
type: Jurisdiction
title: "VT Senate District Orange"
classification: state-senate-district
state: "VT"
chamber: "senate"
district: "Orange"
sources:
- field: boundary
source: "Census TIGER 2024"
confidence: official
tags: [jurisdiction, state-senate-district, vt]
timestamp: "2026-07-03"
---
# VT Senate District Orange
State Senate district Orange (VT).
## Source
- boundary: Census TIGER 2024
@@ -0,0 +1,22 @@
---
type: Jurisdiction
title: "VT Senate District Orleans"
classification: state-senate-district
state: "VT"
chamber: "senate"
district: "Orleans"
sources:
- field: boundary
source: "Census TIGER 2024"
confidence: official
tags: [jurisdiction, state-senate-district, vt]
timestamp: "2026-07-03"
---
# VT Senate District Orleans
State Senate district Orleans (VT).
## Source
- boundary: Census TIGER 2024
@@ -0,0 +1,22 @@
---
type: Jurisdiction
title: "VT Senate District Rutland"
classification: state-senate-district
state: "VT"
chamber: "senate"
district: "Rutland"
sources:
- field: boundary
source: "Census TIGER 2024"
confidence: official
tags: [jurisdiction, state-senate-district, vt]
timestamp: "2026-07-03"
---
# VT Senate District Rutland
State Senate district Rutland (VT).
## Source
- boundary: Census TIGER 2024
@@ -0,0 +1,22 @@
---
type: Jurisdiction
title: "VT Senate District Washington"
classification: state-senate-district
state: "VT"
chamber: "senate"
district: "Washington"
sources:
- field: boundary
source: "Census TIGER 2024"
confidence: official
tags: [jurisdiction, state-senate-district, vt]
timestamp: "2026-07-03"
---
# VT Senate District Washington
State Senate district Washington (VT).
## Source
- boundary: Census TIGER 2024
@@ -0,0 +1,22 @@
---
type: Jurisdiction
title: "VT Senate District Windham"
classification: state-senate-district
state: "VT"
chamber: "senate"
district: "Windham"
sources:
- field: boundary
source: "Census TIGER 2024"
confidence: official
tags: [jurisdiction, state-senate-district, vt]
timestamp: "2026-07-03"
---
# VT Senate District Windham
State Senate district Windham (VT).
## Source
- boundary: Census TIGER 2024
@@ -0,0 +1,22 @@
---
type: Jurisdiction
title: "VT Senate District Windsor"
classification: state-senate-district
state: "VT"
chamber: "senate"
district: "Windsor"
sources:
- field: boundary
source: "Census TIGER 2024"
confidence: official
tags: [jurisdiction, state-senate-district, vt]
timestamp: "2026-07-03"
---
# VT Senate District Windsor
State Senate district Windsor (VT).
## Source
- boundary: Census TIGER 2024