Repository navigation
Fix field-trial scan coverage and evidence clarity (5.1.4) - #125
Conversation
| churn.split('\n').filter(Boolean).forEach(f => { counts[f] = (counts[f] || 0) + 1 }) | ||
| const top = Object.entries(counts).sort((a, b) => b[1] - a[1]).slice(0, 8) | ||
| const testFiles = files.filter(f => /test|spec/i.test(f)) | ||
| const testFiles = files.filter(f => CODE_EXT.includes(path.extname(f)) && /test|spec/i.test(path.relative(cwd, f))) |
There was a problem hiding this comment.
🟡 Source names inflate test coverage
testFiles classifies any code path containing test or spec as a test. Files like latest.js falsely suppress hotspot warnings and inflate the test count.
Learn more
Test discovery currently searches for the character sequence test or spec anywhere in the relative path. This catches ordinary names such as latest.js, contest/router.js, and specification/parser.ts. The same loose match is also used by testCount, so both hotspot coverage and the test-landscape summary become inaccurate.
Example: A repository containing only src/latest.js reports one test file. If latest.js shares a basename with a hotspot, that hotspot can also lose its NO TEST NEIGHBOR warning despite having no test.
Recommended fix: Define one test-path predicate that recognizes conventional test directories and filename tokens, such as test/, tests/, __tests__/, *.test.*, *.spec.*, and language-specific _test or _spec suffixes. Use that predicate for both testFiles and testCount.
Was this helpful? React with 👍 or 👎 to provide feedback.
FDEOps scan omitted .mjs application and test files and could call that a clean scan. It now recognizes modern JavaScript/TypeScript module extensions, counts code tests relative to the repository, and states file and finding limits.
Meeting review separates unsaved proposals from existing delivery records. Fieldbook summaries say “reported result” so local technical evidence is not presented as measured customer value. Unbound handoff/readout exports explain the standalone skill path without requiring an unnecessary record.
Also removes duplicated repository guidance and a blanket check that could reject truthful attribution; existing third-party notices are preserved. Canonical handoff instructions and generated task copies remain synchronized. Version 5.1.4.
Validation: seven new regression cases, full repository check, fieldbook browser inspection, independent diff review and npm package-content audit. Private field-trial files are excluded from the repository and package.