Skip to content

feat(run): review by exception — a computed "Read first" PR comment partitions the diff into residue (nothing vouches for it), tests by seam class, and AC-explained hunks #1520

Closed

Description

@admarble

Epic: graph-2026-10-review-surface Tier: judgment Execution: split (unit evidence from phases; one testbed PR read by the runner) Blocked by: #1507 (file scope: the post call lands after the batch-executor split)

Problem

Agent PRs are merged fast here (median 3.7 h open-to-merge over the last 100 merged PRs) against a median fix of 132 test lines and 45 source lines, at roughly 55 issues a week. Reading every line is not possible at that volume, and the data says where the misses are: re-patches of the same artifact (~78% in the 2026-09-30 retrospective), the four workflow files that took 40 of 83 fixes, tests that mock the one subprocess seam or assert markdown wording, and errors dropped by policy. The per-AC verdict answers "did it do what I asked" and nothing else. The GTM brief's cold reader also named the constraint: the audience distrusts summaries written by the author of the code.

So the reviewer needs a computed partition of the diff, posted where the merge decision is made, with the residue first:

  1. Residue — hunks in files no AC's evidence cites; hot files (≥ 3 fix commits in 28 days, from git log); deleted or weakened tests (--numstat on test paths); tautology-detector hits (--json); size over the budget; later, the run's suppressed-error count (feat(run): a dropped error leaves a trace — noteSuppressed() counts into the run log, batch-executor's 25 silent catches converted #1504). Each line carries the command that produced it. The human reads this in full.
  2. Tests — each test file in the diff with its seam class (real dependency / child_process or module mock / prose gate reading SKILL.md) and whether a SEQUANT_MUTATION record exists for it (parseMutationMarkers). A mock of a type the project does not own is flagged.
  3. Explained — files that an AC's declared Evidence: (feat(spec/qa): explicit Evidence: clause on ACs — declared verification replaces keyword inference #938) or verdict line names, with the AC id. Sampled, not read.

Attribution is a parse, not a model: an AC "explains" a file only when its evidence clause names that path, test file or command whose arguments name it. Measured today over the 80 most recently closed issues: 258 ACs, 257 with an Evidence: clause, 149 (58%) name a file or command. The rest explain nothing, so their hunks fall into residue by default. Residue is the conservative default; explained is earned.

Decisions

ID Decision Rejected alternative
R-1 Posted as a PR comment through PlatformProvider.postPRComment, the path the merge-check report already uses editing the PR body's top (the exec skill writes the body; the edit needs the gh api PATCH path and "first thing seen" is GitHub's ordering, not ours) — follow-up after the freeze
R-2 Unattributed → residue. A file is explained only by an AC whose evidence names it heuristics or a model guessing which AC a hunk serves (the author-distrust constraint; the same-model blind spot)
R-3 Every line is computed and shows its command; no narrative sentences a generated summary (the brief: "summaries written by the thing that wrote the diff")
R-4 Sources are in-repo: git log, git diff --numstat, tautology-detector-cli --json, parseMutationMarkers, the issue body's Evidence: clauses requiring accretion (personal tooling; cited, never required, as in #1501 D-C)
R-5 Order: Residue, Tests, Explained, then a link to the AC verdict comment AC table first (it answers the question the reviewer already trusts)

