Meeting and decision metrics for the Matrix map
Status: proposal (not yet built); the open questions are now decided, see "Decisions" below. Context: the Data explorer Matrix map tab
(web_app/src/pages/DataExplorerMatrixPage.tsx) renders ACS state and county values in seven layouts
(Tiles, Pivot, Compare, Scatter, Diverging, Share, Dot map). The goal is to let the same layouts show our
meeting and decision data. Reference for the chart forms: the Folio template.
What we have to work with
| Source (public schema) | Grain | Useful for |
|---|---|---|
event | one row per meeting (state, city, jurisdiction, date, duration_minutes, view_count) | meeting volume, cadence, length |
event_documents (transcripts) | one row per transcript | coverage, words, searchable evidence |
event_decision (AI-extracted) | one row per decision: primary_theme, outcome, vote_tally, competing_views, place refs | what was decided and how |
item_interestingness | one row per decision, typed signals: votes_yes, votes_no, public_comment_speaker_count, net_dollar_impact, has_competing_views, is_reversal, is_revisit | contested, money, engagement, reversals |
decision_speakers | one row per decision, speaker_count | public participation |
topic_money_and_talk | jurisdiction × theme × month: decision_count, spend_amount | talk vs money |
jurisdiction_minutes_publish_lag | one row per jurisdiction: median, mean, p90 lag days | transparency |
data_center_*, decision_company_mention | decision or meeting level | topical deep dives |
The one rule that makes these metrics meaningful: show coverage
ACS covers every state and county. Our meetings do not. We only have transcripts and extractions for jurisdictions we crawl, so a raw state count mostly measures crawl coverage, not civic activity. Every metric below therefore ships with:
coverage_n: how many jurisdictions and meetings contributed (always shown beside the value),- a minimum-sample rule (for example fewer than 10 decisions): show
—, never0or a noisy rate, nullfor "no data",0only for a measured zero (see "No Fabricated Data" inCLAUDE.md).
Recommended metrics
Additive (counts and sums): eligible for the Share layout
Part of whole works only here, because the parts sum to a meaningful whole.
| Slug | Definition | Whole for Share |
|---|---|---|
meetings_total | meetings in event | states of U.S., counties of a state |
meetings_with_transcript | meetings with an event_documents transcript | same |
decisions_total | rows in event_decision | same |
decisions_theme_<theme> | decisions per primary_theme (one slug per canonical COFOG theme) | themes of a jurisdiction, or states of one theme |
decisions_money_flagged | decisions with a dollar impact | same |
net_dollar_impact | sum of ABS(net_dollar_impact) (same definition as topic_money_and_talk.spend_amount) | same |
public_comment_speakers | sum of decision_speakers.speaker_count | same |
meeting_hours | sum of duration_minutes / 60 | same |
Money is the dollar impact of money-flagged decisions, not a budget; keep the existing disclaimer.
Rates and medians: Tiles, Pivot, Compare, Scatter, Diverging (never Share)
Store numerator and denominator next to the value so any roll-up recomputes rather than averages.
| Slug | Value | Notes |
|---|---|---|
decisions_per_meeting | decisions / meetings with extraction | depth of agendas |
contested_rate | decisions with has_competing_views / decisions | how often views split |
split_vote_rate | decisions with votes_no > 0 / decisions with a tally | only where a tally exists |
public_comment_rate | decisions with speaker_count > 0 / decisions | participation |
money_flag_rate | money-flagged decisions / decisions | |
reversal_rate | is_reversal decisions / decisions | |
transcript_coverage | meetings with transcript / meetings | doubles as the data-quality column |
median_minutes_lag_days | median of jurisdiction medians, weighted by sample_n | transparency |
mean_interestingness | mean of interestingness_score | optional, explain the score |
outcome is free text from the extraction. Do not invent a mapping: reuse the repo's existing
question_outcome_family() macro (approved, denied, deferred, moratorium, other) so these rates
cannot drift from the policy-question counts. That gives approval_rate (approved / decisions with a
decided family) and denial_rate; deferred and other stay out of the denominator and are reported
as their own share.
Joined with ACS: the most useful comparisons
Per-capita and context metrics divide a meeting metric by an ACS count at the same geography
(total_population, housing_units, labor_force):
decisions_per_100k,public_comment_speakers_per_100k,net_dollar_impact_per_capita- Scatter:
public_comment_rateagainst poverty or education metrics,decisions_per_100kagainst population - Diverging: each state's
contested_rateagainst the median state
Per-capita values are only comparable among places with similar coverage. Gate them on coverage_n
and say so in the layout caption. Scatter shows association at state or county level, not individual behaviour.
Which layout fits which metric
| Layout | Meeting-data use |
|---|---|
| Tiles | any metric by state; add coverage as the tile footnote |
| Pivot | states × several rates side by side (contested, comment, lag, coverage) |
| Compare (dumbbell) | one metric across two years or two periods |
| Scatter | meeting rate vs ACS context, with the r² readout |
| Diverging | state vs median for a rate |
| Dot map | any metric by state, then drill into that state's counties (one dot = a patch of the map, coloured by the area it sits in). The same drill-down will carry meeting metrics once county-level values exist |
| Share | additive metrics only: decisions by theme within a state, or a state's share of all decisions |
How to build it (data layer first)
- Metric catalog: a dbt seed or model
civic_metric(one row per metric:slug,label,format,kind=count | rate | median,is_additive,source_model). Same shape as the ACS manifest'smetrics[], so the page needs no new concept. - Values mart:
civic_metric_valuein long form, one row per (geo_level,geo_id,period,metric_slug), withvalue,numerator,denominator,coverage_n. Declare the primary key and foreign keys with dbt constraints; keep bothstate_codeandstate; store a bare year asintegerand serialize it as a string on the wire. Name by entity, nodim_/fact_. - Serving: an API route returning
{ metrics, values: { geo_id: { slug: value } } }plus coverage, readingpubliconly. Prefer the API to a static export because meeting data refreshes nightly. - Page: add a Source switch (
?source=acs|meetings) to the Matrix map. The layouts already readmetricsandvalues; only the fetch changes, and the layout caption states the active source and period. - Counties: add after states are proven, because place and county labels for decisions depend on the
geocoding in
event_place_geocodedanddecision_place_label.
Phasing
- Catalog plus state-level mart with the eight additive and six rate metrics above (one period, latest).
- Source switch on the Matrix map, with coverage shown on every tile and row.
- Time: quarterly periods enable Compare and a trend column.
- ACS-joined per-capita metrics.
- County level.
Decisions
Made on 2026-11-24 on a best-judgement basis because the owner had no preference. Change any of them by adding a dated line here, not by rewriting this section.
| Question | Decision | Reason |
|---|---|---|
| Period grain | Calendar year first; add quarters in phase 3 | Matches the ACS vintage axis the Matrix map already uses, so Compare and Scatter work across both sources. Meeting volume per quarter is too thin for most jurisdictions. |
| Minimum sample before showing a rate | At least 10 decisions and 3 jurisdictions (for a state value); at least 10 decisions for a single jurisdiction. Below that, show — and the reason | A rate on a handful of decisions swings on one item; two or fewer jurisdictions is one town's behaviour, not a state's. |
| Outcome vocabulary | Reuse question_outcome_family(); approval_rate = approved / (approved + denied + moratorium) | One shared definition, already used by the API counts. Deferred and other are excluded from the denominator, never counted as denials. |
| Per-capita and coverage-gated metrics | Shown, with a visible warning, never hidden: tiles below the coverage threshold are hatched and labelled "low coverage"; they are excluded from the scale so they cannot set the colour range | Hiding them reads as "no activity". The warning keeps the gap visible without letting thin data distort the comparison. |
| Where the metrics are computed | dbt mart plus API route, not in the browser | Transformations belong in dbt (CLAUDE.md, Data Pipeline Standards). |
| Year type | integer in storage, string on the wire | CLAUDE.md, "Calendar Years". |
Still open and worth a follow-up issue once the mart exists: whether to publish a decision-level
interestingness roll-up at all. It is a tuned ranking score, not a measurement, and may mislead as a
state-level metric.