Skip to content

[auto] session-mine claude 9714ce38-ef0 i22 n2 - #381

Merged
EdbertChan merged 3 commits into
mainfrom
plan/auto-session-mine-claude-9714ce38-ef0-i22-n2
Sep 12, 2026
Merged

[auto] session-mine claude 9714ce38-ef0 i22 n2#381
EdbertChan merged 3 commits into
mainfrom
plan/auto-session-mine-claude-9714ce38-ef0-i22-n2

Conversation

@EdbertChan

@EdbertChan EdbertChan commented Sep 10, 2026

Copy link
Copy Markdown
Owner

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.
  • Repository PR-body validator with changed files, diff, and drafter.config.json — passed.
  • python3 scripts/check_no_new_comments.py --base main — FAILED: three added comment lines in test_token_audit.py and transcript_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 passed

Regression evidence uses synthetic fixtures; the flagged live session was not re-audited.

Revert Plan

Revert Plan
  • Safe to revert? Yes; the earlier false-positive classification would return.
  • Revert command: git revert bc3cf85.
  • Post-revert steps: Rerun the two test commands above.
  • Data migration? No.

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 with Another Claude session sent a message or <teammate-message are now classified as system provenance in transcript_provenance.py, so quoted complaints inside a relay cannot inflate frustration-signals or intervention-must-automate in token_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.

edbert-bot and others added 3 commits September 10, 2026 11:57
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>
…e-cd16761c — Reflect on flagged claude session 9714ce38-ef0
@cursor

cursor Bot commented Sep 10, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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)

@mergify

mergify Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@EdbertChan
EdbertChan merged commit 1543ccd into main Sep 12, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants