Skip to content

[Epic] 0.9.3: remaining findings from the 0.9.2 release check - #3730

Merged
integry merged 7 commits into
mainfrom
3725-epic-0-9-0ws
Nov 19, 2026
Merged

integry merged 7 commits into
mainfrom
3725-epic-0-9-0ws

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

0.9.3: remaining findings from the 0.9.2 release check

This Epic PR aggregates all changes for the plan: 0.9.3: remaining findings from the 0.9.2 release check

Issues in this Epic

Auto-close

When this PR is merged, the following issues will be automatically closed:

Fixes #3725
Fixes #3726
Fixes #3727
Fixes #3728


Created automatically by ProPR

…and skip the code follow-up for runner-only failures (#3729)

* I've implemented both parts of #3725. All the affected suites pass (about 650 tests) and core and root typecheck and lint are clean. One limit: GitHub only re-runs jobs once the whole workflow run has finished, so the "re-run once" path depends on a deferral explained below. I didn't make a visual preview because the change is a line of text in the PR body.

1. The status block says when CI is suspended
- While a follow-up holds an active suspension on the current head, the status block in the PR body shows: `CI suspended until the follow-up finishes, re-running checks before then has no effect`.
- Once the suspension has cancelled runs, it also shows `runs cancelled by ProPR: N`. A change to that count alone is paced like other check-count changes, so a burst of cancellations doesn't edit the body once per run. The suspension starting or ending is written straight away.
- The text goes away when the suspension ends. It is only shown while the suspension is `active`; once ProPR starts restoring runs, a re-run is no longer cancelled.
- It uses the existing status computation and rendering, so it follows the same update rules. The suspension text is placed ahead of the check counts, so it survives when the line is cut to fit the 512-character limit.
- The facts come from the `pr_ci_suspensions` table (`pullRequestStatusCiNotes.ts`). If that record can't be read, the note is left out rather than failing the whole status read.
- The worker's suspension store now asks for a status update when a suspension is reserved, changes state, or is deleted. How long a suspension lasts and which runs it cancels are unchanged.

2. Runner-only failures don't start a code follow-up
- Classifier: `classifyCiInfrastructureFailure` is a pure function in `ciFailureInfrastructure.ts`, next to the CI-failure evidence code. Any sign of a test, type or lint failure, or an annotation pointing at a source file, makes it a code failure. Otherwise it counts as infrastructure only if:
  - the runner received a shutdown signal or lost communication, or
  - every failed step is a setup/install step and the evidence shows a network, mirror or registry error.
- Doubt: if the steps can't be read or anything is unclear, it stays a code failure and gets its comment as today.
- Handling (`ciFailureInfrastructureRerun.ts`): it runs after the existing cancellation check, before anything is claimed. It posts no comment, so no follow-up and no suspension start. It re-runs the failed jobs once per workflow run and records what it did so the status block can name the job:
  - `runner problem in <job>, re-run requested`
  - `…, re-run when its workflow finishes`
  - `<job> failed on what looks like a runner problem, re-run it` (when GitHub refuses the re-run, or the one re-run was already used)

  Because nothing is claimed, a real code failure on the re-run still gets its follow-up.
- Deferral: if the workflow run is still going, the re-run waits and is sent when the next check of that commit completes (a new hook in `checkRunHandler.ts`). If that last check finishes before GitHub marks the run complete, the re-run is never sent and the PR stays on "re-run when its workflow finishes", so a person would have to re-run it. A periodic retry would close this gap; I didn't add one.
- Evidence read: besides the evidence the comment already uses, this reads one extra thing: the failed job's step names, and only when the text already looks like an infrastructure error.

Tests
- `test/ciFailureInfrastructure.test.ts`: the classifier cases from the issue (the #3703 apt mirror stall, runner shutdown and lost communication, registry 5xx during install as infrastructure; a failing test, a type error and a lint error as not), plus the doubt cases. It also checks that an infrastructure failure posts no comment and claims nothing, re-runs once, doesn't re-run twice, handles a refused re-run, and handles the deferred re-run. When I disabled the hook, 4 of these tests failed as they should.
- `packages/core/test/pullRequestStatusCiNotes.test.ts`: the status-line text during and after a suspension, the length limit, the pacing, the runner-problem text, and reading the facts from SQLite and Redis.

Limit on one acceptance test: the "no suspension" check is indirect. In this codebase a follow-up, and the suspension its implementation records, only starts from that posted comment, so the test shows that no comment is posted and nothing is claimed. It doesn't run the worker path itself.

I also documented the behaviour in `docs/docs/features/pr-followup.md` and added a CHANGELOG entry under Fixed.

* feat(ai): I fixed all four findings (F1–F4), and each one has regression tests. The new suite passes (23 of 23), and the neighbouring suites pass too: check-run handler 146, CI failure follow-up 31, recovery 3, epic merge progress 61, task-intent withdrawal 169, plus two smaller ones. Core and root typecheck and lint are clean.

I fixed all four findings (F1–F4), and each one has regression tests. The new suite passes (23 of 23), and the neighbouring suites pass too: check-run handler 146, CI failure follow-up 31, recovery 3, epic merge progress 61, task-intent withdrawal 169, plus two smaller ones. Core and root typecheck and lint are clean.

**F1 – a deferred re-run is no longer left waiting forever**
- **A sweep every minute.** The daemon now checks waiting re-runs once a minute (`src/daemon/ciInfrastructureRerunSweep.ts`, which calls `retryPendingCiInfrastructureReruns`). When a run has finished, it sends the re-run. This covers a workflow whose last check completed before GitHub marked the run finished.
- **A 24-hour limit.** If a run still hasn't finished after 24 hours, ProPR stops waiting. The status block then says the job failed on what looks like a runner problem and needs a manual re-run.
- **Closed PR or new head.** If the PR is closed or has a new head, the waiting re-run is dropped without being sent.
- **Ordinary recovery now sends it.** When the same run attempt fails again, recovery used to return `already_requested`. It now sends the waiting re-run if the run has finished.
- **No double re-runs.** Three paths can send a re-run: the check-completion hook, recovery, and the sweep. A per-run lock stops them from sending the same one twice.
- **Order of steps.** Each path checks the waiting entry is still unchanged, sends the re-run, removes the entry, and only then updates the notice. So if the notice write fails, the re-run is not sent again.

**F2 – two workflows no longer overwrite each other**
Waiting re-runs are now stored separately for each workflow run, in the new `ciInfrastructureRerunPending.ts`. The hook re-runs every waiting run for the PR head. The PR notice is still a single "latest event" summary, as the finding allows.

**F3 – test steps are no longer treated as setup steps**
- Before checking for setup, `isSetupStep` now rejects any step that runs tests, builds, lint or type checks. So `Run Playwright tests`, `Run browser tests` and `Install dependencies and run tests` stay code failures.
- Setup recognition is narrower: a step counts only if it names a preparation action (install, set up, checkout, cache, `npm ci`, image pull, and similar). A bare `playwright`, `chromium`, `browser`, `apt` or `pip` no longer counts.
- Real install steps still count, including `Install Playwright browsers` and the #3703 install script.

**F4 – unreadable annotations no longer hide a code failure**
If the annotations can't be read, the runner-problem path backs off and the ordinary follow-up is posted. That's enforced in `handleInfrastructureFailure`, and the classifier also refuses when annotations are missing. Reading zero annotations successfully is still accepted.

**Tests and docs**
- The regression tests are in `test/ciFailureInfrastructure.test.ts`. They cover:
  - a single workflow finishing with no further check event, sent by the sweep.
  - a recovery-path resume.
  - the 24-hour give-up.
  - a dropped re-run after a new head.
  - two deferred runs, each re-run exactly once.
  - a run whose lock is already held.
  - network errors in Playwright, browser and mixed install-and-test steps.
  - an annotation read that fails.
- With the old classifier and annotation handling put back, the F3 and F4 tests failed as expected. I didn't run the same revert check for F1 and F2.
- I updated `docs/docs/features/pr-followup.md` to describe the new deferral behaviour and the narrower setup-step rule.

**One behaviour change:** a check-run failure with no check-run ID can no longer be classified as a runner problem, because there are no annotations to rule out a code failure. It gets the normal follow-up.

There's no visual preview because nothing here changes what a user sees.

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

* feat(ai): I fixed F5, F6 and F7 in `ciFailureInfrastructureRerun.ts` and `ciInfrastructureRerunPending.ts`, with regression tests. The suite is 28 of 28 passing. With the old source restored, all five new tests fail. Core and root typecheck and core lint are clean, and the neighbouring suites pass: check-run handler 146, CI failure follow-up 31, CI failure recovery 3, comment grouping 8, ultrafix CI failure recovery 61, status CI notes 8.

I fixed F5, F6 and F7 in `ciFailureInfrastructureRerun.ts` and `ciInfrastructureRerunPending.ts`, with regression tests. The suite is 28 of 28 passing. With the old source restored, all five new tests fail. Core and root typecheck and core lint are clean, and the neighbouring suites pass: check-run handler 146, CI failure follow-up 31, CI failure recovery 3, comment grouping 8, ultrafix CI failure recovery 61, status CI notes 8.

**F5 – a re-run GitHub already accepted is never sent again.** Before sending a pending re-run, ProPR now compares the run's current attempt number on GitHub with the one it recorded. If the run has already moved past it, the earlier re-run was accepted: ProPR clears the pending entry and does not send it again. This check sits in `resumePendingRerun`, which every path uses: the check-run hook, ordinary recovery, the daemon sweep and the 24-hour give-up. Clearing a stale entry this way doesn't overwrite a newer status notice from a later attempt of the same run.

**F6 – an interrupted claim stays recoverable.** The seven-day claim and the pending entry are now written together in one atomic step. So every claim comes with a recorded "re-run owed" entry from the start, before GitHub is asked anything. On a repeat of the same attempt, an existing entry means the work isn't finished and it gets resumed. No entry means the re-run was already sent, refused or given up on.

**F7 – the runner-problem verdict survives bookkeeping failures.** Once a failure is classified as a runner problem, any failure to record the re-run or write the status notice is logged and the result is still treated as a runner problem. No code follow-up comment is posted. Unreadable or inconclusive evidence still falls back to the normal follow-up, as before.

**New tests** (`test/ciFailureInfrastructure.test.ts`):
- GitHub accepts the re-run but clearing the pending entry fails. Later sweeps, the hook and recovery don't send it again, with GitHub reporting attempt 2.
- The same accepted-then-failed-clear case, recovered through ordinary failure recovery.
- A stale entry cleared after attempt 2 failed keeps attempt 2's "re-run it" notice.
- A process stopping right after the claim is picked up by both recovery and the sweep.
- A failed notice write, or a failed claim write, after the verdict posts no follow-up comment.

I also added a few sentences to `docs/docs/features/pr-followup.md` describing this.

**Limits and other findings (not changed):**
- The F5 check relies on GitHub showing the new attempt number on the run once it has accepted a re-run. If GitHub accepts the request but hasn't updated the run yet, a retry in that gap can't be told apart. That race is between GitHub's own calls and can't be closed from ProPR's side.
- Separate, older issue: if the workflow-run read fails, the pending entry is released with a "re-run it" notice instead of being kept for the next sweep. I left it alone because it's outside these findings.
- `recordPendingRerun` is no longer called anywhere but is still exported.

No visual preview, because nothing a user sees has changed.

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

* feat(ai): I removed the automatic re-run from the PR. An infrastructure-only CI failure now starts no code follow-up and records no CI suspension, and the PR status block tells a person to re-run the failed jobs. All affected suites pass, and core and root typecheck and lint are clean. I couldn't update the PR description myself, so the replacement wording is at the end for you to paste in.

I removed the automatic re-run from the PR. An infrastructure-only CI failure now starts no code follow-up and records no CI suspension, and the PR status block tells a person to re-run the failed jobs. All affected suites pass, and core and root typecheck and lint are clean. I couldn't update the PR description myself, so the replacement wording is at the end for you to paste in.

**What was removed (item 1)**
- I deleted `ciFailureInfrastructureRerun.ts`, `ciInfrastructureRerunPending.ts`, `ciInfrastructureNotice.ts` and the daemon sweep (`src/daemon/ciInfrastructureRerunSweep.ts`).
- I took out the resume hook in `checkRunHandler.ts`, the sweep wiring in `src/daemon.ts` and the export in `index.ts`. Those three files are back to exactly what they are on `main`.
- Nothing in the code calls GitHub's re-run endpoints any more, and the follow-up path no longer needs any Redis operations beyond what it used before.

**What stayed (items 2 and 5)**
- The classifier in `ciFailureInfrastructure.ts` is unchanged, including the F3 fix (test, build and lint steps are never setup steps) and the F4 fix (unreadable annotations fall back to the normal follow-up).
- The suspension text in the status block and the cancelled-run count are unchanged.

**How the failure is shown on the PR (items 3 and 4)**
- A new module, `ciFailureInfrastructureCheck.ts`, classifies one failed check. Both the follow-up path and the status block use it.
- For an infrastructure-only failure, `postCiFailureFollowup` posts no comment, claims nothing and asks for a status update. If that update fails, it is only logged and the verdict stays infrastructure-only.
- The status text is worked out each time the status block is updated, from the failed checks on the current head. Nothing is stored. It reads: `Validate Changes failed on what looks like a runner or network problem, re-run the failed jobs` (two names at most, then `+N`). It disappears once those checks stop failing on the head.
- **Cost of rendering:** each status update now makes a few extra GitHub reads:
  - the annotations of each failed check.
  - the job's steps, but only when the text already looks like an infrastructure error.
- **Limits on rendering:** it only looks at failed GitHub Actions checks. If more than 5 checks fail, it skips the check and shows no runner-problem text. Any read failure also means no text.

**Tests**
- `test/ciFailureInfrastructure.test.ts` (16 tests): the classifier, F3 and F4 cases are kept and all re-run tests are gone. New tests check that an infrastructure-only failure posts no comment, claims and stores nothing, makes no re-run request, and asks for a status update. They also cover a failing status update and an unreadable job.
- `pullRequestStatusCiNotes.test.ts` (9): the text with the job name, plus which failed checks get it and which don't.
- `pullRequestStatusSync.test.ts` (82): one new end-to-end test. A sync writes the job name into the PR body and makes no re-run request; when the check passes, the text is gone.
- **Checks that the tests catch a regression:**
  - With the status-read wiring disconnected, the new sync test fails.
  - With the classification call disabled, 2 of the follow-up tests fail.
- **Other suites, all passing:**
  - check-run handler 146
  - CI failure follow-up 31
  - recovery 3
  - Ultrafix CI recovery 61
  - comment grouping 8
  - status 36, text 12, epic 24, epic sync 46, reconcile runs 8

I also updated `docs/docs/features/pr-followup.md` and the CHANGELOG entry to say the re-run is manual. There's no visual preview, because the change is a line of text in the PR body.

**Replacement wording for the PR description**, section "2. Runner-only failures don't start a code follow-up":

> **Handling:** an infrastructure-only failure posts no comment, so no follow-up starts and no suspension is recorded. Nothing is claimed, so a real code failure on a later re-run still gets its follow-up. ProPR does not re-run the jobs: re-running is manual. While the check fails on the current head, the status block says `<job> failed on what looks like a runner or network problem, re-run the failed jobs`. The text is worked out from the head's failed checks each time the status block is updated, so nothing is stored, and it disappears once those checks no longer fail. If that status update fails, it is only logged and the failure stays infrastructure-only.

The "Deferral" paragraph and the re-run lines of the Tests section should be deleted.

PR: #3729
Comment by: @integry (ID: 7000077650)
Model: Claude Opus 5.5

* feat(ai): I fixed F8 and F9. The CI-notes suite passes 12 of 12 and the other eight status suites pass 240 of 240. Core and root typecheck and lint on the changed folder are clean. With the old source put back, the three new tests fail, so they do catch both defects.

I fixed F8 and F9. The CI-notes suite passes 12 of 12 and the other eight status suites pass 240 of 240. Core and root typecheck and lint on the changed folder are clean. With the old source put back, the three new tests fail, so they do catch both defects.

**F8: six or more failed jobs lost the runner note**
- `loadCiRunnerProblemFact` in `pullRequestStatusCiNotes.ts` used to give up when more than five jobs failed. It now classifies every failed GitHub Actions job, reading at most four at a time.
- The old test that expected no note above five jobs is replaced by a six-job case. All six jobs fail during `npm ci` with a registry 503, and the test checks that:
  - all six jobs are named.
  - no more than four are read at once.
  - only read requests are made.
  - the line shows "shard-1, shard-2 +4 failed on what looks like a runner or network problem, re-run the failed jobs".
- Every status read now reads annotations for every failed job, at most four at a time. A head with dozens of failed jobs means proportionally more GitHub reads each time the status is refreshed.

**F9: epics dropped both CI notes**
- **Finished epics** (every issue merged): the suspension and runner-problem notes were already attached but never shown. They now appear after the reason or activity and before the check counts, as on a normal PR.
- **Unfinished epics:** the notes were never attached. `computeEpicStatus` now attaches the epic branch's own notes in every case, and the line shows them after what the sub-PRs and issues are doing.
- New tests cover a finished and an unfinished epic, each with a suspension and with a runner problem. They also check that an unfinished epic's line is unchanged when it has neither.

I looked for the same gap elsewhere and found none. An epic with no issues left to count (total 0) already used the normal path, which handles both notes. The text for sub-PRs inside an epic doesn't use these notes. The docs and CHANGELOG never mentioned the five-job limit or epics, so they needed no change.

I made no preview because the change is only text in the PR status line.

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

* feat(ai): The F10 fix is in place and tested. My attempt to update the PR description was refused, so the new wording is below for you to paste in.

The F10 fix is in place and tested. My attempt to update the PR description was refused, so the new wording is below for you to paste in.

**F10 fix (`packages/core/src/webhook/ciFailureInfrastructure.ts`)**
- `isSetupStep` now accepts a step only if it names a single setup operation.
- A step is compound, and so not setup, if it contains:
  - `and`, `then` or `plus`.
  - `run`, `runs` or `running` with words both before and after it.
  - `&&`, `;` or `|` anywhere.
  - `+` or `,` between words.
  - a `/` with a space beside it, or between two plain words.
- The existing `EXECUTION_STEP_PATTERN` rule still applies.
- A leading `Run ` is not a joiner, because GitHub adds it to unnamed command steps. That keeps the existing cases "Run npm ci" and "Run ./scripts/ci-install-chromium.sh" (the #3703 case) as setup. A `/` inside a path also doesn't count.
- GitHub's generated action steps (`Run <owner>/<action>@<ref>`, or `Post Run …`) are recognised by that shape. They are setup only when the action name is checkout, `setup-*`, cache, login or download-artifact. Any other action, such as "Run actions/github-script@v7", is not setup.

**Tests (`test/ciFailureInfrastructure.test.ts`)**
- I added every case you listed, the end-to-end classifier case ("Install dependencies and run migrations" with `ECONNRESET` is a code failure), and also "Run actions/cache@v4", "Run docker/login-action@v3" and "Post Run actions/checkout@v4".
- The suite passes 20 of 20, including all the earlier setup and non-setup cases.
- With the old source put back, 3 of the 4 new tests fail. The test for "Run ./scripts/deploy.sh" and "Run actions/github-script@v7" passed on the old code too, since the old rule already rejected both.
- Core and root typecheck, and core lint on the changed file, are clean.

Nothing else in the PR changed.

**PR description (S2):** `gh pr edit` was refused with "Resource not accessible by integration". Here is the replacement. Keep the status block and header; replace everything from **Summary:** up to the "View task" line.

---

**Summary:**
This PR does both parts of #3725. The status block says when CI is suspended, and a CI failure that looks like a runner or network problem starts no code follow-up. ProPR never re-runs failed jobs itself: the automatic re-run in the first version was removed, and re-running is manual. The status block tells a person to do it. There's no visual preview because the change is a line of text in the PR body.

**1. The status block says when CI is suspended**
- While a follow-up holds an active suspension on the current head, the status block in the PR body shows: `CI suspended until the follow-up finishes, re-running checks before then has no effect`.
- Once the suspension has cancelled runs, it also shows `runs cancelled by ProPR: N`. A change to that count alone is paced like other check-count changes, so a burst of cancellations doesn't edit the body once per run. The suspension starting or ending is written straight away.
- The text goes away when the suspension ends. It is only shown while the suspension is `active`; once ProPR starts restoring runs, a re-run is no longer cancelled.
- It uses the existing status computation and rendering, so it follows the same update rules. Epics show it too, whether finished or not. The suspension text is placed ahead of the check counts, so it survives when the line is cut to fit the 512-character limit.
- The facts come from the `pr_ci_suspensions` table (`pullRequestStatusCiNotes.ts`). If that record can't be read, the note is left out rather than failing the whole status read.
- The worker's suspension store now asks for a status update when a suspension is reserved, changes state, or is deleted. How long a suspension lasts and which runs it cancels are unchanged.

**2. Runner-only failures don't start a code follow-up**
- **Classifier:** `classifyCiInfrastructureFailure` is a pure function in `ciFailureInfrastructure.ts`. Any sign of a test, type or lint failure, or an annotation pointing at a source file, makes it a code failure. Otherwise it counts as infrastructure only if:
  - the runner received a shutdown signal or lost communication, or
  - every failed step is a setup/install step and the evidence shows a network, mirror or registry error.
- **Setup steps:** a step is a setup step only if it names one preparation operation (install, checkout, cache, set up, …).
  - A step that also runs tests, builds, lint or type checks is not one.
  - A step that joins two operations is not one either: "Install dependencies and run migrations", "Setup && seed database", "Install, then start the server", "Install Chromium / launch app".
  - GitHub's generated action step names count only when the action is a setup action, for example "Run actions/checkout@v4", "Run actions/setup-node@v4" or "Run docker/login-action@v3". "Run actions/github-script@v7" doesn't count.
- **Doubt:** if the steps or annotations can't be read or anything is unclear, it stays a code failure and gets its comment as today.
- **Handling:** an infrastructure-only failure posts no comment, so no follow-up starts and no suspension is recorded. Nothing is claimed, so a real code failure on a later re-run still gets its follow-up. ProPR does not re-run the jobs: re-running is manual.
- **On the PR:** while the check fails on the current head, the status block says `<job> failed on what looks like a runner or network problem, re-run the failed jobs`. It names two jobs at most, then `+N`.
  - The text is worked out from the head's failed checks each time the status block is updated, so nothing is stored.
  - It disappears once those checks no longer fail.
  - If that status update fails, it is only logged and the failure stays infrastructure-only.
- **Evidence read:** `ciFailureInfrastructureCheck.ts` reads the annotations of each failed GitHub Actions job, at most four at a time. It reads the job's step names only when the text already looks like an infrastructure error. Any read failure means no runner-problem text. A head with many failed jobs means proportionally more GitHub reads on each status update.

**Tests**
- `test/ciFailureInfrastructure.test.ts`: the classifier cases from the issue (the #3703 apt mirror stall, runner shutdown and lost communication, registry 5xx during install as infrastructure; a failing test, a type error and a lint error as not), plus the doubt cases, test/build/lint steps, and compound step names. It also checks that an infrastructure failure posts no comment, claims and stores nothing, makes no re-run request, and asks for a status update.
- `packages/core/test/pullRequestStatusCiNotes.test.ts`: the status-line text during and after a suspension, the length limit, the pacing, the runner-problem text with six failed jobs, epics, and reading the facts from SQLite.
- `packages/core/test/pullRequestStatusSync.test.ts`: a sync writes the job name into the PR body and makes no re-run request; when the check passes, the text is gone.

**Limit on one acceptance test:** the "no suspension" check is indirect. In this codebase a follow-up, and the suspension its implementation records, only starts from that posted comment, so the test shows that no comment is posted and nothing is claimed. It doesn't run the worker path itself.

I also documented the behaviour in `docs/docs/features/pr-followup.md` and added a CHANGELOG entry under Fixed.

### Review digest

**Risk-tiered paths**

- **High risk**: none
- **Normal risk** (9 files)
  - `packages/core/src/services/pullRequestStatus/pullRequestStatus.ts` (+53/−0)
  - `packages/core/src/services/pullRequestStatus/pullRequestStatusBlock.ts` (+36/−2)
  - `packages/core/src/services/pullRequestStatus/pullRequestStatusCiNotes.ts` (added, +143/−0)
  - `packages/core/src/services/pullRequestStatus/pullRequestStatusEditPacing.ts` (+2/−2)
  - `packages/core/src/services/pullRequestStatus/pullRequestStatusFacts.ts` (+18/−10)
  - `packages/core/src/webhook/ciFailureFollowup.ts` (+18/−8)
  - `packages/core/src/webhook/ciFailureInfrastructure.ts` (added, +174/−0)
  - `packages/core/src/webhook/ciFailureInfrastructureCheck.ts` (added, +130/−0)
  - `src/jobs/followupCiSuspensionStore.ts` (+10/−0)
- **Low risk** (5 files)
  - `CHANGELOG.md` (+12/−0)
  - `docs/docs/features/pr-followup.md` (+10/−0)
  - `packages/core/test/pullRequestStatusCiNotes.test.ts` (added, +240/−0)
  - `packages/core/test/pullRequestStatusSync.test.ts` (+35/−0)
  - `test/ciFailureInfrastructure.test.ts` (added, +305/−0)

**Diff size:** 14 files changed, +1186/−22 lines

PR: #3729
Comment by: @integry (ID: 7001385179)
Model: Claude Opus 5.5

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
@propr-dev

propr-dev Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Epic progress: 0.9.3: remaining findings from the 0.9.2 release check

4 of 4 issues merged ✅

Merged child PRs: #3729, #3731, #3734, #3735

✅ This epic PR has been merged into main.


This comment is updated automatically by ProPR as child PRs open, change and merge.

@propr-dev propr-dev Bot added the AI label Nov 19, 2026
…nder the shard that made it fail (#3731)

* The comment now lists the failed shard as the failure and mentions the aggregate job once as its consequence, with no evidence block of its own. The 15 new tests and the 132 existing CI-failure and comment tests pass, and typecheck and lint on core are clean. I didn't check that a new test fails with the fold logic removed.

How it decides. When a failed check comes in, ProPR reads the job's steps, the run's full list of jobs, and the workflow file at the run's head commit. The file is fetched once per run per comment, and not at all when nothing else in the run failed. An aggregate is folded only if all of these hold:
- the job's reported name maps to exactly one job id in the workflow, and that job `needs` at least one job that failed in this run attempt.
- each failed needed job also maps to exactly one id, including matrix jobs with expanded names.
- every failed step of the aggregate is a gate step: a named step that reads `needs.<id>.result` for one of those failed jobs.

If anything can't be read, parsed or mapped, or the aggregate has another failed step, the job is listed as a separate failure, as before.

In the comment:
- Shard already reported: the existing comment is edited to add a line like *"Also failed: Run Full Test Suite, which only reports the result of the failed job it needs (`Full Test Suite Shard 3/4`); it has no failure of its own."* The title stays the same.
- Aggregate reported first: the new comment lists the shard as the failure, reading the shard's own output and annotations, plus the "Also failed" line. It carries the shard's hidden marker, so the shard's own report later counts as a duplicate.

The follow-up prompt is the comment body without its hidden markers, so it gets the same folded list; a test checks that.

Choices you may want to revisit:
- In this repo's workflow, the coverage step ("Verify shards ran every discovered test exactly once") counts as the aggregate's own failure, so if it fails, the aggregate stays a separate failure.
- An aggregate with no failed step at all is not folded. I left out the issue's alternative condition ("no steps that ran tests/builds of its own") because "test/build step" can't be told from the workflow without guessing.
- If the aggregate's report starts the comment while the shard was judged a runner problem, the posted comment lists the shard as a code failure. Before this change the aggregate would have started a follow-up in that case too.

Files:
- New `packages/core/src/webhook/ciFailureAggregateFold.ts`: workflow parsing, the pure fold decision, and the GitHub reads.
- New `packages/core/src/webhook/ciFailureCommentText.ts`: the comment text helpers, moved out of `ciFailureFollowup.ts` to keep it under the 400-line lint limit. `buildAnnotationExcerpt` is still exported from the old module.
- `ciFailureFollowup.ts` loads the fold and builds the folded comment; `ciFailureCommentGrouping.ts` has the edit for the "Also failed" line.
- New `test/ciFailureAggregateFold.test.ts`, which runs on the real `pr-test-on-label.yml` and covers the four acceptance cases, plus ambiguous names, matrix names, both orders of arrival and the once-per-run file read.
- `docs/docs/features/pr-followup.md` now describes the folding.

To run the suites here I needed `--experimental-test-module-mocks` and writable `GIT_CLONES_BASE_PATH`/`GIT_WORKTREES_BASE_PATH`, because `/tmp/git-processor` is read-only in this container. I made no preview, since the change is comment text and logic rather than a screen.

* feat(ai): I fixed F1, F2 and F3, but the F1 fix means this repo's own `Run Full Test Suite` aggregate no longer folds. Its gate step also checks a result of the aggregate's own, and GitHub hides when that fails.

I fixed F1, F2 and F3, but the F1 fix means this repo's own `Run Full Test Suite` aggregate no longer folds. Its gate step also checks a result of the aggregate's own, and GitHub hides when that fails.

**What the API reports:** I checked real runs of this workflow. When a step with `continue-on-error: true` fails, GitHub's jobs API still reports it as `success`. For example, run 44380032434 shows `Run Full Test Suite shard=success` on a shard that failed. The gate step "Enforce shard and docs results" reads `steps.coverage.outcome`, so when coverage verification fails, only the gate shows as failed. Before this fix, that coverage failure would have been folded away. The existing test assumed GitHub would report the coverage step as failed, which it doesn't. So that gate counts as a mix of shard checks and the aggregate's own check, and the aggregate is listed as its own failure, as before this PR. To get folding back here, the coverage check would need its own step. I didn't change the workflow because that's outside these findings.

**F1 – a step only counts as a gate with positive evidence.** The new `ciFailureGateStep.ts` accepts a failed step only if all of this holds:
- It's a plain bash/sh `run` step: no `uses`, `with` or other keys.
- Every expression in its `run`, `env` and `if` reads only the needed jobs' results and outputs, or the `github` context. Reading the job's own steps, `env` or `inputs` disqualifies it.
- Its script uses only shell builtins (`echo`, `printf`, `test`, `[`, `exit`, …), variable assignments and functions it defines. Running any program, `$(…)`, backticks, here-documents, `case`, `for` or `eval` disqualifies it.
- It reads the result of at least one failed needed job.

**F2 – a comment started by another failure now gets the shards' evidence.** Before editing the existing comment, ProPR checks each failed shard's hidden marker in it. Shards not listed yet are added as failures with their evidence and marker, then the "Also failed" line. Shards already listed aren't added twice.

**F3 – runner-problem shards are no longer claimed.** Each shard the comment doesn't list yet is first checked by the same runner/network classifier its own report uses. If any is a runner or network problem, the aggregate isn't folded and is listed on its own, as before this PR. That shard gets no hidden marker, so a real failure on a manual re-run is still reported. The shard-loading code moved to the new `ciFailureFoldCauses.ts` to keep `ciFailureFollowup.ts` under the 400-line limit.

**Tests:** I added 7 regression tests in `test/ciFailureAggregateFold.test.ts`, covering:
- the repo's real gate not folding.
- a step that reads the result but also runs its own tests (`npm test`, `$(…)`, a script).
- steps that use an action, Python, or read their own job.
- an unrelated `Lint` comment followed by the aggregate.
- a shard already on the comment.
- the runner problem → aggregate → real re-run failure sequence.

The folding tests now use the workflow with the coverage check removed from the gate. All 22 tests in that file pass; with the fixes reverted, 5 of the new ones fail as expected. The other CI-failure suites (84 tests) and the checkRunHandler and Ultrafix recovery suites (207 tests) pass, and typecheck and lint on core are clean. `docs/docs/features/pr-followup.md` now describes the stricter rule and both changes.

**Something to decide:** under F3, if every failed shard was a runner problem, the aggregate is still posted on its own and starts a code follow-up, as it did before this PR. Leaving it unreported would be more accurate, but I left that out because it goes past the minimum correction.

I made no preview, since nothing here changes a screen.

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

* feat(ai): I fixed F4 and F5. The CI-failure suites pass (237 tests, including the existing checkRunHandler and non-blocking tests), and typecheck and lint on core are clean. The new tests fail on the previous code and pass with the fix.

I fixed F4 and F5. The CI-failure suites pass (237 tests, including the existing checkRunHandler and non-blocking tests), and typecheck and lint on core are clean. The new tests fail on the previous code and pass with the fix.

**F4: a gate step must be able to fail only on its dependencies' results.** Using only builtins is no longer enough. Your example script (`echo "${{ needs.build.result }}"` then `test -f dist/bundle.js`) is now treated as the aggregate's own failure, so the aggregate is listed separately with its evidence. A step counts as a gate only if all of these hold:
- **Tests:** every `test`, `[` and `[[` compares only values from the step's `env`, literals, variables set from those, or arguments to the script's own functions. Comparisons must be string or integer, so no `-f`, `-d` or `-s`, and unquoted globs and `~` are rejected.
- **Failure points:** `exit 1`, `return 1`, `false`, a call to a function that always fails, or `exit "$status"` after `status=1` must sit inside an `if` over such tests, or right after one via `&&`/`||`. Something like `echo "$BUILD"; exit 1` is not a gate.
- **Redirects:** output can go only to the step summary, `GITHUB_OUTPUT`, `GITHUB_ENV`, `/dev/null`, the standard streams or `>&N`. Reading input (`<`) is rejected.
- **Unsupported shell:** pipes, `&`, subshells, `set -u` and `shopt` are rejected.
- **Same flaw elsewhere:** a step with `working-directory` no longer counts as a gate, because a missing directory fails the step by itself.

I tested 10 of the new rejected cases against the previous checker, and it accepted every one. A second test checks that common real gate forms still fold. One example is `test "$R" = success || { echo ...; exit 1; }`; another is a `fail()` helper called after a test. The existing fold tests still pass, including the one built on this repo's own `Run Full Test Suite` gate with its coverage check removed.

The shell reading now lives in two new files, `ciFailureGateScript.ts` and `ciFailureShellLexer.ts`, so each file stays within the line and complexity limits.

**F5: non-blocking checks are never listed as the cause.** Before folding, `resolveFoldCauses` now checks each failed dependency against the repository's `nonBlockingChecks` patterns. If any one matches, the aggregate is reported on its own, exactly as before this PR. The filter sits in the one function both paths use, so it covers posting a new comment and adding to an existing one, and there is a test for each. The patterns are loaded only when a fold is possible. If the configuration can't be read, ProPR treats every check as blocking, as the webhook path already does; you can override the loader through a new `loadNonBlockingChecks` dependency.

I updated `docs/docs/features/pr-followup.md` for both rules.

**Not changed:**
- **`github` context in conditions:** tests may still compare `github` context values (for example `github.event_name`). So `[ "$EVENT" = push ] || exit 1` would still be read as a gate, even though it can fail regardless of the dependencies. It reads run metadata, not the job's own work, so I left it as the original design had it. Say if you want gates to require a dependency result in every failing condition.
- **Stricter in two ways:** `set -euo pipefail` and `[[ a && b ]]` with `&&` inside the brackets are now rejected, so such gates are listed separately rather than folded. `set -eo pipefail` still works.

No preview, since nothing here is visual.

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

* feat(ai): The PR no longer folds anything. A failed job that directly `needs` other jobs that failed in the same run is still listed with its own evidence. Its section gets one extra line, and it is listed after the jobs it depends on. The new tests and the existing CI-failure, comment and check-run suites pass (377 tests), and typecheck and lint on core are clean.

The PR no longer folds anything. A failed job that directly `needs` other jobs that failed in the same run is still listed with its own evidence. Its section gets one extra line, and it is listed after the jobs it depends on. The new tests and the existing CI-failure, comment and check-run suites pass (377 tests), and typecheck and lint on core are clean.

**What changed**
- **Deleted:** `ciFailureShellLexer.ts`, `ciFailureGateScript.ts`, `ciFailureGateStep.ts`, `ciFailureAggregateFold.ts`, `ciFailureFoldCauses.ts` and `test/ciFailureAggregateFold.test.ts`. Nothing reads a step's `run` script any more, and nothing reports a failure on behalf of another check.
- **New `ciFailureJobDependencies.ts`:** reads the job, the run attempt's job list and, only when another job in the run failed, the workflow file at the failing commit. It uses only each job's name, `needs`, matrix and `uses`. It gives up silently, adding no line and changing no order, when:
  - the workflow file can't be read or parsed.
  - the job list is incomplete.
  - the failed job's name doesn't map to exactly one job id.
  - a failed job that could be one of its `needs` maps to no id or to several (the matrix case).
- **The dependency line:** "Depends on the failed job(s) above: `<names>`. It may have failed only because they did; check them first." It sits between the Run line and the failure evidence. Jobs the repository marked non-blocking are left out, and if none remain there is no line.
- **Ordering:** if the dependent job is reported first and a job it needs is reported later, the later one is inserted before it in both the title and the sections. The commit line moves with the first section. Otherwise a new check is added at the end, as before.
- **Unchanged:** each check keeps its own evidence block, dedupe marker and blocking handling. The follow-up prompt is the comment as first posted, so the agent sees the same order and line. There is a test for this.
- **Docs:** `docs/docs/features/pr-followup.md` describes the behaviour above.

**Tests** (`test/ciFailureJobDependencies.test.ts`, 17 tests, run on the repo's real `pr-test-on-label.yml`):
- Shard fails, then the aggregate: both listed with evidence, the aggregate after the shard, with the line.
- Aggregate first: the prompt has the line, and the shard reported later goes before it.
- Aggregate fails but none of the jobs it needs failed: no line. When nothing else in the run failed, the workflow file isn't read at all.
- Unreadable or unparsable workflow file: no line, order unchanged.
- Ambiguous matrix name, or a failed job matching no id: no line.
- Non-blocking failed shard: not named, and only blocking shards are named when both kinds failed.

With the reordering switched off, the two ordering tests fail, so they do test it.

**Two things you might trip over:**
- If the aggregate is reported first, its line says "above" before the shard is listed. The follow-up prompt is taken from that first comment, so the agent gets the line naming the shard but not the shard's own section.
- A shard ProPR judged to be a runner problem is still named in the aggregate's line, though it never appears in the comment. Only non-blocking checks are filtered, as you specified; I didn't add an infrastructure check for the shards it needs.

**PR description** (I couldn't update the PR body from here, so here is replacement text):

> Closes #3726. When a failed GitHub Actions job directly `needs` jobs that also failed in the same workflow run (for example `Run Full Test Suite` over a failed `Full Test Suite Shard 3/4`), the CI-failure comment still lists it with its own evidence and adds "Depends on the failed job(s) above: <names>. It may have failed only because they did; check them first." to its section. Dependent jobs are listed after the jobs they need; a needed job reported later is inserted before its dependent. Only job names and `needs` from the workflow file at the failing commit are read; step scripts are never interpreted. Non-blocking jobs are not named. If the workflow can't be read or parsed, or a name doesn't map to exactly one job id (matrix names), there is no line and no reordering. The follow-up prompt is the posted comment, so it gets the same order and line. New `packages/core/src/webhook/ciFailureJobDependencies.ts` and `test/ciFailureJobDependencies.test.ts`; the shell-analysis and fold modules are removed.

I made no preview, since this changes comment text, not a screen.

PR: #3731
Comment by: @integry (ID: 7003653067)
Model: Claude Opus 5.5

* feat(ai): I fixed F6. The order of checks in a merged CI-failure comment now follows every dependency between them, not only whether something already listed depends on the check that just arrived. In your example (aggregate, then runner selection, then the shard), the comment now lists runner selection, then the shard, then the aggregate. Each check keeps its evidence, its dependency line and its hidden marker.

I fixed F6. The order of checks in a merged CI-failure comment now follows every dependency between them, not only whether something already listed depends on the check that just arrived. In your example (aggregate, then runner selection, then the shard), the comment now lists runner selection, then the shard, then the aggregate. Each check keeps its evidence, its dependency line and its hidden marker.

**What changed** (`packages/core/src/webhook/ciFailureCommentGrouping.ts`): I replaced the insertion logic with a reorder of the whole comment each time a check is added:
- Every listed section is read back, and the new check is added at the end.
- For each section, the dependencies are the other listed checks its dependency line names.
- Sections are placed one at a time: each step takes the earliest section whose dependencies are all already placed. Checks with no relation between them keep their arrival order. A dependency loop shouldn't happen in a valid workflow, but if it does, the earliest remaining section is taken.
- The title is rebuilt in the new order, and the shared commit line moves to whichever section ends up first.
- If the comment doesn't have the expected layout, the check is simply added at the end, as before. That includes a section whose check name can't be read back, or a title that doesn't match the listed checks.

**Regression test** (`test/ciFailureJobDependencies.test.ts`): it runs on this repo's real workflow file, delivering the aggregate, then runner selection (`Select PR check runners`), then shard 3/4. It checks:
- the order of the title and the sections.
- that the commit line sits under runner selection, once.
- that both dependency lines stay in their own sections.
- that all three checks keep their evidence and markers.

**Verification:**
- The new test fails on the previous code and passes with the fix.
- The CI-failure, comment-grouping, checkRunHandler, non-blocking and ultrafix-recovery suites pass (290 tests).
- Typecheck and lint on core are clean.

I found no other place with the same mistake: this function is the only one that changes the order of an existing comment, and a new comment only ever has one check.

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

* feat(ai): I removed the reordering. Sections now stay in the order the checks were reported, the title and commit line are built as before this PR, and the dependency line no longer says "above". The CI-failure and check-run suites pass (226 tests, 0 failures), and typecheck and lint on core are clean.

I removed the reordering. Sections now stay in the order the checks were reported, the title and commit line are built as before this PR, and the dependency line no longer says "above". The CI-failure and check-run suites pass (226 tests, 0 failures), and typecheck and lint on core are clean.

- **No reordering:** I restored `ciFailureCommentGrouping.ts` to exactly its state before this PR, which removes the reordering in the existing-comment path. The new-comment path builds a single check's content the same way as before, so there was no reordering to remove there. The helper that read dependency lines back out of an existing comment had no other use, so I removed it too.
- **Wording:** the line is now "Depends on the failed job(s): <names>. It may have failed only because they did; check them first." The follow-up prompt is the posted comment without its hidden markers, so it gets the same line. One test checks that the prompt doesn't contain "above".
- **A dependency reported later:** the dependent section is not edited. One test reports the aggregate first and the shard after, and checks that the aggregate's section is unchanged in the merged comment.
- **Tests** (`test/ciFailureJobDependencies.test.ts`): I removed the ordering assertions. The tests now check each section on its own: every failed job keeps its evidence and its hidden marker, and the line is in the dependent job's section and names only failed jobs it needs directly. They still check that a job marked non-blocking is not named, and that no line appears when the workflow file can't be read or parsed.
- **Docs** (`docs/docs/features/pr-followup.md`): updated with the new wording, the arrival order, and what happens when a dependency is reported later.

I couldn't edit the PR description myself (ProPR has refused PR description edits in past sessions), so here is replacement text for its summary section:

> When a failed GitHub Actions job directly `needs` jobs that also failed in the same workflow run (for example the `Run Full Test Suite` aggregate over a failed shard), the job is still listed as a failure with its own evidence and marker. Its section adds one line: "Depends on the failed job(s): <names>. It may have failed only because they did; check them first." Only failed, blocking jobs it needs directly are named. Checks stay in the order they were reported, and the title and commit line are built as before. If a needed job's failure is reported after the dependent job's section already exists, it is added as its own section and the dependent section is not edited. The follow-up prompt carries the same line. ProPR reads only the job names and `needs` from the workflow file at the failing commit. If that file can't be read or parsed, or a name doesn't map to exactly one job, no line is added.

F6 is resolved by this change. I made no preview, since only comment text and logic changed.

PR: #3731
Comment by: @integry (ID: 7004316668)
Model: Claude Opus 5.5

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
@propr-dev propr-dev Bot changed the title ◔ 1/4 [Epic] 0.9.3: remaining findings from the 0.9.2 release check ◑ 2/4 [Epic] 0.9.3: remaining findings from the 0.9.2 release check Nov 19, 2026
@propr-dev propr-dev Bot changed the title ◑ 2/4 [Epic] 0.9.3: remaining findings from the 0.9.2 release check ⚠️ 2/4 [Epic] 0.9.3: remaining findings from the 0.9.2 release check Nov 19, 2026
…llation rate limit on unchanged or bursty edits (#3734)

What it does now
- Where the budget comes from: a new file, `pullRequestStatusRateBudget.ts`, wraps the GitHub client for each status update. It reads `x-ratelimit-remaining` and `x-ratelimit-reset` from the update's own responses. Each update reads the pull request right before deciding, so every worker sees a fresh value and nothing needs to be shared between processes.
- Threshold: fewer than 500 requests left (10% of the smallest installation limit). Below that, `decideStatusBodyEdit` in `pullRequestStatusEditPacing.ts` skips any edit that would only change check progress. It tries again when the limit resets, but no sooner than 60 seconds and no later than 10 minutes.
- What is never delayed: status changes a person waits on (run started or finished, review score, ready to merge, suspended), title renames, and every write outside the status line: opening the PR, summaries, review comments, labels.
- Logging: each skip writes one log warning with the repository, PR number, requests remaining, threshold and reset time. Nothing is posted on the pull request.
- Status text: unchanged.
- Docs: `docs/docs/features/pr-status.md` now says check progress can lag by up to 30 seconds, and describes the low-budget rule.

Tests (in `packages/core/test/pullRequestStatusSync.test.ts`; the fake GitHub client can now report a remaining budget):
- Identical status: five updates with nothing new send no write requests.
- 20 check completions in the window: one or two edits in total, and the last one shows "20 passed, 1 pending".
- Low budget (40 left): check-count edits are skipped and logged once each. The run finishing still writes "✅ Ready", a completion summary written to the PR body still goes out, and check-count edits resume once the budget recovers.
- Negative check: with the budget skip turned off, the low-budget test fails.
- Overall: all 255 status tests pass, and core's typecheck and lint are clean.

The fix saves edits, not reads. Each check completion still triggers the reads needed to work out the status, and those count against the same rate limit. Cutting those reads would mean changing how check-completion updates are scheduled, which I left out of this change.

I didn't make a visual preview, since nothing in the UI changes.

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
@propr-dev propr-dev Bot changed the title ⚠️ 2/4 [Epic] 0.9.3: remaining findings from the 0.9.2 release check ◕ 3/4 [Epic] 0.9.3: remaining findings from the 0.9.2 release check Nov 19, 2026
@propr-dev propr-dev Bot changed the title ◕ 3/4 [Epic] 0.9.3: remaining findings from the 0.9.2 release check ⚠️ 3/4 [Epic] 0.9.3: remaining findings from the 0.9.2 release check Nov 19, 2026
… still takes seconds on a 27-character string (#3735)

* Both vendored picomatch builds now handle a group followed by `+` whose body can match the same text in more than one way. Every pattern from the issue returns in under 1 ms on a 5,000-character non-matching string, in both builds. I ran `test:unit` and the picomatch tests, not the full `npm run test:full` suite.

How it works. The existing extglob guard turns a risky `+(...)` into literal text, so I did the same here: the group and its `+` are matched as the literal string. The change is identical in `vendor/picomatch/lib/parse.js` (4.x) and `vendor/picomatch-v2/lib/parse.js` (2.3.2).
- Groups checked: plain `(...)`, `@(...)`, `!(...)` and comma braces `{a,b}` when followed by `+`.
- When a body counts as risky:
  - it contains `*`, ``, a regex `+`, or a nested repeating extglob (`(*a)+`, `(*)+x`, `(a*)+b`, `((*)+)+`, `{*a,}+`, `(a+|b)+`, `(*(a))+b`).
  - it has an alternation inside a nested group (`((a|aa))+`).
  - its top-level branches are not plain words that join together in only one way (`(a|aa)+`, `(ab|a|ba)+`, `(a|)+`). With `nocase`, branches are lowercased first, so `(A|a)+` counts.
- Negation: `!(...)+` is always treated as risky. Its compiled form ends in `*`, so it took about 5–6 s on 26 characters whatever the body was.
- Unchanged: `(js|ts)+`, `{a,b}+`, `(ab)+`, `([a-z][0-9])+`, `(a?)+`, and anything not followed by `+`. That includes `(*)*x`, whose second `*` is a wildcard rather than a repeat; it stays at about 7 ms on 5,000 characters. `maxExtglobRecursion: false` turns this check off along with the existing guard.

Behaviour change. Glob users who relied on these patterns will now get literal matches. Upstream's own mocha suites (4.0.7 and 2.3.2 tags) still pass except for 9 assertions, up from the 4 already documented. The 5 new ones are all `(a+|b)+`, which took 13 s on 29 characters with the old build. Both READMEs and `docs/dependency-audit-exceptions.md` describe this.

Version bump and lockfile.
- The tarballs were rebuilt with `npm pack` from the source directories and renamed to `…extglobguard.3.tgz`.
- I updated every reference: `package.json` overrides, the lockfile, `THIRD_PARTY_LICENSES.md`, the test and the signed-RPM acceptance files.
- Lockfile integrity was set as the README describes and regenerated with `npm install`. `npm ls` shows no invalid entries.

Tests.
- `test/vendoredPicomatch.test.mjs`: 17/17 pass. The new cases cover each issue pattern against both builds with a 50 ms bound, check that safe groups keep their results, and add a check through the real `anymatch`.
- `npm ci` in a clean copy of the tree succeeded and the same 17 tests pass there.
- `signed-rpm-acceptance-context.test.mjs` passes.
- `npm run test:unit`: 798 of 799 pass. The one failure was caused by my setting `PROPR_DEMO_MODE`; that file passes when rerun without it.
- A fuzz of 200,000 random globs per build found no unintended output changes, no new errors and no slow regexes.

Where controllable globs reach picomatch in ProPR (for the PR description). No ProPR source imports picomatch, micromatch, fast-glob, globby or similar libraries directly. They are reached through two dependencies:
1. `chokidar.watch(...)` in `packages/api/services/taskWatcher.ts:177`, `:233` and `:286` (picomatch via anymatch and readdirp). The watched path is built from the operator's agent config path in the database and a session ID, which comes from `randomUUID()` or the Claude CLI's output stream. No globbing option is turned off, so glob characters in that path would be read as a glob.
2. repomix `pack()` in `packages/core/src/services/context/optimizedContext.ts:63`, `:80` and `:238` (globby → fast-glob → micromatch → picomatch).
   - The include patterns are file paths from the cloned repository. Repomix escapes `( ) [ ] \` in them, and fast-glob expands braces before compiling, so a repository file name cannot form a repeated group.
   - Repomix also reads the target repository's `.gitignore`, `.ignore` and `.repomixignore`. globby turns those rules into extra skip patterns for fast-glob, but drops any rule containing `(){}|\`.
   - `.git/info/exclude` is passed to fast-glob without escaping. A cloned remote can't set that file, but an agent working in the clone could write it.
   - Repomix config files in the target repository are not read, because `pack()` is the library API rather than the CLI.

   Build-only users: vite, vitest, tailwind, eslint and Playwright configs.

There are no visual previews because nothing user-visible changed.

* feat(ai): I removed the vendored picomatch builds, and ProPR is back on upstream picomatch from the npm registry. A clean `npm ci`, the unit suite (799/799), typecheck and lint all pass. I couldn't change the PR title or description: both `gh pr edit` and the GitHub API returned 403 "Resource not accessible by integration". Please set the title to **Remove the vendored picomatch builds (advisory GHSA-fc5q-39xc-vjpf withdrawn)** and use the description at the end.

I removed the vendored picomatch builds, and ProPR is back on upstream picomatch from the npm registry. A clean `npm ci`, the unit suite (799/799), typecheck and lint all pass. I couldn't change the PR title or description: both `gh pr edit` and the GitHub API returned 403 "Resource not accessible by integration". Please set the title to **Remove the vendored picomatch builds (advisory GHSA-fc5q-39xc-vjpf withdrawn)** and use the description at the end.

**What changed**
- **Guard work dropped.** `vendor/picomatch/`, `vendor/picomatch-v2/`, both tarballs and `test/vendoredPicomatch.test.mjs` are deleted, so the `extglobguard.3` changes go with them.
- **`package.json`.** The `"picomatch": "$picomatch"` override and the three nested ones (`anymatch`, `micromatch`, `readdirp`) are gone. The vendoring commit (800738d) was what added picomatch as a direct dependency, so I removed it rather than replacing it with a version range.
- **Signed-RPM acceptance files.** The Dockerfile `COPY` lines, the allowlist in `signed-rpm-acceptance-context.mjs` and its test assertions are back to their pre-vendoring braces-only form.
- **Docs.** I removed the picomatch section from `docs/dependency-audit-exceptions.md` and the vendored picomatch row from `THIRD_PARTY_LICENSES.md` (MIT count 225 → 224). The notices validator passes.
- **`CHANGELOG.md`.** One entry under Unreleased → Removed.
- No CI workflow or `.npmrc` referred to the vendored builds. `vendor/braces/` is untouched.

**Lockfile** (regenerated with `npm install`; a second run leaves it byte-identical)

| Path | Version |
|---|---|
| `node_modules/picomatch` | 4.0.7 (dev) |
| `node_modules/anymatch/node_modules/picomatch` | 2.3.2 |
| `node_modules/micromatch/node_modules/picomatch` | 2.3.2 |
| `node_modules/readdirp/node_modules/picomatch` | 2.3.2 |

All four come from the registry. The only `file:` entry left is the braces tarball.

**Audit gates**
- `npm audit --omit=dev`: `found 0 vulnerabilities`
- `npm run audit:runtime`: `runtime dependency audit passed.`
- `npm run desktop:audit:packaging`: `packaging dependency audit passed.`
- **"Review dependency changes":** this job compares pushed commits through GitHub's dependency graph, so it can't run locally. As a stand-in, I asked the same API to compare the vendoring commit with its parent. It now lists `[email protected]` and `2.3.2` with no vulnerabilities, so GitHub's data already reflects the withdrawal. The job itself will run on CI after the push. I added no ignore entry.

**Other checks**
- `git grep -n "extglobguard\|picomatch-v2"` finds matches only in `CHANGELOG.md` history; the lockfile has none.
- The 799 unit tests and the signed-RPM context test (5/5) pass. A clean `npm ci` installs only picomatch 4.0.7 and 2.3.2.

There are no visual previews because nothing user-visible changed.

**PR description to paste:**

---
Closes #3728

GitHub withdrew advisory GHSA-fc5q-39xc-vjpf on 2026-11-18, and the picomatch maintainers say on micromatch/picomatch#273 that it is not a security issue. The two vendored picomatch builds only existed because that advisory had no fixed release. This PR removes them and goes back to upstream picomatch from the npm registry. It also drops this PR's earlier work extending the extglob guard (`extglobguard.3`).

**Removed**
- `vendor/picomatch/`, `vendor/picomatch-v2/`, both tarballs and `test/vendoredPicomatch.test.mjs`.
- From `package.json`: the `"picomatch": "$picomatch"` override, the nested `picomatch` overrides under `anymatch`, `micromatch` and `readdirp`, and the direct `picomatch` dependency, which the vendoring commit had added.
- The vendored picomatch tarballs from the signed-RPM acceptance Dockerfile, its allowlist and its test, which are back to braces only.
- The picomatch section of `docs/dependency-audit-exceptions.md` and the vendored picomatch row in `THIRD_PARTY_LICENSES.md`.

`vendor/braces/` and the braces advisories are unchanged.

**Lockfile:** picomatch resolves from the registry only, as 4.0.7 at the root (dev) and 2.3.2 under `anymatch`, `micromatch` and `readdirp`. The only `file:` entry left is the braces tarball.

**Audit gates:** `npm audit --omit=dev` finds 0 vulnerabilities, and `audit:runtime` and `desktop:audit:packaging` pass. GitHub's dependency-graph compare API lists `[email protected]` and `2.3.2` with no vulnerabilities. No ignore entry was added.

**Verification:** a clean `npm ci` succeeds, `test:unit` passes 799/799, and typecheck, lint and `signed-rpm-acceptance-context.test.mjs` pass. `git grep -n "extglobguard\|picomatch-v2"` matches only `CHANGELOG.md` history.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

PR: #3735
Comment by: @integry (ID: 7006455579)
Model: Claude Opus 5.5

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
@propr-dev propr-dev Bot changed the title ⚠️ 3/4 [Epic] 0.9.3: remaining findings from the 0.9.2 release check ◕ 4/4 [Epic] 0.9.3: remaining findings from the 0.9.2 release check Nov 19, 2026
@propr-dev

propr-dev Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

✅ Epic ready for final merge: 0.9.3: remaining findings from the 0.9.2 release check

4 of 4 issues merged

All 4 issues have been merged into this epic branch. This epic PR is ready for final review and merge.


Posted automatically by ProPR

@integry
integry marked this pull request as ready for review November 19, 2026 11:10

integry commented Nov 19, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=3

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

propr-dev Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

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

First action: /review

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

@propr-dev

propr-dev Bot commented Nov 19, 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 19, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR improves CI suspension visibility, adds infrastructure-failure classification, and reduces status writes when the API budget is low. It is not ready to merge because aggregate reporting does not deliver the visible requirement in #3726.

✅ Suspension lifecycle visibility — Status notes are scoped to the current head and active suspension state; reservation, state transitions, and deletion signal status updates.

✅ Conservative classification fallbacks — Annotation or job-request failures retain ordinary code follow-up behavior, and explicit test/type/lint evidence prevents infrastructure classification.

✅ Targeted rate-budget handling — Low-budget deferral applies to check-progress edits while preserving immediate writes for other status changes.

The supplied check summary reports 37 passed, none failed, and one pending. Review was static; no commands were run. The issue bodies are abbreviated, so assessment of requirements is limited to their visible text.

Merge blockers

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

F1: 🔴 Implement proven aggregate folding

  • Category: requirement

  • Required behavior: Issue CI-failure comment: fold an aggregate job under the shard that made it fail #3726 requires a proven aggregate to be folded under its failing shard, mentioned once as a consequence, without its own evidence block. Proof must include both workflow dependencies and the aggregate’s failed result-gate steps.

  • Evidence: packages/core/src/webhook/ciFailureJobDependencies.ts, parseJob and loadFailedJobDependencies; packages/core/src/webhook/ciFailureCommentText.ts, buildCheckSection; test/ciFailureJobDependencies.test.ts.

    1. A shard fails, and its dependent aggregate fails solely because its result gate reports that shard failure.
    2. The new dependency reader loads workflow names and needs, but discards step information and never establishes whether the aggregate failed only at its result gate.
    3. Reporting still creates a separate aggregate section with its own failure evidence and adds “It may have failed only because they did.”
    4. The new tests explicitly require both evidence blocks, including when the aggregate arrives first.

    static trace: The implementation deliberately retains the duplicate failure presentation that CI-failure comment: fold an aggregate job under the shard that made it fail #3726 asks to remove. Dependency certainty checks cannot close this gap because they establish only the relationship, not gate-only failure. The tests enforce the reduced behavior rather than the requested acceptance criterion.

  • Minimum fix: Add gate-only failure verification using the workflow and run’s failed steps. Fold proven aggregates into the relevant shard presentation, including aggregate-first delivery, while retaining independent evidence whenever proof is unavailable. Update the tests and documentation to match.

Suggestions

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

S1: 🟢 Measure repeated classification reads

pullRequestStatusCiNotes.ts reloads annotations for every eligible failed check on every status read, then potentially fetches job details. Bounded concurrency limits simultaneous requests but not total API consumption. Measuring this cost during failure bursts would help assess whether caching completed-check classifications is worthwhile. This is optional optimization; the supplied code does not establish a concrete rate-limit failure.

Score

The suspension and rate-budget changes have useful targeted coverage, but aggregate handling implements a materially reduced version of a visible acceptance criterion. Passing checks do not resolve that requirement gap.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 44s
  • Tokens: 141,349 (140,276 in / 1,073 out)
  • Cost: $1.35

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 S1

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Addressed finding F1

Analysis Summary

I didn't make any changes for F1, because the issue's owner has already decided against what it asks for.

Why: at 11:41:08Z, three minutes after the review comment with F1 was posted (7008003707, 11:38:33Z), integry edited issue #3726 and added this at the top:

Scope decision (2026-11-19): the folding described below is not being implemented. Proving that an aggregate job failed only because of a shard needs analysis of what its steps run, which proved too error-prone on #3731. Accepted behavior: every failed job keeps its evidence; a failed job that directly needs another failed job gets a line naming it ("Depends on the failed job(s): …"); no folding, no reordering.

The reviewer said it saw only "abbreviated" issue text, and the copy of #3726 given to this run is cut short above that note, so F1 was written against the original "Expected" section the owner has since set aside. The current code on this branch does exactly what the scope decision accepts:

  • ciFailureJobDependencies.ts reads only job names, needs, matrix and uses.
  • ciFailureCommentText.ts adds the "Depends on the failed job(s): …" line.
  • Every failed job keeps its own evidence block, and the tests check that.

History: F1's fix needs a "gate-only failure" proof. On #3731 that proof took three rounds of shell-script analysis (ciFailureGateStep.ts, ciFailureGateScript.ts, ciFailureShellLexer.ts), and each round left review findings open (F1–F5 there). integry then had it all removed (comment 7003653067). Doing F1 now would mean adding that analysis back, against a written decision made after the review.

If you still want folding: remove or revise the scope decision on #3726 and re-run this fix. Note that this repository's own Run Full Test Suite gate also checks its coverage step's result, so it still wouldn't fold here unless that check moves into its own step.

There's no preview, since nothing changed.

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


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 3m 31s
  • Tokens: 390,271 (387,253 in / 3,018 out)
  • Cost: $0.44

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

integry commented Nov 19, 2026

Copy link
Copy Markdown
Owner

On review finding F1 ("Implement proven aggregate folding"): do not implement it. This is a deliberate scope decision by the author of issue #3726, made on sub-PR #3731, and it replaces the issue's original wording.

Folding an aggregate job under its shard requires proving that the aggregate failed only because of the shard, which means reading what its steps run. Two review rounds on #3731 showed that this needs shell-script analysis (it reached 1,800 lines with a shell lexer) and kept producing new ways to drop real evidence. Dropping a failed job's evidence on a wrong proof is worse than showing one redundant section.

The accepted behavior for #3726 is what the branch does now:

  • Every failed job keeps its own evidence section and marker. Nothing is folded or dropped.
  • A failed job that directly needs another failed job gets the line "Depends on the failed job(s): . It may have failed only because they did; check them first."
  • Sections stay in the order the checks were reported. No reordering.
  • When the workflow cannot be read or a name does not map to exactly one job, there is no line.

Please do not add gate-step verification, step-script reading, folding or reordering. The only change wanted for F1 is wording: make docs/docs/features/pr-followup.md, the CHANGELOG.md entry and this PR's description describe the behavior above, and not claim folding. Please treat F1 as resolved by that in the next review.

@propr-dev

propr-dev Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 8f7fa13

Summary of Changes

I changed the wording only for F1. No code changed, and nothing for folding, reordering or step-script reading was added. One part is still open: I couldn't edit the PR description.

  • docs/docs/features/pr-followup.md: no change needed. The Auto CI follow-up paragraph already says what you listed: every failed job keeps its own evidence, the "Depends on the failed job(s): …" line, sections stay in reported order, and no line when the workflow can't be read or a name doesn't map to exactly one job. It doesn't claim folding anywhere.

  • CHANGELOG.md: the branch had no entry for CI-failure comment: fold an aggregate job under the shard that made it fail #3726, so I added one under Unreleased → Fixed. It describes the dependency line with your exact wording. It says nothing is folded, dropped or reordered, that ProPR reads only job names and needs, never what the steps run, and that no line appears when the workflow can't be read or parsed or a name maps to more than one job. The line text matches packages/core/src/webhook/ciFailureCommentText.ts:10-11.

  • PR description: gh pr edit was refused with "Resource not accessible by integration". The CI-failure comment: fold an aggregate job under the shard that made it fail #3726 entry still shows the issue's original title ("fold an aggregate job under the shard…"), with nothing saying folding was dropped. You can paste this sub-item under that line:

I didn't make previews because the change is text in the changelog only.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk: none
  • Low risk (1 file)
    • CHANGELOG.md (+13/−0)

Diff size: 1 file changed, +13/−0 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 3m 25s
  • Tokens: 382,090 (379,506 in / 2,584 out)
  • Cost: $0.31

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: 7008058774✓

…hing for folding, reordering or step-script reading was added. One part is still open: I couldn't edit the PR description.

I changed the wording only for F1. No code changed, and nothing for folding, reordering or step-script reading was added. One part is still open: I couldn't edit the PR description.

- **`docs/docs/features/pr-followup.md`:** no change needed. The Auto CI follow-up paragraph already says what you listed: every failed job keeps its own evidence, the "Depends on the failed job(s): …" line, sections stay in reported order, and no line when the workflow can't be read or a name doesn't map to exactly one job. It doesn't claim folding anywhere.
- **`CHANGELOG.md`:** the branch had no entry for #3726, so I added one under Unreleased → Fixed. It describes the dependency line with your exact wording. It says nothing is folded, dropped or reordered, that ProPR reads only job names and `needs`, never what the steps run, and that no line appears when the workflow can't be read or parsed or a name maps to more than one job. The line text matches `packages/core/src/webhook/ciFailureCommentText.ts:10-11`.
- **PR description:** `gh pr edit` was refused with "Resource not accessible by integration". The #3726 entry still shows the issue's original title ("fold an aggregate job under the shard…"), with nothing saying folding was dropped. You can paste this sub-item under that line:

  > - Scope decision on #3731: nothing is folded. Every failed job keeps its own evidence section and marker. A failed job that directly `needs` another failed job gets the line "Depends on the failed job(s): <names>. It may have failed only because they did; check them first." Sections stay in the order the checks were reported. When the workflow cannot be read or a job name does not map to exactly one job, no line is added.

I didn't make previews because the change is text in the changelog only.

PR: #3730
Comment by: @integry (ID: 7008058774)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 19, 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 19, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds visible CI suspension notes, infrastructure-failure classification, dependency hints, and rate-budget-aware status edits. It needs a localized correctness fix before merge.

✅ Evidence preserved — Dependency reporting retains each failed job’s evidence and marker without reordering sections, matching the authorized replacement for #3726.

✅ Suspension lifecycle reflected — Status facts require an active suspension matching the current head; restoration and deletion trigger status refreshes.

✅ Focused coverage — Added tests cover ambiguous dependency mappings, annotation-read failures, infrastructure classification, and bursty status edits.

The supplied issue bodies contain truncation notices, limiting acceptance-criteria verification. This review does not infer missing requirements. Current checks show 33 passed, four pending, and no failures.

Merge blockers

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

F2: 🔴 Preserve failures preceding runner shutdown

  • Category: correctness

  • Required behavior: Only infrastructure-only failures may suppress a code follow-up; evidence of an independently failed code step must keep the ordinary failure path.

  • Evidence: packages/core/src/webhook/ciFailureInfrastructure.ts:classifyCiInfrastructureFailure, specifically the unconditional RUNNER_LOST_PATTERNS return before examining failedSteps.

    1. A job’s test command exits unsuccessfully, producing only the generic annotation Process completed with exit code 1.; detailed failure output remains in the job log.
    2. An always() cleanup step subsequently runs, and the runner loses communication. GitHub reports the runner-loss annotation alongside the earlier exit-code annotation.
    3. loadFailedSteps supplies the failed test step, but the classifier finds no matching code-failure text and returns infrastructure: true immediately upon matching the runner-loss annotation.
    4. isInfrastructureOnlyFailure consequently suppresses the comment and code follow-up, while the status advises rerunning jobs despite the independent code failure.

    static trace: The classifier checks annotation paths and text patterns, but neither generic exit-code annotations nor a failed test step prevent its runner-loss return. The same classifier serves webhook/recovery follow-ups and status notes. Existing tests cover runner loss during a test, but not a test failure followed by runner loss during cleanup.

  • Minimum fix: Distinguish independently failed steps preceding runner loss from the step interrupted by it, or conservatively retain the code-follow-up path when that distinction cannot be established. Add a regression covering a failed test followed by runner loss during cleanup.

Suggestions

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

S2: 🟢 Measure classification read amplification

pullRequestStatusCiNotes.ts rereads annotations and potentially job details for every failed check on every status sync, before edit pacing or the low-budget decision. Measure total REST consumption during an outage with many failed jobs; caching classification by immutable job attempt could help. This is an optional performance follow-up because the supplied evidence does not establish actual budget exhaustion from these reads.

Score

The implementation preserves evidence and has useful targeted coverage, but runner-loss classification can suppress an independent code failure. The remaining checks are pending rather than failed.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 44s
  • Tokens: 143,223 (142,263 in / 960 out)
  • Cost: $1.36

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 F2 S2

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit ee98985

Addressed 1 AI review comment (IDs: 7008552790)

Addressed finding F2

Summary of Changes

I fixed F2. A runner-loss annotation no longer makes a failure infrastructure-only if a step failed before the runner went away. In your scenario (tests fail with Process completed with exit code 1., then the runner is lost in an always() cleanup step), the failure now posts the normal CI-failure comment and starts the code follow-up.

What changed

  • packages/core/src/webhook/ciFailureInfrastructureCheck.ts: it now passes the job's full step list, in run order with each step's status and conclusion, instead of only the names of failed steps.

  • packages/core/src/webhook/ciFailureInfrastructure.ts: a runner loss counts as infrastructure only if it accounts for every failed step:

    • no step failed (the interrupted step is usually cancelled or still in progress), or
    • exactly one step failed and no step started after it, so it is the step the runner loss cut off. Steps skipped after it don't count as started.

    A runner loss is now treated as a code failure when:

    • two or more steps failed.
    • any step started after the failed one (success, failure, cancelled, in progress, or unknown state).
    • the job's steps couldn't be read.

    The network/setup-step rule works as before, with the failed-step names taken from the same step list.

The webhook/recovery follow-up and the status note both call this classifier, so both now get the stricter rule. I found no other place making the same assumption.

Tests (test/ciFailureInfrastructure.test.ts)

  • A failed test step followed by a runner loss in a cleanup step stays a code failure, checked for each state the cleanup step can be in. A step skipped after the failure still allows the runner-loss verdict.
  • A runner loss with unreadable job steps stays a code failure.
  • An end-to-end case through postCiFailureFollowup with the exit-code and lost-communication annotations: the comment is posted.
  • The existing runner-loss tests now pass real step lists: the interrupted step failed, cancelled, or still in progress.

Verification

  • I put the old unconditional return back temporarily: the three new regressions fail against it, and the other 20 tests pass.
  • With the fix, all 23 tests in that file pass. The related suites (pullRequestStatusCiNotes, pullRequestStatusSync, ciFailureFollowup, ciFailureJobDependencies, ciFailureCommentGrouping) pass 154 of 154.
  • tsc --noEmit on packages/core and eslint with zero warnings on the changed source files are clean.

Nothing visible changed, so there are no previews.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/core/src/webhook/ciFailureInfrastructure.ts (+56/−4)
    • packages/core/src/webhook/ciFailureInfrastructureCheck.ts (+12/−11)
  • Low risk (1 file)
    • test/ciFailureInfrastructure.test.ts (+61/−7)

Diff size: 3 files changed, +129/−22 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 6m 18s
  • Tokens: 819,922 (808,767 in / 11,155 out)
  • Cost: $0.67

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

…ure infrastructure-only if a step failed before the runner went away. In your scenario (tests fail with `Process completed with exit code 1.`, then the runner is lost in an `always()` cleanup step), the failure now posts the normal CI-failure comment and starts the code follow-up.

I fixed F2. A runner-loss annotation no longer makes a failure infrastructure-only if a step failed before the runner went away. In your scenario (tests fail with `Process completed with exit code 1.`, then the runner is lost in an `always()` cleanup step), the failure now posts the normal CI-failure comment and starts the code follow-up.

**What changed**
- **`packages/core/src/webhook/ciFailureInfrastructureCheck.ts`:** it now passes the job's full step list, in run order with each step's status and conclusion, instead of only the names of failed steps.
- **`packages/core/src/webhook/ciFailureInfrastructure.ts`:** a runner loss counts as infrastructure only if it accounts for every failed step:
  - no step failed (the interrupted step is usually cancelled or still in progress), or
  - exactly one step failed and no step started after it, so it is the step the runner loss cut off. Steps skipped after it don't count as started.

  A runner loss is now treated as a code failure when:
  - two or more steps failed.
  - any step started after the failed one (success, failure, cancelled, in progress, or unknown state).
  - the job's steps couldn't be read.

  The network/setup-step rule works as before, with the failed-step names taken from the same step list.

The webhook/recovery follow-up and the status note both call this classifier, so both now get the stricter rule. I found no other place making the same assumption.

**Tests (`test/ciFailureInfrastructure.test.ts`)**
- A failed test step followed by a runner loss in a cleanup step stays a code failure, checked for each state the cleanup step can be in. A step skipped after the failure still allows the runner-loss verdict.
- A runner loss with unreadable job steps stays a code failure.
- An end-to-end case through `postCiFailureFollowup` with the exit-code and lost-communication annotations: the comment is posted.
- The existing runner-loss tests now pass real step lists: the interrupted step failed, cancelled, or still in progress.

**Verification**
- I put the old unconditional return back temporarily: the three new regressions fail against it, and the other 20 tests pass.
- With the fix, all 23 tests in that file pass. The related suites (`pullRequestStatusCiNotes`, `pullRequestStatusSync`, `ciFailureFollowup`, `ciFailureJobDependencies`, `ciFailureCommentGrouping`) pass 154 of 154.
- `tsc --noEmit` on `packages/core` and eslint with zero warnings on the changed source files are clean.

Nothing visible changed, so there are no previews.

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

propr-dev Bot commented Nov 19, 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 19, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Validate Changes

Please investigate and fix this CI failure.

Failure evidence

.github:231
Process completed with exit code 1.

.github:230
Chromium install timed out on every attempt.

.github:229
Chromium install attempt 2 timed out (exit 124).

@github-actions

Copy link
Copy Markdown

Checks Failed

Validation failed during setup, tests, CLI packaging, linting, or build checks.

View Logs
Build check diagnostics for run 44521629523, attempt 1
Checkout outcome: success

--- GitHub Actions workflow lint ---
docker.io/rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667: Pulling from rhysd/actionlint
589002ba0eae: Pulling fs layer
c09af8888d6a: Pulling fs layer
4ccd7d76ca98: Pulling fs layer
b6b4b7b0e257: Pulling fs layer
b6b4b7b0e257: Waiting
4ccd7d76ca98: Verifying Checksum
4ccd7d76ca98: Download complete
c09af8888d6a: Download complete
589002ba0eae: Verifying Checksum
589002ba0eae: Download complete
589002ba0eae: Pull complete
c09af8888d6a: Pull complete
4ccd7d76ca98: Pull complete
b6b4b7b0e257: Verifying Checksum
b6b4b7b0e257: Download complete
b6b4b7b0e257: Pull complete
Digest: sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667
Status: Downloaded newer image for rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667
docker.io/rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667

--- Release shell script lint ---

--- Toolchain ---
v22.23.4
10.9.9

--- Dependency installation ---
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated [email protected]: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]

added 1112 packages, and audited 1121 packages in 17s

318 packages are looking for funding
  run `npm fund` for details

8 moderate severity vulnerabilities

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

--- CLI release package ---
Verifying propr-cli release package...

> [email protected] cli:pack
> node packages/cli/scripts/build-publish.mjs


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc && node scripts/copy-assets.mjs

copy-assets: copied 9 file(s) into the CLI package.

Staged [email protected] at /home/runner/work/propr/propr/dist-publish/propr-cli
npm notice
npm notice 📦  [email protected]
npm notice Tarball Contents
npm notice 32.0kB README.md
npm notice 36.3kB dist/agentSkill.js
npm notice 477B dist/api/admission.js
npm notice 754B dist/api/agentRuntime.js
npm notice 7.1kB dist/api/agents.js
npm notice 2.6kB dist/api/agentTank.js
npm notice 4.4kB dist/api/automations.js
npm notice 13.3kB dist/api/client.js
npm notice 5.9kB dist/api/errors.js
npm notice 1.6kB dist/api/followupHandoffs.js
npm notice 16.9kB dist/api/goals.js
npm notice 6.0kB dist/api/implement.js
npm notice 2.9kB dist/api/index.js
npm notice 1.9kB dist/api/logs.js
npm notice 7.7kB dist/api/plans.js
npm notice 586B dist/api/pullRequests.js
npm notice 4.2kB dist/api/relay.js
npm notice 12.5kB dist/api/repos.js
npm notice 2.5kB dist/api/repositoryEvents.js
npm notice 16.2kB dist/api/settings.js
npm notice 2.0kB dist/api/stats.js
npm notice 1.6kB dist/api/syntheticPools.js
npm notice 1.8kB dist/api/system.js
npm notice 5.9kB dist/api/tasks.js
npm notice 2.9kB dist/api/todos.js
npm notice 86B dist/api/types.js
npm notice 313B dist/api/visualPreviewAuth.js
npm notice 32.9kB dist/assets/env.example.txt
npm notice 5.9kB dist/auth/githubLogin.js
npm notice 5.0kB dist/auth/verifyToken.js
npm notice 9.0kB dist/commands/admissionCommands.js
npm notice 19.7kB dist/commands/agentCommands.js
npm notice 4.2kB dist/commands/agentPoolCommands.js
npm notice 4.3kB dist/commands/agentSkillCommands.js
npm notice 30.0kB dist/commands/agentValidation.js
npm notice 31.2kB dist/commands/automationCommands.js
npm notice 72.3kB dist/commands/checkCommands.js
npm notice 8.9kB dist/commands/configCommands.js
npm notice 14.6kB dist/commands/connectCommand.js
npm notice 12.2kB dist/commands/eventCommands.js
npm notice 5.5kB dist/commands/githubAppApi.js
npm notice 27.7kB dist/commands/githubAppCommands.js
npm notice 60.8kB dist/commands/goalCommands.js
npm notice 9.4kB dist/commands/handoffCommands.js
npm notice 2.4kB dist/commands/imageCommands.js
npm notice 8.6kB dist/commands/implementCommands.js
npm notice 2.0kB dist/commands/index.js
npm notice 8.4kB dist/commands/initCommands.js
npm notice 14.1kB dist/commands/initStack.js
npm notice 6.1kB dist/commands/logCommands.js
npm notice 26.5kB dist/commands/planCommands.js
npm notice 3.1kB dist/commands/prCommands.js
npm notice 8.4kB dist/commands/relayCommands.js
npm notice 41.4kB dist/commands/repoCommands.js
npm notice 2.7kB dist/commands/repoValidate.js
npm notice 7.5kB dist/commands/runtimeCommands.js
npm notice 19.8kB dist/commands/settingCommands.js
npm notice 4.6kB dist/commands/setup/agentHostActions.js
npm notice 123B dist/commands/setup/agents.js
npm notice 4.7kB dist/commands/setup/engine.js
npm notice 51B dist/commands/setup/github.js
npm notice 37.3kB dist/commands/setup/hostActions.js
npm notice 3.2kB dist/commands/setup/imagePlatform.js
npm notice 27.3kB dist/commands/setup/sequential.js
npm notice 51B dist/commands/setup/state.js
npm notice 51B dist/commands/setup/types.js
npm notice 10.7kB dist/commands/setupCommand.js
npm notice 4.4kB dist/commands/stackCommands.js
npm notice 1.4kB dist/commands/startCommand.js
npm notice 4.8kB dist/commands/statsCommands.js
npm notice 4.9kB dist/commands/statsCostCommand.js
npm notice 14.8kB dist/commands/systemCommands.js
npm notice 3.5kB dist/commands/tankCommands.js
npm notice 47.6kB dist/commands/taskCommands.js
npm notice 29.7kB dist/commands/todoCommands.js
npm notice 31.0kB dist/commands/tunnelCommand.js
npm notice 2.7kB dist/commands/uiDocsCommands.js
npm notice 8.3kB dist/completion.js
npm notice 27.3kB dist/config/ConfigManager.js
npm notice 276B dist/config/index.js
npm notice 989B dist/config/rootKey.js
npm notice 345B dist/config/types.js
npm notice 46.0kB dist/connectIdentity.js
npm notice 25.0kB dist/connectRootAuthority.js
npm notice 32.5kB dist/connectWindowsAuthority.js
npm notice 2.2kB dist/desktopDiscovery.js
npm notice 13.3kB dist/desktopLocalSetup.js
npm notice 17.4kB dist/index.js
npm notice 4.5kB dist/native/darwin-authority-broker.c
npm notice 8.9kB dist/native/directory-operations.c
npm notice 50.1kB dist/native/prebuilds/darwin-arm64/connect-authority-broker
npm notice 54.2kB dist/native/prebuilds/darwin-arm64/directory-operations.node
npm notice 17.1kB dist/native/prebuilds/darwin-x64/connect-authority-broker
npm notice 24.3kB dist/native/prebuilds/darwin-x64/directory-operations.node
npm notice 28.9kB dist/native/prebuilds/linux-arm64/directory-operations.node
npm notice 17.4kB dist/native/prebuilds/linux-x64/directory-operations.node
npm notice 1.2kB dist/native/README.md
npm notice 3.1kB dist/orchestrator/format.js
npm notice 13.4kB dist/orchestrator/index.js
npm notice 302B dist/orchestrator/manifest.json
npm notice 131.2kB dist/orchestrator/orchestrator.mjs
npm notice 408B dist/orchestrator/types.js
npm notice 6.2kB dist/rootHelp.js
npm notice 237B dist/skill/propr/agents/openai.yaml
npm notice 8.9kB dist/skill/propr/SKILL.md
npm notice 4.5kB dist/tui/AgentTableApp.js
npm notice 4.5kB dist/tui/app.js
npm notice 11.6kB dist/tui/CheckApp.js
npm notice 5.1kB dist/tui/render.js
npm notice 32.5kB dist/tui/SetupApp.js
npm notice 18.4kB dist/tui/SetupApp.test.js
npm notice 8.2kB dist/tui/StartApp.js
npm notice 3.8kB dist/utils/apiErrorPresentation.js
npm notice 12.0kB dist/utils/directoryDescriptor.js
npm notice 739B dist/utils/dockerPort.js
npm notice 5.0kB dist/utils/envFile.js
npm notice 520B dist/utils/index.js
npm notice 5.7kB dist/utils/io.js
npm notice 717B dist/utils/localSetupPlatform.js
npm notice 1.5kB dist/utils/nativeArtifact.js
npm notice 544B dist/utils/parseState.js
npm notice 417B dist/utils/positiveInteger.js
npm notice 4.5kB dist/utils/privateFilesystem.js
npm notice 4.2kB dist/utils/resolveProject.js
npm notice 7.2kB dist/vendor/local-setup/agents.js
npm notice 64.5kB dist/vendor/local-setup/engine.js
npm notice 5.0kB dist/vendor/local-setup/envFile.js
npm notice 11.4kB dist/vendor/local-setup/github.js
npm notice 188B dist/vendor/local-setup/index.js
npm notice 27.5kB dist/vendor/local-setup/publicInstanceIdentity.js
npm notice 14.6kB dist/vendor/local-setup/state.js
npm notice 2.8kB dist/vendor/local-setup/types.js
npm notice 13.2kB dist/vendor/shared/acceptanceCriteria.js
npm notice 1.0kB dist/vendor/shared/accountStatusTimestamp.js
npm notice 7.7kB dist/vendor/shared/activityEvents.js
npm notice 2.8kB dist/vendor/shared/agentConfigRedaction.js
npm notice 4.4kB dist/vendor/shared/agentDefinitions.js
npm notice 2.3kB dist/vendor/shared/agentFailureLine.js
npm notice 3.4kB dist/vendor/shared/agentLogin.js
npm notice 3.1kB dist/vendor/shared/agentTank.js
npm notice 1.2kB dist/vendor/shared/agentTankHistory.js
npm notice 2.8kB dist/vendor/shared/analyticsTimeframe.js
npm notice 4.4kB dist/vendor/shared/antigravityCompatibility.js
npm notice 5.1kB dist/vendor/shared/apiOrigin.js
npm notice 3.5kB dist/vendor/shared/assignment.js
npm notice 17.2kB dist/vendor/shared/automationDefinitions.js
npm notice 9.2kB dist/vendor/shared/automationReportPreview.js
npm notice 2.4kB dist/vendor/shared/automationRunProductivity.js
npm notice 6.4kB dist/vendor/shared/automationTemplateContract.js
npm notice 18.5kB dist/vendor/shared/automationTemplates.catalog.json
npm notice 1.3kB dist/vendor/shared/automationTemplates.js
npm notice 3.4kB dist/vendor/shared/changedFileKinds.js
npm notice 1.4kB dist/vendor/shared/claudeCompatibility.js
npm notice 8.5kB dist/vendor/shared/connectDiscovery.js
npm notice 9.6kB dist/vendor/shared/cronSchedule.js
npm notice 254B dist/vendor/shared/demoMode.js
npm notice 4.3kB dist/vendor/shared/desktopPairing.js
npm notice 481B dist/vendor/shared/desktopTokenRevocation.js
npm notice 8.9kB dist/vendor/shared/events.js
npm notice 13.0kB dist/vendor/shared/extensionLibrary.js
npm notice 703B dist/vendor/shared/extensionOAuth.js
npm notice 4.0kB dist/vendor/shared/extensionPackages.js
npm notice 2.9kB dist/vendor/shared/extensionProfiles.js
npm notice 2.7kB dist/vendor/shared/fleetData.js
npm notice 2.5kB dist/vendor/shared/githubAppManifest.js
npm notice 1.6kB dist/vendor/shared/githubAuthMode.js
npm notice 2.0kB dist/vendor/shared/githubEventIntakeMode.js
npm notice 12.8kB dist/vendor/shared/goalBlockers.js
npm notice 6.0kB dist/vendor/shared/goalCheckpoints.js
npm notice 4.0kB dist/vendor/shared/goalCreation.js
npm notice 5.1kB dist/vendor/shared/goalWait.js
npm notice 14.4kB dist/vendor/shared/index.js
npm notice 214B dist/vendor/shared/instanceAuthorization.js
npm notice 54B dist/vendor/shared/instanceCatalog.js
npm notice 584B dist/vendor/shared/instanceStorage.js
npm notice 4.0kB dist/vendor/shared/intakeModePrerequisites.js
npm notice 2.9kB dist/vendor/shared/labelUtils.js
npm notice 20.1kB dist/vendor/shared/modelDefinitions.js
npm notice 3.5kB dist/vendor/shared/notificationLinks.js
npm notice 51.3kB dist/vendor/shared/notifications.js
npm notice 2.9kB dist/vendor/shared/openCodeCompatibility.js
npm notice 16.9kB dist/vendor/shared/planItemGraph.js
npm notice 7.5kB dist/vendor/shared/previewStorage/v1.js
npm notice 866B dist/vendor/shared/projectSlug.js
npm notice 3.8kB dist/vendor/shared/proprCompatibility.js
npm notice 13.0kB dist/vendor/shared/proprServiceUrls.js
npm notice 17.0kB dist/vendor/shared/prTemplate.js
npm notice 6.9kB dist/vendor/shared/prTitleStatusSlot.js
npm notice 2.2kB dist/vendor/shared/publishedVisualPreviews.js
npm notice 2.7kB dist/vendor/shared/reasoningLevels.js
npm notice 1.8kB dist/vendor/shared/repositoryEvents.js
npm notice 6.7kB dist/vendor/shared/repositoryEventWait.js
npm notice 1.2kB dist/vendor/shared/repositoryIcon.js
npm notice 1.4kB dist/vendor/shared/repositoryIconUrl.js
npm notice 3.9kB dist/vendor/shared/repositoryPresentation.js
npm notice 10.4kB dist/vendor/shared/reviewContextBudget.js
npm notice 5.8kB dist/vendor/shared/reviewFeedbackIds.js
npm notice 2.7kB dist/vendor/shared/reviewPrompt.js
npm notice 907B dist/vendor/shared/runCostCap.js
npm notice 861B dist/vendor/shared/sessionSecret.js
npm notice 392B dist/vendor/shared/sqliteTimestamp.js
npm notice 603B dist/vendor/shared/statusKeys.js
npm notice 7.5kB dist/vendor/shared/syntheticAgents.js
npm notice 2.2kB dist/vendor/shared/taskIdentifiers.js
npm notice 2.0kB dist/vendor/shared/taskLifecycle.js
npm notice 733B dist/vendor/shared/taskReplacement.js
npm notice 957B dist/vendor/shared/text.js
npm notice 2.6kB dist/vendor/shared/tokenOutlierSettings.js
npm notice 1.9kB dist/vendor/shared/ultrafixCycle.js
npm notice 1.8kB dist/vendor/shared/unfinishedRun.js
npm notice 9.8kB dist/vendor/shared/usageTips.catalog.json
npm notice 5.0kB dist/vendor/shared/usageTips.js
npm notice 335B dist/vendor/shared/usageTypes.js
npm notice 1.1kB dist/vendor/shared/userWhitelist.js
npm notice 758B dist/vendor/shared/validateRelayUrl.js
npm notice 2.2kB dist/vendor/shared/validateRoutingUrl.js
npm notice 7.1kB dist/vendor/shared/visualPreviewCapacity.js
npm notice 9.3kB dist/vendor/shared/voice.js
npm notice 222B dist/vendor/shared/workEvidence.js
npm notice 828B package.json
npm notice Tarball Details
npm notice name: propr-cli
npm notice version: 0.9.2
npm notice filename: propr-cli-0.9.2.tgz
npm notice package size: 545.6 kB
npm notice unpacked size: 2.2 MB
npm notice shasum: d722f4e851dbaf05c3584148e6215f8c480d7855
npm notice integrity: sha512-1sgNVTgR372UQ[...]mJ3t6iE4lBTnw==
npm notice total files: 220
npm notice
propr-cli-0.9.2.tgz

Dry run only. Re-run with --publish to publish to npm.
✅ propr-cli release package verified
Starting changed-area validation process...
Reusing this job's @propr/shared build from CLI packaging.
Reusing this job's @propr/local-setup build from CLI packaging.

--- Core Service: Lint & Build ---
✅ Core Lint passed
✅ Core Source Build passed

--- UI: Typecheck, Lint & Build ---
✅ Client Package validation passed
✅ UI Typecheck passed
✅ UI Lint passed
✅ UI Build passed

--- Docs: Typecheck & Build ---
✅ Docs Typecheck passed
✅ Docs Build passed
✅ Docs Static Serving Check passed

--- Core Package: Build & Lint ---
✅ Core Package Build passed
✅ Core Package Lint passed

--- CLI: Lint ---
✅ CLI Lint passed

--- API: Build & Lint ---
✅ API Build passed
✅ API Lint passed

--- API Reference: OpenAPI Spec & Client Contract ---
✅ OpenAPI spec is current and valid
✅ @propr/client matches the OpenAPI spec

--- Stage outcomes ---
Workflow lint: success
Release shell lint: success
Pre-setup gate: skipped
Node setup: success
Toolchain: success
Dependency install: success
Release metadata: success
CLI packaging: success
Change detection: success
Changed-area checks: success

View Workflow

@propr-dev

propr-dev Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @propr-dev[bot]

Analysis Summary

I didn't change any code. This failure came from the CI runner's network, not from this branch, and re-running Validate Changes should clear it.

What failed: the "Install Chromium for PWA Smoke Test" step. No tests or lint ran in it. The install script allows each playwright install --with-deps attempt 3 minutes, and both attempts ran out of time because the runner couldn't download packages from the Ubuntu servers:

  • From 12:15:15 the apt index downloads failed. The us-east-2.ec2.archive.ubuntu.com mirror logged Ign: on the noble, noble-updates and noble-backports indexes. The fallback archive.ubuntu.com also logged Ign:, and security.ubuntu.com logged Err:.
  • On the second attempt, single font packages took 15–40 seconds each and still failed (Ign:2 at 12:20:23 and Ign:3 at 12:21:02, both from archive.ubuntu.com). That attempt hit the timeout at 12:21:20.

Why it isn't this branch: the branch doesn't touch .github/ or scripts/ci-install-chromium.sh, and the failure happened before any project code ran. The same thing happened on PR #3724's run 44394169576 on 2026-11-18, when a slow EC2 Ubuntu mirror made both attempts time out.

Next step: re-run the Validate Changes job for commit ee98985f1. If the mirrors are still down, it will fail the same way until they recover.

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


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 3m 13s
  • Tokens: 228,299 (226,797 in / 1,502 out)
  • Cost: $0.25

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: 7008951421✓

@propr-dev

propr-dev Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @github-actions[bot]

Analysis Summary

I made no code changes: this failure was a runner problem, not something wrong with the branch.

What failed: The one failed job in run 44521629523 is "Validate Changes", and it ran on the current PR head (ee98985f1). Every stage in the posted summary says success, because the step that failed (the PWA/mobile browser smoke test) isn't listed there. The job log shows the real errors:

##[warning]Chromium install attempt 2 timed out (exit 124).
##[error]Chromium install timed out on every attempt.
##[error]Process completed with exit code 1.

The apt mirror was down while the job ran:

  • The runner's Ubuntu mirror (52.15.107.13) returned 503 Service Unavailable for the noble, noble-updates and noble-backports indexes.
  • security.ubuntu.com timed out on every address.
  • Downloads ran at about 24.6 kB/s, and the Playwright font packages (fonts-ipafont-gothic, fonts-freefont-ttf, …) never finished before the timeout.

No browser test ran, so nothing on the branch was tested and failed. The same mirror failure happened earlier on #3697 and #3722.

Next step: Re-run the "Validate Changes" job. If the mirror is still down, it may time out again, and that still won't mean the branch is broken.

I didn't create a preview because nothing changed.

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


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 3m 33s
  • Tokens: 275,230 (273,880 in / 1,350 out)
  • Cost: $0.31

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: 7008953559✓

@propr-dev

propr-dev Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds visible CI-suspension notes, infrastructure-failure classification, dependency hints, and rate-budget-aware status pacing. It needs a localized correctness fix before merge: the infrastructure classifier can suppress a genuine failure when another setup step reports a network error.

✅ Evidence preserved — Dependency hints retain each failed job’s evidence and marker without reordering, matching the authorized replacement for #3726.

✅ Status pacing — Check-progress edits respect the low-budget guard, while other status changes bypass it; the added tests cover both paths.

✅ Conservative read failures — Unreadable annotations or job steps preserve ordinary follow-up handling.

The supplied current-head status has 29 passed checks, no failures, and no pending checks. Original issue bodies contain truncation notices, so requirement assessment is limited to their visible wording and the authorized follow-ups. 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: 🔴 Require infrastructure evidence for every failed step

  • Category: correctness

  • Required behavior: Only infrastructure-only failures may suppress code follow-up; an independent failure requiring a repository change must retain ordinary follow-up handling.

  • Evidence: packages/core/src/webhook/ciFailureInfrastructure.ts, classifyCiInfrastructureFailure — the network branch combines all annotation/output text, requires every failed step to look like setup, and then accepts any network signature.

    1. A job’s Install dependencies step fails because package.json and the lockfile are inconsistent. Its annotations contain the lockfile-mismatch message and an exit-code notice, with no source-file path or matching CODE_FAILURE_PATTERNS expression.
    2. A subsequent Install browsers step configured with if: always() also fails, reporting ECONNRESET.
    3. Both failed names pass isSetupStep. The combined evidence matches NETWORK_PATTERNS, so the classifier returns { infrastructure: true } despite the independent lockfile failure.
    4. packages/core/src/webhook/ciFailureInfrastructureCheck.ts, isInfrastructureOnlyFailure, causes postCiFailureFollowup to return without posting the follow-up. The status-fact caller uses the same classifier and tells the user to rerun jobs, although the lockfile still requires correction.

    static trace: The classifier never associates the network evidence with individual failed steps. Its source-path and code-pattern exclusions do not recognize this lockfile diagnostic, and the supplied tests do not cover two setup failures with different causes. The shared classifier exposes the same mistake through both follow-up suppression and status rendering.

    proposed regression: Supply these two failed setup steps and their annotations; assert that ordinary follow-up handling is retained.

  • Minimum fix: Conservatively retain code-failure handling when multiple setup steps failed unless infrastructure evidence establishes the cause of each. Rejecting the multi-failure case is a localized fix that does not require script analysis.

Suggestions

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

S3: 🟢 Measure repeated classification reads

loadCiRunnerProblemFact rereads annotations for every eligible failed check on every status refresh, even when the rendered status is unchanged. Consider measuring this request volume and, if material, reusing evidence for immutable completed check runs. This is an optional performance follow-up; the demonstrated edit suppression still reduces writes.

Score

The implementation has substantial focused coverage and passing current-head checks, but mixed setup failures can incorrectly suppress necessary follow-up work. Fixing that classification boundary should make the change suitable for another merge-readiness review.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 43s
  • Tokens: 149,454 (148,444 in / 1,010 out)
  • Cost: $1.41

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 S3

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit a1539a2

Addressed 1 AI review comment (IDs: 7009674195)

Addressed finding F3

Summary of Changes

I fixed F3. If more than one step of a job failed, the failure is now treated as a code failure, even when the failed steps are all setup steps and the output shows a network error. In your scenario (Install dependencies fails on a lockfile mismatch, then an always() Install browsers step hits ECONNRESET), the normal CI-failure comment is posted, the code follow-up starts, and the PR status no longer says to re-run the jobs.

The fix: in classifyCiInfrastructureFailure (packages/core/src/webhook/ciFailureInfrastructure.ts), a network error now counts only when exactly one step failed and that step is a setup step. It used to be enough that every failed step looked like setup. The annotations and output aren't linked to a particular step, so with two failed steps a network error can't explain both. The header comment and the network-pattern comment now say this.

Other paths checked:

  • The follow-up suppression (isInfrastructureOnlyFailure) and the status note (loadCiRunnerProblemFact) both go through classifyFailedCheckRun into this one classifier, so the change fixes both.
  • The runner-loss rule already rejects more than one failed step (that was the F2 fix), so nothing changed there.
  • Six separate jobs each failing their single install step on a registry outage are each still flagged as runner problems.

New tests:

  • test/ciFailureInfrastructure.test.ts, classifier: the lockfile-mismatch-plus-ECONNRESET case, given both as a list of failed step names and as the job's steps. It also covers two failed install steps where the network error is the only evidence, and confirms a single failed install step with that error is still infrastructure.
  • test/ciFailureInfrastructure.test.ts, follow-up: postCiFailureFollowup with that job posts the follow-up and asks GitHub for no re-run.
  • packages/core/test/pullRequestStatusCiNotes.test.ts, status: the same job reads the job's steps and gets no runner-problem note.

Checks: both test files pass. With the old classifier put back, the three new tests fail and the other 34 still pass. tsc --noEmit for packages/core and ESLint with zero warnings on the changed source file are clean. ESLint has no config for the two test files, so they weren't linted.

The change isn't visible on screen, so there are no previews.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/core/src/webhook/ciFailureInfrastructure.ts (+8/−4)
  • Low risk (2 files)
    • packages/core/test/pullRequestStatusCiNotes.test.ts (+11/−0)
    • test/ciFailureInfrastructure.test.ts (+41/−0)

Diff size: 3 files changed, +60/−4 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (high)
  • Requested By: @propr-ultrafix
  • Time: 4m 30s
  • Tokens: 894,161 (887,726 in / 6,435 out)
  • Cost: $0.60

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

…ure is now treated as a code failure, even when the failed steps are all setup steps and the output shows a network error. In your scenario (`Install dependencies` fails on a lockfile mismatch, then an `always()` `Install browsers` step hits `ECONNRESET`), the normal CI-failure comment is posted, the code follow-up starts, and the PR status no longer says to re-run the jobs.

I fixed F3. If more than one step of a job failed, the failure is now treated as a code failure, even when the failed steps are all setup steps and the output shows a network error. In your scenario (`Install dependencies` fails on a lockfile mismatch, then an `always()` `Install browsers` step hits `ECONNRESET`), the normal CI-failure comment is posted, the code follow-up starts, and the PR status no longer says to re-run the jobs.

**The fix:** in `classifyCiInfrastructureFailure` (`packages/core/src/webhook/ciFailureInfrastructure.ts`), a network error now counts only when exactly one step failed and that step is a setup step. It used to be enough that every failed step looked like setup. The annotations and output aren't linked to a particular step, so with two failed steps a network error can't explain both. The header comment and the network-pattern comment now say this.

**Other paths checked:**
- The follow-up suppression (`isInfrastructureOnlyFailure`) and the status note (`loadCiRunnerProblemFact`) both go through `classifyFailedCheckRun` into this one classifier, so the change fixes both.
- The runner-loss rule already rejects more than one failed step (that was the F2 fix), so nothing changed there.
- Six separate jobs each failing their single install step on a registry outage are each still flagged as runner problems.

**New tests:**
- `test/ciFailureInfrastructure.test.ts`, classifier: the lockfile-mismatch-plus-`ECONNRESET` case, given both as a list of failed step names and as the job's steps. It also covers two failed install steps where the network error is the only evidence, and confirms a single failed install step with that error is still infrastructure.
- `test/ciFailureInfrastructure.test.ts`, follow-up: `postCiFailureFollowup` with that job posts the follow-up and asks GitHub for no re-run.
- `packages/core/test/pullRequestStatusCiNotes.test.ts`, status: the same job reads the job's steps and gets no runner-problem note.

**Checks:** both test files pass. With the old classifier put back, the three new tests fail and the other 34 still pass. `tsc --noEmit` for `packages/core` and ESLint with zero warnings on the changed source file are clean. ESLint has no config for the two test files, so they weren't linted.

The change isn't visible on screen, so there are no previews.

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

propr-dev Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Ultrafix stopped before reaching its goal. Requested goal: 8/10. Last score: 6/10. Stopped in cycle 3 of 3. Max cycles were exhausted, so manual review and merge are now required.

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

integry commented Nov 19, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

Merge-ready within the visible scope, conditional on pending checks completing successfully. The changes add suspension visibility, infrastructure-failure classification, dependency hints, and rate-budget-aware status pacing while removing the vendored picomatch builds.

✅ Evidence remains intact — Dependency hints retain each failure’s section and marker in reporting order, respecting the explicit decision against folding.

✅ Conservative classification safeguards — Unreadable annotations or job steps retain ordinary follow-up behavior; tests cover multiple failed steps and runner loss after an earlier test failure.

✅ Selective status pacing — Low-budget suppression applies to check-progress-only edits, while other status changes remain eligible for immediate writes.

This is a static review of the supplied code; no commands were run. Some original issue specifications are explicitly truncated, limiting acceptance-criteria verification. The authoritative current checks show no failures, with 15 pending.

Merge blockers

No merge blockers.

Suggestions

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

S4: 🟢 Align infrastructure documentation

In docs/docs/features/pr-followup.md, “Every failed step is a setup or install step” suggests multiple failed installation steps can qualify. The implementation deliberately requires exactly one failed step for network classification. The runner-loss description also omits the restriction on steps starting after an earlier failure. Aligning these descriptions would explain the conservative behavior more accurately; this is documentation cleanup rather than a runtime blocker.

S5: 🟢 Measure repeated classification reads

pullRequestStatusCiNotes.ts reloads annotations for each candidate on every status read, and qualifying candidates also fetch job steps. Concurrency is bounded, but repeated reads still consume API budget even when the eventual status edit is suppressed. Measuring that request volume would help determine whether caching completed-check evidence is worthwhile. This is an optional performance follow-up; the supplied code does not establish that these additional reads exhaust the budget.

S6: 🟢 Remove stale ordering wording

The opening comment in ciFailureJobDependencies.ts says the dependent job is listed after its dependencies. The implementation and accepted scope preserve reporting order. Removing that phrase would keep future maintenance aligned with the deliberate no-reordering decision.

Score

The supplied changes have focused regression coverage and no verified merge blocker. Pending checks still need to finish; review confidence is bounded by the truncated issue specifications and static-only validation.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 22s
  • Tokens: 152,361 (151,388 in / 973 out)
  • Cost: $1.45

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 S5 S6

🤖 Review by ProPR

@propr-dev propr-dev Bot changed the title ◕ 4/4 [Epic] 0.9.3: remaining findings from the 0.9.2 release check ✅ 4/4 [Epic] 0.9.3: remaining findings from the 0.9.2 release check Nov 19, 2026
@integry
integry merged commit 83ed9ac into main Nov 19, 2026
53 checks passed
@integry
integry deleted the 3725-epic-0-9-0ws branch November 19, 2026 20:30
@propr-dev propr-dev Bot changed the title ✅ 4/4 [Epic] 0.9.3: remaining findings from the 0.9.2 release check [Epic] 0.9.3: remaining findings from the 0.9.2 release check Nov 19, 2026
@propr-dev

propr-dev Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

✅ Epic merged: 0.9.3: remaining findings from the 0.9.2 release check

Epic PR #3730 has been merged into main.

4 of 4 issues merged into main through this epic PR.

All planned epic work is now merged.

Posted automatically by ProPR

propr-dev Bot pushed a commit that referenced this pull request Nov 19, 2026
…n the issue's list passed. This is metadata only, with no behaviour changes. I checked upstream `main` first; it is at `83ed9acd0` (#3730), the same commit as this branch.

Version bump (the same 19 files as the 0.9.2 preparation, #3683):
- Packages: root `package.json`, the six `@propr` packages (api, cli, client, core, local-setup, shared) and `apps/desktop` are now 0.9.3, and their internal `^0.9.2` ranges are now `^0.9.3`. `package-lock.json` has the same 19 changed lines as last time.
- Version constant and manifest: `PROPR_VERSION` is `'0.9.3'`. The launcher manifest pins version 0.9.3, the images `:0.9.3` and `git_sha` `83ed9acd0…`, the current `main` head, as 0.9.2 did.
- Left alone: independently versioned packages (docs stays 0.0.0) and the vendored `braces` tarball.

CHANGELOG:
- `## [0.9.3] - 2026-11-20` with a new empty `## [Unreleased]` above it, and the comparison links updated. Everything from `## [0.9.2]` down is byte-identical to the `v0.9.2` tag; I checked with `diff`.
- Added (missing before):
  - Follow-up comments always picked up
  - The "branch already exists" worktree fix
  - A run that didn't open its PR now ends as `publication_failed`
  - Runs that end while the agent is still waiting are flagged as unconfirmed
  - Repeated bot comments post once, with the rate-limit reset time fixed
  - Labels applied once
  - Status-line edits skipped when the App's rate limit runs low
  - The hosted UI deploy now fails when it did not deploy
  - Four web UI fixes: tap targets, Maintenance showing Running, LLM Log, and the automation run list
- Merged: the two agent CLI bump entries into one (Codex 0.170.0, Claude Code 2.1.328, Antigravity 1.5.12).
- Updated: the CI-suspension entry now says when a failure still counts as a code failure (two or more failed steps, or a step that ran after the failed one).
- Moved: Gemini 4 Neon and Carbon from Changed to Added.
- Removed: the CI-only Chromium install entry.
- Unchanged: the CI-failure comment entry already describes a dependency line, not folding. The picomatch removal was already listed.

Release notes: `release-notes/v0.9.3.md` (37 lines) has Highlights in five groups (agents and models, follow-ups and CI failures, pull requests and comments, web UI, releases), then Upgrade notes. The upgrade notes say:
- No manual steps are expected.
- The vendored picomatch builds are gone, so run `npm ci` in source checkouts.
- Runs that committed but didn't open a PR now end as failed (`publication_failed`).
- The new "unconfirmed" comment wording, which needs a summarization model.
- `reportPreview` now holds the report's first sentence instead of its title.
- Existing PRs without the `AI` label still need it added by hand.

Docs: the current-release examples in `README.md`, `apps/desktop/README.md`, `desktop-application.md`, `desktop-pairing.md` and `hosted-ui-release.md` now say 0.9.3. Historical references such as "v0.9.2 and earlier" are unchanged.

Validation results:
- `EXPECTED_VERSION=0.9.3 RELEASE_TAG=v0.9.3 RELEASE_CANDIDATE=true npm run release:verify`: `Release metadata is consistent for v0.9.3`, exit 0.
- `node --test test/releaseValidation.test.mjs`: 37 of 37 pass.
- `npx tsx --test test/orchestratorProprUrlsDrift.test.ts`: 13 of 13 pass.
- Desktop version tests (release-config, release-workflow, the macOS and signed update policies, macOS branding, release-architecture, release-publish, nightly-native-bundle, runtime-manifest, release-artifacts, preflight, Windows installer, Linux and macOS preview releases): 194 tests, 188 pass, 0 fail, 6 skipped.
- `npm run audit:runtime` and `npm run desktop:audit:packaging`: both pass.
- Lint with `--max-warnings 0` on root `src/`, core, api, cli and propr-ui: clean.
- Typechecks for root, shared, client, core, local-setup, api, cli, propr-ui and desktop: clean.
- `npm run build --prefix docs`: succeeds.
- `git diff --check`: clean.
- `THIRD_PARTY_LICENSES.md`: regenerated twice with byte-identical results, and the notice validator passes. Only the `Generated:` date and the three ProPR package versions changed. picomatch is not listed there, so its move from vendored to upstream changes nothing in the file.

Two things to know before merging:
- Generated date: the regenerated license file says `Generated: 2026-11-19`, because the lockfile change is uncommitted and the script uses today's UTC date. If this is committed after midnight UTC, the script will expect 2026-11-20 and the file will need regenerating.
- Nightly test fix: the one the issue mentions is PR #3739, which is still open and not on `main`. It only changes a test, so it needs no changelog entry, but it is not in this release yet.

Nothing was tagged, published, merged or deployed, and I made no previews because nothing here changes the UI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

1 participant