Repository navigation
feat(#313): Add batch-level integration QA — sequant merge --check - #324
Merged
admarble merged 4 commits intoFeb 22, 2026
Merged
Conversation
Add `sequant merge --check` command for post-run integration verification. Phase 1 (--check): combined branch testing, template mirroring, cross-issue file overlap detection. Phase 2 (--scan): residual pattern detection from diffs. Includes CLI registration, structured report output (markdown/JSON), exit codes (0=pass, 1=warn, 2=fail), and 18 unit tests.
28 tasks
- Gap 1: Classify overlaps as additive vs conflicting using git diff hunk analysis (rangesOverlap helper) - Gap 2: Refactor getChecksToRun with phase arrays and Phase 3 stub comments; export for testing - Gap 3: Add fetchIssueTitle fallback via gh CLI when no run log - Gap 4: Add formatBranchReportMarkdown for per-PR scoped reports; postReportToGitHub now posts only relevant findings per PR - Gap 5: Add 30 unit tests covering getExitCode, getChecksToRun, buildResult, extractPatternsFromDiff, rangesOverlap, findMostRecentLog, formatBranchReportMarkdown - Gap 6: Add benchmark documentation with actual results from batch b4030aa9
- Fix remote branch assumption: add getBranchRef() helper that returns local ref for worktree-only branches instead of always using origin/ - Fix extractPatternsFromDiff tests: pass BranchInfo objects instead of raw strings, add issueNumber propagation assertions - Fix batch verdict computation: propagate batch-level check errors to batchVerdict (prevents false READY when combined-branch-test fails) - Add false positive rate analysis to benchmark doc (AC-7 target: <10%) - Fix benchmark doc date typo (2025 → 2026)
The finally block previously checked out 'main' which fails in worktrees (main is checked out in the main repo). Now saves the current branch before creating the temp branch and restores it in the finally block.
admarble
deleted the
feature/313-feat-run-add-batch-level-integration-qa-sequan
branch
February 22, 2026 01:28
This was referenced Oct 16, 2026
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
sequant mergecommand with--check,--scan,--review,--all, and--postflags for batch-level integration QA--check): combined branch testing, template/source mirroring check, cross-issue file overlap detection--scan): residual pattern detection — extracts removed patterns from diffs and greps codebase for remaining instancesAC Coverage
Test plan
npm run buildpassesnpm run lintpasses (0 warnings)npm testpasses (18 merge-check tests + all existing tests)npx sequant merge --checkagainst a batch with active worktreesCloses #313