Make the duplicate-task guard survive the model rewording the title
The exact-title check shipped an hour ago was defeated on the first retry: asked again for "Doument review", the model silently corrected the typo to "Document review", which no longer matched, and a duplicate was created anyway. Tidying input is normal model behaviour, so the comparison now normalises case, punctuation and spacing and compares by edit distance across every task on the matter. 0.85 blocks typo fixes, plurals and punctuation changes; "Document review" vs "Document Review and Organization" scores 0.469 and still passes. Same run also set a due date the request never mentioned, carried over from an earlier turn, so KS_SYSTEM_PROMPT now leads with "write only what was asked for in the current request". Confirmations render dates as "Friday, 14 August 2026" - the server cannot know which Friday was meant, but naming the weekday makes an off-by-a-week visible instead of hiding it in an ISO string.
| Repository | pdombkins/rose_lawyer |
|---|---|
| Author | Peter Dombkins <pdombkins@gmail.com> |
| Authored | |
| Parents | 91b65bac |
| Stats | 3 files changed , +138 , -16 |
| Part of | Guardrails on AI-agent writes to K&S |
Capture this commit into my fork
Download a Markdown prompt that tells Claude how to port this
exact commit into your working tree. Run it via
claude -p < capture-commit-23140608.md
from inside the repo you want the change in.