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(mcp): cora.scan_finalize reports whole-directory coverage when the agent judged only some batches #685
In agent-as-reviewer mode the agent is expected to judge every batch, but nothing records or reports which batches were actually judged. A finalize call after judging a single batch returns a summary that reads as a full verdict, which can mislead the user or a downstream automation (the result is labelled advisory, but the numbers are not).
{ "files_scanned": 23, "total_issues": 59, "should_block": false, "judge": "agent",
"summary": "Scanned 23 files (14763 lines), found 59 issues. Judged by the calling agent (not by a cora-configured LLM).",
"note": "Judged by the calling agent: advisory ... The verdict covers only the input passed to this finalize call." }
"Scanned 23 files" is the file count of the directory, but the agent judged 3. The note says the verdict covers "only the input passed", yet should_block: false and files_scanned: 23 read as a clean result for all 23 files.
Proposal
Add an optional batches_judged: [int] input to scan_finalize (or infer from the findings' files if absent) and return batches_judged, total_batches, files_judged, files_total.
When coverage is partial, say so in the summary ("Judged 1/11 batches (3/23 files)") and set coverage: "partial"; consider forcing should_block to null/unknown instead of false for a partial run.
Optionally let scan_prepare embed a per-batch id into the fingerprint so finalize can tell which prepare calls were made.
Done when
The repro returns coverage: "partial" with 1/11 batches, and judging every batch returns coverage: "complete".
Activity
fix(mcp): report how much of the project a scan_finalize verdict cove…
chore(release): v0.20.0