journal-bot/tests
beo3000 d2f8319772 fix(process): derive target date from message send day, not processing day
A message sent yesterday but processed today (e.g. by the next service
run) landed in today's daily note. The send time was captured in
received_at but only HH:MM reached the LLM; the date defaulted to
date.today(). Now today/weekday in the processor context are derived per
item from received_at, so "gestern"/"heute" resolve relative to when the
message was actually written. Adds day_context() helper and a regression
test (sent 2026-06-25, processed 2026-06-26 -> note 2026-06-25).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 08:19:29 +02:00
..
fixtures/prompt_regression test(prompt): regression cases for date resolution, meta filter, clarification 2026-06-15 17:42:39 +02:00
__init__.py chore: bootstrap journal-bot project skeleton 2026-06-15 15:01:04 +02:00
test_config.py feat(config): load settings from env via pydantic-settings 2026-06-15 15:05:55 +02:00
test_context.py feat(context): collect persons and active projects from vault 2026-06-15 17:22:38 +02:00
test_ingest.py feat(cli): ingest/process/both/write subcommands wiring all components 2026-06-15 17:36:02 +02:00
test_process.py fix(process): derive target date from message send day, not processing day 2026-06-26 08:19:29 +02:00
test_processor_lmstudio.py feat(processor_lmstudio): openai-compatible client with health-check and retry 2026-06-15 17:29:03 +02:00
test_prompt_regression.py test(prompt): regression cases for date resolution, meta filter, clarification 2026-06-15 17:42:39 +02:00
test_queue.py feat: windows service + WPF tray GUI for journal-bot 2026-06-16 09:37:39 +02:00
test_state.py feat(state): persist last_update_id and rolling processed_ids 2026-06-15 15:08:53 +02:00
test_telegram_client.py feat(telegram): poll, allowlist-filter, parse text/voice/photo, react 2026-06-15 17:12:21 +02:00
test_transcribe.py feat(transcribe): faster-whisper with telegram premium fallback 2026-06-15 17:19:33 +02:00
test_vault_writer.py feat(vault_writer): append entries with frontmatter and clarifications callout 2026-06-15 17:06:10 +02:00