From 24d66f706e3e935b5777646e72a0f932ea0368d1 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 2 Dec 2026 13:36:30 +0000 Subject: [PATCH] test(quant): add strict regression assertion ensuring all real market history dates are in dates_utc --- README.md | 2 +- tests/test_core_suite.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dfd0492..10ceed0 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ > **Gitea Commit & Release Telemetry (`v2.17.1` • Namespace `urn:io:hyperstitionstud`)** > - **Repository Role & Public Route:** Shared PEP 420 Python core library (`hyperstitionstud_io.*`), MCP/REST server, `/quant/`, `/learn/`, `/engineering/`, `/math/`, & `/donate/` webroots → [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/) > - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.1 release state across 1 tracked module/artifact surface(s) -> - **Touched Files / Surfaces:** `deploy/sync-vps-repos.sh` +> - **Touched Files / Surfaces:** `tests/test_core_suite.py` > - **Live Verified Ecosystem Metrics (`v2.17.1`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data diff --git a/tests/test_core_suite.py b/tests/test_core_suite.py index 9407144..6c3e424 100644 --- a/tests/test_core_suite.py +++ b/tests/test_core_suite.py @@ -319,6 +319,16 @@ def test_ipld_quant_and_mcp_server() -> None: assert all(re.match(r"^\d{4}-\d{2}-\d{2}$", d) for d in ts_full["dates_utc"]) assert len(ts_full["instruments"]) == 24 + # Strict regression check: Ensure all dates present in real market history are fully covered in dates_utc + from hyperstitionstud_io.quant.timeseries import _load_real_market_history_bars + cfg_test = load_workspace_config() + real_hist_test = _load_real_market_history_bars(cfg_test) + history_dates = set() + for sym_obj in real_hist_test.values(): + history_dates.update(sym_obj.keys()) + for d in history_dates: + assert d in ts_full["dates_utc"], f"Regression: Real history date {d} missing from timeseries dates_utc!" + anthr_ts = next(x for x in ts_full["instruments"] if x["symbol"] == "ANTHR-PVT") assert anthr_ts["data_available"] is False assert anthr_ts["available_trading_days"] == 0