feat: add wealth public context reference

This commit is contained in:
732642856
2026-07-18 06:45:44 +08:00
parent fb0b5ae287
commit ac0c56fafc
3 changed files with 22 additions and 2 deletions
@@ -16,6 +16,19 @@
"event_outcomes": [{"event_type": "serious_injury", "event_date": "1925", "domain": "health", "expected_label": "health_event", "outcome": "A bus accident at age 18 caused lifelong pain and medical problems.", "source_excerpt_note": "Public biography records the 1925 bus accident and its lasting health impact.", "source": {"url": "https://en.wikipedia.org/wiki/Frida_Kahlo", "source_grade": "verified_secondary"}}],
"similarity": {"score": 0.0, "matching_factors": ["not_user_similarity_benchmark"], "dissimilar_factors": []},
"replay": {"outcome_replay_status": "pending", "do_not_use_for_prediction": true, "report_path": "", "conflict_notes": ["Public context reference only; health-domain outcome replay has not been run."]}
},
{
"case_id": "winfrey_oprah_show_launch_1986",
"subject": {
"name": "Oprah Winfrey", "year": 1954, "month": 1, "day": 29, "hour": 4, "minute": 30,
"lat": 33.51, "lon": -88.52, "tz": -6.0, "node_mode": "mean",
"birth_source": {"url": "https://www.astro.com/astro-databank/Winfrey,_Oprah", "source_grade": "primary", "time_accuracy_rating": "AA", "evidence_basis": "Astro-Databank public record"}
},
"source": {"url": "https://www.astro.com/astro-databank/Winfrey,_Oprah", "source_grade": "primary", "license_or_quote_boundary": "facts_and_short_summary_only"},
"chart_signature": {"benchmark_role": "public_context_reference", "external_oracle_status": "not_replayed", "timezone_note": "Kosciusko, Mississippi; standard time offset -06:00"},
"event_outcomes": [{"event_type": "public_wealth_path_opening", "event_date": "1986-09-08", "domain": "wealth", "expected_label": "wealth_event", "outcome": "The Oprah Winfrey Show launched in national syndication, creating a public media-business and wealth path.", "source_excerpt_note": "Public programme record gives the first air date as 8 September 1986.", "source": {"url": "https://en.wikipedia.org/wiki/The_Oprah_Winfrey_Show", "source_grade": "verified_secondary"}}],
"similarity": {"score": 0.0, "matching_factors": ["not_user_similarity_benchmark"], "dissimilar_factors": []},
"replay": {"outcome_replay_status": "pending", "do_not_use_for_prediction": true, "report_path": "docs/research/wealth_adjudicator_first_pass_audit_2026_06_27.md", "conflict_notes": ["Public context reference only; the programme launch is a media-business path event, not a direct measured wealth balance.", "It must not be used for threshold selection or timing calibration."]}
}
]
}
+1 -1
View File
@@ -24,7 +24,7 @@ def test_public_context_manifest_is_structured_but_not_replay_calibration() -> N
assert result["status"] == "partial"
assert result["errors"] == []
assert result["replay_ready_count"] == 0
assert result["domain_counts"] == {"health": 1}
assert result["domain_counts"] == {"health": 1, "wealth": 1}
def test_holdout_manifest_contains_ten_new_balanced_cases() -> None:
@@ -160,6 +160,13 @@ def test_pending_health_case_is_context_only_not_calibration() -> None:
assert selected["coverage"]["available_event_domains"] == ["health"]
def test_default_public_context_catalog_covers_wealth_as_reference_only() -> None:
selected = select_similar_public_cases(_chart("Leo", "Pisces", "Libra"), ["wealth"])
assert "wealth" in selected["coverage"]["available_event_domains"]
assert "wealth" not in selected["coverage"]["requested_uncovered_domains"]
def test_career_similarity_adds_d10_only_when_both_charts_have_longitudes() -> None:
chart = _varga_chart()
cases = [{
@@ -229,7 +236,7 @@ def test_default_manifest_exposes_kahlo_health_as_context_only() -> None:
assert [case["case_id"] for case in selected["cases"]] == ["kahlo_bus_injury_1925"]
assert selected["cases"][0]["reference_status"] == "public_context_only"
assert selected["coverage"]["available_event_domains"] == ["career", "health", "marriage"]
assert selected["coverage"]["available_event_domains"] == ["career", "health", "marriage", "wealth"]
def test_consultation_api_exposes_reference_transparency_contract() -> None: