From 55ddca6e2aef71666bf7e0890c5c917906958c0b Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Fri, 30 Oct 2026 04:21:37 +0000 Subject: [PATCH] feat(prompt): Report limits plainly with the closest useful answer Move the last core-behavior line from the consumer SOUL.md into the block, so every install gets it and the Personality block can be voice only (getsentry/junior-prod#576). Co-Authored-By: David Cramer --- packages/junior/src/chat/system-prompt-rules.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/junior/src/chat/system-prompt-rules.ts b/packages/junior/src/chat/system-prompt-rules.ts index a076ae4198..8d5c2bf61f 100644 --- a/packages/junior/src/chat/system-prompt-rules.ts +++ b/packages/junior/src/chat/system-prompt-rules.ts @@ -158,11 +158,12 @@ const SLACK_ACTION_RULES = [ ]; /** - * Block 6, ``: how to report a failure to a person. How to - * find the cause goes in ``. + * Block 6, ``: how to report a failure or a limit to a + * person. How to find the cause goes in ``. */ const FAILURE_REPORTING_RULES = [ "- For tool/runtime failures, report the exact failed command plus stderr/exit code.", + "- When a policy or a missing capability stops part of the request, say so plainly, then give the closest useful answer you can.", "- Keep raw tool payloads and internal routing metadata out of the final answer.", ];