Repository navigation
Conversation
Claude writes the summary of a compacted conversation back into the transcript in the user role, marked `isCompactSummary`. `isHumanPromptEntry` filtered only `isMeta` and `isSidechain`, so every compaction entry counted as a turn the member took: the prompt count, and everything derived from it in Team Improvement, ran ahead of what the person actually typed (Tencent#1989). Read the flag and skip those entries. An entry without it, or with it false, keeps counting as before.
No other confident findings in the current diff. |
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.
Problem
Claude writes the summary of a compacted conversation back into the transcript in the user role, marked
isCompactSummary: true.isHumanPromptEntryfiltered onlyisMetaandisSidechain:So every compaction entry counted as a turn the member took, and the prompt count - plus everything Team Improvement derives from it - ran ahead of what the person actually typed. That is the "summaries" half of #1989.
Change
TranscriptEntrySchemareadsisCompactSummary, andisHumanPromptEntryskips an entry carrying it. An entry without the flag, or with itfalse, counts exactly as before.Scope, honestly
#1989 lists four surfaces; this PR takes the one that is a plain defect with no conflicting expectation:
isCompactSummaryisMeta(<system-reminder>,<task-notification>, interrupt marker)TRANSCRIPT_SYSTEM_PREFIXES, so nothing to do<command-message>,<command-name>,<command-args>)session-scoring.test.tspins those as the member's first prompt ("prints the /name args the member typed as the first prompt, not the skill body it loads"), and a/name argsline is typed input rather than injected context - worth a maintainer decision rather than a silent change hereevent_msg->item_completed(item.type == "UserMessage") and Hermesdisplay_kind/_compressed_summaryVerification
src/__tests__/dashboard-collector.test.ts: atype: userentry withisCompactSummary: trueis not a human turn, whilefalseand absent keep counting. It fails onmain(expected true to be false) and passes here.4 failed | 199 passedonmainand4 failed | 200 passedwith the change - the same four, all Windows-environment failures that do not involve this code (sums the model steps...,reads a session of the Antigravity app...,logs the session as one unpriced request..., and the#!/bin/shgit stub of#1387).npx tsc --noEmitclean;npm run lintreports the same 26 pre-existingteamai(family-facts)errors asmainon this checkout, none in the two files.npm run verify:worldrefuses on Windows (A world needs a POSIX shell; Windows is not supported. Say so in the PR instead.). This is a pure predicate on a parsed transcript line, covered by the unit above.Refs #1989 (the Codex/Hermes halves and the slash-command decision are separate).