You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update the Guardian rejection-limit rule in the chat README #2003
The Invariants section of packages/junior/src/chat/README.md says:
ask and deny become expected tool failures, and three consecutive rejections interrupt the execution slice.
#1529 changed this behavior on purpose. On the third consecutive rejection, Junior now does these things (tool-support/action-review.ts):
It throws a normal ToolActionRejectedError with instructions to stop retrying.
It records guardian.action_review.exhausted in Sentry.
It does not abort the run.
tests/component/tool-support/pi-tool-adapter.test.ts checks that onFatal is not called.
The README still states the old rule. Maintainers and agents use this README as the rule, so a later change can restore the old behavior by mistake.
Change
Replace the sentence with the current rule. For example: "ask and deny become expected tool failures. After three consecutive rejections, the rejection tells the agent to stop retrying. It does not end the execution slice."
Activity
docs(chat): Update the Guardian rejection-limit rule (getsentry#2015)