yau-plant-assistant/api
Claude dbd72dccc7 Pass the retention limit through to the answer writer
metrics.run() computed outside_retention but nothing consumed it, so the flag
was dead and the distinction it exists to carry never reached an answer. Both
gather_historical and gather_advisory now pass it, with retention_days, as
EVIDENCE - not as an instruction in a prompt.

Also corrects eval case H29 to record what it actually is: a deliberately
failing case, pinned before the fix per the house convention. It cannot pass
yet for a reason that predates this change - gather_historical always queries
a rolling 7 days and never parses the window the question asks about, so
outside_retention can never be true on that path. Observed today:

  "No records were found for June 2026. The data provided is for the window
   from 2026-08-24 to 2026-08-31."

Honest, and it states the window, but it leads with "no records were found"
and never says the historian keeps only seven days - so an operator cannot
tell a retention limit from a quiet month. Question-window parsing is the
missing piece and is a separate change.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 11:59:03 +10:00
..
tests Fix three defects the first real document exposed 2026-08-28 15:03:31 +10:00
tools Rebuild the stand-in historian on CI Server item names 2026-08-31 11:42:02 +10:00
agent.py Pass the retention limit through to the answer writer 2026-08-31 11:59:03 +10:00
app_healthcheck.py Scaffold the WRPS plant operations assistant repository 2026-08-20 13:56:32 +10:00
chunking.py Fix three defects the first real document exposed 2026-08-28 15:03:31 +10:00
classifier.py Take the facts back off the model 2026-08-28 10:54:29 +10:00
config.py Add the document library screens: upload, review, withdraw, restore 2026-08-28 14:13:17 +10:00
contracts.py Take the facts back off the model 2026-08-28 10:54:29 +10:00
convert.py Fix three defects the first real document exposed 2026-08-28 15:03:31 +10:00
Dockerfile Add the document library screens: upload, review, withdraw, restore 2026-08-28 14:13:17 +10:00
documents.py Fix three defects the first real document exposed 2026-08-28 15:03:31 +10:00
guardrails.py Pin the site timezone on every Cube query 2026-08-21 15:23:27 +10:00
identity.py Add the document library screens: upload, review, withdraw, restore 2026-08-28 14:13:17 +10:00
main.py Add the document library screens: upload, review, withdraw, restore 2026-08-28 14:13:17 +10:00
requirements-docs.txt Add the document library screens: upload, review, withdraw, restore 2026-08-28 14:13:17 +10:00
requirements.txt Scaffold the WRPS plant operations assistant repository 2026-08-20 13:56:32 +10:00
stub.py Add NO_LLM_STUB: the whole chain, working, without a model 2026-08-21 15:24:25 +10:00