floop: DATE answer type + deterministic year check #18

Merged
onibot merged 1 commits from feature/date-type into main 2026-10-22 23:58:25 +02:00
Owner

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.

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.
onibot added 1 commit 2026-10-22 23:58:24 +02:00
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.
onibot merged commit 86b444391d into main 2026-10-22 23:58:25 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: onibot/floop#18