feat(core): implement Plan #62 efficiency, deduplication, caching & hook optimizations

This commit is contained in:
Hermes Agent committed 2026-12-02 22:09:58 +00:00
1 parent d4b7502501
commit 9b587d6351
20 files changed
+176 -195

No files matched your search

+3 -3
View File
@@ -31,7 +31,7 @@ from hyperstitionstud_io.ciphers import (
is_repdigit_37,
prime_rank,
)
from hyperstitionstud_io.config import load_workspace_config
from hyperstitionstud_io.config import load_json_cached, load_workspace_config
from hyperstitionstud_io.glossary import ReadOnlyIsolationGuard
from hyperstitionstud_io.ipld import compute_dag_json_cidv1, write_pretty_and_dag_json
from hyperstitionstud_io.lenses import DEFAULT_LENS, ENABLED_LENSES, LENS_REGISTRY, apply_all_lenses
@@ -256,7 +256,7 @@ def _load_real_market_history_bars(cfg: Any) -> dict[str, dict[str, dict[str, An
if not hist_path.is_file():
return {}
try:
raw = json.loads(hist_path.read_text(encoding="utf-8"))
raw = load_json_cached(hist_path, copy_result=False)
out: dict[str, dict[str, dict[str, Any]]] = {}
for sym, sym_obj in (raw.get("instruments") or {}).items():
out[sym] = dict(sym_obj.get("bars_by_date") or {})
@@ -809,7 +809,7 @@ def build_quant_timeseries_bundle(
tl_path = cfg.zoology_dir / "taxonomy" / "assemblage-builds-tier-list.json"
builds_out: list[dict[str, Any]] = []
if tl_path.is_file():
tl_data = json.loads(tl_path.read_text(encoding="utf-8"))
tl_data = load_json_cached(tl_path, copy_result=False)
for row in tl_data.get("rows", []):
s6 = row.get("stats_6") or {}
b_struct = {