Spaces:
Sleeping
Sleeping
Commit History
-
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
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NQMBLPhJZUBCX7io3uwEnRb9e493a -
feat: wire ai_clean.clean_delivery into the generate path (ARCHITECTURE §13.3) — the body's delivery sentence is now งวด-aware; deterministic fallback preserved
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NQMBLPhJZUBCX7io3uwEnR903bb5c -
feat: ALLOWED_USERS allowlist authorization (require_authorized) after login — server-side enforcement; unset secret = allow all (no lockout); themed denial card + logout
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NQMBLPhJZUBCX7io3uwEnR5ec0721 -
test: pytest suite for the pure layers (data_source, ai_clean, form_logic, letter_builder) — 32 tests, no network, AI_BACKEND=off
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NQMBLPhJZUBCX7io3uwEnRf50726e