This repository has been archived on 2026-07-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
chaim 06b27e98a3 fix(prompt): add VERIFY-TOOL-RESULT + SUBFOLDER-SEARCH + no-em-dash rules
Real-world failures from prod sessions today:

* Shira called save_rule, EspoCRM returned 404 ("Controller AssistantRule
  does not exist"), the tool returned a fail() result — and Shira told the
  user " כלל חדש נשמר". Same hallucination pattern as the document-content
  incident yesterday, just on a different surface. Added an explicit
  VERIFY-TOOL-RESULT block that says: read the tool result, if it starts
  with  or mentions שגיאה/נכשל/failed/error, report the failure honestly.

* When the user named a specific file in a case ("הודעה לבית הדין-...docx")
  and list_documents only showed the case root with empty subfolders,
  Shira reported "not found" instead of recursing into מסמכים/התכתבויות/
  כללי/אסמכתאות. Then "fixed" it by permanently set_case_folder_path-ing
  the root to a subfolder, which would have broken access to every other
  document in the case. Added a SUBFOLDER SEARCH section to TOOL_RULES.

* The user noted that Shira's writing uses em-dashes (— U+2014) as a
  primary separator, which is a strong "this was written by AI" tell.
  Added a WRITING STYLE section banning em-dash and en-dash, mandating
  hyphen-minus only when truly needed, and warning against dash pileups
  and other AI tells.

Refs Task Master none (these are prompt-only changes, no schema impact).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 06:47:19 +00:00
S
Description
Archived from gitea.marcus1.com
287 KiB
Languages
Python 96.3%
PLpgSQL 3.5%
Dockerfile 0.2%