Under the hood
My Government is one codebase running ~30 government-watching tenants —
from Michigan villages and school districts to counties, states, the U.S.
federal government, and a parallel Swiss deployment — each defined by a
declarative spec (sources, prompts, identity) rather than code. A
jurisdiction pyramid maps ZIP → place → ancestry, and a composition
engine renders any address's full stack (community ⊃ county ⊃ state ⊃
federal) as one dashboard from the same per-tenant data.
Weekly pipelines pull primary sources through per-source adapters
(registers, legislatures, courts, gazettes, municipal minutes), then an
LLM pipeline — tiered by task and routed across providers by cost —
filters for relevance, extracts structured findings ranked by legal
finality, and synthesizes topic areas. Everything an LLM asserts is
mechanically guarded: quotes must appear verbatim in the source text or
the row is dropped.
A doctrine layer ingests stated-intent documents (strategies, budget
resolutions, executive orders), extracts their commitments, and builds
evidence trails in both directions — bounded, resumable, budget-capped
passes link intents to the actions that carried them out, while a
corpus-wide citation sweep discovers doctrine the record keeps referring
to, researches and mechanically verifies each candidate (official domain,
identifier-in-text), and stages it for a human curatorial confirm.
New places onboard through a probe ladder with canary-gated
auto-promotion; local news sources are discovered and feed-verified
against a county registry. Per-tenant SQLite, deploy-free registry
overlays with human confirm gates, and public iCal/RSS participation
feeds round it out. Editorial invariant throughout: state, don't grade.