feat(rectification): expose candidate result reports
Independent Staging Quality Gate / validate (push) Successful in 16m46s
Independent Staging Quality Gate / publish (push) Successful in 19m37s

This commit is contained in:
Jesse_Chen
2026-08-31 05:51:30 +08:00
parent 6cbf1f22e2
commit e8bd3a5208
6 changed files with 366 additions and 5 deletions
+2 -2
View File
@@ -156,8 +156,8 @@ def normalize_rectification_request(body: Any, *, today: date | None = None) ->
if not isinstance(end_time, str) or not _CLOCK.fullmatch(end_time):
raise ValueError("end_time must be HH:MM")
events = body.get("events")
if not isinstance(events, list) or not 1 <= len(events) <= 100:
raise ValueError("events must contain between 1 and 100 items")
if not isinstance(events, list) or not 0 <= len(events) <= 100:
raise ValueError("events must contain between 0 and 100 items")
upper_date = today or date.today()
cleaned_events: list[LifeEvent] = []
for index, raw_event in enumerate(events):