From 572933816728157b2c5f998151feca18d442570c Mon Sep 17 00:00:00 2001 From: Connor Rhodes Date: Wed, 29 Apr 2026 01:47:58 +0000 Subject: [PATCH] fix: never guess receipt dates, ask user when OCR fails --- log-work-expense/SKILL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log-work-expense/SKILL.md b/log-work-expense/SKILL.md index a6dc5f0..3155988 100644 --- a/log-work-expense/SKILL.md +++ b/log-work-expense/SKILL.md @@ -16,7 +16,7 @@ Log receipt images and expense details into the `wip.work_expenses` collection i ## Steps -1. **Extract receipt info** — If the user sent an image, use the image tool to read the date, vendor, and amount from the receipt. If they only provided text, use that. +1. **Extract receipt info** — If the user sent an image, use the image tool to read the date, vendor, and amount. If the image tool fails, read the image with the `read` tool and try to extract the info visually. If you cannot confidently read the date, **ask the user** — never guess. If they only provided text, use that. 2. **Upload the receipt image to S2** — If the user provided an image, upload it to S2 and get the public URL. If they only provided a file or no image, skip this step. @@ -31,7 +31,7 @@ Log receipt images and expense details into the `wip.work_expenses` collection i ``` - **file**: The S2 URL of the uploaded receipt image. Omit if no image was provided. -- **date**: The date from the receipt, formatted as YYYY-MM-DD. If no date is on the receipt, ask the user. +- **date**: The date from the receipt, formatted as YYYY-MM-DD. If you cannot confidently read the date from the receipt, ask the user — do not guess. - **note**: Any context the user gave about the expense (what it was for, project, etc.). If they didn't provide context, ask what the expense was for. 4. **Confirm** — Reply with a brief confirmation showing what was logged (date, note, and file link if applicable).