Skip to content

Verify the real USGS API path and fix withdrawal ordering - #4

Merged
Zacharon merged 1 commit into
mainfrom
verify/usgs-real-data-path
Oct 21, 2026
Merged

Zacharon merged 1 commit into
mainfrom
verify/usgs-real-data-path

Conversation

@Zacharon

@Zacharon Zacharon commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

The USGS path now has real local HTTP evidence: an explicitly authorized live run loaded 332 official source features into a new SQLite database, all 332 matched a later source snapshot by content hash, all 332 returned through /api/events, and a saved-snapshot replay wrote no revisions.

This exposed two correction-ordering defects: newer withdrawals were ignored after the first deletion, allowing an intervening older active record to resurface; invalid source update clocks could also bypass ordering. The patch advances withdrawal watermarks and rejects invalid source update times. It also preserves structured USGS measurements and source IDs in allowlisted API metadata, retaining existing Forge IDs and the shared envelope.

Validation: 153 tests discovered, 129 passed and 24 PostgreSQL cases skipped locally. The new regression checks fail against the original implementation. Added persistent fixture CLI→reopened SQLite→WSGI coverage and extended PostgreSQL 16 CI to run the USGS cases. Local live HTTP and repeated ingestion passed. Corrections/withdrawals use labeled synthetic fixtures; no live changes were fabricated. CI now passed on Python 3.11 and 3.12, and the PostgreSQL 16 job passed, including all 11 USGS ingestion cases. PostgreSQL coverage uses deterministic fixtures; live PostgreSQL ingestion and hosted Live Map integration remain unrun. No live defaults or publication/privacy gates changed.

Detailed evidence and remaining limits: docs/USGS_REAL_DATA_VERIFICATION_2026-10-20.md.

CI evidence: https://github.com/Zacharon/osint-forge/actions/runs/39377608372

@Zacharon
Zacharon marked this pull request as ready for review October 21, 2026 20:46
@Zacharon
Zacharon merged commit 239c957 into main Oct 21, 2026
3 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