Repository navigation
Conversation
A tool call that keeps erroring, or a model call that fails several times in a row, now leaves a short actionable note in the failing Bot's own memory, so its next conversations avoid the loop. The note goes through the ordinary memory path (size-capped, secret-scanned, visible in the panel, removable with forget) at most once per failure per day. config.reflexion: false turns it off.
Collaborator
|
Review (Birfy, 2026-10-20 12:00 Asia/Shanghai) at 7a44734, risk tier T2, CI green on its old base (fork run approved today), but CONFLICTING with main a7adfe0 ( Problems:
No self-review PASS. This is also a new feature that still needs the owner's yes on #485. |
Collaborator
|
Owner decision (2026-10-20): declining this PR (option b on #485). Please close when convenient. |
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a Reflexion loop: learn from failures that repeat
Fixes #485
When a tool call keeps erroring, or a model call fails several times in a row, the Bot now writes itself one short actionable note into its own memory, so its next conversations avoid the loop. The note goes through the ordinary memory path (size-capped, secret-scanned, visible in the memory panel, removable with
forget), at most once per failure per day, and never throws into the turn.config.reflexion: falseturns it off.Ran at the tip:
npm run verify(green,TZ=UTC),node scripts/ds-bot-patches.mjs check. Not run: smoke, Desktop, real-model steward.