fix(assistant): confirm K&S writes in prose, with a link, and supply today's date

↗ view on GitHub · Peter Dombkins · 2026-08-02 · 7f7588eb

After creating a task the assistant ended its turn with a step count and a
reasoning trace, so a successful write looked identical to a failed one.

The system prompt also contained no date at all, which is why the transcript
shows six steps spent triangulating 'today' from task due dates before
guessing at 'next Friday'. contextBuilders now supplies the date in
Australia/Sydney and tells the model not to infer it from scenario data.

All 13 K&S write functions now return { link, confirmation } - link is
/workspace/dashboard/matter/<id>, the Rose shell path rather than /firm, which
would drop the user out of the sidebar. KS_SYSTEM_PROMPT requires the final
answer to state what changed outside the reasoning, quote the specifics back,
use the returned link verbatim, and report failures as failures.
Repository pdombkins/rose_lawyer
Author Peter Dombkins <pdombkins@gmail.com>
Authored
Parents a8e22812
Stats 5 files changed , +172 , -25
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-7f7588eb.md from inside the repo you want the change in.

⬇ Download capture-commit-7f7588eb.md