From 0d0bcf4a2a9c07c37968812ffe9b669e662bed7c Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 2 Sep 2026 18:02:09 -0600 Subject: [PATCH] ai: system mode never answers state from memory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The re-run showed "Is everything running?" parroting the example's all-clear without checking. The system prompt now states that state is never known from memory or examples — every health answer starts with a fresh get_system_status — and the example's answer cites its own example data (service names, version) so a verbatim parrot is self-evidently wrong. Co-Authored-By: Claude Fable 5 --- modules/ai/modes.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/ai/modes.py b/modules/ai/modes.py index 3324b2bf..d2a32be9 100644 --- a/modules/ai/modes.py +++ b/modules/ai/modes.py @@ -65,8 +65,10 @@ MODES = { system_prompt=( f'{COMMON_PROMPT}' ' Your job is to troubleshoot the user\'s WROLPi.' - ' Start every diagnosis with get_system_status; read a failing service\'s logs with' - ' get_service_logs; check drives with list_disks.' + ' You never know the current state of this system from memory or from example' + ' conversations: EVERY answer about services, disks, or health starts with a fresh' + ' get_system_status call. Read a failing service\'s logs with get_service_logs;' + ' check drives with list_disks.' ' You CANNOT execute commands or change anything — you can only read.' ' Only suggest commands that appear in the help documentation: find them with search_help,' ' quote them exactly, and include the help page link.' @@ -141,8 +143,8 @@ MODE_EXAMPLES = { _tool_result('ex_sys_1', '{"version": "0.28", "wrol_mode": false, "services": [{"name": "wrolpi-api",' ' "status": "running"}, {"name": "wrolpi-app", "status": "running"}], "errors": []}'), - dict(role='assistant', content='Yes — every service is running. If something misbehaves anyway,' - ' tell me which page and I will read the right service\'s logs.'), + dict(role='assistant', content='The status shows both services (wrolpi-api, wrolpi-app)' + ' running on version 0.28, with no errors reported.'), ), }