fix(rectification): exhaustion exit, explain layer, range reading, unknown-time scan (BUG-565–568)
Independent Staging Quality Gate / validate (push) Successful in 9m20s
Independent Staging Quality Gate / publish (push) Successful in 6m51s

Keep askable cards after exhaustion, explain each probe, read the adopted credible range in reports and chat, and compare declared periods before the minute grid when the clock is unknown.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-09-07 09:10:37 +08:00
parent 43a26a3ccb
commit 814c924e4a
91 changed files with 5362 additions and 224 deletions
@@ -548,12 +548,33 @@ def build_refinement_packet(
representative_time: str | None,
candidate_times: Sequence[str],
cluster_width_minutes: int | None = None,
include_discriminators: bool = True,
) -> dict[str, Any]:
scan = window_scan(built)
cluster = cluster_scan(built, candidate_times, representative_time, cluster_width_minutes)
ledger = event_dasha_ledger(request, built, representative_time)
agreement = dasha_agreement(built, candidate_times)
stage = precision_stage(cluster, len(request.get("events") or []))
if not include_discriminators:
return {
"window_scan": scan,
"event_dasha_ledger": ledger,
"event_fit_rate": event_fit_rate(ledger),
"dasha_agreement": agreement,
"lagna_contrast": lagna_contrast(built),
"nakshatra_boundary": nakshatra_boundary(built, representative_time),
"precision_stage": {"current": "block_scan"},
"oos_blind_prompts": [],
"discriminating_event_probes": [],
"event_clarification_probes": [],
"evidence_collection_probes": [],
"candidate_contrast_opportunities": [],
"holdout_validation_probes": [],
"dropped_probes": [],
"prospective_probes": [],
"unique_minute_claim": False,
"confirmation_allowed": False,
}
from scripts.rectification.candidate_contrast import PROBE_PHASE_HOLDOUT_VALIDATION, event_year
from scripts.rectification.case_holdout import reserved_holdout_events
from scripts.rectification.event_probes import (