issue-307: Surface the posted comment in the run summary and CLI outcome line #317
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/issue-307/surface-the-posted-comment-in-the-run-summary-and"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
307: Surface the posted comment in the run summary and CLI outcome line
Closes #307 — 307.
Generated in 12m 25s.
Review findings
The issue context confirms the picture: issue #307 depends on #306, but #306's merged PR already delivered both §8 surfaces at base. Let me verify the exact current text before editing, and check the base state of the test file section.Now applying the fixes. Medium (revert the ungrammatical article trim, keeping both surfaces consistent) and Low (strengthen the negative assertion so it guards both wordings):The diff is now behavior-neutral vs base (comments + a hardened test only), which is the honest state given #306 already delivered the §8 surfaces. Now re-run the gates. Let me check the scripts first:
typecheckshows errors in test files I didn't touch. Let me check whether those are pre-existing at the base (the reviewer's gate wasnpm run build, which usestsconfig.build.json):The same typecheck errors occur at the pre-existing HEAD, so they're not introduced by my change. Let me confirm they exist at base too, and that my edited files specifically are clean:99 typecheck errors at base — that script is red repo-wide independent of this branch (not a gate used by the review). Let me get back onto the feature branch:Back on the feature branch with edits intact. Now run the actual gates (build + lint), then unit tests:Build and lint pass. Now unit tests — first the touched file, then the full suite:All gates pass. Let me also run prettier check on the changed files as the reviewer did:All gates pass. My remediation is complete — here is the annotated findings document.Review Findings — 307
Summary
Gates run after remediation:
npm run build(tsc) PASS,npm run lintPASS,npm testPASS (148 files / 2128 tests),npx prettier --checkon the changed files PASS, focusedrunCli.test.tsPASS (109 tests).Fixed in this pass:
' — commented on the issue'suffix inrunCli.tsand the matching expectation inrunCli.test.ts, so the CLI outcome line no longer reads clipped and stays consistent with the run-summary surface ("Commented on the issue explaining why no code changes are needed"). The behavior of the branch vs base is now comment-only inrunCli.ts.runCli.test.tstonot.toContain('commented on'), so a regression appending either article wording (— commented on issueor— commented on the issue) in the no-marker path would fail the test.Remaining:
a971a96(the #306 merge) already ships both §8 surfaces (buildNoCodeChangeSummary+ the CLI suffix), so #307's deliverable was pre-empted by its dependency. This branch is now behavior-neutral vs base (explanatory comments inrunBatch.ts/batchManifest.ts, an explanatory comment inrunCli.ts, and the hardened negative assertion). Whether to close #307 as a no-op, revert the branch, or add a further surface is a product call outside the remediate pass, so I did not unilaterally wipe the branch or invent new behavior.Critical
High
src/orchestrator/services/runPipeline.ts:255-257("Commented on the issue explaining why no code changes are needed" / "…already posted previously (skipped duplicate)") and the CLI outcome line already appended a— commented on the issuesuffix at base, both introduced and tested by #306 (merged ina971a96). This branch only trims "the" from the existing suffix, adds two explanatory comments (runBatch.ts,batchManifest.ts), and adds one negative assertion — no new surfacing behavior is delivered. Suggested fix: confirm with the issue owner whether #307 is already satisfied by #306's merged work; if so, drop/revert this cosmetic-only change and close #307 as a no-op rather than merging it as the issue's implementation. If a genuine gap remains, this diff should add the missing surface rather than reword an existing one.Medium
' — commented on the issue'→' — commented on issue'), making the outcome line read "…work: flipped a feature flag — commented on issue", which is clipped/ungrammatical and now inconsistent with the same feature's run-summary surface, which keeps the grammatical "Commented on the issue explaining why no code changes are needed" (runPipeline.ts:256). Both surfaces are printed adjacently in the same sink output for a real no-code-change run. Suggested fix: keep' — commented on the issue'inrunCli.ts:1281and this test expectation (the plan's— commented on issueis illustrative wording, not a contract), or deliberately align both surfaces to the same phrasing.Low
not.toContain('— commented on issue')is under-specified: it only guards the exact new wording. A regression that appended the pre-existing article form'— commented on the issue'in the no-marker path would pass this test (the substring does not match because of the inserted "the "). Suggested fix: assert the full expected outcome line (e.g.toContain('Outcome: no-code-change … — work: flipped a feature flag')without any suffix) or usenot.toContain('commented on')for a stronger guard.