The plugin test suite has a critical structural flaw: all 11 test files re-implement handler logic locally instead of importing from the actual plugin code. This means tests validate their own copies, not the production code — bugfixes to plugins are invisible to the test suite.
Additionally, two plugins have zero test coverage: drift-detector.ts and changelog-generator.ts.
Tasks
Affected Files
.opencode/plugins/tests/test-*.mjs (11 files)
.opencode/plugins/ccgs-hooks.ts (may need to export handlers)
.opencode/plugins/drift-detector.ts (needs test file)
.opencode/plugins/changelog-generator.ts (needs test file)
package.json
Identified during comprehensive framework review on 2026-07-21
The plugin test suite has a critical structural flaw: all 11 test files re-implement handler logic locally instead of importing from the actual plugin code. This means tests validate their own copies, not the production code — bugfixes to plugins are invisible to the test suite.
Additionally, two plugins have zero test coverage:
drift-detector.tsandchangelog-generator.ts.Tasks
.opencode/plugins/tests/to import handlers from../ccgs-hooks.tsinstead of copying logicdrift-detector.ts(complex frontmatter parsing, section detection, severity assignment)changelog-generator.ts(at minimumparseConventionalCommits()and format generators)package.jsonwith a proper test script (currently"test": "echo \"Error: no test specified\" && exit 1")Affected Files
.opencode/plugins/tests/test-*.mjs(11 files).opencode/plugins/ccgs-hooks.ts(may need to export handlers).opencode/plugins/drift-detector.ts(needs test file).opencode/plugins/changelog-generator.ts(needs test file)package.jsonIdentified during comprehensive framework review on 2026-07-21