floop: DATE answer type + deterministic year check (his 22/10 run)
His local run: the term-start question answered '15' — not a date — and the dependent predecessor question became unclear downstream. - AnswerType.DATE joins the enum; the Subquestion desc the model sees now says: DATE for a specific date (day, month and year — '15' alone is NOT a date) - _looks_like_date: deterministic admission bar — a plausible year (1500-2999). '2 June 2018'/'June 2018'/'2018' pass; '15', a month name alone, garbage: refused - _append_checked: a DATE answer without a year becomes UNKNOWN, the question fails honestly, a note lands in the run log — the wrong type never flows silently into dependents VERIFIED: tests/date_type.py 4/4 (enum+desc in the rendered schema, deterministic admission, '15' rejected end-to-end, real date accepted); suite 16/16.
This commit is contained in:
@@ -20,6 +20,7 @@ class AnswerType(str, Enum):
|
||||
INTERVAL = "INTERVAL"
|
||||
CONSTANT = "CONSTANT"
|
||||
LIST = "LIST"
|
||||
DATE = "DATE"
|
||||
|
||||
|
||||
class BudgetExhausted(Exception):
|
||||
|
||||
Reference in New Issue
Block a user