- Gaps between the last stored bar and the first new one were never found,
so a minute the live feed skipped, or a day missing right after the stored
history, was lost for good. A gap is now new when it ends after the last
bar held, and is downloaded again like any other.
- When one OKX connection dropped while the other kept writing, the write to
the closed feed threw out of the live loop and left it marked connected.
Writes now stop quietly, and the loop treats any failure (database
included) as a drop: marked down, back off, reconnect.
- The background worker now survives a failed round instead of stopping for
the life of the process.
- Alpaca gives adjusted prices on the basis of the download day, so a later
split looked like a crash. Each download re-reads the last stored day and,
if its adjusted/real ratio changed, rescales all older adjusted prices.
- Stock days are fetched up to the last closed New York session, so the job
after the close collects that day; missing stock days are checked against
the exchange calendar; delisted stocks with history are not asked again.
- Smaller: a lock in the freshness monitor, no NaN mood readings (SQLite
stored them as NULL), and the network proof runs only with
ANUBIS_LIVE_PROOF=1. The test wait is 30 s for busy machines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A LiveDemo test, outside the normal suite, that downloads the whole OKX EUR
daily history of BTC, ETH and SOL and the Binance BTCUSDT archives since 2017,
then writes the quality report. It is the evidence for the phase criteria that
a fake network cannot give.
The detached database test now retries the file move for a few seconds:
Windows refuses to move the SQLite file while a request of the running server
holds it, which made the test fail now and then.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>