You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(knowledge): video-digest close does not enforce the research gate, and the gate's docs disagree with its code #6814
agent-readyFully specified and briefed; eligible for autonomous pickup from the frontier.needs-triageNot yet classified. Floor until a type and one priority tier are set.
Severity: medium (E7 medium, E6 low; auditor severities, uncalibrated)
Readiness: agent-ready. Both findings were re-read in the plugin source; one change to the research gate covers both.
Summary
quality-gates.md lists check-research-complete.js exit 0 as a precondition for status: complete, but watch-state.js close runs only the outcome checks, none of which checks the research agenda, so a slice with pending agenda rows can close as complete. Separately, the gate's documentation counts a different directory than its code and the checklist allows an inline form the code rejects.
Failure scenario
Leave a research agenda row pending (or write findings inline in RESEARCH.md with no research/findings/*.md).
Run watch-state.js close <slice-dir> with the other outcome checks passing.
Expected: close refuses, per quality-gates.md:150-156.
Actual: close writes status: complete (code reading; nothing in extraction/ imports checkResearchComplete). Conversely, an operator who follows row 7.2 ("finding file or inline in RESEARCH.md") fails check-research-complete.js when run by hand.
Not reproduced end to end; a fixture that passes the other 23 outcome checks would confirm the close path.
Suggested fix (cheapest first)
Fix quality-gates.md:94 to research/findings/*.md, and drop "or inline in RESEARCH.md" and "optional" (or teach the gate an inline section form).
Add a research-complete check to check-watch-outcomes.js that calls checkResearchComplete, skipped when the watch ran with --skip-research; or add 7.5 to the blocking ticks.
A fixture test: a slice with one pending agenda row fails close.
Audit reference: plugin-quality audit run 20261010T195441Z, findings E7 and E6. Validated against main 28a5541cbb91f5ca0aeb3c361ebafbde4c0c0b41.
Thanks for the report. I understood: watch-state.js close only runs verifyWatchOutcomes (the check-watch-outcomes.js checks), and nothing in that check set calls check-research-complete.js, so a slice can close as status: complete with pending rows still in research-agenda.md, even though quality-gates.md lists that check as a precondition for close. Separately, quality-gates.md documents counting research-review/*.md findings while the code in check-research-complete.js counts research/findings/*.md, and watch-checklist.md row 7.2 allows inline findings in RESEARCH.md that the code doesn't accept. I confirmed both by reading the cited source lines directly.
The report notes it wasn't reproduced end-to-end with a fixture slice exercising the full close path (only code-reading), which would help confirm before a fix lands. I didn't find an exact duplicate; #6830 (offline eval coverage for video-digest) is related but proposes broader eval coverage rather than this specific gate-enforcement gap.
agent-readyFully specified and briefed; eligible for autonomous pickup from the frontier.needs-triageNot yet classified. Floor until a type and one priority tier are set.
Activity
github-actions commentedon Oct 10, 2026
Thanks for the report. I understood:
watch-state.js closeonly runsverifyWatchOutcomes(thecheck-watch-outcomes.jschecks), and nothing in that check set callscheck-research-complete.js, so a slice can close asstatus: completewithpendingrows still inresearch-agenda.md, even thoughquality-gates.mdlists that check as a precondition for close. Separately,quality-gates.mddocuments countingresearch-review/*.mdfindings while the code incheck-research-complete.jscountsresearch/findings/*.md, andwatch-checklist.mdrow 7.2 allows inline findings inRESEARCH.mdthat the code doesn't accept. I confirmed both by reading the cited source lines directly.The report notes it wasn't reproduced end-to-end with a fixture slice exercising the full close path (only code-reading), which would help confirm before a fix lands. I didn't find an exact duplicate; #6830 (offline eval coverage for video-digest) is related but proposes broader eval coverage rather than this specific gate-enforcement gap.
Automated triage. A maintainer reviews it.