Repository navigation
Keep the bot's hidden explanations out of the prompt, so a wrong one stops repeating itself - #243
Conversation
…stops repeating itself Every comment the action posts ends with a hidden block that holds the run's summary and the reason for each operation. A later run on the same thread got those blocks back in the timeline, and the model read its own earlier reasoning as evidence. On one MudBlazor pull request an earlier summary said the author was not a maintainer, and later runs repeated it. The block now comes out of a bot's earlier comments before the timeline reaches the prompt. It is still posted, because maintainers open a comment to see why the bot acted. Only a comment by a bot account that ends with a block of the exact shape the action writes is changed, so people's comments, item bodies and reviews are read as before. One pattern in src/triage.ts reads the block back for both the preview and the prompt, and a test posts blocks through the writer and checks that the pattern removes each one whole.
|
Merged as 17cacb3, and Before merging, the timeline of MudBlazor pull request After the tag moved, four dry runs of
Limits: this is one thread and four runs, and the thread's |
Every comment AutoTriage posts ends with a hidden block that holds the run's summary and the reason for each operation.
A later run on the same thread got those blocks back in the timeline, and the model read its own earlier reasoning as evidence.
On MudBlazor pull request
11552an earlier summary said the author was not a maintainer, and later runs repeated it in 3 of 4 replays.What changes
src/triage.tsreads the block back for the log preview and the prompt. It also accepts CRLF line endings, which is how GitHub returns a comment that was edited on the website.No inputs, defaults or permissions change.
Verification
npm run verifypasses: both typechecks, 342 tests, the build and thedist/check.-->inside the explanation, CRLF line endings, a comment longer than the length limit, people's comments, item bodies and reviews, and that the posted comment still carries the block.Remaining risk
v5moves.