fix(rectification): let a tied plateau be adopted as the session result
Adjacent minutes still cannot confirm a unique birth minute. A scored representative time can now be accepted, and the copy must say the minute is not unique. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -167,13 +167,13 @@ def build_decision_receipt(
|
||||
missing_layers=sorted(built.get("missing_layers") or []),
|
||||
)
|
||||
|
||||
# Adoption is the session result when a representative time exists.
|
||||
# Unique-top and diagnostic stability still block confirmation, not accept.
|
||||
acceptance_allowed = all((
|
||||
candidate_presence["passed"],
|
||||
event_quality["passed"],
|
||||
domain_diversity["passed"],
|
||||
date_quality["passed"],
|
||||
unique_top["passed"],
|
||||
diagnostic_quality["passed"],
|
||||
))
|
||||
margin = _decimal(diagnostics.get("primary_secondary_margin_percent"))
|
||||
if acceptance_allowed and margin >= Decimal("20"):
|
||||
@@ -189,12 +189,14 @@ def build_decision_receipt(
|
||||
(event_quality["passed"], "insufficient_events"),
|
||||
(domain_diversity["passed"], "insufficient_domain_diversity"),
|
||||
(date_quality["passed"], "low_date_quality"),
|
||||
(unique_top["passed"], "tied_top_score"),
|
||||
(diagnostic_quality["passed"], "insufficient_diagnostic_stability"),
|
||||
):
|
||||
if not passed:
|
||||
acceptance_reasons.append(reason)
|
||||
confirmation_reasons = []
|
||||
if not unique_top["passed"]:
|
||||
confirmation_reasons.append("tied_top_score")
|
||||
if not diagnostic_quality["passed"]:
|
||||
confirmation_reasons.append("insufficient_diagnostic_stability")
|
||||
if not required_layers["passed"]:
|
||||
confirmation_reasons.append("missing_mandatory_layers")
|
||||
confirmation_reasons.extend(("engine_exact_confirmation_not_granted", "external_validation_not_passed"))
|
||||
|
||||
Reference in New Issue
Block a user