Skip to content

Add source citations to bill timeline events#157

Draft
ThatXliner wants to merge 3 commits into
mainfrom
codex/issue-147-event-citations
Draft

Add source citations to bill timeline events#157
ThatXliner wants to merge 3 commits into
mainfrom
codex/issue-147-event-citations

Conversation

@ThatXliner

@ThatXliner ThatXliner commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • carry official source URLs, locators, and text classification with every newly ingested Congress.gov action
  • fetch every action page and persist refreshed action metadata atomically with its date and text
  • link recorded votes to their exact House Clerk or Senate record, with the stable Congress.gov all-actions page for actions that have no individual public URL
  • show a compact citation on each timeline event, distinguish official, derived, and legacy labels, and explicitly mark events without a source
  • deduplicate identical timeline events and improve date/provenance formatting
  • retain the full official bill record as the timeline fallback
  • provide a read-only-by-default backfill command with an explicit production-write guard

Why

The existing timeline only exposed one generic bill link, so readers could not verify which official record supported an individual event. Legacy records also needed an honest missing-source state rather than an invented citation.

Validation

  • pnpm --filter @acme/scraper test
  • pnpm --filter @acme/db typecheck
  • pnpm --filter @acme/api typecheck
  • pnpm --filter @acme/scraper typecheck
  • pnpm --filter @acme/expo typecheck
  • pnpm --filter @acme/db lint
  • pnpm --filter @acme/api lint
  • pnpm --filter @acme/expo lint
  • production dry run for H.R. 9339: 6 actions, 6 sourced, 0 writes
  • verified production writes are rejected without --confirm-production

Closes #147

@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
billion-nextjs Ready Ready Preview, Comment Jul 14, 2026 3:12am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add source citations to each “Where it stands” timeline event

1 participant