Acceptance Criteria

  • AC-1: The attribution rate is measured by a committed script before the partition ships, and recorded on this issue. Evidence: npx tsx scripts/qa/ac-attribution-rate.ts --closed-since 2026-09-20 --json | jq -e '.acs > 0 and (.rate | type == "number")' > /dev/null && echo ok → ok (58% at filing, 149 of 258; the number is reported, not gated, because R-2 makes unattributed ACs residue)
  • AC-2: The partition is a pure function of diff + issue body + repo history. Evidence: npx vitest run src/lib/workflow/review-residue.test.ts → ≥ 6 passed, 0 failed (fixture: a diff touching 5 files, an issue body whose AC-1 evidence names 2 of them → 2 explained, 3 residue; a hot file is flagged from a fixture git log; a deleted test line is flagged from --numstat; a child_process mock is classed mock; a SKILL.md reader is classed prose; a file with a mutation record is marked; an AC with no path explains nothing)
  • AC-3: Every residue and test line carries its producing command. Evidence: npx vitest run src/lib/workflow/review-residue.test.ts -t "command" → ≥ 1 passed, 0 failed (every line under ## Residue and ## Tests matches /[^]+`/)
  • AC-4: Every PR the orchestrator opens gets the comment after the QA phase, once per PR. Evidence: npx vitest run src/lib/workflow/review-residue.post.test.ts → ≥ 2 passed, 0 failed (a fake PlatformProvider records one postPRComment whose body starts ## Read first; a second QA iteration does not post a second one)
  • AC-5: On a real run the comment is present and first (runner, testbed). Evidence: gh pr view "$PR" --json comments --jq '[.comments[].body | select(startswith("## Read first"))] | length' → 1 where $PR is the testbed PR the runner names on this issue
  • AC-6: The outcome is measured, lagging and confounded, over the 28 days after the first release that carries it. Evidence: npx tsx scripts/qa/residue-outcomes.ts --since <release date> --json | jq -e '.withResidue.total >= 0 and .withResidue.commentedBeforeMerge >= 0 and .emptyResidue.total >= 0 and .emptyResidue.commentedBeforeMerge >= 0' > /dev/null && echo ok → ok (null result named: a residue nobody reads changes nothing, and this number will show it)
  • AC-7: No skill-directory edits. Evidence: git diff --name-only $(git merge-base origin/main HEAD)..HEAD | grep -cE '^(plugin/|\.claude/skills/|templates/skills/)' → 0 (constraint)
  • One AC above is classified as a gate test by isGateTestEvidence (the fixture-based AC-2); the PR body carries its SEQUANT_MUTATION record (remove the path from the fixture's AC-1 evidence → the "2 explained, 3 residue" case fails; restore).
  • AC-8: A public reference page explains the three sections and their commands. Evidence: test -f docs/reference/review-residue.md && grep -cE '^## (Residue|Tests|Explained)' docs/reference/review-residue.md → 3

Prior fixes / producers

May touch

src/lib/workflow/review-residue.ts (new), review-residue.test.ts, review-residue.post.test.ts (new), the one post call after the QA phase (in batch-executor.ts after #1507, or a sibling module it calls), scripts/qa/ac-attribution-rate.ts (new), scripts/qa/residue-outcomes.ts (new), docs/reference/review-residue.md (new), CHANGELOG.

Non-Goals

Done when

Every PR the orchestrator opens carries one ## Read first comment whose residue a reviewer can read in full, and the outcome script exists to tell us, a month later, whether anyone did.

Activity

  1. added
    enhancement
    graph-2026-10-review-surface
    on Oct 19, 2026
  2. admarble commented on Oct 24, 2026

    @admarble
    ContributorAuthor

    Runner context for the phases (posted 2026-10-24 before launch; main is 683ce66e1, #1507 and #1508 are merged).

    Where things are now

    Constraints for exec

    • Commit at each file boundary (roughly every 10 minutes). The orchestrator has a 30-minute no-progress watchdog and exec emits no progress events, so a kill loses everything since the last commit.
    • Run targeted test files in the foreground with a timeout (npx vitest run <file>); do not start the full suite, and never in the background.
    • No edits under plugin/, .claude/skills/, templates/skills/ (AC-7). No Co-Authored-By, no session links in commits or the PR body.
    • AC-2 is a gate test. The PR body must carry the record with the test FILE PATH first: <!-- SEQUANT_MUTATION: {"ac":"AC-2","mutation":"<what you removed from the fixture>","failedTest":"src/lib/workflow/review-residue.test.ts > <describe> > <case>"} --> plus the prose line Mutation-verified: AC-2 — ...; ...; restored. Actually perform the mutation and restore before writing it.
    • fix(run): the PR body's imported exec text is cut at 4,000 characters with no marker — #1577 and #1578 both ended mid-word and read as complete #1582 is open: the exec text imported into the PR body is cut at 4,000 characters with no marker. Keep the exec summary short and put the mutation record near its top.
    • AC-1 says the rate is "recorded on this issue": after the script exists, run it and post its JSON output as a comment here.
    • AC-6's script must run today with --since <date> and print the four fields with zeros when no release carries the feature yet.

    Runner-owned, leave unchecked

    • AC-5 (the testbed PR): the runner runs the testbed on the PR's final head and names the PR here. Do not try to satisfy it in the phases.
  3. admarble commented on Oct 24, 2026

    @admarble
    ContributorAuthor

    Complexity: Standard (8 ACs, 5 directories)

    AC Quality Check

    lintAcceptanceCriteria: all 8 pass. Each AC has one line and an Evidence: clause. Run against main (683ce66e1): AC-1, AC-2, AC-3, AC-4, AC-6 and AC-8 fail today because the files do not exist. AC-7 passes today because it is a constraint, which is expected. AC-5 belongs to the runner. isGateTestEvidence classifies only AC-2 as a gate test, as the issue says.

    Scope Assessment

    Non-Goals: present (no terminal, status or mod rendering; no PR-body placement; no narrative; no skill-directory edits; no accretion requirement).

    Metric Value Status
    Feature count 1 (partition + post) + 2 scripts + doc ⚠️
    AC items 8 ✅
    Directory spread 5 (src/lib/workflow, src/lib/workflow/platforms, scripts/qa, docs/reference, root) ⚠️

    Verdict: ⚠️ SCOPE_WARNING. This turns on the quality loop. Splitting is not needed: the two scripts are small and share the parse.


    Acceptance Criteria

    • AC-1 (Integration). scripts/qa/ac-attribution-rate.ts reads closed issues, parses their ACs and counts the ACs whose evidence names a path or command. It prints {acs, attributed, rate}. Exec runs it and posts the JSON on feat(run): review by exception — a computed "Read first" PR comment partitions the diff into residue (nothing vouches for it), tests by seam class, and AC-explained hunks #1520. Assumption: listClosedIssuesSync does not return body, so it needs a --closed-since variant that does (see Plan 1.1).
    • AC-2 (Unit, gate). The 7 fixture cases from the issue, run through a pure buildReviewResidue(input) with no I/O.
    • AC-3 (Unit). A command case asserts that every line under ## Residue and ## Tests matches /`[^`]+`/.
    • AC-4 (Unit). Fake PlatformProvider: a QA→loop→QA run records exactly one postPRComment whose body starts with ## Read first.
    • AC-5 (Runner, testbed). Leave unchecked.
    • AC-6 (Integration). scripts/qa/residue-outcomes.ts --since <date> --json prints the four counters. Each is 0 today.
    • AC-7 (Constraint). No path under plugin/, .claude/skills/ or templates/skills/.
    • AC-8 (Unit/grep). docs/reference/review-residue.md has ## Residue, ## Tests and ## Explained.

    Implementation Plan

    Phase 1: Inputs and provider (commit)

    1. github.ts: add listClosedIssuesWithBodySync(since) and listMergedPRsWithCommentsSync(since) (number, mergedAt, body, comments{body,createdAt}). Each needs captured fixtures for FakeGitHubProvider (ADR-0019). The health metric ghCallFilesOutsideProvider covers scripts/, so neither script may spawn gh itself.

    Phase 2: Pure partition (commit per file)

    1. Create src/lib/workflow/review-residue.ts.
      • Input: { numstat, testFileSources, issueBody, fixLog, tautology, mutationMarkers, verdictRef }. Every field is text or a parsed value; the function does no I/O.
      • Attribution: parseAcceptanceCriteria(issueBody). For each AC, pull path-shaped tokens out of evidence, plus the arguments of any command in it, and match them against the diff paths. An AC with no path explains nothing (R-2).
      • Hot files: git log --since=28.days --format=%s --name-only, keeping commits whose subject starts with fix; a file with 3 or more counts as hot.
      • Weakened tests: in --numstat for test paths, deletions greater than additions, or the file was deleted.
      • Test seam classes: mock for vi.mock("child_process"|"node:child_process") or any vi.mock; prose when the test reads SKILL.md; real otherwise. A vi.mock of a bare package specifier gets the flag "type not owned".
      • Mutation records: parseMutationMarkers, matching on the failedTest file prefix.
      • Output: renderReadFirst() emits ## Read first, then ## Residue, ## Tests, ## Explained, then a link to the verdict, in R-5 order. Every residue and test line ends with its command in backticks. Last comes a <!-- SEQUANT_READ_FIRST: {"pr":N,"commit":"…"} --> marker.
      • Keep every function at or under 200 counted lines (refactor(workflow): split run, ensureWorktree, executePhaseWithRetry and executePhase to ≤ 200 counted lines; max-lines-per-function ratchet for src/lib/workflow #1508 ratchet).
    2. review-residue.test.ts: the AC-2 cases and the AC-3 command case.

    Phase 3: Collect and post (commit)

    1. collectReviewResidueInput(worktreePath, base) in the same module, or a sibling review-residue.collect.ts. It runs the git commands, the library form of the tautology detector (src/lib/test-tautology-detector.ts) and reads the test file sources. The rendered line still names the CLI command (npx tsx scripts/qa/tautology-detector-cli.ts --json).
    2. postReadFirstComment(provider, prNumber, body). It reads getIssueComments(String(prNumber)); GitHub PR comments are issue comments. If any comment body starts with ## Read first or carries the marker, it skips. Otherwise it posts with postPRComment. A failure is logged through warn and never fails the run. That is the fix(platforms): PlatformProvider has no error contract — postPRComment is still unchecked and the ready gate's report-post catch is empty (#1312 follow-up) #1315 contract, the same one postQaVerdictComment follows.
    3. Call site: deliverIssueBranch in batch-executor.ts, right after openOrUpdatePR succeeds. That point runs after the last QA iteration, on both the create path and the update path (qa-only re-run). Inject provider through env.ctx.services so the test passes a fake. review-residue.post.test.ts covers the AC-4 cases: one post; a second QA iteration does not post again; and a re-run where the comment already exists does not post again.

    Phase 4: Scripts, docs, ADR (commit each)

    1. scripts/qa/ac-attribution-rate.ts (AC-1) reuses the attribution function from step 2, so the rate measures the same parse that ships. scripts/qa/residue-outcomes.ts (AC-6) splits merged PRs into withResidue and emptyResidue by the marker comment. commentedBeforeMerge counts PRs where a human (non-bot) comment came after the Read-first comment and before mergedAt.
    2. docs/reference/review-residue.md, a CHANGELOG entry, and docs/adr/0021-review-residue-read-first.md (see Design Review).

    Design Review

    1. Where it belongs. The pure partition lives in src/lib/workflow/review-residue.ts. Batch-executor gets one call site and nothing else, so batch-executor.ts does not grow past what refactor(workflow): split runIssueWithLogging (1,620 lines) into stage functions of ≤ 200 counted lines, behaviour-preserving #1507/refactor(workflow): split run, ensureWorktree, executePhaseWithRetry and executePhase to ≤ 200 counted lines; max-lines-per-function ratchet for src/lib/workflow #1508 split.
    2. Simplest correct approach. Attribution is file-level, not hunk-level. Hunk-level adds nothing under R-2, because a file an AC names explains all of its hunks. Rejected: posting inside the QA loop (recordLoopPhaseOutcome, beside postQaVerdictComment). The PR does not exist yet during QA on a first run; openOrUpdatePR runs later, in deliverIssueBranch. A post there would have no PR to target.
    3. Pattern and how often it was re-patched. This is the "orchestrator posts a receipt" pattern: bug(run): orchestrated 'sequant run --phases qa' re-run computes a fresh verdict but never posts it, contradicting the stale comment left visible #964, fix(run): sequant run has two PR producers — exec opens the PR itself and createPR returns it untouched, dropping the QA note, ready-gate report and summary #1247, 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 and fix(#1311): drivers join agent text on line boundaries, so exec's ## Summary reaches the PR body #1340 (4 prior fixes). The class failure has been a receipt that misses one path. The plan fixes the class in three ways: (a) one call site that both the create and update paths pass through; (b) dedup by reading the PR, not by in-memory state, so it survives re-runs; (c) AC-4 tests the re-run case. This is not a divergence: the issue's lever is the same as the review's.
    4. Senior challenge. "Why not reuse getGitDiffStats?" Reuse it for numstat. Hot files and seam classes need the raw text inputs to keep the partition pure, so the collector gathers those separately. "Why not match evidence against filenames only?" Commands like npx vitest run X name X as an argument, and the issue counts those.
    5. Producers and consumers. PR comments today come from merge-check/report.ts:320 (postPRComment) and the ready-gate report. The QA verdict goes to the issue, not the PR, through postComment. This change adds a third PR producer through the same provider method. The consumers of the new marker are residue-outcomes.ts and the dedup step in step 5, so there is one producer and two consumers, and no parity test is needed. ADR required: the post site and the dedup choice (step 6 vs the QA loop) are a design choice. Record them in docs/adr/0021-*.

    Feature Quality Planning


    Open Questions

    1. Size budget for residue. No setting exists. Recommendation: a constant, 400 changed non-test lines (about 9× the median fix of 45), shown with its git diff --numstat command. If this is wrong, the threshold is cosmetic; it is easy to move to settings later.
    2. Link to the AC verdict. postComment returns void, so no comment URL is available. Recommendation: link to #<issue> and name the SEQUANT_QA_VERDICT commit. If this is wrong, the reviewer clicks once more.
    3. Suppressed-error count (feat(run): a dropped error leaves a trace — noteSuppressed() counts into the run log, batch-executor's 25 silent catches converted #1504). The issue says "later". Recommendation: leave it out, with no placeholder line.
    4. "Fix commit" definition. Recommendation: conventional fix type (^fix(\(|:)). If this is wrong, hot files come out over- or under-counted. The fixture covers the rule.

    Recommended Workflow

    Phases: spec → testgen → exec → qa
    Quality Loop: enabled
    Reasoning: AC-2, AC-3 and AC-4 declare unit-test evidence, so testgen stubs them. SCOPE_WARNING and the 4-fix receipt class turn on the loop. AC-5 belongs to the runner.

    Label Review

    Current: enhancement, graph-2026-10-review-surface. Recommended: add planned. No other change.

  4. added
    planned
    on Oct 24, 2026
  5. admarble commented on Oct 24, 2026

    @admarble
    ContributorAuthor

    AC-1 attribution rate, measured by the committed script on branch feature/1520-feat-run-review-by-exception-a-computed-read-first (2026-10-24):

    npx tsx scripts/qa/ac-attribution-rate.ts --closed-since 2026-09-20 --json

    {
      "closedSince": "2026-09-20",
      "issues": 215,
      "acs": 622,
      "withEvidence": 481,
      "attributed": 346,
      "rate": 0.556
    }

    attributed counts ACs whose Evidence: clause names at least one path, bare or as a command argument, using the same evidenceTargets parse the Read-first comment uses. 346 of 622 ACs (55.6%) over 215 issues. At filing the issue measured 58% (149 of 258) over 80 issues. Reported, not gated (R-2).

  6. admarble commented on Oct 24, 2026

    @admarble
    ContributorAuthor

    QA Verdict: AC_NOT_MET

    AC coverage: 6/8 met

    Gaps:

    • AC-4 says every PR the orchestrator opens gets the Read-first comment, but PRs whose run ends with QA at AC_NOT_MET never get it, and the ADR and reference page claim they do
    • No test covers the post path on a run where QA fails
    • A qa-only re-run renders mutation record: none for every test even when the PR body carries SEQUANT_MUTATION markers; the line cites gh pr view --json body, which the code never reads
    • The prose seam class matches any mention of SKILL.md, not a test that reads one
    • The required test check has not reported yet
  7. added a commit that references this issue on Oct 26, 2026
  8. admarble commented on Oct 26, 2026

    @admarble
    ContributorAuthor

    QA Verdict: AC_MET_BUT_NOT_A_PLUS

    AC coverage: 7/8 met

    Gaps:

    • Required test check has not reported for b595737
    • AC-5 real-run presence not yet verified
    • scripts/ changes lack /verify evidence
    • PR-body mutation-marker merge has no test
    • resolveReadFirstPR state-manager fallback has no test
    • Hot-file count includes the PR's own fix commits
    • Tautology residue command does not exist in non-sequant repos
  9. added a commit that references this issue on Oct 26, 2026
  10. admarble commented on Oct 26, 2026

    @admarble
    ContributorAuthor

    Execution Verification (runner, 2026-10-25, PR #1587 head 2a5a5f7bd)

    Both committed scripts run from the branch worktree with the AC's own flags; outputs verbatim.

    npx tsx scripts/qa/ac-attribution-rate.ts --closed-since 2026-09-20 --json

    {
      "closedSince": "2026-09-20",
      "issues": 215,
      "acs": 622,
      "withEvidence": 481,
      "attributed": 346,
      "rate": 0.556
    }

    npx tsx scripts/qa/residue-outcomes.ts --since 2026-10-24 --json

    {
      "since": "2026-10-24",
      "prsMerged": 1,
      "withResidue": {
        "total": 0,
        "commentedBeforeMerge": 0
      },
      "emptyResidue": {
        "total": 0,
        "commentedBeforeMerge": 0
      }
    }

    Their tests: npx vitest run scripts/qa/ac-attribution-rate.test.ts scripts/qa/residue-outcomes.test.ts → 2 files, 6 passed. AC-1's jq predicate and AC-6's jq predicate both print ok on these outputs.

    Fix commits after QA 1 and QA 2: b5957373a (post on every verdict; PR-body mutation records; #1566 prose rule) and 2a5a5f7bd (hot files counted up to the base). AC-5's testbed run is in progress on ad-motion #285 (run 5) with this head's build; its result follows here.

  11. admarble commented on Oct 26, 2026

    @admarble
    ContributorAuthor

    AC-5 evidence (runner, 2026-10-25)

    Testbed PR: admarble/ad-motion#290, opened by sequant run 285 --phases spec,exec,qa --force --full-qa on PR #1587's head 2a5a5f7bd (dist built from that commit; ad-motion #285 "(run 5)", reset before the run: no branch, no comments, no planned, .sequant snapshot restored). Run: spec 28 s, exec 33 s, qa 58 s, 1 passed; suppressed 12/other, as in runs 3 and 4.

    PR=290; gh pr view "$PR" --json comments --jq '[.comments[].body | select(startswith("## Read first"))] | length' → 1

    Order check (.comments | to_entries[]): index 0 is the ## Read first comment (2026-10-26T03:31:21Z); it is the only comment on the PR.

    The comment's sections: Residue none with its git diff --numstat command; Tests no test files in the diff with its command; Explained docs/golden-run.md — AC-1, AC-2; the verdict link; the SEQUANT_READ_FIRST marker {"pr":290,"commit":"720f176"}. PR #290 is closed unmerged (testbed; never merge). Run log kept outside the repos as run-2026-10-26T03-29-06-58af4bd3-....json.

  12. added 2 commits that reference this issue on Oct 26, 2026
  13. admarble commented on Oct 26, 2026

    @admarble
    ContributorAuthor

    AC-5 evidence, final head (runner, 2026-10-25)

    Three runner commits landed after the run-5 evidence above (57928b907 code-review fixes, 1858c1273 test isolation), so the testbed ran again on the final head. The testbed PR for AC-5 is admarble/ad-motion#291 (ad-motion #285 "(run 6)", reset before the run, dist built from PR #1587 head 1858c1273). Run: spec 30 s, exec 26 s, qa 50 s, 1 passed; suppressed 12/other.

    PR=291; gh pr view "$PR" --json comments --jq '[.comments[].body | select(startswith("## Read first"))] | length' → 1

    Order: index 0 is the ## Read first comment (2026-10-26T03:45:46Z), the only comment on the PR. Sections as in run 5; marker {"pr":291,"commit":"75b483d"}. PR #291 closed unmerged; testbed reset. Run 5 (#290) stands as the same result on 2a5a5f7bd.

  14. admarble commented on Oct 26, 2026

    @admarble
    ContributorAuthor

    QA Verdict: AC_MET_BUT_NOT_A_PLUS

    AC coverage: 8/8 met

    Gaps:

    • The PR-body mutation-marker merge in deliverReadFirstComment has no test — unresolved
    • resolveReadFirstPR's state-record fallback and its open-PR guard have no test — unresolved
    • The test-line command does not reproduce the classification it sits beside — dropped: advisory polish, R-3 satisfied in form
    • Attribution rate counts directory/ref tokens that explain nothing in the comment — dropped: rate is reported, not gated (R-2)
    • Seam command doesn't match the classifier. The command shown on each test line is grep -nE 'vi\.mock|jest\.mock|SKILL\.md'. The classifier also matches doMock and vi.mock(import(...)), and decides "prose" by read plus assertion. So the printed command can disagree with the class shown. R-3 is met in form, but the command isn't exactly the one that produced the line.
    • Rate counts more than the comment does. ac-attribution-rate.ts counts every path token, including directory tokens (plugin/) and refs like origin/main. The comment's namesPath rejects those. The rate is reported, not gated, but it reads slightly high next to the comment's own rule.
    • No direct link to the verdict comment. The comment says "the SEQUANT_QA_VERDICT comment on #N", which links the issue rather than the comment itself (R-5).
    • Unquoted paths. Paths in the rendered commands aren't shell-quoted, so a path containing a space breaks the copy-paste command.
    • Narrow reviewer signal. residue-outcomes.ts only counts issue-thread comments. Inline review comments and approvals don't register as reviewer activity. This is worth naming in the reference page as a limit of the measurement.
  15. admarble commented on Oct 26, 2026

    @admarble
    ContributorAuthor

    Follow-ups filed 2026-10-26 (owner's word), from QA 3's fix_now items and the independent code review of PR #1587: #1588 (unit tests for the PR-body SEQUANT_MUTATION merge and resolveReadFirstPR's state-record fallback with its open-PR guard), #1589 (the Tests line's printed command reproduces the class beside it; rendered paths shell-quoted), #1590 (the verdict link names the comment itself; postComment returns the URL), #1591 (no test seam defaults to a live GitHubProvider), #1592 (one runGit helper replaces the four local git() wrappers). Not filed: QA 3's two advisory notes on the scripts (the attribution rate counts directory and ref tokens the comment rejects; residue-outcomes counts issue-thread comments only).

  16. added a commit that references this issue on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgraph-2026-10-review-surfaceplanned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions