audit(token_audit): one submission carrying two slash commands is one message - #510
Conversation
… message `/reflect /cat-mode` on a single line injects the same user text twice, tens of milliseconds apart. The verbatim-repeat rule read that as a re-send, the strongest single frustration signal, and escalated a pass to FAIL on it. A repeat now needs at least five seconds between the two rows. A genuine re-send minutes later still counts, asserted both ways. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KU2pPKob4MJ1NqjsfTNyYJ Change-Id: I0f516b8f1e8856df6ae98bf63c2389cdae97e2f9
This was referenced Sep 12, 2026
Owner
Author
|
This pull request is part of a Mergify stack:
|
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_d9473ccb-6cba-4d85-af59-5cfaf02e0463) |
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.
/reflect /cat-modeon a single line injects the same user text twice, tensof milliseconds apart. The verbatim-repeat rule read that as a re-send, the
strongest single frustration signal, and escalated a pass to FAIL on it.
A repeat now needs at least five seconds between the two rows. A genuine
re-send minutes later still counts, asserted both ways.
Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01KU2pPKob4MJ1NqjsfTNyYJ
Depends-On: #509
Note
Low Risk
Narrow heuristic tweak in offline transcript auditing with unit tests; may slightly reduce verbatim-repeat detection for duplicates sent 1–4 seconds apart.
Overview
Fixes a false positive in reflect’s verbatim-repeat frustration signal when one user submission produces two identical transcript rows milliseconds apart (e.g.
/reflect /cat-modeon one line).frustration_signalsintoken_audit.pynow requires at leastMIN_RESEND_GAP_SECS(5) between matching normalized user texts before counting a verbatim-repeat (still capped at 10 minutes). Sub-second duplicates are ignored; a real re-send minutes later still flags and can still drive intervention-must-automate.Two Codex unit tests lock in the near-duplicate vs. minutes-later behavior.
Reviewed by Cursor Bugbot for commit 8c65d80. Bugbot is set up for automated code reviews on this repo. Configure here.