Repository navigation
fix: exclude test files from CFP data movement counting - #129
Merged
Merged
Conversation
Live validation showed that test assertions (expect() calls, assertions) were being counted as E/X data movements. Added explicit instruction to CFP_SYSTEM_PROMPT to skip test files and their contents. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
PR AnalysisSize: small (based on production code) Commit AnalysisTotal Commits: 1
Commit Details7fea03f Ken Judy (8/31/2026) Test CoverageTest-to-Production Ratio: 4.00:1 (no calibrated target for this ratio; reported descriptively) DORA Capability AssessmentArchetype: harmonious-high-achiever
|
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
--history squashedagainst this repo) showed that a test-only commit (bbc4f0ec, 26 lines of test assertions) received CFP 3 (E:2, X:1) becauseexpect()and assertion calls look like data movements to the modelCFP_SYSTEM_PROMPTinstructing Claude to ignore test files and their contents when counting E/X/R/W movementsinstructs Claude to ignore test files when counting data movementsTest plan
__tests__/claudeAnalysis.test.js-- new test verifies prompt contains test-file exclusion instructionGenerated with Claude Code