chore(privacy): purge upstream private material and add import guards

Prepare branch for remote review; preserve documented validation gaps and protected historical packages.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
jesse-ux
2026-09-19 18:11:29 +08:00
co-authored by Claude Code
parent 35ca7299c9
commit fe9489e6ed
3578 changed files with 4519 additions and 1385525 deletions
+23 -21
View File
@@ -1,5 +1,7 @@
from __future__ import annotations
from tests.conftest import FIXTURE_BIRTH_DATE, FIXTURE_BIRTH_LAT, FIXTURE_BIRTH_LON
from datetime import datetime
from scripts import active_rectification_event_engine as event_engine
@@ -151,11 +153,11 @@ def test_matrix_legacy_adapter_preserves_event_kind() -> None:
}]
build_event_contribution_matrix({
"birth_date": "1993-04-17",
"birth_date": FIXTURE_BIRTH_DATE,
"start_time": "05:13",
"end_time": "05:13",
"lat": 36.683333,
"lon": 114.35,
"lat": FIXTURE_BIRTH_LAT,
"lon": FIXTURE_BIRTH_LON,
"tz": 8.0,
"events": [{
"id": "5cb071d6-6d99-46be-85dc-a9bf59ef6ac5",
@@ -206,11 +208,11 @@ def test_relationship_event_kinds_reuse_activation_without_fake_offsets(monkeypa
def test_real_local_scoring_uses_dated_events_and_actual_candidate_minutes() -> None:
result = score_life_events({
"birth_date": "1993-04-17",
"birth_date": FIXTURE_BIRTH_DATE,
"start_time": "14:29",
"end_time": "14:31",
"lat": 36.683333,
"lon": 114.35,
"lat": FIXTURE_BIRTH_LAT,
"lon": FIXTURE_BIRTH_LON,
"tz": 8.0,
"events": [
{
@@ -250,11 +252,11 @@ def test_real_local_scoring_uses_dated_events_and_actual_candidate_minutes() ->
def test_event_summary_is_fingerprinted_without_unlocking_minute_application() -> None:
base_request = {
"birth_date": "1993-04-17",
"birth_date": FIXTURE_BIRTH_DATE,
"start_time": "14:29",
"end_time": "14:30",
"lat": 36.683333,
"lon": 114.35,
"lat": FIXTURE_BIRTH_LAT,
"lon": FIXTURE_BIRTH_LON,
"tz": 8.0,
"events": [{
"id": "5cb071d6-6d99-46be-85dc-a9bf59ef6ac5",
@@ -309,11 +311,11 @@ def test_finance_events_use_d2_d11_and_recompute_both_dashas_per_minute(monkeypa
monkeypatch.setattr(event_engine, "_active_narayana", narayana)
monkeypatch.setattr(event_engine, "_score_event", score_event)
result = event_engine.compute_event_candidate_result({
"birth_date": "1993-04-17",
"birth_date": FIXTURE_BIRTH_DATE,
"start_time": "14:29",
"end_time": "14:31",
"lat": 36.683333,
"lon": 114.35,
"lat": FIXTURE_BIRTH_LAT,
"lon": FIXTURE_BIRTH_LON,
"tz": 8.0,
"events": [{
"id": "5cb071d6-6d99-46be-85dc-a9bf59ef6ac5",
@@ -330,11 +332,11 @@ def test_finance_events_use_d2_d11_and_recompute_both_dashas_per_minute(monkeypa
def test_missing_narayana_blocks_the_candidate_event_instead_of_using_partial_timing(monkeypatch) -> None:
monkeypatch.setattr(event_engine, "_active_narayana", lambda *_args: (None, None))
request = {
"birth_date": "1993-04-17",
"birth_date": FIXTURE_BIRTH_DATE,
"start_time": "14:29",
"end_time": "14:29",
"lat": 36.683333,
"lon": 114.35,
"lat": FIXTURE_BIRTH_LAT,
"lon": FIXTURE_BIRTH_LON,
"tz": 8.0,
"events": [{
"id": "5cb071d6-6d99-46be-85dc-a9bf59ef6ac5",
@@ -351,11 +353,11 @@ def test_missing_narayana_blocks_the_candidate_event_instead_of_using_partial_ti
assert "Narayana_MD_AD" in row["missing_layers"]
result = event_engine.compute_event_candidate_result({
"birth_date": "1993-04-17",
"birth_date": FIXTURE_BIRTH_DATE,
"start_time": "14:29",
"end_time": "14:30",
"lat": 36.683333,
"lon": 114.35,
"lat": FIXTURE_BIRTH_LAT,
"lon": FIXTURE_BIRTH_LON,
"tz": 8.0,
"events": [{
"id": "5cb071d6-6d99-46be-85dc-a9bf59ef6ac5",
@@ -378,11 +380,11 @@ def test_relationship_scoring_receives_computed_ul(monkeypatch) -> None:
monkeypatch.setattr(event_engine, "_score_event", score_event)
request = {
"birth_date": "1993-04-17",
"birth_date": FIXTURE_BIRTH_DATE,
"start_time": "14:29",
"end_time": "14:29",
"lat": 36.683333,
"lon": 114.35,
"lat": FIXTURE_BIRTH_LAT,
"lon": FIXTURE_BIRTH_LON,
"tz": 8.0,
"events": [{
"id": "5cb071d6-6d99-46be-85dc-a9bf59ef6ac5",