feat(quant,deploy): complete financial quant pipeline fetchers/modes, sync v2.0.14, and add version_sync check to sync-vps-repos.sh

This commit is contained in:
m00t & Hermes Agent committed 2026-11-30 04:40:48 +00:00
1 parent 84636efd32
commit c42e4320e2
18 files changed
+419 -34

No files matched your search

+9
View File
@@ -164,10 +164,19 @@ def test_ipld_quant_and_mcp_server() -> None:
# 2. Quantitative Financial Telemetry Collector
q_harvest = build_financial_quant_harvest()
assert q_harvest["harvest_mode"] == "us-closing-bell"
assert q_harvest["regime_summary"]["instrument_count"] == 24
assert q_harvest["regime_summary"]["total_contingent_locks"] >= 20
assert q_harvest["isolation_receipt"]["all_unchanged"] is True
assert q_harvest["ipld_dag_json_cidv1"]["/"].startswith("baguqeera")
nvda_inst = next(x for x in q_harvest["instruments"] if x["symbol"] == "NVDA")
assert nvda_inst["quant_encodings"]["close_spoken_ing"] == "wuhn huhndrad therdee sevan"
assert nvda_inst["quant_encodings"]["scaled_cap_spoken_ing"] == "three point three faiv trilyan"
assert any(l["scope"] == "SCOPE1_INTRA_INSTRUMENT_SELF_LOCK" for l in nvda_inst["contingent_locks"])
q_rollover = build_financial_quant_harvest(harvest_mode="utc-rollover")
assert q_rollover["harvest_mode"] == "utc-rollover"
assert q_rollover["isolation_receipt"]["all_unchanged"] is True
# 3. MCP Server JSON-RPC 2.0 Dispatch (initialize, tools/list, tools/call, resources/read, prompts/get)
init_resp = dispatch_jsonrpc({"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2025-03-26"}})