auto-form / tests /test_ai_clean.py

Commit History

  1. fix: letter lost the duration sentence when AI paraphrasing dropped the 'ภายใน X วัน' signal — (1) build_letter falls back to the raw TOR clause when cleaning loses it, (2) generate_body rejects AI bodies missing the supplied day-number⁠

    Menixis +1: Claude Fable 5
    b9e493a
  2. test: pytest suite for the pure layers (data_source, ai_clean, form_logic, letter_builder) — 32 tests, no network, AI_BACKEND=off⁠

    Menixis +1: Claude Fable 5
    f50726e