Repository navigation
fix(#1515): sequant_run reports another run's issues and verdict when its own run log is missing — a runId lookup miss falls back to the time window - #1522
Merged
admarble merged 2 commits intoOct 19, 2026
Conversation
…run's result Entire-Checkpoint: b5c7957523a0
…sequant_run fallback response Entire-Checkpoint: 1c1f3305b301
admarble
deleted the
feature/1515-fix-mcp-sequant-run-reports-another-run-s-issues-a
branch
October 19, 2026 01:13
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
A
sequant_runcall whose own run log is missing now reports that fact. Before, it reported another run's issues and QA verdict as its own.resolveRunLog(src/mcp/tools/run.ts) accepts only the log carrying the captured runId. It retries the lookup 3 times at 200 ms for a log that is not on disk yet. After that it returnsnulland writes thelookup missline to the server's stderr. It never falls back to the time window.runLogMissing: true,requestedIssues, and anotethat names the runId and the requested issues. The note says the result is not a parsed log and that the summary counts come from the exit code only.docs/features/mcp-server.mddocuments the three new fields and the no-substitution rule. QA reported this as done, but it was missing; I added it in e447a28.Fixes #1515
Verification
npx vitest run src/mcp/tools/run.test.ts -t "captured runId miss never returns another run"→ 1 passed, 0 failed.-t "missing run log is reported in the result"→ 1 passed, 0 failed.rg -n 'Fell back to readLatestRunLog and returned the other-run log' src/mcp/tools/run.test.ts→ no output.run.test.tsfile → 101 passed.resolveRunLog("<runId with no file>", new Date()), with another run's log in the window, returnsnull. On main the same call returns that run's log (issues[1484]).Mutation-verified: AC-1 — removed the
return nullon a captured-runId miss so the time-window fallback runs again; src/mcp/tools/run.test.ts > resolveRunLog (#631 follow-up — Gap 2 / Gap 3) > captured runId miss never returns another run (#1515) failed (1 failed, 100 passed); restored.Mutation-verified: AC-2 — removed
runLogMissing: truefrom buildFallbackResponse; src/mcp/tools/run.test.ts > resolveRunLog (#631 follow-up — Gap 2 / Gap 3) > missing run log is reported in the result (#1515) failed (1 failed, 100 passed); restored.Not covered
capturedRunIdto the fallback response. That wiring is a single argument. The builder and the resolver each have their own tests.🤖 Generated with Claude Code