From 5f7eb63bd2adc1fee6056e996316f22c131bb0ae Mon Sep 17 00:00:00 2001 From: Jesse_Chen Date: Fri, 17 Jul 2026 11:26:00 +0800 Subject: [PATCH] fix: restore public oracle intake tasks --- jyotish-app/main.js | 16 ++++++++++++++++ tests/test_frontend_productization.py | 18 +++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/jyotish-app/main.js b/jyotish-app/main.js index 253420e5..7f2c6314 100644 --- a/jyotish-app/main.js +++ b/jyotish-app/main.js @@ -2584,6 +2584,14 @@ const ORACLE_EVIDENCE_INTAKE_TASKS = [ preferredSources: 'JHora / PyJHora 黑盒输出', targetFields: ['vimshottari_start_date', 'shadbala_components'], }, + { + caseId: 'template_synthetic_north_china_shadbala_raman', + title: '合成公开样本 · Raman Shadbala', + birth: '1980-01-01 12:00 · synthetic fixture · TZ +08:00', + settings: 'ayanamsa=raman · node_mode=mean', + preferredSources: 'JHora / PyJHora Shadbala 黑盒输出', + targetFields: ['moon_sidereal_longitude_deg', 'shadbala_components'], + }, { caseId: 'template_extreme_latitude_kp', title: '高纬样本 · KP/Ayanamsa 边界', @@ -2600,6 +2608,14 @@ const ORACLE_EVIDENCE_INTAKE_TASKS = [ preferredSources: 'JHora date policy screenshot', targetFields: ['sun_sidereal_longitude_deg', 'vimshottari_start_date'], }, + { + caseId: 'template_bv_raman_vimshottari_boundary_series', + title: 'B.V. Raman · Dasha 边界', + birth: '1912-08-08 19:43 · public reference chart · TZ +05:30', + settings: 'ayanamsa=raman · node_mode=unspecified', + preferredSources: 'Published example / JHora boundary verification', + targetFields: ['vimshottari_mahadasa_boundaries'], + }, ]; function renderDashaShadbalaCalibrationPanel() { diff --git a/tests/test_frontend_productization.py b/tests/test_frontend_productization.py index 5cee86f9..a1b983e5 100644 --- a/tests/test_frontend_productization.py +++ b/tests/test_frontend_productization.py @@ -675,7 +675,7 @@ def test_trust_center_exposes_oracle_evidence_intake_cards() -> None: "必须打码", "missing_shadbala_component", "template_steve_jobs_dasha_lahiri", - "template_steve_jobs_dasha_lahiri", + "template_bv_raman_vimshottari_boundary_series", "template_synthetic_north_china_shadbala_raman", "template_extreme_latitude_kp", "template_historical_epoch_lahiri", @@ -692,6 +692,22 @@ def test_trust_center_exposes_oracle_evidence_intake_cards() -> None: ]: assert token in main + intake_block = re.search( + r"const ORACLE_EVIDENCE_INTAKE_TASKS = \[(.*?)\n\];", + main, + re.DOTALL, + ) + assert intake_block is not None + intake_case_ids = re.findall(r"caseId: '([^']+)'", intake_block.group(1)) + assert intake_case_ids == [ + "template_steve_jobs_dasha_lahiri", + "template_synthetic_north_china_shadbala_raman", + "template_extreme_latitude_kp", + "template_historical_epoch_lahiri", + "template_bv_raman_vimshottari_boundary_series", + ] + assert len(set(intake_case_ids)) == 5 + assert "validateOracleEvidence" in api_bridge assert "postJson('/api/oracle_evidence'" in api_bridge assert "'/api/oracle_evidence'" in api_server