[auto] session-mine claude 9714ce38-ef0 i22 n2 - #381
Merged
EdbertChan merged 3 commits intoSep 12, 2026
Conversation
The shared classifier treated "Another Claude session sent a message:" and bare <teammate-message> relays as the human typing, so a lens or fixer's report that quoted the user's complaints counted as the user complaining again. On the session that surfaced it, 21 relays padded the user-message count and two were flagged as fresh "told-you" / "proof-challenge" interventions, one of which the session-mine worker handed to headless reflect as an offending turn pair. Add both envelope starts to CLAUDE_SYSTEM_PREFIXES so every consumer (token_audit, cluster_interventions, the Invoker worker that shells token_audit) drops them. Fixture pairs a relay full of complaint words with a real typed complaint: the relay stays silent, the complaint fires. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ude session 9714ce38-ef0 Exit code: 0
…e-cd16761c — Reflect on flagged claude session 9714ce38-ef0
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_131fd73f-9687-49f2-a8a7-d11800d9a1aa) |
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
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.
Summary
Claude teammate relays could count as human complaints when quoting the user. Classify both relay prefixes as system messages to prevent false frustration signals.
Add a shared fixture, provenance and token-audit regression tests, and updated cost-audit guidance.
Review Claim
Recognize Claude teammate relays as system messages while preserving detection of an adjacent human complaint.
Review Lane
behavior
Review Unit
engine-runtime
Safety Invariant
Only the two added Claude relay prefixes change classification; ordinary human complaints remain eligible for frustration detection.
Assumptions: This invariant is unconfirmed in this non-interactive draft. All five files form one engine-runtime change under the repository taxonomy.
Slice Rationale
The classifier change, shared fixture, regression assertions, and reference update establish one provenance rule within the reflect skill.
Non-goals
No changes to frustration thresholds, token accounting, other harness classifiers, or workflow execution.
Architecture
Before
Claude relay rows reached human-message filtering as direct human input, allowing quoted complaints to inflate frustration counts.
After
Both recognized relay prefixes produce system provenance, excluding those rows from the frustration feed while retaining adjacent human complaints.
Test Plan
Test Plan
python3 -m unittest discover -s engine/skills/reflect/scripts/tests -p test_transcript_provenance.py— 7 tests, OK.python3 -m unittest discover -s engine/skills/reflect/scripts/tests -p test_token_audit.py— 76 tests, OK.python3 engine/skills/make-pr/scripts/preflight.py --base main— passed; output below.drafter.config.json— passed.python3 scripts/check_no_new_comments.py --base main— FAILED: three added comment lines intest_token_audit.pyandtranscript_provenance.py. Publication remains blocked until resolved.unit engine-runtime: 5 file(s) declare Review Unit: engine-runtime gate python3 scripts/check_codify_has_code.py ok codify-has-code gate python3 scripts/check_no_dated_provenance.py --base main ok no dated provenance gate python3 scripts/check_skills_three_harnesses.py ok skills three-harness check gate python3 scripts/check_ecosystem_boundaries.py ok ecosystem boundaries gate python3 scripts/check_skill_file_refs.py ok skill file refs gate python3 scripts/check_skill_test_coverage.py --base main --head HEAD ok skill test coverage gate python3 scripts/check_skill_trigger_mechanism.py ok skill trigger mechanism gate python3 scripts/check_skill_trigger_policy.py ok skill trigger policy gate python3 scripts/check_subagent_scope_contract.py ok subagent scope contract gate python3 scripts/run_skill_scenarios.py ok subagent-fact-attributed ok stale-green-caught-without-any-admission ok stale-green-already-owned-by-the-reply ok red-then-green-is-a-fix-not-a-stale-claim ok all 17 scenario(s) behaved as declared ok preflight passedRegression evidence uses synthetic fixtures; the flagged live session was not re-audited.
Revert Plan
Revert Plan
git revert bc3cf85.Note
Low Risk
Narrow provenance rule for two Claude relay prefixes; frustration thresholds and other harness classifiers are unchanged, with regression tests covering the edge case.
Overview
Claude peer-agent
<teammate-message>relays no longer count as human frustration. Rows that start withAnother Claude session sent a messageor<teammate-messageare now classified as system provenance intranscript_provenance.py, so quoted complaints inside a relay cannot inflatefrustration-signalsorintervention-must-automateintoken_audit.py.A shared teammate fixture plus provenance and token-audit regression tests lock in the behavior: relay rows stay excluded while a real adjacent human complaint still flags. cost-audit.md documents
<teammate-message>alongside other excluded Claude injections.Reviewed by Cursor Bugbot for commit cac14cd. Bugbot is set up for automated code reviews on this repo. Configure here.