Repository navigation
fix(#1297): PR body falls back to the placeholder when exec writes no "## Summary" heading, dropping exec's mutation markers and AC table - #1300
Merged
admarble merged 7 commits intoOct 4, 2026
Conversation
…as no Summary Entire-Checkpoint: c60a1951c977
Entire-Checkpoint: c37af128f2b8
… the re-appended marker Entire-Checkpoint: 73f0f508b967
3 tasks
Entire-Checkpoint: 0c057577dbc6
…y-gate-run mock gains composeExecSummary QA's last-iteration repro: the AC-table path capped at EXEC_SUMMARY_MAX_LENGTH with no comment guard, so a cut at offsets 3973-3975 dropped AC-1's marker. Both caps now share capImportedText. ready-gate-run.test.ts mocked worktree-manager without composeExecSummary, failing 9 cases. Entire-Checkpoint: efcff03b558a
3 tasks
…pr-body-falls-back-to-the-placeholder-when
…ere QA's parse sees it QA re-run finding: composeExecSummary de-duplicated against the Summary's fenced markers, which QA's code-stripped parseMutationMarkers ignores, so the body carried none. The seed now uses parseMutationMarkers. Entire-Checkpoint: be6a33fca918
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
The PR body no longer depends on exec writing a
## Summaryheading.composeExecSummary(src/lib/workflow/worktree-manager.ts) carries:SEQUANT_MUTATIONmarker found anywhere in exec's final output, fenced ones included, through a newparseMutationMarkersFromExecOutputinmutation-marker.ts.The markers sit outside the length cap, are de-duplicated against the Summary text, and are re-rendered through
renderMutationMarker.Cuts inside a marker: a cut that lands inside a marker leaves no dangling
<!--. Both caps (Summary and AC table) sharecapImportedText.Placeholder warning: the run warns when the body falls back to the placeholder (AC-3,
batch-executor.ts).Fixture: the real fix(run): status, PR-body QA note and MCP result use the first qa verdict — a looped AC_NOT_MET→NEEDS_VERIFICATION records ready_for_merge #1245 exec output, recovered from its session transcript, is the fixture:
src/lib/workflow/__fixtures__/exec-output/1245-fenced-markers.txt.Mutation-verified: AC-1 —
parseMutationMarkersFromExecOutputstopped reading fenced blocks; the verbatim #1245 fixture test failed (1 failed, 56 passed); restored.Runner fixes (fe14c52)
## Acceptance criteriaand no Summary, a cut at offsets 3973 to 3975 dropped AC-1's marker. The Summary path was already guarded (dd5c9ca8); the table cap had no guard. The new testAC-2esweeps cut offsets 3940 to 4010 on the table path. It fails without the fix and passes with it.ready-gate-run.test.tsmockedworktree-managerwithoutcomposeExecSummary. 9 cases failed, and no phase ran that file. The mock now includes it. All 7 test files that mockworktree-managerpass (133 tests).worktree-manager.build-pr-body.test.ts58/58. The other workflow tests (batch-executor,mutation-marker,ready-gate-run,src/mcp/tools/run) pass.tsc --noEmitand eslint are clean.sequant runtrailer, so the orchestrator stopped updating it. The runner restored this body. Filed as fix(exec): under the orchestrator, a loop exec rewrites the PR body itself (gh api PATCH), so later sequant updates are dropped as "edited by hand" #1302.QA re-run (qa-only) and runner fix (ae7c25c)
## Summarywas de-duplicated against the fenced copy, which QA's code-strippedparseMutationMarkersignores, so the body carried none.parseMutationMarkers. The new testAC-2ffails without the fix and passes with it.worktree-manager.build-pr-body.test.ts59/59.batch-executor,ready-gate-run,mutation-markerandsrc/mcp/tools/runtests: 273 passed.tscand eslint are clean.execSummary, which is empty because no exec pass ever produced a Summary, so it fell back to the placeholder. That state-fallback case goes away once this PR lands, becausebatch-executorstores the composed summary.Fixes #1297
🤖 Generated by
sequant run