Politics reference
0 pages, 6 routes, 9 connections and 0 CLI commands, generated from the declarations of Politics without reading storage or running anything.
Code · 0 files
No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.
Connections · 9
Politics.Ballot.Guide
Seats, holders, candidates, reported money and the last stored result for one place and cycle, joined by identifier, with what is missing. No writes.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| district_assignment | optional | |||
| state | optional | |||
| house_district | optional | |||
| cycle | required | |||
| election_date | optional |
- Output keypolitics.result
- Classificationroute_handler
- POST /politics/ballot/guideHTTP route
Politics.District.Fairness
Efficiency gap, mean-median and seat share against vote share over stored US House results, each with its inputs and blind spot. Descriptive only; no verdict.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| state | required | |||
| election_date | required | |||
| party_a | optional | |||
| party_b | optional |
- Output keypolitics.result
- Classificationroute_handler
- POST /politics/district/fairnessHTTP route
Politics.Election.AsBallot
Stored official contests as closed, cited ballots; never stored and never answered.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| state | required | |||
| county | optional | |||
| election_date | optional | |||
| limit | optional |
- Output keypolitics.result
- Classificationroute_handler
- POST /politics/election/as-ballotHTTP route
Politics.Election.Import
Append provider-normalized election observations as immutable revisions; a replay is a no-op and one invalid record writes nothing. No district assignments, voter records or settlement.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| records | required | |||
| preview | optional | |||
| provider | optional |
- Output keypolitics.result
- Classificationreal
- POST /politics/election/importHTTP route
Politics.Election.Observations
Bounded listing of every stored election observation revision, with an explicit truncation flag.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| record_type | optional | |||
| provider | optional | |||
| state | optional | |||
| district | optional | |||
| fec_candidate_id | optional | |||
| bioguide | optional | |||
| cycle | optional | |||
| election_date | optional | |||
| county | optional | |||
| office | optional | |||
| limit | optional |
- Output keypolitics.result
- Classificationroute_handler
- POST /politics/election/observationsHTTP route
Politics.PredictVote
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| bill_id | optional | |||
| bill_stance_vector | required | |||
| legislator_peer_ids | optional | |||
| legislator_parties | optional |
- Output keypolitics.result
- Classificationunclassified
Politics.SetStances
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| peer_id | optional | |||
| stances | required | |||
| party | optional |
- Output keypolitics.result
- Classificationunclassified
Politics.SimulateElection
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| candidates | required | |||
| voter_blocks | required |
- Output keypolitics.result
- Classificationunclassified
Politics.StrawPoll.Draft
Build a draft ranked (IRV) Ballot over a race's FEC candidate ids for the caller to save with Ballot.Upsert. Opinion among CRE8 participants, not a forecast or a vote. No writes.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| district_assignment | optional | |||
| state | optional | |||
| house_district | optional | |||
| cycle | required | |||
| election_date | optional | |||
| office | optional |
- Output keypolitics.result
- Classificationroute_handler
- POST /politics/straw-poll/draftHTTP route
Schema and data model
Declared storage and kinds. Linked kinds open their app pages.
- Authorityhyper
- Preferred truthhyper
- App ownerPolitics
- SQL projectionnone · DDL declarations: 0
- politics.election_observation
- politics.election_observation
- None declared.
- None declared.
- None declared.
- No model warnings were reported.
Capabilities and dependencies
- Person
- Legislation