Skip to content

Fix field-trial scan coverage and evidence clarity (5.1.4) - #125

Merged
suboss87 merged 2 commits into
Mainfrom
fix/field-trial-clarity
Sep 16, 2026
Merged

suboss87 merged 2 commits into
Mainfrom
fix/field-trial-clarity

Conversation

@suboss87

@suboss87 suboss87 commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

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.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment thread bin/fde.js Outdated
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)))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@suboss87
suboss87 merged commit 6afa7d0 into Main Sep 16, 2026
1 check passed
@suboss87
suboss87 deleted the fix/field-trial-clarity branch October 2, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant