Repository navigation
feat(#1200): mcp sequant_run result carries each issue's qa summary and findings - #1218
Merged
admarble merged 4 commits intoSep 29, 2026
Conversation
Entire-Checkpoint: 3af47a69f0aa
…-issue run under 64KB Entire-Checkpoint: 8d550897daa9
Entire-Checkpoint: 654e73a6c757
This was referenced Sep 29, 2026
…-sequant-run-result-carries-each-issue-s-q
admarble
deleted the
feature/1200-feat-mcp-sequant-run-result-carries-each-issue-s-q
branch
September 29, 2026 19:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RunToolIssueSummarygains optionalacMet/acTotal/gaps/findings/truncatedfields, read through from the qa phase's existingPhaseLog.summary(no schema change), for every verdict — not just success.capFindingscapsfindingsat 10 entries, withdescription/evidenceat 300 chars each.capGapsapplies the same limits togaps, which repeats the findings' descriptions (a QA AC_NOT_MET finding: with only findings capped, the full text rode along ingaps). Any cap setstruncated: true.enforceResponseSizeLimitnow does more than trimrawOutput/error. If the response is still over 64KB (a many-issue run), it dropsfindings, thengaps, from the last issue backward, and setstruncated.acMet/acTotal/verdict always survive.Pre-PR AC Verification
src/mcp/tools/run.tsbuildStructuredResponse; tests insrc/mcp/tools/run.test.ts—describe("buildStructuredResponse — qa summary (#1200 AC-1)"), parametrized over all four verdictstruncatedflag, result stays under the MCP size limitsrc/mcp/tools/run.tscapFindings/capGaps/enforceResponseSizeLimit; tests indescribe("buildStructuredResponse — findings capping (#1200 AC-2)"), including a 12-issue run asserted<= 64 * 1024bytesTest plan
npm run buildpassesnpm run lintpasses (0 errors)npx vitest run src/mcp/tools/run.test.ts— 95 passed (85 pre-existing + 10 new), runner re-run after the QA fixnpx tsc --noEmitclean;npx eslint src/mcp/tools/run.tscleanMutation checks (runner, after QA fix)
Mutation-verified: AC-2 —
capGaps(qaSummary.gaps)replaced with a passthrough;caps gaps by count and lengthfailed (1/95); restored.Mutation-verified: AC-2 — the findings/gaps drop loop in
enforceResponseSizeLimitemptied;keeps a many-issue run … under the 64KB limitfailed (1/95); restored.Pre-PR Confidence Check
Closes #1200
Refs #1203
🤖 Generated with Claude Code