Skip to content

Step 3 - Update and recovery

Choose a tag to compare

@SergeyGer SergeyGer released this 22 Nov 16:04
· 7 commits to main since this release
2d3c560

Step 3 - Update and recovery

Refresh the fixed HTTPS providers, publish immutable snapshots atomically and keep the last good
snapshot readable on any failure.

Delivered

  • Credential-free fetch layer with conditional GET (If-None-Match / If-Modified-Since), 15 s
    timeout, bounded exponential retries, redirect rejection and strict source registry.
  • Refresh pipeline: staging with 50 MiB per-payload and ZIP-safety limits, adapter validation in a
    throwaway build, deterministic merge (fixed OpenIntro cutover, shorter FRED exports keep older
    history, complete VIX history keeps tda_daily at 9,250 rows), revision records, single-writer
    lock, atomic snapshot directory + pointer, validators committed after publish, last-good recovery.
  • CLI: topomarket refresh --data-dir ... [--sources ...] [--json], topomarket sources;
    status/report/validate resolve the active snapshot; Streamlit overview exposes the active
    snapshot id.
  • Documentation: README refresh section, docs/REFRESH.md runbook and the GitHub Wiki pages.
  • Version 0.3.0.

Acceptance A3 evidence

Check Result
Public offline suite 214 passed / 9 skipped (private suites opt-in)
Private acceptance 8 passed (5 A2 + 3 A3)
Row counts after refresh sp500_daily 19,343; industries_daily 26,338; tda_daily 9,250
Live HTTPS refresh (4 providers) all HTTP 200; snapshot published
Conditional refresh all providers 304; no publication; snapshot id preserved
Failed required source last good snapshot stays active; failure recorded per source
Broken ZIP / oversized payload / concurrent refresh rejected cleanly; previous snapshot readable

Leftover private data, snapshots and credentials are never committed. Next: Step 4 - persistent
homology and the anomaly score (issue #5).