Release v2.17.1: Implement Strategies A, B & C (git/stash telemetry excavator, IPv4 parallel FRED macro backfill with YoY metrics, and 3-month Yahoo/Stooq lookback with >= 2026-11-01 scope)
This commit is contained in:
1 parent
52153e76f0
commit
1a96c8a606
13 files changed
+2500
-405
No files matched your search
@@ -3,8 +3,8 @@
|
||||
<!-- HS-COMMIT-STATUS:START -->
|
||||
> **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 19 tracked module/artifact surface(s)
|
||||
> - **Touched Files / Surfaces:** `deploy/run-vps-data-production.sh`, `deploy/sync-vps-repos.sh`, `site/assets/closeups/quadrant-2-esoteric-finance-quant.png`, `site/assets/closeups/quadrant-3-tab-3-math-ts-rust.png`, `site/assets/closeups/ui-elements-manifest.json`, `site/quant/daily-brief-data.js`, `site/quant/daily-brief-latest.json`, `site/quant/daily-brief-state.json` (+11 more)
|
||||
> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.1 release state across 12 tracked module/artifact surface(s)
|
||||
> - **Touched Files / Surfaces:** `site/quant/daily-brief-data.js`, `site/quant/daily-brief-latest.json`, `site/quant/daily-brief-state.json`, `site/quant/financial-aq-harvest-latest.json`, `site/quant/quant-timeseries-data.js`, `site/quant/quant-timeseries.json`, `site/quant/real-macro-indicators-data.js`, `site/quant/real-macro-indicators.json` (+4 more)
|
||||
> - **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
|
||||
<!-- HS-COMMIT-STATUS:END -->
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
// Auto-generated by hyperstitionstud_io.quant.daily_brief — DO NOT EDIT MANUALLY
|
||||
window.HYPERSTITION_DAILY_BRIEF = {"$schema": "./schemas/v1/daily-portfolio-brief.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:daily-portfolio-brief", "version": "2.17.1", "run_number": 21, "generated_at_utc": "2026-12-02T14:13:45Z", "synthetic_data_eliminated": true, "agenda_1_executive_summary": {"headline_finding": "Late-November tape is governed by Vector G1/G4 Isometric Pinning (Dose 2, Posterior P(R2) = 0.0%), compressing median daily moves by -58% (101.0 bps vs. 240.5 bps baseline), while sovereign rates (US10Y 4.85%-4.94%, EFFR 3.88% == 388 KG nodes) cap long-duration multiple expansion.", "high_impact_findings_ranked": [{"rank": 1, "theme": "Dose 2 Isometric Pinning Dominance vs. Dose 3+ Tail Exhaustion", "durability_score": 0.84, "severity_score": 0.78, "portfolio_impact_probability": 0.81, "evidence": "Across 440 real Nov 2026 bars, Dose 2 (n=42) cut median moves to 101.0 bps (P90=292 bps, 60.6% next-day continuation), while all 9 Dose 3+ triple-confluence events were 100% downside selloffs averaging 1.98x volume and 377.5 bps next-day moves."}, {"rank": 2, "theme": "FRED Overnight Rate & Pipeline Margin Lock (EFFR = 388 bps, PPI MoM = -19 bps -> 137)", "durability_score": 0.88, "severity_score": 0.72, "portfolio_impact_probability": 0.79, "evidence": "EFFR holds at 3.88% (388 bps == 388 Knowledge Graph nodes) with SOFR at 3.98% (+10 bps repo spread), while PPI MoM (-19 bps -> 'nineteen'/'nainteen' = 137 [G4 Isometric]) undercuts CPI MoM (+35 bps -> 166) by -54 bps."}, {"rank": 3, "theme": "Synchronous Crypto & AI Hardware Coordinate Locks (BTC/ETH -91 bps, GOOGL -108 bps -> 292, SOL $73.07 == 73)", "durability_score": 0.76, "severity_score": 0.74, "portfolio_impact_probability": 0.75, "evidence": "SOL-USD locked onto its own ticker AQ ($73.07 == SOL=73) before surging +536 bps next day; GOOGL -108 bps locked onto Gen 0 292 (Dossier 62); BTC-USD and ETH-USD posted a simultaneous -91 bps (kampyoot=91) lock on 2026-11-26/28."}], "risk_on_off_barometers": {"vix_close": 19.26, "us10y_yield_pct": 5.05, "btc_latest_change_bps": 14, "copper_hg_latest_change_bps": 77, "effr_overnight_pct": 3.88, "sofr_overnight_pct": 3.98, "sofr_minus_effr_spread_bps": 10, "real_m2_mom_growth_bps": 16}, "bayesian_regime_inference": {"extant_priors": {"R1_BULL_RISK_ON": 0.0, "R2_PINNED_ISOMETRIC": 0.0, "R3_TAIL_DRAWDOWN_RISK_OFF": 1.0}, "likelihood_factors": {"R1_BULL_RISK_ON": 0.9775, "R2_PINNED_ISOMETRIC": 1.0465, "R3_TAIL_DRAWDOWN_RISK_OFF": 2.125}, "posterior_probabilities": {"R1_BULL_RISK_ON": 0.0, "R2_PINNED_ISOMETRIC": 0.0, "R3_TAIL_DRAWDOWN_RISK_OFF": 1.0}, "scenarios": {"best_case_r1_bull_risk_on": {"probability": 0.0, "label": "Best Case — Risk-On Expansion & Smooth Trend Continuation", "expected_daily_excursion_bps": "P50: +180 to +240 bps (Up-skewed S1/S2 leadership)", "drivers": "Real M2 positive growth (+16 bps MoM), easing PPI pipeline (-19 bps MoM), and VIX compression."}, "base_case_r2_pinned_isometric": {"probability": 0.0, "label": "Base Case — Vector G1/G4 Isometric Attractor Pinning (Dose 2 Regime)", "expected_daily_excursion_bps": "P50: 101.0 bps | P90 Tail: 292.0 bps (-58% variance compression vs. Dose 0)", "drivers": "Cross-species Market Ring × Same-Day Dossier Coordinate locks without headline shocks (60.6% next-day continuation)."}, "worst_case_r3_tail_drawdown": {"probability": 1.0, "label": "Worst Case — Dose 3+ Phase-Transition Drawdown & Sovereign Yield Tightening", "expected_daily_excursion_bps": "Next-Day Mean: -377.5 bps | 3-Day Cumulative Excursion: 1,395.0 bps (~13.95%)", "drivers": "US10Y near 4.85%-4.94% + triple-species Dose 3+ collisions (100% downside skew & 1.98x mean volume in Nov 2026)."}}}}, "agenda_2_confirming_signals": {"summary": "Macro liquidity expansion (Real M2 +16 bps MoM, M1 +52 bps MoM) and easing producer input costs (PPI -19 bps MoM) support S1/S3 operating margins, while Dose 2 dossier-tape locks confirm quiet accumulation.", "active_dose2_confirmations": [{"date_utc": "2026-12-01", "symbol": "RTX", "entity_ing": "raytheeon", "close_usd": 200.21, "change_bps": 60, "volume_ratio_20d": 0.71, "shared_dossier_coordinates": [], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-30", "symbol": "MSFT", "entity_ing": "maikrohsawft", "close_usd": 487.2, "change_bps": -115, "volume_ratio_20d": 1.39, "shared_dossier_coordinates": [115], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-30", "symbol": "LMT", "entity_ing": "lokheed", "close_usd": 610.65, "change_bps": 79, "volume_ratio_20d": 1.91, "shared_dossier_coordinates": [], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-30", "symbol": "BTC-USD", "entity_ing": "bitkoin", "close_usd": 59696.43, "change_bps": -44, "volume_ratio_20d": 0.77, "shared_dossier_coordinates": [189], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-29", "symbol": "SOL-USD", "entity_ing": "sohlana", "close_usd": 71.34, "change_bps": 125Line truncated
|
||||
window.HYPERSTITION_DAILY_BRIEF = {"$schema": "./schemas/v1/daily-portfolio-brief.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:daily-portfolio-brief", "version": "2.17.1", "run_number": 10, "generated_at_utc": "2026-12-02T14:48:38Z", "synthetic_data_eliminated": true, "agenda_1_executive_summary": {"headline_finding": "Late-November tape is governed by Vector G1/G4 Isometric Pinning (Dose 2, Posterior P(R2) = 0.0%), compressing median daily moves by -58% (101.0 bps vs. 240.5 bps baseline), while sovereign rates (US10Y 4.85%-4.94%, EFFR 3.88% == 388 KG nodes) cap long-duration multiple expansion.", "high_impact_findings_ranked": [{"rank": 1, "theme": "Dose 2 Isometric Pinning Dominance vs. Dose 3+ Tail Exhaustion", "durability_score": 0.84, "severity_score": 0.78, "portfolio_impact_probability": 0.81, "evidence": "Across 440 real Nov 2026 bars, Dose 2 (n=42) cut median moves to 101.0 bps (P90=292 bps, 60.6% next-day continuation), while all 9 Dose 3+ triple-confluence events were 100% downside selloffs averaging 1.98x volume and 377.5 bps next-day moves."}, {"rank": 2, "theme": "FRED Overnight Rate & Pipeline Margin Lock (EFFR = 388 bps, PPI MoM = -19 bps -> 137)", "durability_score": 0.88, "severity_score": 0.72, "portfolio_impact_probability": 0.79, "evidence": "EFFR holds at 3.88% (388 bps == 388 Knowledge Graph nodes) with SOFR at 3.98% (+10 bps repo spread), while PPI MoM (-19 bps -> 'nineteen'/'nainteen' = 137 [G4 Isometric]) undercuts CPI MoM (+35 bps -> 166) by -54 bps."}, {"rank": 3, "theme": "Synchronous Crypto & AI Hardware Coordinate Locks (BTC/ETH -91 bps, GOOGL -108 bps -> 292, SOL $73.07 == 73)", "durability_score": 0.76, "severity_score": 0.74, "portfolio_impact_probability": 0.75, "evidence": "SOL-USD locked onto its own ticker AQ ($73.07 == SOL=73) before surging +536 bps next day; GOOGL -108 bps locked onto Gen 0 292 (Dossier 62); BTC-USD and ETH-USD posted a simultaneous -91 bps (kampyoot=91) lock on 2026-11-26/28."}], "risk_on_off_barometers": {"vix_close": 19.26, "us10y_yield_pct": 5.05, "btc_latest_change_bps": 14, "copper_hg_latest_change_bps": 77, "effr_overnight_pct": 3.89, "sofr_overnight_pct": 4.02, "sofr_minus_effr_spread_bps": 13, "real_m2_mom_growth_bps": 16}, "bayesian_regime_inference": {"extant_priors": {"R1_BULL_RISK_ON": 0.0, "R2_PINNED_ISOMETRIC": 0.0, "R3_TAIL_DRAWDOWN_RISK_OFF": 1.0}, "likelihood_factors": {"R1_BULL_RISK_ON": 0.9775, "R2_PINNED_ISOMETRIC": 1.0465, "R3_TAIL_DRAWDOWN_RISK_OFF": 2.125}, "posterior_probabilities": {"R1_BULL_RISK_ON": 0.0, "R2_PINNED_ISOMETRIC": 0.0, "R3_TAIL_DRAWDOWN_RISK_OFF": 1.0}, "scenarios": {"best_case_r1_bull_risk_on": {"probability": 0.0, "label": "Best Case — Risk-On Expansion & Smooth Trend Continuation", "expected_daily_excursion_bps": "P50: +180 to +240 bps (Up-skewed S1/S2 leadership)", "drivers": "Real M2 positive growth (+16 bps MoM), easing PPI pipeline (-19 bps MoM), and VIX compression."}, "base_case_r2_pinned_isometric": {"probability": 0.0, "label": "Base Case — Vector G1/G4 Isometric Attractor Pinning (Dose 2 Regime)", "expected_daily_excursion_bps": "P50: 101.0 bps | P90 Tail: 292.0 bps (-58% variance compression vs. Dose 0)", "drivers": "Cross-species Market Ring × Same-Day Dossier Coordinate locks without headline shocks (60.6% next-day continuation)."}, "worst_case_r3_tail_drawdown": {"probability": 1.0, "label": "Worst Case — Dose 3+ Phase-Transition Drawdown & Sovereign Yield Tightening", "expected_daily_excursion_bps": "Next-Day Mean: -377.5 bps | 3-Day Cumulative Excursion: 1,395.0 bps (~13.95%)", "drivers": "US10Y near 4.85%-4.94% + triple-species Dose 3+ collisions (100% downside skew & 1.98x mean volume in Nov 2026)."}}}}, "agenda_2_confirming_signals": {"summary": "Macro liquidity expansion (Real M2 +16 bps MoM, M1 +52 bps MoM) and easing producer input costs (PPI -19 bps MoM) support S1/S3 operating margins, while Dose 2 dossier-tape locks confirm quiet accumulation.", "active_dose2_confirmations": [{"date_utc": "2026-12-01", "symbol": "RTX", "entity_ing": "raytheeon", "close_usd": 200.21, "change_bps": 60, "volume_ratio_20d": 0.71, "shared_dossier_coordinates": [], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-30", "symbol": "MSFT", "entity_ing": "maikrohsawft", "close_usd": 487.2, "change_bps": -115, "volume_ratio_20d": 1.39, "shared_dossier_coordinates": [115], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-30", "symbol": "LMT", "entity_ing": "lokheed", "close_usd": 610.65, "change_bps": 79, "volume_ratio_20d": 1.91, "shared_dossier_coordinates": [], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-30", "symbol": "BTC-USD", "entity_ing": "bitkoin", "close_usd": 59696.43, "change_bps": -44, "volume_ratio_20d": 0.77, "shared_dossier_coordinates": [189], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-29", "symbol": "SOL-USD", "entity_ing": "sohlana", "close_usd": 71.34, "change_bps": 125Line truncated
|
||||
@@ -2,8 +2,8 @@
|
||||
"$schema": "./schemas/v1/daily-portfolio-brief.schema.json",
|
||||
"$id": "urn:io:hyperstitionstud:schema:v1:daily-portfolio-brief",
|
||||
"version": "2.17.1",
|
||||
"run_number": 21,
|
||||
"generated_at_utc": "2026-12-02T14:13:45Z",
|
||||
"run_number": 10,
|
||||
"generated_at_utc": "2026-12-02T14:48:38Z",
|
||||
"synthetic_data_eliminated": true,
|
||||
"agenda_1_executive_summary": {
|
||||
"headline_finding": "Late-November tape is governed by Vector G1/G4 Isometric Pinning (Dose 2, Posterior P(R2) = 0.0%), compressing median daily moves by -58% (101.0 bps vs. 240.5 bps baseline), while sovereign rates (US10Y 4.85%-4.94%, EFFR 3.88% == 388 KG nodes) cap long-duration multiple expansion.",
|
||||
@@ -38,9 +38,9 @@
|
||||
"us10y_yield_pct": 5.05,
|
||||
"btc_latest_change_bps": 14,
|
||||
"copper_hg_latest_change_bps": 77,
|
||||
"effr_overnight_pct": 3.88,
|
||||
"sofr_overnight_pct": 3.98,
|
||||
"sofr_minus_effr_spread_bps": 10,
|
||||
"effr_overnight_pct": 3.89,
|
||||
"sofr_overnight_pct": 4.02,
|
||||
"sofr_minus_effr_spread_bps": 13,
|
||||
"real_m2_mom_growth_bps": 16
|
||||
},
|
||||
"bayesian_regime_inference": {
|
||||
@@ -293,7 +293,7 @@
|
||||
{
|
||||
"challenge_type": "SOVEREIGN_TERM_YIELD_HEADWIND",
|
||||
"indicator": "US10Y (DGS10 / ^TNX) & Term Slope (10Y - EFFR)",
|
||||
"observation": "US10Y = 4.85% / 5.05% (+97 bps above EFFR 3.88% -> 'naintee sevan' = 237 == kansorsheeam)",
|
||||
"observation": "US10Y = 4.93% / 5.05% (+97 bps above EFFR 3.88% -> 'naintee sevan' = 237 == kansorsheeam)",
|
||||
"impact": "Sustained ~4.85%-4.94% 10-year yields compress equity risk premia and penalize high-multiple S1 software names on any headline miss."
|
||||
},
|
||||
{
|
||||
@@ -377,8 +377,8 @@
|
||||
]
|
||||
},
|
||||
"agenda_4_delta_since_last_run": {
|
||||
"prior_run_number": 20,
|
||||
"current_run_number": 21,
|
||||
"prior_run_number": 9,
|
||||
"current_run_number": 10,
|
||||
"latest_wire_dossier": {
|
||||
"date_utc": "2026-12-01",
|
||||
"dossier_number": 73,
|
||||
@@ -398,7 +398,7 @@
|
||||
"macro_releases_ingested": {
|
||||
"cpi_latest": "2026-10-01: 337.476 (35 bps MoM)",
|
||||
"ppi_latest": "2026-10-01: 293.921 (-19 bps MoM)",
|
||||
"effr_sofr_latest": "2026-11-27: EFFR=3.88%, SOFR=3.98%",
|
||||
"effr_sofr_latest": "2026-12-01: EFFR=3.89%, SOFR=4.02%",
|
||||
"m2_real_m2_latest": "2026-10-01: M2=$23532.8B, Real M2=$6973.2B",
|
||||
"gdp_gnp_latest": "2026-07-01: GDP=$33056.204B, GNP=$33026.509B"
|
||||
},
|
||||
@@ -413,13 +413,13 @@
|
||||
},
|
||||
"agenda_5_daily_key_macro_question_and_rigor": {
|
||||
"prior_question_grading": {
|
||||
"prior_question_id": "Q-RUN-0020",
|
||||
"prior_question_id": "Q-RUN-0022",
|
||||
"prior_question_text": "Will the synchronous -91 bps (kampyoot / kleenroom) Dose 2 pinning wave across BTC-USD and ETH-USD and NVDA's +80 bps ('eighty' = 128 [S3]) lock hold inside the P50 <= 150 bps isometric corridor, or will US10Y yields near 4.85%-4.94% and SOFR-EFFR (+10 bps) trigger a Dose 3+ high-volume (>1.5x Vol20d) breakout?",
|
||||
"status": "EVALUATED_ON_REAL_TAPE",
|
||||
"evidence_summary": "Late-November real tape logged 15 Dose 2 isometric pinning sessions (including 2026-11-24 GOOGL -108 bps -> 292 and 2026-11-28 BTC/ETH -91 bps sync wave) with 0 new Dose 3+ drawdown shocks after Nov 19, confirming Base-Case R2 variance compression."
|
||||
},
|
||||
"active_daily_question": {
|
||||
"question_id": "Q-RUN-0021",
|
||||
"question_id": "Q-RUN-0010",
|
||||
"question_text": "Will the synchronous -91 bps (kampyoot / kleenroom) Dose 2 pinning wave across BTC-USD and ETH-USD and NVDA's +80 bps ('eighty' = 128 [S3]) lock hold inside the P50 <= 150 bps isometric corridor, or will US10Y yields near 4.85%-4.94% and SOFR-EFFR (+10 bps) trigger a Dose 3+ high-volume (>1.5x Vol20d) breakout?",
|
||||
"confirmation_threshold_r2_pin": "Next-session median displacement across locked S1/S2/S3 leaders remains <= 150 bps with Vol20d < 1.15x.",
|
||||
"falsification_threshold_r3_breakout": "Any S1/S2/S3 keystone logs a Dose 3+ headline-coupled session with Vol20d >= 1.50x or change_bps <= -300 bps."
|
||||
@@ -458,6 +458,6 @@
|
||||
}
|
||||
},
|
||||
"ipld_dag_json_cidv1": {
|
||||
"/": "baguqeera5cbgm7lsxawo5o3nog54p3jyu6g45odzl3of7ewdwmkpzkbg5ugq"
|
||||
"/": "baguqeera2hqzxntuy5v2lkspxcn5as5j4k25p62cbgpnvvop2q4wdpjbuoxa"
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"version": "2.17.1",
|
||||
"run_number": 21,
|
||||
"updated_at_utc": "2026-12-02T14:13:45Z",
|
||||
"run_number": 9,
|
||||
"updated_at_utc": "2026-12-02T14:48:38Z",
|
||||
"latest_posteriors": {
|
||||
"R1_BULL_RISK_ON": 0.0,
|
||||
"R2_PINNED_ISOMETRIC": 0.0,
|
||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||
},
|
||||
"active_daily_question": {
|
||||
"question_id": "Q-RUN-0021",
|
||||
"question_id": "Q-RUN-0010",
|
||||
"question_text": "Will the synchronous -91 bps (kampyoot / kleenroom) Dose 2 pinning wave across BTC-USD and ETH-USD and NVDA's +80 bps ('eighty' = 128 [S3]) lock hold inside the P50 <= 150 bps isometric corridor, or will US10Y yields near 4.85%-4.94% and SOFR-EFFR (+10 bps) trigger a Dose 3+ high-volume (>1.5x Vol20d) breakout?",
|
||||
"confirmation_threshold_r2_pin": "Next-session median displacement across locked S1/S2/S3 leaders remains <= 150 bps with Vol20d < 1.15x.",
|
||||
"falsification_threshold_r3_breakout": "Any S1/S2/S3 keystone logs a Dose 3+ headline-coupled session with Vol20d >= 1.50x or change_bps <= -300 bps."
|
||||
@@ -93,157 +93,25 @@
|
||||
},
|
||||
{
|
||||
"run_number": 8,
|
||||
"generated_at_utc": "2026-12-01T00:05:55Z",
|
||||
"posterior_probabilities": {
|
||||
"R1_BULL_RISK_ON": 0.0,
|
||||
"R2_PINNED_ISOMETRIC": 0.0,
|
||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||
},
|
||||
"question_id": "Q-RUN-0008",
|
||||
"cidv1": "baguqeerautuzfnmivmbc2fzxbwrc5sgftzcct22n4mezvac4ggjyrbvg5g5a"
|
||||
},
|
||||
{
|
||||
"run_number": 9,
|
||||
"generated_at_utc": "2026-12-01T00:19:28Z",
|
||||
"posterior_probabilities": {
|
||||
"R1_BULL_RISK_ON": 0.0,
|
||||
"R2_PINNED_ISOMETRIC": 0.0,
|
||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||
},
|
||||
"question_id": "Q-RUN-0009",
|
||||
"cidv1": "baguqeerawfns3y6ytluwupzkepk35hrnvxj4jvjsphebjkr4ssl5alsq7ubq"
|
||||
},
|
||||
{
|
||||
"run_number": 10,
|
||||
"generated_at_utc": "2026-12-01T00:20:26Z",
|
||||
"posterior_probabilities": {
|
||||
"R1_BULL_RISK_ON": 0.0,
|
||||
"R2_PINNED_ISOMETRIC": 0.0,
|
||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||
},
|
||||
"question_id": "Q-RUN-0010",
|
||||
"cidv1": "baguqeeranwkmzt6gli6f4i4c2uoelda4edgwqajimr65cz7t3bfj4bat3fta"
|
||||
},
|
||||
{
|
||||
"run_number": 11,
|
||||
"generated_at_utc": "2026-12-01T00:34:19Z",
|
||||
"posterior_probabilities": {
|
||||
"R1_BULL_RISK_ON": 0.0,
|
||||
"R2_PINNED_ISOMETRIC": 0.0,
|
||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||
},
|
||||
"question_id": "Q-RUN-0011",
|
||||
"cidv1": "baguqeeral24w6gneqk7n4ule4pu2kknmdxrja46iz5dujnbabjv6cng6ttua"
|
||||
},
|
||||
{
|
||||
"run_number": 12,
|
||||
"generated_at_utc": "2026-12-01T01:01:54Z",
|
||||
"posterior_probabilities": {
|
||||
"R1_BULL_RISK_ON": 0.0,
|
||||
"R2_PINNED_ISOMETRIC": 0.0,
|
||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||
},
|
||||
"question_id": "Q-RUN-0012",
|
||||
"cidv1": "baguqeeratalw7a3v4wps5vffanzkikbrk32tgjlrkyx3d64jfivp3raku4oq"
|
||||
},
|
||||
{
|
||||
"run_number": 13,
|
||||
"generated_at_utc": "2026-12-01T01:07:49Z",
|
||||
"posterior_probabilities": {
|
||||
"R1_BULL_RISK_ON": 0.0,
|
||||
"R2_PINNED_ISOMETRIC": 0.0,
|
||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||
},
|
||||
"question_id": "Q-RUN-0013",
|
||||
"cidv1": "baguqeerazwuha42cyefdtfljfycwsv34nsmhowvcfnhk7uxall2y7od5wbjq"
|
||||
},
|
||||
{
|
||||
"run_number": 14,
|
||||
"generated_at_utc": "2026-12-01T01:15:27Z",
|
||||
"posterior_probabilities": {
|
||||
"R1_BULL_RISK_ON": 0.0,
|
||||
"R2_PINNED_ISOMETRIC": 0.0,
|
||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||
},
|
||||
"question_id": "Q-RUN-0014",
|
||||
"cidv1": "baguqeeragj7pkqauxnfhazh3xufyvsj5m7glzt5ey74tf7e2opl4mrw5k46a"
|
||||
},
|
||||
{
|
||||
"run_number": 15,
|
||||
"generated_at_utc": "2026-12-01T02:24:09Z",
|
||||
"posterior_probabilities": {
|
||||
"R1_BULL_RISK_ON": 0.0,
|
||||
"R2_PINNED_ISOMETRIC": 0.0,
|
||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||
},
|
||||
"question_id": "Q-RUN-0015",
|
||||
"cidv1": "baguqeerad3auisgfth3tuuqkaljf65huof765uwocq7vxxkbp3an46rpjcva"
|
||||
},
|
||||
{
|
||||
"run_number": 16,
|
||||
"generated_at_utc": "2026-12-01T02:45:08Z",
|
||||
"posterior_probabilities": {
|
||||
"R1_BULL_RISK_ON": 0.0,
|
||||
"R2_PINNED_ISOMETRIC": 0.0,
|
||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||
},
|
||||
"question_id": "Q-RUN-0016",
|
||||
"cidv1": "baguqeeradofb4vbejhjmvqzdbk3ej6maztsvpzh374uog267wj3x3sni7nxa"
|
||||
},
|
||||
{
|
||||
"run_number": 17,
|
||||
"generated_at_utc": "2026-12-01T03:12:39Z",
|
||||
"posterior_probabilities": {
|
||||
"R1_BULL_RISK_ON": 0.0,
|
||||
"R2_PINNED_ISOMETRIC": 0.0,
|
||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||
},
|
||||
"question_id": "Q-RUN-0017",
|
||||
"cidv1": "baguqeeralanwxvgzcp2vr6mjezengwreiqnszi6pqs27pxyll6ydg244chna"
|
||||
},
|
||||
{
|
||||
"run_number": 18,
|
||||
"generated_at_utc": "2026-12-01T03:15:46Z",
|
||||
"posterior_probabilities": {
|
||||
"R1_BULL_RISK_ON": 0.0,
|
||||
"R2_PINNED_ISOMETRIC": 0.0,
|
||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||
},
|
||||
"question_id": "Q-RUN-0018",
|
||||
"question_id": "Q-RUN-0008",
|
||||
"cidv1": "baguqeera6yv3xbdw7lqkus3jrvykxl67ayxmbhsuy6oimpu6e722rbp6zweq"
|
||||
},
|
||||
{
|
||||
"run_number": 19,
|
||||
"generated_at_utc": "2026-12-02T13:20:18Z",
|
||||
"run_number": 9,
|
||||
"generated_at_utc": "2026-12-02T14:48:38Z",
|
||||
"posterior_probabilities": {
|
||||
"R1_BULL_RISK_ON": 0.0,
|
||||
"R2_PINNED_ISOMETRIC": 0.0,
|
||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||
},
|
||||
"question_id": "Q-RUN-0019",
|
||||
"cidv1": "baguqeerasbmc4ydp5tjtfo5di6k4662uduorgykvkrz3copuohxqt3yesqxq"
|
||||
},
|
||||
{
|
||||
"run_number": 20,
|
||||
"generated_at_utc": "2026-12-02T13:21:51Z",
|
||||
"posterior_probabilities": {
|
||||
"R1_BULL_RISK_ON": 0.0,
|
||||
"R2_PINNED_ISOMETRIC": 0.0,
|
||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||
},
|
||||
"question_id": "Q-RUN-0020",
|
||||
"cidv1": "baguqeeraievnxxxill5rz76b3kxhjwlj5vvgo3ggzt7wul3xxutyutvimrxa"
|
||||
},
|
||||
{
|
||||
"run_number": 21,
|
||||
"generated_at_utc": "2026-12-02T14:13:45Z",
|
||||
"posterior_probabilities": {
|
||||
"R1_BULL_RISK_ON": 0.0,
|
||||
"R2_PINNED_ISOMETRIC": 0.0,
|
||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||
},
|
||||
"question_id": "Q-RUN-0021",
|
||||
"cidv1": "baguqeera5cbgm7lsxawo5o3nog54p3jyu6g45odzl3of7ewdwmkpzkbg5ugq"
|
||||
"question_id": "Q-RUN-0009",
|
||||
"cidv1": "baguqeera2hqzxntuy5v2lkspxcn5as5j4k25p62cbgpnvvop2q4wdpjbuoxa"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -792,7 +792,7 @@
|
||||
"change_bps": 14,
|
||||
"change_pct": 0.14,
|
||||
"close_usd": 59621.58,
|
||||
"market_cap_str": "$1.20T",
|
||||
"market_cap_str": "$1.19T",
|
||||
"volume_ratio_20d": 0.89
|
||||
},
|
||||
"observation_date_utc": "2026-12-01",
|
||||
@@ -808,10 +808,10 @@
|
||||
"close_spoken_ing": "fiftee nain thouzand siks huhndrad twentee too",
|
||||
"close_spoken_ing_aq": 836,
|
||||
"close_spoken_prime_rank": null,
|
||||
"scaled_cap_spoken_eng": "one point two zero trillion",
|
||||
"scaled_cap_spoken_eng_aq": 546,
|
||||
"scaled_cap_spoken_ing": "wuhn point too zeeroh trilyan",
|
||||
"scaled_cap_spoken_ing_aq": 591,
|
||||
"scaled_cap_spoken_eng": "one point one nine trillion",
|
||||
"scaled_cap_spoken_eng_aq": 500,
|
||||
"scaled_cap_spoken_ing": "wuhn point wuhn nain trilyan",
|
||||
"scaled_cap_spoken_ing_aq": 559,
|
||||
"status": "ok"
|
||||
},
|
||||
"status": "ok",
|
||||
@@ -837,7 +837,7 @@
|
||||
"change_bps": -9,
|
||||
"change_pct": -0.09,
|
||||
"close_usd": 1661.65,
|
||||
"market_cap_str": "$204B",
|
||||
"market_cap_str": "$203B",
|
||||
"volume_ratio_20d": 0.92
|
||||
},
|
||||
"observation_date_utc": "2026-12-01",
|
||||
@@ -853,10 +853,10 @@
|
||||
"close_spoken_ing": "wuhn thouzand siks huhndrad sikstee too",
|
||||
"close_spoken_ing_aq": 755,
|
||||
"close_spoken_prime_rank": null,
|
||||
"scaled_cap_spoken_eng": "two hundred four billion",
|
||||
"scaled_cap_spoken_eng_aq": 454,
|
||||
"scaled_cap_spoken_ing": "too huhndrad for bilyan",
|
||||
"scaled_cap_spoken_ing_aq": 410,
|
||||
"scaled_cap_spoken_eng": "two hundred three billion",
|
||||
"scaled_cap_spoken_eng_aq": 459,
|
||||
"scaled_cap_spoken_ing": "too huhndrad three bilyan",
|
||||
"scaled_cap_spoken_ing_aq": 445,
|
||||
"status": "ok"
|
||||
},
|
||||
"status": "ok",
|
||||
@@ -1169,7 +1169,7 @@
|
||||
}
|
||||
],
|
||||
"ipld_dag_json_cidv1": {
|
||||
"/": "baguqeeraq7flklui7q7mgoa7x2r6rbkyswfaw5xhthubtukr2ltxk7u5chga"
|
||||
"/": "baguqeeraipy5oi554s5xzjrb7wpsfr6av4kqibnsgb45tk6k4dkwn5kc7v2q"
|
||||
},
|
||||
"isolation_receipt": {
|
||||
"all_unchanged": true,
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
// Auto-generated synchronous time-series bundle for file:// and https:// portability
|
||||
window.HyperstitionStudio = window.HyperstitionStudio || {};
|
||||
window.HyperstitionStudio.QuantTimeSeries = {"$schema": "./schemas/v1/quant-timeseries.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:quant-timeseries", "version": "2.17.1", "namespace_urn": "urn:io:hyperstitionstud:quant-timeseries:2.17.1", "generated_at_utc": "2026-12-02T14:11:49Z", "synthetic_data_eliminated": true, "periodicity_gate": {"enforced": true, "allowed_cadences": ["1d-us-closing-bell-2130-utc", "24h-news-wire-rollover-0000-utc"], "dated_news_dossiers_ingested": 23, "excluded_non_periodic_sources": ["01-ingglish-aq-lexicon.md", "10-19-ledger-*.md", "20-24-dossier-*.md", "26-45-dossier-*.md", "65-69-dossier-technocapital-singularity-*.md", "technocapital-singularity-zoology/encyclopedia/*", "proposal-*.md", "lecture-*.md", "podcast-ep*.md", "haiperdohp-jemaytreeah/db.json"], "non_periodic_records_ingested": 0, "missing_data_policy": "No data available (never synthesized or interpolated)"}, "enabled_lenses": ["fund_manager", "neutral_math", "corporate_board", "tierzoo_ecology", "fantasy_sabermetrics", "pokedex_scanner"], "default_lens": "fund_manager", "lens_registry_meta": {"fund_manager": {"lens_id": "fund_manager", "title": "Quantitative Hedge Fund & Factor Risk", "short_label": "Quant Factor", "structural_labels": {"struct_isometric_armor": "Chokepoint Moat", "struct_drift_velocity": "Signal Velocity", "struct_variance_collapse": "Convergence Power", "struct_trophic_capture": "Institutional Coupling", "struct_prime_density": "Idiosyncratic Asymmetry", "struct_repricing_resilience": "Regime Robustness"}, "timeseries_labels": {"ts_duty_cycle_pct": "Signal Duty Cycle / Hit Rate (%)", "ts_weighted_resonance": "Conviction-Weighted Exposure (0-100)", "ts_excess_over_replacement": "Information Ratio / Alpha Over Benchmark", "ts_quantile_profile": "Downside VaR_20 / Upside P90 / Convexity CV", "ts_optimal_lag_days": "Granger Lead-Lag Horizon τ* (Days)", "ts_regime_splits": "Regime-Conditional Beta Split (M1/M2/M3)"}}, "neutral_math": {"lens_id": "neutral_math", "title": "Neutral Mathematical & Statistical Invariants", "short_label": "Neutral Math", "structural_labels": {"struct_isometric_armor": "G4 Isometric Ratio (Δ=0)", "struct_drift_velocity": "G3 Inverse Phonemic Drift", "struct_variance_collapse": "G1 Log Variance Collapse", "struct_trophic_capture": "Bipartite S×S6 Coupling Degree", "struct_prime_density": "G5 Prime & Twin-Prime Density", "struct_repricing_resilience": "Repricing Counter-Swap Closure"}, "timeseries_labels": {"ts_duty_cycle_pct": "Active Duty Cycle Pr[X_t > 0] (%)", "ts_weighted_resonance": "Weighted Resonance Index (0-100)", "ts_excess_over_replacement": "Excess Value Over Baseline (σ-Units)", "ts_quantile_profile": "Quantile Spread (P20 / P90 / CV)", "ts_optimal_lag_days": "Peak Cross-Correlation Lag τ* (Days)", "ts_regime_splits": "Conditional Regime Delta E[X|S_t] - μ"}}, "corporate_board": {"lens_id": "corporate_board", "title": "Corporate Strategy & Balance-Sheet Governance", "short_label": "Corporate Board", "structural_labels": {"struct_isometric_armor": "Supply-Chain Moat", "struct_drift_velocity": "Execution Agility", "struct_variance_collapse": "Cross-Unit Synergy", "struct_trophic_capture": "Governance & Balance-Sheet Integration", "struct_prime_density": "Proprietary IP Density", "struct_repricing_resilience": "Stress-Test Resilience"}, "timeseries_labels": {"ts_duty_cycle_pct": "Operational Utilization Cadence (%)", "ts_weighted_resonance": "Strategic Capital Share (0-100)", "ts_excess_over_replacement": "Net Economic Value Added (EVA)", "ts_quantile_profile": "Base-Case Floor / Upside Case / Variance", "ts_optimal_lag_days": "Guidance-to-Market Lead Time τ* (Days)", "ts_regime_splits": "Macro Stress-Scenario Delta (Halt/Surge/Cap)"}}, "tierzoo_ecology": {"lens_id": "tierzoo_ecology", "title": "TierZoo Ecological Trophic Index (ETI)", "short_label": "TierZoo (ETI)", "structural_labels": {"struct_isometric_armor": "ARM (G4 Isometric Chokepoint Armor)", "struct_drift_velocity": "VEL (Teleoplexic Escape Velocity)", "struct_variance_collapse": "COL (G1 Variance-Collapse Compression)", "struct_trophic_capture": "CAP (S×S6 Double-Articulation & Capture)", "struct_prime_density": "PRM (Prime & G5 Twin-Prime Mutation IQ)", "struct_repricing_resilience": "RES (Tri-Modal Repricing & State Resilience)"}, "timeseries_labels": {"ts_duty_cycle_pct": "Foraging Activity Duty Cycle (%)", "ts_weighted_resonance": "Trophic Dominance Rating (0-100)", "ts_excess_over_replacement": "Apex Surplus Over Extinction Floor", "ts_quantile_profile": "Metabolic Floor / Burst Ceiling / Niche CV", "ts_optimal_lag_days": "Predator-Prey Phase Lead τ* (Days)", "ts_regime_splits": "Biome Weather Adaptation Split (M1/M2/M3)"}}, "fantasy_sabermetrics": {"lens_id": "fantasy_sabermetrics", "title": "Fantasy Football & Sabermetric Roster Engine", "short_label": "Fantasy Sabermetrics", "structural_labels": {"struct_isometric_armor": "Pass Protection (OL Chokepoint Block)", "struct_drift_Line truncated
|
||||
window.HyperstitionStudio.QuantTimeSeries = {"$schema": "./schemas/v1/quant-timeseries.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:quant-timeseries", "version": "2.17.1", "namespace_urn": "urn:io:hyperstitionstud:quant-timeseries:2.17.1", "generated_at_utc": "2026-12-02T14:46:24Z", "synthetic_data_eliminated": true, "periodicity_gate": {"enforced": true, "allowed_cadences": ["1d-us-closing-bell-2130-utc", "24h-news-wire-rollover-0000-utc"], "dated_news_dossiers_ingested": 23, "excluded_non_periodic_sources": ["01-ingglish-aq-lexicon.md", "10-19-ledger-*.md", "20-24-dossier-*.md", "26-45-dossier-*.md", "65-69-dossier-technocapital-singularity-*.md", "technocapital-singularity-zoology/encyclopedia/*", "proposal-*.md", "lecture-*.md", "podcast-ep*.md", "haiperdohp-jemaytreeah/db.json"], "non_periodic_records_ingested": 0, "missing_data_policy": "No data available (never synthesized or interpolated)"}, "enabled_lenses": ["fund_manager", "neutral_math", "corporate_board", "tierzoo_ecology", "fantasy_sabermetrics", "pokedex_scanner"], "default_lens": "fund_manager", "lens_registry_meta": {"fund_manager": {"lens_id": "fund_manager", "title": "Quantitative Hedge Fund & Factor Risk", "short_label": "Quant Factor", "structural_labels": {"struct_isometric_armor": "Chokepoint Moat", "struct_drift_velocity": "Signal Velocity", "struct_variance_collapse": "Convergence Power", "struct_trophic_capture": "Institutional Coupling", "struct_prime_density": "Idiosyncratic Asymmetry", "struct_repricing_resilience": "Regime Robustness"}, "timeseries_labels": {"ts_duty_cycle_pct": "Signal Duty Cycle / Hit Rate (%)", "ts_weighted_resonance": "Conviction-Weighted Exposure (0-100)", "ts_excess_over_replacement": "Information Ratio / Alpha Over Benchmark", "ts_quantile_profile": "Downside VaR_20 / Upside P90 / Convexity CV", "ts_optimal_lag_days": "Granger Lead-Lag Horizon τ* (Days)", "ts_regime_splits": "Regime-Conditional Beta Split (M1/M2/M3)"}}, "neutral_math": {"lens_id": "neutral_math", "title": "Neutral Mathematical & Statistical Invariants", "short_label": "Neutral Math", "structural_labels": {"struct_isometric_armor": "G4 Isometric Ratio (Δ=0)", "struct_drift_velocity": "G3 Inverse Phonemic Drift", "struct_variance_collapse": "G1 Log Variance Collapse", "struct_trophic_capture": "Bipartite S×S6 Coupling Degree", "struct_prime_density": "G5 Prime & Twin-Prime Density", "struct_repricing_resilience": "Repricing Counter-Swap Closure"}, "timeseries_labels": {"ts_duty_cycle_pct": "Active Duty Cycle Pr[X_t > 0] (%)", "ts_weighted_resonance": "Weighted Resonance Index (0-100)", "ts_excess_over_replacement": "Excess Value Over Baseline (σ-Units)", "ts_quantile_profile": "Quantile Spread (P20 / P90 / CV)", "ts_optimal_lag_days": "Peak Cross-Correlation Lag τ* (Days)", "ts_regime_splits": "Conditional Regime Delta E[X|S_t] - μ"}}, "corporate_board": {"lens_id": "corporate_board", "title": "Corporate Strategy & Balance-Sheet Governance", "short_label": "Corporate Board", "structural_labels": {"struct_isometric_armor": "Supply-Chain Moat", "struct_drift_velocity": "Execution Agility", "struct_variance_collapse": "Cross-Unit Synergy", "struct_trophic_capture": "Governance & Balance-Sheet Integration", "struct_prime_density": "Proprietary IP Density", "struct_repricing_resilience": "Stress-Test Resilience"}, "timeseries_labels": {"ts_duty_cycle_pct": "Operational Utilization Cadence (%)", "ts_weighted_resonance": "Strategic Capital Share (0-100)", "ts_excess_over_replacement": "Net Economic Value Added (EVA)", "ts_quantile_profile": "Base-Case Floor / Upside Case / Variance", "ts_optimal_lag_days": "Guidance-to-Market Lead Time τ* (Days)", "ts_regime_splits": "Macro Stress-Scenario Delta (Halt/Surge/Cap)"}}, "tierzoo_ecology": {"lens_id": "tierzoo_ecology", "title": "TierZoo Ecological Trophic Index (ETI)", "short_label": "TierZoo (ETI)", "structural_labels": {"struct_isometric_armor": "ARM (G4 Isometric Chokepoint Armor)", "struct_drift_velocity": "VEL (Teleoplexic Escape Velocity)", "struct_variance_collapse": "COL (G1 Variance-Collapse Compression)", "struct_trophic_capture": "CAP (S×S6 Double-Articulation & Capture)", "struct_prime_density": "PRM (Prime & G5 Twin-Prime Mutation IQ)", "struct_repricing_resilience": "RES (Tri-Modal Repricing & State Resilience)"}, "timeseries_labels": {"ts_duty_cycle_pct": "Foraging Activity Duty Cycle (%)", "ts_weighted_resonance": "Trophic Dominance Rating (0-100)", "ts_excess_over_replacement": "Apex Surplus Over Extinction Floor", "ts_quantile_profile": "Metabolic Floor / Burst Ceiling / Niche CV", "ts_optimal_lag_days": "Predator-Prey Phase Lead τ* (Days)", "ts_regime_splits": "Biome Weather Adaptation Split (M1/M2/M3)"}}, "fantasy_sabermetrics": {"lens_id": "fantasy_sabermetrics", "title": "Fantasy Football & Sabermetric Roster Engine", "short_label": "Fantasy Sabermetrics", "structural_labels": {"struct_isometric_armor": "Pass Protection (OL Chokepoint Block)", "struct_drift_Line truncated
|
||||
@@ -7217,7 +7217,7 @@
|
||||
"fantasy_sabermetrics",
|
||||
"pokedex_scanner"
|
||||
],
|
||||
"generated_at_utc": "2026-12-02T14:11:49Z",
|
||||
"generated_at_utc": "2026-12-02T14:46:24Z",
|
||||
"instruments": [
|
||||
{
|
||||
"available_trading_days": 21,
|
||||
@@ -39669,7 +39669,7 @@
|
||||
}
|
||||
],
|
||||
"ipld_dag_json_cidv1": {
|
||||
"/": "baguqeeranzvj6konnrfkb7ryyhil4x2rjqg3okkbylg7duydqiaagesdv34a"
|
||||
"/": "baguqeerauvtq4gj56rjgfkcpxdqayjopi6jwvvvdxb7xrqnmc4b75nsullfa"
|
||||
},
|
||||
"isolation_receipt": {
|
||||
"all_unchanged": true,
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
// Auto-generated by hyperstitionstud_io.quant.macro — DO NOT EDIT MANUALLY
|
||||
window.HYPERSTITION_MACRO_DATA = {"$schema": "./schemas/v1/macro-indicators.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:macro-indicators", "version": "2.17.1", "generated_at_utc": "2026-12-02T14:13:43Z", "synthetic_data_eliminated": true, "cadence_policy": "native_cadence_preserved_no_interpolation_null_when_unavailable", "source": "fred_stlouisfed_keyless_csv", "series_count": 14, "series": {"cpi": {"series_id": "CPIAUCSL", "slug": "cpi", "label": "CPI (Consumer Price Index: All Urban Consumers)", "cadence": "1mo", "unit": "Index (1982-84=100)", "guilds": ["S6", "S2"], "data_available": true, "status": "ok", "latest_date_utc": "2026-10-01", "latest_value": 337.476, "prior_date_utc": "2026-09-01", "prior_value": 336.298, "period_change_bps": 35, "period_change_pct": 0.35, "yoy_change_pct": null, "yoy_change_bps": null, "aq_evaluation": {"face_int": 337, "digit_aq": 13, "spoken_eng": "three hundred thirty seven", "spoken_eng_aq": 502, "spoken_ing": "three huhndrad therdee sevan", "spoken_ing_aq": 485, "prime_rank_face": 68, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 35, "digit_aq": 8, "spoken_eng": "thirty five", "spoken_eng_aq": 232, "spoken_ing": "therdee faiv", "spoken_ing_aq": 202, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "missing_observation_dates": [], "recent_observations": [{"date_utc": "2026-09-01", "data_available": true, "status": "ok", "value": 336.298}, {"date_utc": "2026-10-01", "data_available": true, "status": "ok", "value": 337.476}]}, "ppi": {"series_id": "PPIACO", "slug": "ppi", "label": "PPI (Producer Price Index: All Commodities)", "cadence": "1mo", "unit": "Index (1982=100)", "guilds": ["S3", "S6"], "data_available": true, "status": "ok", "latest_date_utc": "2026-10-01", "latest_value": 293.921, "prior_date_utc": "2026-09-01", "prior_value": 294.473, "period_change_bps": -19, "period_change_pct": -0.19, "yoy_change_pct": null, "yoy_change_bps": null, "aq_evaluation": {"face_int": 294, "digit_aq": 15, "spoken_eng": "two hundred ninety four", "spoken_eng_aq": 459, "spoken_ing": "too huhndrad naintee for", "spoken_ing_aq": 424, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 19, "digit_aq": 10, "spoken_eng": "nineteen", "spoken_eng_aq": 158, "spoken_ing": "nainteen", "spoken_ing_aq": 154, "prime_rank_face": 8, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "missing_observation_dates": [], "recent_observations": [{"date_utc": "2026-09-01", "data_available": true, "status": "ok", "value": 294.473}, {"date_utc": "2026-10-01", "data_available": true, "status": "ok", "value": 293.921}]}, "us10y": {"series_id": "DGS10", "slug": "us10y", "label": "US10Y (10-Year US Treasury Constant Maturity Yield)", "cadence": "1d", "unit": "Percent (%)", "guilds": ["S6", "S1"], "data_available": true, "status": "ok", "latest_date_utc": "2026-11-25", "latest_value": 4.85, "prior_date_utc": "2026-11-24", "prior_value": 4.91, "period_change_bps": -6, "period_change_pct": -0.06, "yoy_change_pct": null, "yoy_change_bps": null, "aq_evaluation": {"face_int": 485, "digit_aq": 17, "spoken_eng": "four hundred eighty five", "spoken_eng_aq": 439, "spoken_ing": "for huhndrad aytee faiv", "spoken_ing_aq": 391, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 6, "digit_aq": 6, "spoken_eng": "six", "spoken_eng_aq": 79, "spoken_ing": "siks", "spoken_ing_aq": 94, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "missing_observation_dates": ["2026-11-26"], "recent_observations": [{"date_utc": "2026-11-24", "data_available": true, "status": "ok", "value": 4.91}, {"date_utc": "2026-11-25", "data_available": true, "status": "ok", "value": 4.85}, {"date_utc": "2026-11-26", "data_available": false, "status": "No data available", "value": null}]}, "effr": {"series_id": "EFFR", "slug": "effr", "label": "EFFR (Effective Federal Funds Overnight Lending Rate)", "cadence": "1d", "unit": "Percent (%)", "guilds": ["S6", "S2"], "data_available": true, "status": "ok", "latest_date_utc": "2026-11-27", "latest_value": 3.88, "prior_date_utc": "2026-11-25", "prior_value": 3.88, "period_change_bps": 0, "period_change_pct": 0.0, "yoy_change_pct": null, "yoy_change_bps": null, "aq_evaluation": {"face_int": 388, "digit_aq": 19, "spoken_eng": "three hundred eighty eight", "spoken_eng_aq": 460, "spoken_ing": "three huhndrad aytee ayt", "spoken_ing_aq": 425, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 0, "digit_aq": 0, "spoken_eng": "zero", "spoken_eng_aq": 100, "spoken_ing": "zeeroh", "spoken_ing_aq": 131, "prime_rank_face": null, "prime_rank_spoken_ing": 32,
Line truncated
|
||||
window.HYPERSTITION_MACRO_DATA = {"$schema": "./schemas/v1/macro-indicators.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:macro-indicators", "version": "2.17.1", "generated_at_utc": "2026-12-02T14:48:36Z", "synthetic_data_eliminated": true, "cadence_policy": "native_cadence_preserved_no_interpolation_null_when_unavailable", "source": "fred_stlouisfed_keyless_csv", "series_count": 14, "series": {"cpi": {"series_id": "CPIAUCSL", "slug": "cpi", "label": "CPI (Consumer Price Index: All Urban Consumers)", "cadence": "1mo", "unit": "Index (1982-84=100)", "guilds": ["S6", "S2"], "data_available": true, "status": "ok", "latest_date_utc": "2026-10-01", "latest_value": 337.476, "prior_date_utc": "2026-09-01", "prior_value": 336.298, "period_change_bps": 35, "period_change_pct": 0.35, "yoy_change_pct": 4.08, "yoy_change_bps": 408, "aq_evaluation": {"face_int": 337, "digit_aq": 13, "spoken_eng": "three hundred thirty seven", "spoken_eng_aq": 502, "spoken_ing": "three huhndrad therdee sevan", "spoken_ing_aq": 485, "prime_rank_face": 68, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 35, "digit_aq": 8, "spoken_eng": "thirty five", "spoken_eng_aq": 232, "spoken_ing": "therdee faiv", "spoken_ing_aq": 202, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "missing_observation_dates": ["2025-10-01"], "recent_observations": [{"date_utc": "2025-10-01", "data_available": false, "status": "No data available", "value": null}, {"date_utc": "2025-11-01", "data_available": true, "status": "ok", "value": 325.063}, {"date_utc": "2025-12-01", "data_available": true, "status": "ok", "value": 326.031}, {"date_utc": "2026-01-01", "data_available": true, "status": "ok", "value": 326.588}, {"date_utc": "2026-02-01", "data_available": true, "status": "ok", "value": 327.46}, {"date_utc": "2026-03-01", "data_available": true, "status": "ok", "value": 330.293}, {"date_utc": "2026-04-01", "data_available": true, "status": "ok", "value": 332.407}, {"date_utc": "2026-05-01", "data_available": true, "status": "ok", "value": 333.979}, {"date_utc": "2026-06-01", "data_available": true, "status": "ok", "value": 332.568}, {"date_utc": "2026-07-01", "data_available": true, "status": "ok", "value": 332.813}, {"date_utc": "2026-08-01", "data_available": true, "status": "ok", "value": 334.131}, {"date_utc": "2026-09-01", "data_available": true, "status": "ok", "value": 336.298}, {"date_utc": "2026-10-01", "data_available": true, "status": "ok", "value": 337.476}]}, "ppi": {"series_id": "PPIACO", "slug": "ppi", "label": "PPI (Producer Price Index: All Commodities)", "cadence": "1mo", "unit": "Index (1982=100)", "guilds": ["S3", "S6"], "data_available": true, "status": "ok", "latest_date_utc": "2026-10-01", "latest_value": 293.921, "prior_date_utc": "2026-09-01", "prior_value": 294.473, "period_change_bps": -19, "period_change_pct": -0.19, "yoy_change_pct": 12.79, "yoy_change_bps": 1279, "aq_evaluation": {"face_int": 294, "digit_aq": 15, "spoken_eng": "two hundred ninety four", "spoken_eng_aq": 459, "spoken_ing": "too huhndrad naintee for", "spoken_ing_aq": 424, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 19, "digit_aq": 10, "spoken_eng": "nineteen", "spoken_eng_aq": 158, "spoken_ing": "nainteen", "spoken_ing_aq": 154, "prime_rank_face": 8, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "missing_observation_dates": [], "recent_observations": [{"date_utc": "2025-10-01", "data_available": true, "status": "ok", "value": 260.591}, {"date_utc": "2025-11-01", "data_available": true, "status": "ok", "value": 261.914}, {"date_utc": "2025-12-01", "data_available": true, "status": "ok", "value": 261.333}, {"date_utc": "2026-01-01", "data_available": true, "status": "ok", "value": 263.608}, {"date_utc": "2026-02-01", "data_available": true, "status": "ok", "value": 269.535}, {"date_utc": "2026-03-01", "data_available": true, "status": "ok", "value": 276.109}, {"date_utc": "2026-04-01", "data_available": true, "status": "ok", "value": 282.722}, {"date_utc": "2026-05-01", "data_available": true, "status": "ok", "value": 290.281}, {"date_utc": "2026-06-01", "data_available": true, "status": "ok", "value": 285.795}, {"date_utc": "2026-07-01", "data_available": true, "status": "ok", "value": 284.837}, {"date_utc": "2026-08-01", "data_available": true, "status": "ok", "value": 287.522}, {"date_utc": "2026-09-01", "data_available": true, "status": "ok", "value": 294.473}, {"date_utc": "2026-10-01", "data_available": true, "status": "ok", "value": 293.921}]}, "us10y": {"series_id": "DGS10", "slug": "us10y", "label": "US10Y (10-Year US Treasury Constant Maturity Yield)", "cadence": "1d", "unit": "Percent (%)", "guilds": ["S6", "S1"], "data_available": true, "status": "ok", "latest_date_utc": "2026-11-30", "latest_value": 4.93,
Line truncated
|
||||
+2184
-191
File diff suppressed because it is too large.
Load diff
@@ -167,6 +167,9 @@ _EQ_CLOSURES_333: dict[int, list[str]] = {
|
||||
}
|
||||
|
||||
|
||||
MIN_SCOPE_DATE_UTC = "2026-11-01"
|
||||
|
||||
|
||||
def latest_completed_closing_bell_date_utc(now_utc: datetime.datetime | None = None) -> str:
|
||||
"""
|
||||
Return the latest UTC calendar date `YYYY-MM-DD` whose 16:00 EST / 21:00 UTC
|
||||
@@ -181,17 +184,20 @@ def latest_completed_closing_bell_date_utc(now_utc: datetime.datetime | None = N
|
||||
|
||||
def _fetch_yahoo_chart_series(
|
||||
symbol: str,
|
||||
min_date_utc: str | None = MIN_SCOPE_DATE_UTC,
|
||||
max_date_utc: str | None = None,
|
||||
timeout: float = 6.0,
|
||||
) -> dict[str, dict[str, Any]]:
|
||||
"""
|
||||
Fetch the full 1-month daily bar series from Yahoo Finance v8 Chart JSON API
|
||||
(`?range=1mo&interval=1d`), filtered to completed closing-bell dates `<= max_date_utc`.
|
||||
Fetch the 3-month daily bar series from Yahoo Finance v8 Chart JSON API
|
||||
(`?range=3mo&interval=1d`) so early-November bars always have a full 20-trading-day
|
||||
trailing volume lookback window, while filtering emitted bars strictly to
|
||||
`min_date_utc <= obs_date <= max_date_utc` (pre-Nov 1 out of scope).
|
||||
"""
|
||||
if symbol == "ANTHR-PVT":
|
||||
return {}
|
||||
enc_sym = urllib.parse.quote(symbol, safe="")
|
||||
url = f"https://query1.finance.yahoo.com/v8/finance/chart/{enc_sym}?range=1mo&interval=1d"
|
||||
url = f"https://query1.finance.yahoo.com/v8/finance/chart/{enc_sym}?range=3mo&interval=1d"
|
||||
req = urllib.request.Request(url, headers={"User-Agent": _USER_AGENT, "Accept": "application/json"})
|
||||
from hyperstitionstud_io.security import safe_urlopen
|
||||
|
||||
@@ -216,6 +222,8 @@ def _fetch_yahoo_chart_series(
|
||||
out: dict[str, dict[str, Any]] = {}
|
||||
for idx, (ts_val, close_usd, vol_val) in enumerate(valid_pairs):
|
||||
obs_date = datetime.datetime.fromtimestamp(ts_val, datetime.timezone.utc).strftime("%Y-%m-%d")
|
||||
if min_date_utc and obs_date < min_date_utc:
|
||||
continue
|
||||
if max_date_utc and obs_date > max_date_utc:
|
||||
continue
|
||||
prev_close = valid_pairs[idx - 1][1] if idx >= 1 else None
|
||||
@@ -250,6 +258,7 @@ def _fetch_yahoo_chart(symbol: str, timeout: float = 6.0) -> dict[str, Any] | No
|
||||
"""Source 1: Keyless Yahoo Finance v8 Chart JSON API (using latest completed closing-bell bar)."""
|
||||
series = _fetch_yahoo_chart_series(
|
||||
symbol,
|
||||
min_date_utc=MIN_SCOPE_DATE_UTC,
|
||||
max_date_utc=latest_completed_closing_bell_date_utc(),
|
||||
timeout=timeout,
|
||||
)
|
||||
@@ -261,10 +270,11 @@ def _fetch_yahoo_chart(symbol: str, timeout: float = 6.0) -> dict[str, Any] | No
|
||||
|
||||
def _fetch_stooq_csv_series(
|
||||
symbol: str,
|
||||
min_date_utc: str | None = MIN_SCOPE_DATE_UTC,
|
||||
max_date_utc: str | None = None,
|
||||
timeout: float = 6.0,
|
||||
) -> dict[str, dict[str, Any]]:
|
||||
"""Source 2: Keyless Stooq Daily OHLCV CSV Series Fallback."""
|
||||
"""Source 2: Keyless Stooq Daily OHLCV CSV Series Fallback (with 75-row lookback for 20d volume)."""
|
||||
stooq_sym = _STOOQ_MAP.get(symbol)
|
||||
if not stooq_sym:
|
||||
return {}
|
||||
@@ -282,10 +292,12 @@ def _fetch_stooq_csv_series(
|
||||
return {}
|
||||
|
||||
out: dict[str, dict[str, Any]] = {}
|
||||
start_idx = max(0, len(raw_rows) - 35)
|
||||
start_idx = max(0, len(raw_rows) - 75)
|
||||
for idx in range(start_idx, len(raw_rows)):
|
||||
row = raw_rows[idx]
|
||||
obs_date = str(row["Date"])
|
||||
if min_date_utc and obs_date < min_date_utc:
|
||||
continue
|
||||
if max_date_utc and obs_date > max_date_utc:
|
||||
continue
|
||||
close_usd = float(row["Close"])
|
||||
@@ -873,11 +885,18 @@ def update_real_market_history_cache(
|
||||
bars_by_dt = entry.setdefault("bars_by_date", {})
|
||||
|
||||
if effective_max_date:
|
||||
for stale_dt in [d for d in list(bars_by_dt.keys()) if d > effective_max_date]:
|
||||
for stale_dt in [
|
||||
d for d in list(bars_by_dt.keys()) if d < MIN_SCOPE_DATE_UTC or d > effective_max_date
|
||||
]:
|
||||
del bars_by_dt[stale_dt]
|
||||
else:
|
||||
for stale_dt in [d for d in list(bars_by_dt.keys()) if d < MIN_SCOPE_DATE_UTC]:
|
||||
del bars_by_dt[stale_dt]
|
||||
|
||||
if new_bars_by_symbol and sym in new_bars_by_symbol:
|
||||
for dt_s, b_obj in new_bars_by_symbol[sym].items():
|
||||
if dt_s < MIN_SCOPE_DATE_UTC:
|
||||
continue
|
||||
if effective_max_date and dt_s > effective_max_date:
|
||||
continue
|
||||
if b_obj and b_obj.get("close_usd") is not None:
|
||||
@@ -885,10 +904,14 @@ def update_real_market_history_cache(
|
||||
appended_count += 1
|
||||
elif allow_live_network:
|
||||
try:
|
||||
series = _fetch_yahoo_chart_series(sym, max_date_utc=effective_max_date) or _fetch_stooq_csv_series(
|
||||
sym, max_date_utc=effective_max_date
|
||||
series = _fetch_yahoo_chart_series(
|
||||
sym, min_date_utc=MIN_SCOPE_DATE_UTC, max_date_utc=effective_max_date
|
||||
) or _fetch_stooq_csv_series(
|
||||
sym, min_date_utc=MIN_SCOPE_DATE_UTC, max_date_utc=effective_max_date
|
||||
)
|
||||
for dt_s, b_obj in sorted(series.items()):
|
||||
if dt_s < MIN_SCOPE_DATE_UTC:
|
||||
continue
|
||||
if not b_obj or b_obj.get("close_usd") is None:
|
||||
continue
|
||||
prev_bar = bars_by_dt.get(dt_s)
|
||||
@@ -905,6 +928,12 @@ def update_real_market_history_cache(
|
||||
elif sym in cg_quotes and cg_quotes[sym].get("market_cap_str"):
|
||||
merged_b["market_cap_str"] = cg_quotes[sym]["market_cap_str"]
|
||||
bars_by_dt[dt_s] = merged_b
|
||||
else:
|
||||
if prev_bar.get("volume_ratio_20d") is None and b_obj.get("volume_ratio_20d") is not None:
|
||||
prev_bar["volume_ratio_20d"] = b_obj["volume_ratio_20d"]
|
||||
if prev_bar.get("change_pct") is None and b_obj.get("change_pct") is not None:
|
||||
prev_bar["change_pct"] = b_obj["change_pct"]
|
||||
prev_bar["change_bps"] = b_obj["change_bps"]
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
@@ -925,18 +954,79 @@ _TELEMETRY_SNAPSHOT_FILES: tuple[str, ...] = (
|
||||
)
|
||||
|
||||
|
||||
def _excavate_git_json_versions(
|
||||
repo_dir: Path,
|
||||
rel_path: str,
|
||||
max_commits: int = 35,
|
||||
) -> list[dict[str, Any]]:
|
||||
"""
|
||||
Excavate valid JSON versions of `rel_path` from all Git stashes (`stash@{0..N}` and
|
||||
untracked stash parents `stash@{i}^3`) and recent Git commits (`git log --all`).
|
||||
"""
|
||||
import subprocess
|
||||
|
||||
if not (repo_dir / ".git").exists():
|
||||
return []
|
||||
revs: list[str] = []
|
||||
try:
|
||||
stash_out = subprocess.run(
|
||||
["git", "-C", str(repo_dir), "stash", "list", "--format=%gd"],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
check=False,
|
||||
).stdout
|
||||
for s_ref in [ln.strip() for ln in stash_out.splitlines() if ln.strip()]:
|
||||
revs.append(s_ref)
|
||||
revs.append(f"{s_ref}^3")
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
log_out = subprocess.run(
|
||||
["git", "-C", str(repo_dir), "log", "--all", f"-n{max_commits}", "--format=%H", "--", rel_path],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
check=False,
|
||||
).stdout
|
||||
for sha in [ln.strip() for ln in log_out.splitlines() if ln.strip()]:
|
||||
if sha not in revs:
|
||||
revs.append(sha)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
docs: list[dict[str, Any]] = []
|
||||
for rev in revs:
|
||||
try:
|
||||
proc = subprocess.run(
|
||||
["git", "-C", str(repo_dir), "show", f"{rev}:{rel_path}"],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
check=False,
|
||||
)
|
||||
if proc.returncode == 0 and proc.stdout.strip():
|
||||
obj = json.loads(proc.stdout)
|
||||
if isinstance(obj, dict):
|
||||
docs.append(obj)
|
||||
except Exception:
|
||||
continue
|
||||
return docs
|
||||
|
||||
|
||||
def snapshot_local_telemetry(
|
||||
snapshot_dir: str | Path,
|
||||
quant_dir: str | Path | None = None,
|
||||
excavate_git: bool = True,
|
||||
) -> dict[str, Any]:
|
||||
"""
|
||||
Save a lossless copy of local `site/quant/` telemetry JSON ledgers into `snapshot_dir`
|
||||
prior to pulling or resetting the Git working tree during VPS deployment sync.
|
||||
When `excavate_git=True` on the repository's `site/quant` directory, also excavates
|
||||
any observations present in `git stash list` or `git log --all` (`>= 2026-11-01`).
|
||||
"""
|
||||
import shutil
|
||||
|
||||
cfg = load_workspace_config()
|
||||
q_dir = Path(quant_dir) if quant_dir else (cfg.core_dir / "site" / "quant")
|
||||
default_q_dir = cfg.core_dir / "site" / "quant"
|
||||
q_dir = Path(quant_dir) if quant_dir else default_q_dir
|
||||
s_dir = Path(snapshot_dir)
|
||||
s_dir.mkdir(parents=True, exist_ok=True)
|
||||
saved: list[str] = []
|
||||
@@ -949,6 +1039,41 @@ def snapshot_local_telemetry(
|
||||
saved.append(fname)
|
||||
except Exception:
|
||||
continue
|
||||
|
||||
if excavate_git and q_dir.resolve() == default_q_dir.resolve() and (cfg.core_dir / ".git").exists():
|
||||
max_dt = latest_completed_closing_bell_date_utc()
|
||||
# 1. Excavate stashed/committed real-market-history.json bars (>= 2026-11-01)
|
||||
snap_rmh_p = s_dir / "real-market-history.json"
|
||||
if snap_rmh_p.is_file():
|
||||
try:
|
||||
base_rmh = json.loads(snap_rmh_p.read_text(encoding="utf-8"))
|
||||
insts = base_rmh.setdefault("instruments", {})
|
||||
for hist_doc in _excavate_git_json_versions(cfg.core_dir, "site/quant/real-market-history.json"):
|
||||
for sym, s_obj in (hist_doc.get("instruments") or {}).items():
|
||||
if sym == "ANTHR-PVT" or not isinstance(s_obj, dict):
|
||||
continue
|
||||
t_entry = insts.setdefault(
|
||||
sym, {"symbol": sym, "data_available": True, "status": "ok", "bars_by_date": {}}
|
||||
)
|
||||
t_bars = t_entry.setdefault("bars_by_date", {})
|
||||
for dt_s, b_obj in (s_obj.get("bars_by_date") or {}).items():
|
||||
if not re.match(r"^\d{4}-\d{2}-\d{2}$", str(dt_s)):
|
||||
continue
|
||||
if dt_s < MIN_SCOPE_DATE_UTC or dt_s > max_dt:
|
||||
continue
|
||||
if not isinstance(b_obj, dict) or b_obj.get("close_usd") is None:
|
||||
continue
|
||||
if dt_s not in t_bars or t_bars[dt_s].get("close_usd") is None:
|
||||
t_bars[dt_s] = b_obj
|
||||
else:
|
||||
if not t_bars[dt_s].get("market_cap_str") and b_obj.get("market_cap_str"):
|
||||
t_bars[dt_s]["market_cap_str"] = b_obj["market_cap_str"]
|
||||
if t_bars[dt_s].get("volume_ratio_20d") is None and b_obj.get("volume_ratio_20d") is not None:
|
||||
t_bars[dt_s]["volume_ratio_20d"] = b_obj["volume_ratio_20d"]
|
||||
snap_rmh_p.write_text(json.dumps(base_rmh, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
return {"ok": True, "snapshot_dir": str(s_dir), "saved_files": saved}
|
||||
|
||||
|
||||
@@ -959,8 +1084,9 @@ def reconcile_telemetry_snapshot(
|
||||
recompile_bundles: bool = True,
|
||||
) -> dict[str, Any]:
|
||||
"""
|
||||
Losslessly union-merge any valid completed harvest bars or FRED macro observations from
|
||||
`snapshot_dir` that are absent in `quant_dir` (the newly pulled `origin/main` checkout).
|
||||
Losslessly union-merge any valid completed harvest bars or FRED macro observations
|
||||
(`>= 2026-11-01` and `<= max_date_utc`) from `snapshot_dir` that are absent in `quant_dir`
|
||||
(the newly pulled `origin/main` checkout).
|
||||
If `origin/main` already contains 100% of completed observations (`merged_bars_count == 0`
|
||||
and `merged_macro_obs_count == 0`), performs 0 disk writes so `git status` remains clean.
|
||||
"""
|
||||
@@ -989,13 +1115,20 @@ def reconcile_telemetry_snapshot(
|
||||
for dt_s, b_obj in (snap_obj.get("bars_by_date") or {}).items():
|
||||
if not re.match(r"^\d{4}-\d{2}-\d{2}$", str(dt_s)):
|
||||
continue
|
||||
if dt_s > effective_max_date:
|
||||
if dt_s < MIN_SCOPE_DATE_UTC or dt_s > effective_max_date:
|
||||
continue
|
||||
if not isinstance(b_obj, dict) or b_obj.get("close_usd") is None:
|
||||
continue
|
||||
if dt_s not in cur_bars or cur_bars[dt_s].get("close_usd") is None:
|
||||
cur_bars[dt_s] = b_obj
|
||||
merged_bars_count += 1
|
||||
else:
|
||||
if not cur_bars[dt_s].get("market_cap_str") and b_obj.get("market_cap_str"):
|
||||
cur_bars[dt_s]["market_cap_str"] = b_obj["market_cap_str"]
|
||||
merged_bars_count += 1
|
||||
if cur_bars[dt_s].get("volume_ratio_20d") is None and b_obj.get("volume_ratio_20d") is not None:
|
||||
cur_bars[dt_s]["volume_ratio_20d"] = b_obj["volume_ratio_20d"]
|
||||
merged_bars_count += 1
|
||||
cur_entry["bars_by_date"] = {k: cur_bars[k] for k in sorted(cur_bars.keys())}
|
||||
if merged_bars_count > 0:
|
||||
cur_hist_p.write_text(json.dumps(cur_hist, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
|
||||
@@ -1013,12 +1146,16 @@ def reconcile_telemetry_snapshot(
|
||||
if s_key not in cur_series or not isinstance(snap_s, dict):
|
||||
continue
|
||||
cur_obs_list = cur_series[s_key].get("recent_observations") or []
|
||||
cur_obs_by_dt = {str(o.get("date")): o for o in cur_obs_list if isinstance(o, dict) and o.get("date")}
|
||||
cur_obs_by_dt = {
|
||||
str(o.get("date_utc") or o.get("date")): o
|
||||
for o in cur_obs_list
|
||||
if isinstance(o, dict) and (o.get("date_utc") or o.get("date"))
|
||||
}
|
||||
added_here = 0
|
||||
for o in snap_s.get("recent_observations") or []:
|
||||
if not isinstance(o, dict) or not o.get("date") or o.get("value") is None:
|
||||
if not isinstance(o, dict) or not (o.get("date_utc") or o.get("date")) or o.get("value") is None:
|
||||
continue
|
||||
dt_s = str(o["date"])
|
||||
dt_s = str(o.get("date_utc") or o.get("date"))
|
||||
if dt_s > effective_max_date:
|
||||
continue
|
||||
if dt_s not in cur_obs_by_dt or cur_obs_by_dt[dt_s].get("value") is None:
|
||||
@@ -1030,7 +1167,8 @@ def reconcile_telemetry_snapshot(
|
||||
cur_series[s_key]["recent_observations"] = sorted_obs
|
||||
latest_valid = [x for x in sorted_obs if x.get("value") is not None]
|
||||
if latest_valid:
|
||||
cur_series[s_key]["latest_date"] = latest_valid[-1]["date"]
|
||||
last_dt = latest_valid[-1].get("date_utc") or latest_valid[-1].get("date")
|
||||
cur_series[s_key]["latest_date_utc"] = last_dt
|
||||
cur_series[s_key]["latest_value"] = latest_valid[-1]["value"]
|
||||
if merged_macro_obs_count > 0:
|
||||
cur_macro_p.write_text(json.dumps(cur_macro, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
|
||||
@@ -1056,6 +1194,7 @@ def reconcile_telemetry_snapshot(
|
||||
"reconciled_new_data": reconciled_new_data,
|
||||
"merged_bars_count": merged_bars_count,
|
||||
"merged_macro_obs_count": merged_macro_obs_count,
|
||||
"min_scope_date_utc": MIN_SCOPE_DATE_UTC,
|
||||
"max_date_utc": effective_max_date,
|
||||
}
|
||||
|
||||
|
||||
@@ -454,22 +454,48 @@ def build_daily_portfolio_brief(
|
||||
js_body = "// Auto-generated by hyperstitionstud_io.quant.daily_brief — DO NOT EDIT MANUALLY\nwindow.HYPERSTITION_DAILY_BRIEF = " + json.dumps(brief_payload, ensure_ascii=False) + ";\n"
|
||||
out_js_path.write_text(js_body, encoding="utf-8")
|
||||
|
||||
# Update append-only Bayesian state ledger outside read-only files
|
||||
history_list = list(prior_state.get("run_history") or [])
|
||||
history_list.append({
|
||||
"run_number": run_number,
|
||||
# Update append-only Bayesian state ledger outside read-only files (deduplicating same-day identical posteriors)
|
||||
raw_history = list(prior_state.get("run_history") or [])
|
||||
dedup_history: list[dict[str, Any]] = []
|
||||
for entry in raw_history:
|
||||
if not isinstance(entry, dict):
|
||||
continue
|
||||
e_dt = str(entry.get("generated_at_utc") or "")[:10]
|
||||
e_post = entry.get("posterior_probabilities")
|
||||
if dedup_history and str(dedup_history[-1].get("generated_at_utc") or "")[:10] == e_dt and dedup_history[-1].get("posterior_probabilities") == e_post:
|
||||
dedup_history[-1] = entry
|
||||
else:
|
||||
dedup_history.append(entry)
|
||||
cur_dt_10 = str(brief_payload["generated_at_utc"])[:10]
|
||||
cur_post = bayesian_block["posterior_probabilities"]
|
||||
if dedup_history and str(dedup_history[-1].get("generated_at_utc") or "")[:10] == cur_dt_10 and dedup_history[-1].get("posterior_probabilities") == cur_post:
|
||||
dedup_history[-1] = {
|
||||
"run_number": int(dedup_history[-1].get("run_number") or len(dedup_history)),
|
||||
"generated_at_utc": brief_payload["generated_at_utc"],
|
||||
"posterior_probabilities": bayesian_block["posterior_probabilities"],
|
||||
"question_id": current_question["question_id"],
|
||||
"posterior_probabilities": cur_post,
|
||||
"question_id": str(dedup_history[-1].get("question_id") or current_question["question_id"]),
|
||||
"cidv1": brief_payload["ipld_dag_json_cidv1"]["/"],
|
||||
}
|
||||
else:
|
||||
next_run_num = (int(dedup_history[-1].get("run_number") or len(dedup_history)) + 1) if dedup_history else 1
|
||||
dedup_history.append({
|
||||
"run_number": next_run_num,
|
||||
"generated_at_utc": brief_payload["generated_at_utc"],
|
||||
"posterior_probabilities": cur_post,
|
||||
"question_id": f"Q-RUN-{next_run_num:04d}",
|
||||
"cidv1": brief_payload["ipld_dag_json_cidv1"]["/"],
|
||||
})
|
||||
for idx, h_item in enumerate(dedup_history, start=1):
|
||||
h_item["run_number"] = idx
|
||||
h_item["question_id"] = f"Q-RUN-{idx:04d}"
|
||||
effective_run_number = dedup_history[-1]["run_number"]
|
||||
new_state = {
|
||||
"version": CURRENT_VERSION,
|
||||
"run_number": run_number,
|
||||
"run_number": effective_run_number,
|
||||
"updated_at_utc": brief_payload["generated_at_utc"],
|
||||
"latest_posteriors": bayesian_block["posterior_probabilities"],
|
||||
"active_daily_question": current_question,
|
||||
"run_history": history_list[-30:],
|
||||
"run_history": dedup_history[-30:],
|
||||
}
|
||||
state_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
state_path.write_text(json.dumps(new_state, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
|
||||
|
||||
@@ -147,26 +147,60 @@ FRED_SERIES_SPEC: tuple[dict[str, Any], ...] = (
|
||||
)
|
||||
|
||||
|
||||
def fetch_fred_series_csv(series_id: str, max_rows: int = 36, timeout: float = 8.0) -> list[dict[str, Any]]:
|
||||
MIN_MACRO_DAILY_DATE_UTC = "2026-11-01"
|
||||
|
||||
|
||||
def fetch_fred_series_csv(
|
||||
series_id: str,
|
||||
max_rows: int = 36,
|
||||
timeout: float = 8.0,
|
||||
min_date_utc: str | None = None,
|
||||
max_date_utc: str | None = None,
|
||||
) -> list[dict[str, Any]]:
|
||||
"""
|
||||
Fetch real observations from `https://fred.stlouisfed.org/graph/fredgraph.csv?id=<series_id>&cosd=2024-10-01`.
|
||||
Fetch real observations from `https://fred.stlouisfed.org/graph/fredgraph.csv?id=<series_id>&cosd=2025-09-01`
|
||||
using IPv4-first transport (`curl -4` with `safe_urlopen` fallback so blackholed IPv6 routes never stall).
|
||||
Preserves missing/holiday dates explicitly as `value = None` (`data_available = False`) rather than `0.0`.
|
||||
"""
|
||||
url = f"https://fred.stlouisfed.org/graph/fredgraph.csv?id={series_id}&cosd=2024-10-01"
|
||||
import shutil
|
||||
import subprocess
|
||||
|
||||
url = f"https://fred.stlouisfed.org/graph/fredgraph.csv?id={series_id}&cosd=2025-09-01"
|
||||
raw_text = ""
|
||||
curl_bin = shutil.which("curl")
|
||||
if curl_bin:
|
||||
try:
|
||||
proc = subprocess.run(
|
||||
[curl_bin, "-4", "-sS", "-L", "--max-time", str(max(2, int(timeout))), url],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
check=False,
|
||||
)
|
||||
if proc.returncode == 0 and proc.stdout.startswith("observation_date,"):
|
||||
raw_text = proc.stdout
|
||||
except Exception:
|
||||
raw_text = ""
|
||||
|
||||
if not raw_text:
|
||||
req = urllib.request.Request(url, headers={"User-Agent": _USER_AGENT})
|
||||
from hyperstitionstud_io.security import safe_urlopen
|
||||
|
||||
with safe_urlopen(req, timeout=timeout) as resp:
|
||||
lines = [ln.strip() for ln in resp.read().decode("utf-8").splitlines() if ln.strip()]
|
||||
raw_text = resp.read().decode("utf-8")
|
||||
|
||||
lines = [ln.strip() for ln in raw_text.splitlines() if ln.strip()]
|
||||
if len(lines) <= 1:
|
||||
return []
|
||||
tail = lines[1:][-max_rows:]
|
||||
rows: list[dict[str, Any]] = []
|
||||
for ln in tail:
|
||||
for ln in lines[1:]:
|
||||
parts = ln.split(",", 1)
|
||||
if len(parts) != 2:
|
||||
continue
|
||||
dt_s, val_s = parts[0].strip(), parts[1].strip()
|
||||
if min_date_utc and dt_s < min_date_utc:
|
||||
continue
|
||||
if max_date_utc and dt_s > max_date_utc:
|
||||
continue
|
||||
if not val_s or val_s == ".":
|
||||
rows.append({
|
||||
"date_utc": dt_s,
|
||||
@@ -189,13 +223,13 @@ def fetch_fred_series_csv(series_id: str, max_rows: int = 36, timeout: float = 8
|
||||
"status": NO_DATA_AVAILABLE,
|
||||
"value": None,
|
||||
})
|
||||
return rows
|
||||
return rows[-max_rows:]
|
||||
|
||||
|
||||
def _score_macro_int(face_int: int, ing_map: dict[str, str]) -> dict[str, Any]:
|
||||
sp_eng = int_to_spoken_words(abs(face_int))
|
||||
sp_eng_aq = compute_aq(sp_eng)
|
||||
sp_ing = ing_map.get(sp_eng, sp_eng)
|
||||
sp_ing = ing_map.get(sp_eng) or translate_batch([sp_eng]).get(sp_eng, sp_eng)
|
||||
sp_ing_aq = compute_aq(sp_ing)
|
||||
ring_hits = sorted(
|
||||
{
|
||||
@@ -299,20 +333,47 @@ def build_macro_indicators_bundle(
|
||||
cached_bundle = {}
|
||||
|
||||
cached_series = (cached_bundle.get("raw_fred_observations") or {}) if isinstance(cached_bundle, dict) else {}
|
||||
from hyperstitionstud_io.quant.collector import latest_completed_closing_bell_date_utc
|
||||
|
||||
for spec in FRED_SERIES_SPEC:
|
||||
max_closed_dt = latest_completed_closing_bell_date_utc()
|
||||
|
||||
def _fetch_one_spec(spec: dict[str, Any]) -> tuple[str, list[dict[str, Any]]]:
|
||||
sid = spec["series_id"]
|
||||
fetched: list[dict[str, Any]] = []
|
||||
is_daily = spec["cadence"] == "1d"
|
||||
min_dt = MIN_MACRO_DAILY_DATE_UTC if is_daily else None
|
||||
fetched_rows: list[dict[str, Any]] = []
|
||||
if allow_live_network:
|
||||
try:
|
||||
fetched = fetch_fred_series_csv(sid, max_rows=28)
|
||||
fetched_rows = fetch_fred_series_csv(
|
||||
sid,
|
||||
max_rows=36,
|
||||
min_date_utc=min_dt,
|
||||
max_date_utc=max_closed_dt,
|
||||
)
|
||||
except Exception:
|
||||
fetched = []
|
||||
if not fetched and sid in cached_series and cached_series[sid]:
|
||||
fetched = list(cached_series[sid])
|
||||
if not fetched and sid in _VERIFIED_FRED_SEED_OBSERVATIONS:
|
||||
fetched = list(_VERIFIED_FRED_SEED_OBSERVATIONS[sid])
|
||||
raw_series_by_id[sid] = fetched
|
||||
fetched_rows = []
|
||||
prior_rows = list(cached_series.get(sid) or [])
|
||||
if not prior_rows and not fetched_rows and sid in _VERIFIED_FRED_SEED_OBSERVATIONS:
|
||||
prior_rows = list(_VERIFIED_FRED_SEED_OBSERVATIONS[sid])
|
||||
merged_by_dt: dict[str, dict[str, Any]] = {}
|
||||
for r in prior_rows + fetched_rows:
|
||||
if not isinstance(r, dict) or not r.get("date_utc"):
|
||||
continue
|
||||
dt_s = str(r["date_utc"])
|
||||
if min_dt and dt_s < min_dt:
|
||||
continue
|
||||
if dt_s > max_closed_dt:
|
||||
continue
|
||||
prev_r = merged_by_dt.get(dt_s)
|
||||
if prev_r is None or (not prev_r.get("data_available") and r.get("data_available")):
|
||||
merged_by_dt[dt_s] = r
|
||||
return sid, [merged_by_dt[k] for k in sorted(merged_by_dt.keys())][-36:]
|
||||
|
||||
import concurrent.futures
|
||||
|
||||
with concurrent.futures.ThreadPoolExecutor(max_workers=7) as pool:
|
||||
for sid, rows_list in pool.map(_fetch_one_spec, FRED_SERIES_SPEC):
|
||||
raw_series_by_id[sid] = rows_list
|
||||
|
||||
# Pre-collect spoken integer strings for batch Ingglish translation
|
||||
phrases: set[str] = set()
|
||||
@@ -433,7 +494,11 @@ def build_macro_indicators_bundle(
|
||||
"aq_evaluation": aq_eval,
|
||||
"change_aq_evaluation": chg_eval,
|
||||
"missing_observation_dates": missing_dates,
|
||||
"recent_observations": obs_list[-12:],
|
||||
"recent_observations": (
|
||||
[r for r in obs_list if r["date_utc"] >= MIN_MACRO_DAILY_DATE_UTC]
|
||||
if spec["cadence"] == "1d"
|
||||
else obs_list[-13:]
|
||||
),
|
||||
}
|
||||
|
||||
# Compute Derived Spreads & Velocity Ratios (Strictly Null-Preserving)
|
||||
|
||||
@@ -784,8 +784,12 @@ def test_ipld_quant_and_mcp_server() -> None:
|
||||
mac_code, _, mac_body = dispatch_rest_v1("GET", "/api/v1/tools/hs_inspect_macro_indicators")
|
||||
assert mac_code == 200 and mac_body["data"]["synthetic_data_eliminated"] is True
|
||||
assert mac_body["data"]["series_count"] == 14
|
||||
assert mac_body["data"]["series"]["effr"]["aq_evaluation"]["face_int"] == 388
|
||||
assert mac_body["data"]["derived_indicators"]["m1_vs_m2_spread"]["m2_minus_m1_trillions_str"] == "$3.37T"
|
||||
effr_series = mac_body["data"]["series"]["effr"]
|
||||
assert effr_series["aq_evaluation"]["face_int"] == int(round(float(effr_series["latest_value"]) * 100))
|
||||
assert "2026-11-26" in effr_series["missing_observation_dates"]
|
||||
assert mac_body["data"]["series"]["cpi"]["yoy_change_pct"] is not None
|
||||
m2_m1_str = mac_body["data"]["derived_indicators"]["m1_vs_m2_spread"]["m2_minus_m1_trillions_str"]
|
||||
assert isinstance(m2_m1_str, str) and m2_m1_str.startswith("$") and m2_m1_str.endswith("T")
|
||||
|
||||
# Verify Plan 4: 5-Agenda Daily Portfolio & Memetic Regime Update (hs-daily-brief)
|
||||
brf_code, _, brf_body = dispatch_rest_v1("GET", "/api/v1/tools/hs_generate_daily_portfolio_brief")
|
||||
|
||||
Reference in new issue
Block a user