Skip to content

feat: add TIGER live validation report - #124

Merged
cbwinslow merged 5 commits into
mainfrom
feat/117-tiger-live-validation-report
Oct 5, 2026
Merged

cbwinslow merged 5 commits into
mainfrom
feat/117-tiger-live-validation-report

Conversation

@cbwinslow

Copy link
Copy Markdown
Owner

Follow-up for #117 after #122.

This adds a reproducible warehouse acceptance report for completed TIGER plans instead of relying on manual SQL.

New command

research-db ingest tiger-bulk-validate --plan <plan>

Checks:

  • retained artifact URL matches the approved plan
  • official Census TIGER URL
  • positive retained byte count
  • SHA-256 evidence
  • retained file exists
  • source feature count from the retained ZIP
  • source == staged rows == staged GEOIDs == published boundaries
  • boundary vintage/validity
  • exact Story 10.2 selection contract for CD119 + 2024 SLDU/SLDL

Optional:
--rerun-load

This replays only canonical promotion from already-staged artifacts, takes a before/after fingerprint, and fails if canonical counts/validity change. It does not redownload or restage data.

Runtime SQL remains under sql/query/census/tiger/. Integration coverage proves the three political layers and idempotent replay.

This does not start Story 10.3 and adds no new geography/source scope.

@coderabbitai

coderabbitai Bot commented Oct 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 57 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: b6b120f3-8d26-4bb0-901c-b8a7b1f9a2c3
📥 Commits

Reviewing files that changed from the base of the PR and between 95fd1dc and 04a71b8.

📒 Files selected for processing (5)
  • sql/query/census/tiger/validate_artifact.sql
  • src/opendiscourse_research/cli.py
  • src/opendiscourse_research/ingestion/tiger_validate.py
  • tests/test_census_bulk.py
  • tests/test_census_bulk_integration.py
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cbwinslow
cbwinslow merged commit f52a04a into main Oct 5, 2026
7 checks passed
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.

1 participant