Skip to content

[3592 by Claude Opus 5.5] PR status line and review digest: wording and count fixes - #3653

Merged
integry merged 5 commits into
3589-epic-0-9-y3wfrom
3592/claude-opus-5-5-pr-status-line-and-review-20261117-0726-jrv
Nov 17, 2026
Merged

integry merged 5 commits into
3589-epic-0-9-y3wfrom
3592/claude-opus-5-5-pr-status-line-and-review-20261117-0726-jrv

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3592

Branch: 3592/claude-opus-5-5-pr-status-line-and-review-20261117-0726-jrv
Commits: ✅ Changes committed (cfe4312)


AI Processing Completed

Execution Details:

Summary:
I've fixed all nine items. The status, digest, epic and title test suites pass, the affected root tests pass, and typecheck and lint (zero warnings) are clean. There are no preview images, since all the changes are text written into GitHub PR bodies.

Status line (pullRequestStatusBlock.ts, pullRequestStatusFacts.ts)

  1. Skipped checks no longer count as passed. They show separately only when there are any: checks: 35 passed, 12 skipped.
  2. The time always includes the date: updated Nov 16 13:59 UTC. The issue asked for the date only when it isn't today, but the line is written "now" and can be read days later, so it always has to carry it. Old blocks without a date still count as the same status, so they aren't rewritten just for that.
  3. Below goal now reads ⚠️ Needs you · review 6/10, goal 8, with the separate score dropped. Sub-PR summaries in epics read the same way.
  4. A running loop reads 🔨 Ultrafix cycle 3 of 10. While its follow-up fix runs it still reads Follow-up in progress · Ultrafix cycle 3 of 10.
  5. Cancelled checks:
    • A cancelled run that a newer run of the same check replaced, or whose name still contains ${{, is left out of the counts entirely. That covers the [3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests #3580 case.
    • Decision for you: a cancelled run that nothing replaced shows as cancelled: e2e · checks: …, 1 cancelled and is never called failed, but the PR still reads "Needs you". I did this to respect the issue's note not to change state decisions, and because nothing will re-run it. Saying no would let such a PR read Ready, but ProPR's auto-merge would still refuse it, because that check logic is shared and unchanged.
    • A failed check name containing ${{ counts towards the +N but is never listed.
  6. Edits are now batched: when only check counts or failed/cancelled names change, the body is edited at most once per 30 seconds, and the latest counts are written when the window ends. Any other change (state, reason, score, cycle, a title rename) is still written at once. This is in the new pullRequestStatusEditPacing.ts. The last edit time is kept in Redis when available, so all ProPR processes share the limit.

Review digest (reviewDigestMarkdown.ts)
7. The Validation evidence section is left out when no validation command is configured or ran.
8. Acceptance-criteria evidence now renders its own inline code as normal code spans. The rest is plain text with Markdown characters escaped, so it can't create links, @mentions, bare URLs or HTML.

Docs
9. pr-status.md now says what is guaranteed (ProPR's own merges, task titles, notifications). It also says a merge done on GitHub while the title has the emoji keeps it in GitHub's default merge message, and how to avoid that. I updated its examples and described the check counts and edit batching. I also added a CHANGELOG.md [Unreleased] → Fixed entry. The existing Unreleased entries didn't quote any of the old wording, so nothing there needed rewriting.

Tests: the new packages/core/test/pullRequestStatusText.test.ts covers each wording change, the skipped and cancelled counting, and what the edit batching holds back. Two sync tests show a burst of check completions producing one edit per window, with a state change still written at once. I updated the existing expectations for the new wording.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (7 files)
    • packages/core/src/services/pullRequestStatus/pullRequestStatus.ts (+28/−6)
    • packages/core/src/services/pullRequestStatus/pullRequestStatusBlock.ts (+67/−22)
    • packages/core/src/services/pullRequestStatus/pullRequestStatusEditPacing.ts (added, +108/−0)
    • packages/core/src/services/pullRequestStatus/pullRequestStatusEpicSync.ts (+2/−7)
    • packages/core/src/services/pullRequestStatus/pullRequestStatusFacts.ts (+28/−2)
    • packages/core/src/services/pullRequestStatus/pullRequestStatusSync.ts (+7/−4)
    • packages/core/src/workflow/reviewDigestMarkdown.ts (+62/−6)
  • Low risk (12 files)
    • CHANGELOG.md (+15/−0)
    • docs/docs/features/pr-status.md (+23/−8)
    • packages/core/test/epicPRCreationStatus.test.ts (+1/−1)
    • packages/core/test/pullRequestStatus.test.ts (+6/−6)
    • packages/core/test/pullRequestStatusEpic.test.ts (+6/−6)
    • packages/core/test/pullRequestStatusEpicSync.test.ts (+5/−3)
    • packages/core/test/pullRequestStatusSync.test.ts (+59/−3)
    • packages/core/test/pullRequestStatusText.test.ts (added, +146/−0)
    • packages/core/test/pullRequestStatusTitle.test.ts (+4/−2)
    • packages/core/test/reviewDigest.test.ts (+18/−3)
    • test/prTemplateDescription.test.ts (+1/−1)
    • test/reviewDigestPublication.test.ts (+2/−2)

Validation evidence

  • No repository validation commands ran.

Diff size: 19 files changed, +588/−82 lines

Detailed Logs:

  • Conversation: 215 messages
  • Session: 0669533c-f38f-45e5-bc9a-caa8157df3e3

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3592-2026-11-17T07-54-40-731Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3592-2026-11-17T07-54-40-731Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: I've fixed all nine items. The status, digest, epic and title test suites pass, the affected root tests pass, and typecheck and lint (zero warnings) are clean. There are no preview images, since all t...


This PR was created automatically by ProPR after processing issue #3592.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

…ites pass, the affected root tests pass, and typecheck and lint (zero warnings) are clean. There are no preview images, since all the changes are text written into GitHub PR bodies.

Status line (`pullRequestStatusBlock.ts`, `pullRequestStatusFacts.ts`)
1. Skipped checks no longer count as passed. They show separately only when there are any: `checks: 35 passed, 12 skipped`.
2. The time always includes the date: `updated Nov 16 13:59 UTC`. The issue asked for the date only when it isn't today, but the line is written "now" and can be read days later, so it always has to carry it. Old blocks without a date still count as the same status, so they aren't rewritten just for that.
3. Below goal now reads `⚠️ Needs you · review 6/10, goal 8`, with the separate score dropped. Sub-PR summaries in epics read the same way.
4. A running loop reads `🔨 Ultrafix cycle 3 of 10`. While its follow-up fix runs it still reads `Follow-up in progress · Ultrafix cycle 3 of 10`.
5. Cancelled checks:
   - A cancelled run that a newer run of the same check replaced, or whose name still contains `${{`, is left out of the counts entirely. That covers the #3580 case.
   - Decision for you: a cancelled run that nothing replaced shows as `cancelled: e2e · checks: …, 1 cancelled` and is never called failed, but the PR still reads "Needs you". I did this to respect the issue's note not to change state decisions, and because nothing will re-run it. Saying no would let such a PR read Ready, but ProPR's auto-merge would still refuse it, because that check logic is shared and unchanged.
   - A failed check name containing `${{` counts towards the `+N` but is never listed.
6. Edits are now batched: when only check counts or failed/cancelled names change, the body is edited at most once per 30 seconds, and the latest counts are written when the window ends. Any other change (state, reason, score, cycle, a title rename) is still written at once. This is in the new `pullRequestStatusEditPacing.ts`. The last edit time is kept in Redis when available, so all ProPR processes share the limit.

Review digest (`reviewDigestMarkdown.ts`)
7. The Validation evidence section is left out when no validation command is configured or ran.
8. Acceptance-criteria evidence now renders its own inline code as normal code spans. The rest is plain text with Markdown characters escaped, so it can't create links, @mentions, bare URLs or HTML.

Docs
9. `pr-status.md` now says what is guaranteed (ProPR's own merges, task titles, notifications). It also says a merge done on GitHub while the title has the emoji keeps it in GitHub's default merge message, and how to avoid that. I updated its examples and described the check counts and edit batching. I also added a `CHANGELOG.md` `[Unreleased]` → Fixed entry. The existing Unreleased entries didn't quote any of the old wording, so nothing there needed rewriting.

Tests: the new `packages/core/test/pullRequestStatusText.test.ts` covers each wording change, the skipped and cancelled counting, and what the edit batching holds back. Two sync tests show a burst of check completions producing one edit per window, with a state change still written at once. I updated the existing expectations for the new wording.
@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix goal=8 max=6
Triggered automatically by the requested execution settings.

@propr-dev propr-dev Bot added the ultrafix label Nov 17, 2026
@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 6)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR improves status wording, check accounting, and digest readability with focused tests. It needs minor changes before merge: cancellation suppression can hide unrelated cancelled checks, and the new evidence escaping still permits some automatic links.

✅ Separate check counts — Skipped checks are removed from passed counts, with non-blocking checks excluded consistently.

✅ Deferred updates — Count-only edits schedule a fresh read, while state changes bypass pacing; both paths have added integration coverage.

This review is a static analysis of the supplied code; no commands were run. Current checks report no failures, with four test shards pending.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F1: 🔴 Unrelated runs suppress cancelled checks

  • Category: correctness

  • Required behavior: Only a cancelled run that has actually been superseded should be omitted; an unreplaced blocking cancellation must still prevent Ready.

  • Evidence: packages/core/src/services/pullRequestStatus/pullRequestStatusFacts.ts:cancelledCheckRuns

    1. Two workflows on the same head use the same job name, such as test. One succeeds; the other is cancelled without a replacement.
    2. replaced includes test from the successful run, without checking workflow identity or relative creation order.
    3. The cancelled run is excluded from cancelledNames, and all cancelled runs are removed from checkRuns.
    4. With no other blockers and confirmed mergeability, the status becomes Ready despite the unreplaced cancellation.

    The name-only set cannot distinguish a replacement from an independent check. The added duplicate-name test assumes replacement and does not establish its identity or ordering. static trace: the filtering and downstream confirmedAttentionReason/computeSinglePullRequestStatus branches demonstrate the incorrect result.

  • Minimum fix: Suppress cancellation only when a newer replacement of the same logical check can be established using available run identity and ordering metadata. Retain the cancellation when that relationship cannot be established, and cover independent same-name workflows.

F2: 🔴 Bare www addresses remain links

  • Category: correctness

  • Required behavior: Agent evidence outside inline code must remain plain text without creating links.

  • Evidence: packages/core/src/workflow/reviewDigestMarkdown.ts:INLINE_TEXT_SPECIALS, inlineMarkdown

    1. An agent supplies acceptance evidence such as See www.example.com.
    2. inlineMarkdown passes the text to inlineText; none of the address’s characters match INLINE_TEXT_SPECIALS.
    3. The digest therefore publishes the literal bare address, which GitHub-flavored Markdown automatically renders as a link.

    Escaping colons handles the tested https:// example but does not address the www. autolink form. Previously, wrapping the evidence in a code span prevented this. static trace: the escaping expression leaves this input unchanged, exposing it to GitHub’s extended autolink syntax. proposed regression: render this evidence through a GFM renderer and assert that it produces no anchor.

  • Minimum fix: Neutralize bare www. autolinks outside preserved code spans, and add a rendered-output regression covering that form.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Exercise shared pacing state

The pacing tests cover local timing and scheduled rereads. A test using two isolated module instances sharing fake Redis would also verify the documented cross-process limit and Redis-expiry behavior. This is optional additional coverage; the supplied code does not establish a defect in that path.

Score

The implementation is focused and substantially tested, but two localized correctness defects remain. No current check failures are reported; four test shards are still pending.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 18s
  • Tokens: 69,667 (68,434 in / 1,233 out)
  • Cost: $0.64

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F1 F2 S1

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 2bb00ba

Addressed 1 AI review comment (IDs: 6942298825)

Addressed findings F1, F2

Summary of Changes

I fixed F1 and F2. The status, readiness, epic and digest suites pass (259 tests), and typecheck and lint (zero warnings) are clean. I also put back the old code briefly and checked that each new test fails without its fix.

F1: same-named checks hid cancellations (pullRequestStatusFacts.ts, cancelledCheckRuns)

  • A matching name alone no longer hides a cancelled run. It is only left out if a newer run of the same check replaced it:
    • A re-run job: same name, same check suite, newer run.
    • A newer run of the same workflow: same name, a different check suite that belongs to the same GitHub Actions workflow, newer run.
  • "Newer" means a higher check run id, or a later start time if there is no id. With neither, it isn't treated as a replacement.
  • To link a check suite to its workflow, I added one extra GitHub read (GET /repos/{owner}/{repo}/actions/runs?head_sha=…). It only runs when a replacement could be in a different suite. If that read fails, or the suite isn't in the results, the cancellation still counts and the PR still reads "Needs you".
  • Runs named ${{ are still always left out, so the [3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests #3580 case is unchanged.
  • New tests cover:
    • a re-run in the same suite, which makes no extra read
    • a newer run of the same workflow
    • two workflows that each have a test job, one passed and one cancelled, which now reads ⚠️ Needs you · cancelled: test
    • the unproven cases: the workflow read fails, the suite isn't listed, the passing run is older, or the runs carry no id
  • I updated the earlier duplicate-name test to give its runs an id and a suite.

F2: bare www. addresses became links (reviewDigestMarkdown.ts)

  • Outside code spans, the dot after www (any case) is now escaped. GitHub then shows the address as plain text, not a link.
  • The new test renders the evidence with the GitHub-flavoured Markdown parser micromark-extension-gfm. It checks that there are no links, that the text reads exactly as written, and that `www.example.com` in backticks stays code. It covers www., WWW., an address in brackets or with emphasis, an email address and an https:// URL.
  • Dependency note: the test imports micromark and micromark-extension-gfm. They come from the root node_modules (packages/shared depends on the GFM extension) and are not declared in packages/core. I did this to avoid changing the lockfile.

I also updated the CHANGELOG.md entry to describe what counts as a replacement now.

Found separately, not fixed: the evidence parser removes a trailing *, so *www.example.com* is stored as *www.example.com. This was already the behaviour before this PR. I changed my test input so it doesn't end in *.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/core/src/services/pullRequestStatus/pullRequestStatusFacts.ts (+72/−12)
    • packages/core/src/workflow/reviewDigestMarkdown.ts (+7/−1)
  • Low risk (3 files)
    • CHANGELOG.md (+4/−2)
    • packages/core/test/pullRequestStatusText.test.ts (+43/−3)
    • packages/core/test/reviewDigest.test.ts (+10/−0)

Validation evidence

  • No repository validation commands ran.

Diff size: 5 files changed, +136/−18 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 10m 47s
  • Tokens: 2,475,197 (2,459,324 in / 15,873 out)
  • Cost: $1.20

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…uites pass (259 tests), and typecheck and lint (zero warnings) are clean. I also put back the old code briefly and checked that each new test fails without its fix.

I fixed F1 and F2. The status, readiness, epic and digest suites pass (259 tests), and typecheck and lint (zero warnings) are clean. I also put back the old code briefly and checked that each new test fails without its fix.

**F1: same-named checks hid cancellations** (`pullRequestStatusFacts.ts`, `cancelledCheckRuns`)
- A matching name alone no longer hides a cancelled run. It is only left out if a newer run of the same check replaced it:
  - **A re-run job:** same name, same check suite, newer run.
  - **A newer run of the same workflow:** same name, a different check suite that belongs to the same GitHub Actions workflow, newer run.
- "Newer" means a higher check run id, or a later start time if there is no id. With neither, it isn't treated as a replacement.
- To link a check suite to its workflow, I added one extra GitHub read (`GET /repos/{owner}/{repo}/actions/runs?head_sha=…`). It only runs when a replacement could be in a different suite. If that read fails, or the suite isn't in the results, the cancellation still counts and the PR still reads "Needs you".
- Runs named `${{` are still always left out, so the #3580 case is unchanged.
- New tests cover:
  - a re-run in the same suite, which makes no extra read
  - a newer run of the same workflow
  - two workflows that each have a `test` job, one passed and one cancelled, which now reads `⚠️ Needs you · cancelled: test`
  - the unproven cases: the workflow read fails, the suite isn't listed, the passing run is older, or the runs carry no id
- I updated the earlier duplicate-name test to give its runs an id and a suite.

**F2: bare `www.` addresses became links** (`reviewDigestMarkdown.ts`)
- Outside code spans, the dot after `www` (any case) is now escaped. GitHub then shows the address as plain text, not a link.
- The new test renders the evidence with the GitHub-flavoured Markdown parser `micromark-extension-gfm`. It checks that there are no links, that the text reads exactly as written, and that `` `www.example.com` `` in backticks stays code. It covers `www.`, `WWW.`, an address in brackets or with emphasis, an email address and an `https://` URL.
- **Dependency note:** the test imports `micromark` and `micromark-extension-gfm`. They come from the root `node_modules` (`packages/shared` depends on the GFM extension) and are not declared in `packages/core`. I did this to avoid changing the lockfile.

I also updated the `CHANGELOG.md` entry to describe what counts as a replacement now.

**Found separately, not fixed:** the evidence parser removes a trailing `*`, so `*www.example.com*` is stored as `*www.example.com`. This was already the behaviour before this PR. I changed my test input so it doesn't end in `*`.

PR: #3653
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 2/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 2/4
  • Result: failure
  • Commit: 2bb00baa31c2 (2bb00baa31c2ee4c25653e7234ff6ae7924fc478)
  • Details: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:43155
Process completed with exit code 1.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR improves status wording, check accounting, edit pacing, and digest rendering with focused implementation and useful regression coverage. It needs a small correction before merge: an existing digest test still asserts the previous rendering.

✅ Separate check outcomes — Skipped and cancelled runs no longer inflate passed counts, and replacement detection distinguishes workflows with identical job names.

✅ Deferred updates are exercised — New sync tests cover batched check progress, immediate state changes, and a scheduled reread that publishes deferred counts.

The supplied current-head status reports no failures and two pending checks. This review used static analysis only; no commands were run.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F3: 🔴 Update the remaining digest expectation

  • Category: correctness

  • Required behavior: The changed digest rendering must remain compatible with the repository’s test suite; assertions for intentionally changed output must be updated.

  • Evidence: packages/core/src/workflow/reviewDigestMarkdown.ts:166, acceptanceSection

    1. The existing packages/core/test/acceptanceCriteriaPrompt.test.ts:28–45 builds a digest with evidence containing two inline code spans and plain-text evidence left for later.
    2. The changed renderer passes that evidence through inlineMarkdown, producing separate code spans for the paths and unwrapped plain text.
    3. The unchanged exact-string assertion still requires the entire path evidence inside one longer code fence and requires left for later inside a code span.
    4. That assertion therefore fails when the existing test runs, leaving the repository suite incompatible with this PR’s intended output.

    The newly updated digest tests do not prevent this failure because they are separate assertions; this existing expectation remains unchanged in the supplied complete diff. static trace: compared the changed renderer with the host-validated existing test. This is not a claim that the supplied current-head checks already report a failure.

  • Minimum fix: Update the two evidence expectations in acceptanceCriteriaPrompt.test.ts and its test description to reflect preserved inline code and escaped plain text, retaining the exact ordering assertion.

Suggestions

These are optional follow-ups and are not sent to /fix.

S2: 🟢 Exercise shared pacing state

The pacing tests cover local timing and scheduled publication, but do not directly demonstrate that a second process respects a timestamp written through Redis. A focused test with separate local state and shared Redis storage would strengthen confidence in the documented cross-process limit. This is optional coverage; the supplied implementation does not establish a concrete cross-process defect.

Score

The implementation is focused and substantially covered, but a deterministically incompatible existing test needs correction before merge. Current checks show no failures, with two still pending.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 6s
  • Tokens: 72,030 (71,024 in / 1,006 out)
  • Cost: $0.63

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F3 S2

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 02ed7d5

Summary of Changes

I fixed the Shard 2/4 failure. It was one stale expectation in an old test, not a bug in the branch's code.

Cause: packages/core/test/acceptanceCriteriaPrompt.test.ts (test 3, added for #3499) still expected the old digest output. That output wrapped the agent's whole evidence text in one code span:

  • src/pad.ts, test/pad.test.ts
  • `left for later`

Item 8 of this PR deliberately changed that. Evidence now keeps only its own inline code as code spans, and the rest is escaped plain text. So the code now correctly produces:

  • `src/pad.ts`, `test/pad.test.ts`
  • left for later

That test was the only failure in the shard's log; every other file passed.

Fix: I updated the two expected lines to the new output and renamed the test to "criteria are code spans and evidence keeps only its own code spans". Nothing outside that test file changed.

Checks: Through scripts/run-test-suite.mjs, the fixed test passes, and so do the other suites that use the digest or acceptance criteria: core reviewDigest, shared acceptanceCriteria, reviewDigestPublication, reviewPromptBuilder, prReviewRunnerBudget and prCommentLinkedIssueRepository.

There are no preview images, since this is a test-only change.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk: none
  • Low risk (1 file)
    • packages/core/test/acceptanceCriteriaPrompt.test.ts (+3/−3)

Validation evidence

  • No repository validation commands ran.

Diff size: 1 file changed, +3/−3 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot]
  • Time: 4m 8s
  • Tokens: 504,814 (502,247 in / 2,567 out)
  • Cost: $0.35
  • Subscription usage: Weekly +1%, Fable +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6942944529✓

… in an old test, not a bug in the branch's code.

I fixed the Shard 2/4 failure. It was one stale expectation in an old test, not a bug in the branch's code.

**Cause:** `packages/core/test/acceptanceCriteriaPrompt.test.ts` (test 3, added for #3499) still expected the old digest output. That output wrapped the agent's whole evidence text in one code span:

- `` `` `src/pad.ts`, `test/pad.test.ts` `` ``
- `` `left for later` ``

Item 8 of this PR deliberately changed that. Evidence now keeps only its own inline code as code spans, and the rest is escaped plain text. So the code now correctly produces:

- `` `src/pad.ts`, `test/pad.test.ts` ``
- `left for later`

That test was the only failure in the shard's log; every other file passed.

**Fix:** I updated the two expected lines to the new output and renamed the test to "criteria are code spans and evidence keeps only its own code spans". Nothing outside that test file changed.

**Checks:** Through `scripts/run-test-suite.mjs`, the fixed test passes, and so do the other suites that use the digest or acceptance criteria: core `reviewDigest`, shared `acceptanceCriteria`, `reviewDigestPublication`, `reviewPromptBuilder`, `prReviewRunnerBudget` and `prCommentLinkedIssueRepository`.

There are no preview images, since this is a test-only change.

PR: #3653
Comment by: @propr-dev[bot] (ID: 6942944529)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @propr-ultrafix

Addressed finding F3

Analysis Summary

I didn't change any files: F3 was already fixed on this branch.

F3: The last commit on the branch (02ed7d5, "I fixed the Shard 2/4 failure…") already made the change the finding asks for. In packages/core/test/acceptanceCriteriaPrompt.test.ts:

  • The test title now says that evidence keeps only its own code spans.
  • AC1 now expects two separate code spans: `src/pad.ts`, `test/pad.test.ts`.
  • AC3 now expects plain text: — left for later.
  • The exact-string check that the checklist comes before the risk tiers is still there.

The review appears to have read the diff from before that commit. The test passes as it stands (4 of 4).

Other tests: I searched the repository's tests for other expectations of acceptance-criteria evidence:

  • test/reviewDigestPublication.test.ts already expects separate code spans and plain text, and passes (6 of 6).
  • packages/core/test/reviewDigest.test.ts passes (16 of 16).
  • The other files that mention acceptance criteria only test prompt wording, not the digest output.

I found no other stale expectation of the old format, and nothing unrelated that needs reporting. There are no preview images, because nothing visible changed.

No code changes were necessary based on the current state of the branch.


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 4m 28s
  • Tokens: 284,210 (282,790 in / 1,420 out)
  • Cost: $0.26

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR improves status wording, check accounting, and digest readability with focused regression coverage. It needs a localized correction before merge: replacement detection can incorrectly retain cancelled checks when workflow results span multiple pages.

✅ Clearer status reporting — Skipped and cancelled checks receive separate counts, and below-goal reviews display the score only once.

✅ Targeted pacing coverage — Tests cover deferred check-count updates, scheduled refreshes, and immediate state transitions.

The supplied current-head results show 18 passed checks, 21 neutral/skipped, and no failed or pending checks. This review is a static analysis; no commands were run.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F4: 🔴 Paginate workflow replacement lookup

  • Category: correctness

  • Required behavior: A cancelled check superseded by a newer run of the same logical check must be excluded from the status counts.

  • Evidence: packages/core/src/services/pullRequestStatus/pullRequestStatusFacts.ts, loadSuiteWorkflows and cancelledCheckRuns

    1. A head has more workflow runs than fit in the single requested CHECK_PAGE page, while its check runs remain within the existing check-read budget.
    2. The check results include an older cancelled job and a newer successful job with the same name in different suites of the same workflow.
    3. The workflow endpoint’s first page omits the older suite. loadSuiteWorkflows never requests another page.
    4. sameWorkflow cannot resolve the older suite, so cancelledCheckRuns retains the cancellation. With no other work outstanding, confirmedAttentionReason publishes “Needs you” despite the successful replacement.

    The check-run pagination does not paginate this separate workflow lookup. Subsequent refreshes repeat the same first-page request, so they do not repair the classification. Existing tests cover an unlisted suite conservatively remaining cancelled, but do not distinguish a genuinely unknown suite from one available on the next page.

    static trace: verified from the single request in loadSuiteWorkflows, the map lookup in sameWorkflow, and the cancelled-count attention rule. No regression test was executed.

  • Minimum fix: Follow workflow-result pagination until the candidate suite relationships are resolved or the available results are exhausted; add a regression where the cancelled suite appears on the second page.

Suggestions

These are optional follow-ups and are not sent to /fix.

S3: 🟢 Exercise shared pacing records

The pacing tests demonstrate local batching and scheduled refreshes. A focused test using separate module instances sharing Redis would also verify the advertised cross-process behavior, including expiration and unavailable Redis. This is optional coverage strengthening; the supplied code does not establish a separate defect in that path.

Score

The implementation is focused and current checks are clean, but the workflow pagination gap can leave an incorrect attention status after successful replacement checks. The required correction is localized.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 4s
  • Tokens: 72,207 (71,203 in / 1,004 out)
  • Cost: $0.65

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F4 S3

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 76aeebc

Addressed 1 AI review comment (IDs: 6943803475)

Addressed finding F4

Summary of Changes

I fixed F4: a cancelled check replaced by a newer run of the same workflow is now left out of the counts even when the older workflow run is on a later page of GitHub's results. Before, that PR could show "Needs you" despite the successful re-run.

What changed (packages/core/src/services/pullRequestStatus/pullRequestStatusFacts.ts)

  • cancelledCheckRuns now collects the check suites it actually needs to compare: each cancelled run's suite, and the suite of each newer same-name run in a different suite. It passes that set to the lookup.
  • loadSuiteWorkflows now reads the workflow-run list page by page (100 per page). It stops when:
    • every needed suite is resolved, or
    • the list runs out (all of total_count read, or a short page), or
    • it hits a 10-page limit. GitHub returns at most 1,000 results for a head_sha query, so 10 pages is everything it will list.
  • The safe fallbacks still hold. A suite that never appears still counts as cancelled. A runner from a different workflow does not hide the cancellation. A failed read anywhere still leaves the cancellation in place, and the partial results are thrown away. No read is made when no replacement in another suite is possible.

Tests (packages/core/test/pullRequestStatusText.test.ts)

  • The mock GitHub endpoint now honours page and per_page.
  • A new test puts the cancelled run's older suite on page two and checks that:
    • the PR reads as Ready, after exactly two reads.
    • a page-two suite from a different workflow still leaves the run cancelled.
    • a suite that never appears is read to the end of the list (two pages) and stays cancelled.
    • when both suites are on page one, no second page is read.
  • With the old single-page code put back, the new test fails; with the fix it passes.

Verification: the status, epic and epic-creation suites pass (240 tests). epicPRCreationStatus.test.ts needs --experimental-test-module-mocks to run. tsc --noEmit and zero-warning ESLint on core src are clean.

The same unpaged call to GET …/actions/runs also appears in src/jobs/followupCiSuspensionRuns.ts. That file isn't changed by this PR, so I didn't review or change it. There are no previews, since nothing visual changed.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/core/src/services/pullRequestStatus/pullRequestStatusFacts.ts (+46/−13)
  • Low risk (1 file)
    • packages/core/test/pullRequestStatusText.test.ts (+28/−2)

Validation evidence

  • No repository validation commands ran.

Diff size: 2 files changed, +74/−15 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (high)
  • Requested By: @propr-ultrafix
  • Time: 10m 20s
  • Tokens: 976,229 (966,331 in / 9,898 out)
  • Cost: $0.68

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…e same workflow is now left out of the counts even when the older workflow run is on a later page of GitHub's results. Before, that PR could show "Needs you" despite the successful re-run.

I fixed F4: a cancelled check replaced by a newer run of the same workflow is now left out of the counts even when the older workflow run is on a later page of GitHub's results. Before, that PR could show "Needs you" despite the successful re-run.

**What changed** (`packages/core/src/services/pullRequestStatus/pullRequestStatusFacts.ts`)
- `cancelledCheckRuns` now collects the check suites it actually needs to compare: each cancelled run's suite, and the suite of each newer same-name run in a different suite. It passes that set to the lookup.
- `loadSuiteWorkflows` now reads the workflow-run list page by page (100 per page). It stops when:
  - every needed suite is resolved, or
  - the list runs out (all of `total_count` read, or a short page), or
  - it hits a 10-page limit. GitHub returns at most 1,000 results for a `head_sha` query, so 10 pages is everything it will list.
- The safe fallbacks still hold. A suite that never appears still counts as cancelled. A runner from a different workflow does not hide the cancellation. A failed read anywhere still leaves the cancellation in place, and the partial results are thrown away. No read is made when no replacement in another suite is possible.

**Tests** (`packages/core/test/pullRequestStatusText.test.ts`)
- The mock GitHub endpoint now honours `page` and `per_page`.
- A new test puts the cancelled run's older suite on page two and checks that:
  - the PR reads as Ready, after exactly two reads.
  - a page-two suite from a different workflow still leaves the run cancelled.
  - a suite that never appears is read to the end of the list (two pages) and stays cancelled.
  - when both suites are on page one, no second page is read.
- With the old single-page code put back, the new test fails; with the fix it passes.

**Verification:** the status, epic and epic-creation suites pass (240 tests). `epicPRCreationStatus.test.ts` needs `--experimental-test-module-mocks` to run. `tsc --noEmit` and zero-warning ESLint on core `src` are clean.

The same unpaged call to `GET …/actions/runs` also appears in `src/jobs/followupCiSuspensionRuns.ts`. That file isn't changed by this PR, so I didn't review or change it. There are no previews, since nothing visual changed.

PR: #3653
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR is ready to merge within the reviewed scope. Static review of the supplied diff and surrounding code found no verified merge blockers. Current-head checks report 18 passed, 21 neutral/skipped, and none failed or pending.

✅ Clearer status reporting — Skipped and cancelled checks have separate counts, below-goal reviews show one score, and timestamps include the date.

✅ Conservative cancellation matching — Replacement detection checks ordering and suite/workflow identity; unrelated same-name jobs and failed workflow lookups retain the cancellation.

✅ Deferred updates complete — Check-only changes schedule a subsequent read, while state changes bypass pacing. Added integration tests cover both paths.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S4: 🟢 Test shared pacing independently

Add an optional regression test that records an edit through Redis, clears process-local pacing state, and verifies that another writer still waits for the remaining window. The supplied tests cover batching and scheduled updates, but do not directly demonstrate the cross-process guarantee in pullRequestStatusEditPacing.ts. This would strengthen coverage of the existing implementation without changing its design.

Score

The implementation addresses the requested behavior with focused changes and substantial regression coverage. This assessment uses static inspection and the supplied current-head check results; no commands were run.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 49s
  • Tokens: 74,942 (74,144 in / 798 out)
  • Cost: $0.67

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S4

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 17, 2026
@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from 3589-epic-0-9-y3w into 3592/claude-opus-5-5-pr-status-line-and-review-20261117-0726-jrv in commit ee5dfb5

Conflicting Files

  • packages/core/test/pullRequestStatusTitle.test.ts

Resolution Summary

I resolved the merge conflict, and no conflict markers are left anywhere in the repository. The merged test file packages/core/test/pullRequestStatusTitle.test.ts passes all 26 tests (npx tsx --test, after rebuilding packages/shared).

What the conflict was about

There were two conflicts in that one file, at the same pair of assertions in two tests:

  • "a review below the goal for the current head still needs you while its checks are pending"
  • "a round scored 6 with a blocker and 8 needs you at 6, in the title and the line" (it runs once for each review order)

Each side changed a different line of the pair:

How I resolved it

I combined the two: each test now expects the PR's status-line wording and the epic's new title digit:

assert.match(statusLine(), /⚠️ Needs you · review 6\/10, goal 7 · /);
assert.equal(github.pull.title, `⚠️❻ ${TITLE}`);

Why

The two changes don't overlap in meaning. The PR owns the status-line wording, and the merged-in prTitleStatusSlot.ts now writes ❶–❿, as every other assertion in the merged file already expects. Keeping either side whole would have left one assertion that the merged code fails. No other file needed changes.


🤖 Resolution Details

  • Model: Claude Opus 5.5
  • Time: 7m 4s

View Task Execution


System-triggered merge conflict resolution

…-5-5-pr-status-line-and-review-20261117-0726-jrv

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- packages/core/test/pullRequestStatusTitle.test.ts

PR: #3653
Model: Claude Opus 5.5
@propr-dev propr-dev Bot changed the title 🔨 [3592 by Claude Opus 5.5] PR status line and review digest: wording and count fixes ✅⑨ [3592 by Claude Opus 5.5] PR status line and review digest: wording and count fixes Nov 17, 2026
@integry
integry merged commit b19f423 into 3589-epic-0-9-y3w Nov 17, 2026
39 checks passed
@propr-dev propr-dev Bot changed the title ✅⑨ [3592 by Claude Opus 5.5] PR status line and review digest: wording and count fixes [3592 by Claude Opus 5.5] PR status line and review digest: wording and count fixes Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant