Repository navigation
[3529 by Claude Opus 5.5] Compute one PR status and show it live at the top of the PR body - #3535
Conversation
…ypecheck is clean in every workspace and lint is clean on the changed files. One status computation (`packages/core/src/services/pullRequestStatus/`) - `computePullRequestStatus(facts)` is a pure function that returns `state` (`working`, `needs_attention`, `ready`, `none`) and `detail`: activity, Ultrafix cycle and maximum, review score, checks passed/failed/pending, the reason a PR needs you, and epic issues merged/total. - A loader gathers the facts: ProPR tasks and their latest states, queued jobs, Ultrafix loop and CI-wait state from Redis, blocking checks on the head (respecting `nonBlockingChecks`), mergeability, the latest review score, the instance rating goal and epic progress. - `ready` is never reported from the review score alone. Goal reached with checks pending is `working`; with a failed check it is `needs_attention`. Checks that can't be read never count as ready. - The PR body block and the three MCP tools both use this function. The `prStatusDisplay` setting (off by default, applies to every branch of a repository) - It is wired through the config type, API validation, MCP `update_repository_configuration` / `get_repository_configuration`, the settings catalog, the CLI (`--pr-status on|off` on `repo add` and `repo toggle`), a UI toggle under Automation, and the regenerated settings docs. The live block in the PR body - The block sits between `<!-- propr:pr-status -->` markers; only text between them is ever rewritten. New issue PRs are created with it already in the body (room is reserved in the body length budget). It is removed when the PR is merged or closed, or on the next change after the setting is turned off. - Updates are triggered by task state changes (follow-up, review, conflict resolution, implementation), Ultrafix state and CI-wait writes, recorded review scores, and PR and check-run webhooks. - Bursts of changes are merged into one update, and updates for the same PR are serialized with an in-process chain plus a Redis lock. - No PATCH is sent when only the "updated HH:MM" time would change. - A failed update is logged and never fails the task, review or loop that triggered it. - The other body writers (visual preview publication, upload-failure rewrite, goal PR completion, goal previews, epic body update) now all go through one helper that re-reads the current body and keeps the block. - ProPR's own body edits come back as `edited` webhooks; these are recognised and ignored before any handler runs. MCP: `get_pull_request`, `list_pull_requests` and `get_work_overview` now return `proprStatus`. The two list tools compute it for at most 20 open PRs per call to bound GitHub traffic: the rest read `null` and the response sets `statusTruncated`. Behaviour to know before merging - Status updates only run in processes that turn them on: the worker, the daemon's webhook handler, and the API when it receives webhooks directly. That keeps tests and library use free of side effects. - If the setting is turned off, the block is only removed from PRs where ProPR recorded writing it, via a Redis marker with a 180-day TTL. A block written before a Redis reset would stay until edited by hand. - A PR whose checks are pending reads `working` even when a person, not ProPR, made the push. I simplified "after ProPR's last push" to "pending on the current head". Tests added: - Every row of the state table, including the four required cases. - A full transition sequence: created → follow-up → review → score → Ultrafix cycle → CI wait → loop end. A human edit, preview section and continuation marker stay byte-for-byte unchanged throughout. - No PATCH when only the time changes; removal on merge/close and when the setting is turned off. - Visual preview publication keeps the block; the status-only `edited` webhook is ignored. - A new issue PR opens with the block when the setting is on. - API, MCP, CLI and UI tests, plus a Playwright e2e test for the toggle. Test environment: several suites failed only because `/tmp/git-processor` is read-only in this container; they pass with writable clone paths set. Docs: a new `docs/docs/features/pr-status.md` page, plus rows in `mcp.md` and `propr-cli.md`, and a CHANGELOG entry. I captured a preview of the new toggle in Repositories → Automation.
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR introduces a shared status computation, connects it to MCP and PR bodies, and adds repository-wide configuration. It needs changes before merge: incomplete check reads can report readiness, PR ownership is inferred too broadly, and some status updates and cleanup paths are missed. ✅ Shared computation — Body rendering and MCP reads use the same pure status function, with explicit tests for pending CI, failed checks, and Ultrafix transitions. ✅ Configuration consistency — API preservation logic and UI toggles apply the setting across branch entries and preserve it when older clients omit the field. ✅ Controlled body updates — Status-only changes preserve surrounding body content, and timestamp-only changes avoid unnecessary PATCH requests. This review is a static trace of the supplied code; no commands or tests were run. The supplied current-head checks show no failures and one pending check. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Truncated checks can report ready
F2: 🔴 Reviewing a human PR changes its ownership classification
F3: 🔴 Commit-status transitions do not refresh the body
F4: 🔴 Initially created blocks can escape cleanup
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Share queue reads across lists
ScoreThe shared design and focused tests provide a solid foundation, but four correctness gaps remain in readiness, ownership, freshness, and cleanup. Current checks are encouraging but do not cover these sequences. Score: 5/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 021591f
Summary of ChangesI fixed all four findings (F1–F4) and added a regression test for each. I ran every new test against the original code: each one fails there and passes with the fix. The status suites, the other webhook/PR-creation suites I re-ran, typecheck and lint are all clean. F1 – Too many checks could still report ready. F2 – Reviewing a human's PR made it look like ProPR's. Having tasks on a PR no longer proves ProPR created it. Creation is now proven only by one of these:
Review, follow-up and conflict tasks still feed the activity shown in the status. They just don't mark the PR as ProPR's. The test runs review, follow-up and merge-conflict tasks on a human PR: it stays F3 – Commit status changes didn't refresh the body. A F4 – The block a PR was created with could survive turning the setting off. ProPR now records the block in two places:
Turning the setting off then removes that block on the PR's next change. Tests cover both, plus the worker side: PR creation records the marker, and doesn't when the setting is off. I also added three lines to Separate issues I found but didn't fix (outside the four findings):
🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…st for each. I ran every new test against the original code: each one fails there and passes with the fix. The status suites, the other webhook/PR-creation suites I re-ran, typecheck and lint are all clean. I fixed all four findings (F1–F4) and added a regression test for each. I ran every new test against the original code: each one fails there and passes with the fix. The status suites, the other webhook/PR-creation suites I re-ran, typecheck and lint are all clean. **F1 – Too many checks could still report ready.** `loadCheckRuns` now also says whether it read every check run. If the three-page limit (300 runs) leaves some unread, the checks count as incomplete, so the PR shows "needs attention · checks could not be read" instead of `ready`. Legacy commit statuses didn't have this problem: when that response is cut short, the existing code already falls back to the overall commit state. The test puts a failing run on page 4. A second check confirms that exactly 300 runs still counts as complete. **F2 – Reviewing a human's PR made it look like ProPR's.** Having tasks on a PR no longer proves ProPR created it. Creation is now proven only by one of these: - an implementation task (type `issue`, `implementation` or empty) whose `pr_number` is that PR. - a plan issue, a goal, or an epic branch. Review, follow-up and conflict tasks still feed the activity shown in the status. They just don't mark the PR as ProPR's. The test runs review, follow-up and merge-conflict tasks on a human PR: it stays `none` and nothing is written to its body. **F3 – Commit status changes didn't refresh the body.** A `status` webhook now looks up the open PRs for that commit and refreshes their status. Repositories with the setting off cost no GitHub lookup. A burst of status events for the same commit triggers only one lookup, and the per-PR refreshes are still merged and serialized as before. The test goes from "Waiting for CI" to "Ready" through this path. **F4 – The block a PR was created with could survive turning the setting off.** ProPR now records the block in two places: - right after a new issue PR is created with the block. - whenever a sync finds the block already up to date and skips the PATCH. Turning the setting off then removes that block on the PR's next change. Tests cover both, plus the worker side: PR creation records the marker, and doesn't when the setting is off. I also added three lines to `docs/docs/features/pr-status.md`: someone else's PR stays `none`, the 300-check limit, and commit statuses as a trigger. There are no visual previews: the change only affects PR body text and server behaviour. **Separate issues I found but didn't fix (outside the four findings):** - A `check_run` event that lists no PRs (typical for fork PRs) triggers no refresh. ProPR's own PRs come from branches in the repository, so this shouldn't affect them. - A PR becoming unmergeable because its base branch moved sends no event for that PR, so the body can lag until the PR's next change. PR: #3535 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
|
Change of scope for the setting. The live status block at the top of the PR body must not be configurable: write it on every open pull request ProPR created, in every repository, with no setting. ProPR already owns that part of the body and the edits leave no timeline entry, so there is nothing to opt out of. Remove the |
|
✅ Applied the requested follow-up changes in commit 54fe15b Summary of ChangesThe status line at the top of the PR body no longer has a setting: ProPR now writes it on every open pull request it created, in every repository. The setting is now Body block, no gate
Docs: the PR status page now says the body line has no setting and can't be turned off. It has a new "The title setting" section saying the setting changes nothing until the title emoji arrives. The rows in Tests: the status, PR-creation, visual-preview, CLI, UI and API settings suites pass, as does the Playwright test for the toggle. Typecheck and lint are clean on the changed files. Three API tests fail, but they fail the same way on the unchanged branch head, so they aren't caused by this change:
I captured a new preview of the renamed toggle in Repositories → Automation, shown on by default. Visual previewPR title status setting in repository AutomationRepositories → integry/propr → Settings → Automation with the renamed "Show the PR state as a leading emoji in the pull request title" toggle, on by default, stating it controls the title only (desktop, 1440×900, API stubbed). Connect sign-in required. Original retained until 2027-02-11T12:35:45.565Z. View the full-resolution original in ProPR Connect 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…etting: ProPR now writes it on every open pull request it created, in every repository. The setting is now `prTitleStatus`, on by default, and nothing reads it yet. The status computation and the MCP `proprStatus` fields are unchanged. The status line at the top of the PR body no longer has a setting: ProPR now writes it on every open pull request it created, in every repository. The setting is now `prTitleStatus`, on by default, and nothing reads it yet. The status computation and the MCP `proprStatus` fields are unchanged. **Body block, no gate** - The body sync and the block a new pull request is created with no longer read any repository setting. In a process that runs status updates (the worker, the daemon, and the API when it receives webhooks), every new issue PR opens with the block. Library use and tests still write nothing. - I removed the code that only existed for "turning the setting off removes the block": the 180-day Redis marker, `recordPullRequestStatusBlock` and its call when a PR is created, and the check that skipped GitHub reads for repositories with the setting off. - I removed the tests for that path too. In their place, tests check that the block is written with no setting involved and that a PR created with the block is confirmed without a PATCH, then kept up to date. **`prTitleStatus` setting** - It's on every surface repository settings have: - config type and a loader, `loadRepositoryPrTitleStatus`, ready for #3530 - API validation and preserve logic - the MCP get/update tools - the settings catalog (`repository.pr_title_status`) - the CLI flag `--pr-title-status <on|off>` on `repo add` and `repo toggle` - a UI toggle labelled "Show the PR state as a leading emoji in the pull request title" - the regenerated settings docs - It's repository-wide and only off when an entry of the repository sets it to `false`; clients that leave the field out keep the stored value. - The catalog description, the MCP field description, the CLI help, the UI text and the docs all say it controls the title only. **Docs:** the PR status page now says the body line has no setting and can't be turned off. It has a new "The title setting" section saying the setting changes nothing until the title emoji arrives. The rows in `mcp.md`, `propr-cli.md` and the CHANGELOG entry match this. **Tests:** the status, PR-creation, visual-preview, CLI, UI and API settings suites pass, as does the Playwright test for the toggle. Typecheck and lint are clean on the changed files. Three API tests fail, but they fail the same way on the unchanged branch head, so they aren't caused by this change: - `repository read failures retain tolerant defaults…`: "Missing expected rejection". - `settings catalog documentation paths exist in the bundled docs index`: the docs index isn't built in this container. - `observable MCP surface…`: also needs the docs index. I captured a new preview of the renamed toggle in Repositories → Automation, shown on by default. PR: #3535 Comment by: @integry (ID: 6852147972) Model: Claude Opus 5.5
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements the revised scope well, but needs changes before merge because unavailable facts can produce a false ✅ Shared computation — The body updater and MCP readers both use ✅ Revised setting scope — ✅ Focused coverage — Added tests exercise lifecycle transitions, body preservation, timestamp-only suppression, and incomplete check-run pagination. The supplied current-head checks show no failures, with two checks still pending. This review is based on static inspection; no commands or tests were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F5: 🔴 Unavailable activity and review facts can report ready
F6: 🔴 Unknown mergeability is treated as conflict-free
F7: 🔴 Status growth exceeds the reserved body budget
SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Exercise distributed lock expiryThe concurrency test uses one process and a fake Redis implementation without TTL expiry, so it verifies local serialization rather than the cross-process guarantee. A follow-up test covering the fixed 30-second lease during delayed GitHub reads would help determine whether renewal or ownership checks are needed. This is optional here because no actual lease-overrun failure was established during this review. ScoreThe shared design and targeted tests are useful, but false readiness and an insufficient body budget require correction. Current checks have no reported failures; two remain pending. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 26829b2
Summary of ChangesI've fixed F5, F6 and F7, and added a regression test for each. I ran each new test against the original code: 8 fail there and pass now. The one exception is the block-size test, which also passes on the old code because the old block already stayed under the limit. Typecheck is clean in core, api, shared and the root, and lint is clean on the changed source files. The related suites pass: F5: facts that can't be read no longer produce "Ready"
F6: unknown mergeability is not "Ready"
F7: the body budget covers the block's maximum size
I updated Separate problem I noticed but didn't fix: the size budget only applies to descriptions built from a repository's PR template. The default description has no length limit: a very long agent summary produced a 130,647-character body in a test. That was already the case before this PR, so I left it alone. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ach. I ran each new test against the original code: 8 fail there and pass now. The one exception is the block-size test, which also passes on the old code because the old block already stayed under the limit. Typecheck is clean in core, api, shared and the root, and lint is clean on the changed source files. The related suites pass: `prTemplateDescription`, `visualPreviewAttachments`, `checkRunHandler`, `mcpPullRequests`, `mcpWorkOverview`, and the two status suites (48 tests).
I've fixed F5, F6 and F7, and added a regression test for each. I ran each new test against the original code: 8 fail there and pass now. The one exception is the block-size test, which also passes on the old code because the old block already stayed under the limit. Typecheck is clean in core, api, shared and the root, and lint is clean on the changed source files. The related suites pass: `prTemplateDescription`, `visualPreviewAttachments`, `checkRunHandler`, `mcpPullRequests`, `mcpWorkOverview`, and the two status suites (48 tests).
**F5: facts that can't be read no longer produce "Ready"**
- In `pullRequestStatusFacts.ts`, failed reads of the review score, the Ultrafix state and the queued-job count now raise an error. Before, they were silently treated as "never reviewed", "no loop" and "0 queued". Epic progress still falls back to "none" (now with a warning), because it never decides the state.
- When a read fails, the body sync sends no update, so the PR keeps its previous status line. MCP returns `proprStatus: null`.
- Each of the three failures has a test that checks the loader fails and the body is left unchanged.
**F6: unknown mergeability is not "Ready"**
- `computePullRequestStatus` now returns `working` with a new activity, `checking_mergeability` ("🔨 Checking for conflicts"), when everything else would be ready but GitHub hasn't decided mergeability yet. Known problems such as a failed check or a low review score still show "Needs you".
- GitHub sends no event when it finishes working out mergeability, so ProPR checks again after about 3, 10, 30 and 60 seconds, then stops. A new change during that wait triggers an update within the usual 1-second delay instead of waiting for the next check.
- The test covers a PR that turns out to conflict, and checks that the re-checks stop after the schedule.
**F7: the body budget covers the block's maximum size**
- `PR_STATUS_BLOCK_MAX_LENGTH` (512 characters) is now in `@propr/shared`. The renderer keeps the block within it: it drops failed-check names first, then cuts the line, always keeping the markers and the update time.
- When a new PR is created, its description now leaves room for the largest block, not just the short initial one (`pullRequestStatusBlockReserve` in `src/github/pullRequestBodyWriter.ts`).
- If a body is close to GitHub's 65,536-character limit, the sync uses a shorter line with just the state and time. If even that doesn't fit, it leaves the line out, or removes an existing one rather than leave it out of date. Text outside the markers is never shortened.
- The same check applies when other ProPR features rewrite the body: if keeping the block would go over the limit, their text is written and the block is dropped.
I updated `docs/docs/features/pr-status.md` and the CHANGELOG entry. I didn't make a visual preview, because the change only affects text in the PR body on GitHub, not ProPR's UI.
**Separate problem I noticed but didn't fix:** the size budget only applies to descriptions built from a repository's PR template. The default description has no length limit: a very long agent summary produced a 130,647-character body in a test. That was already the case before this PR, so I left it alone.
PR: #3535
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements the revised scope: unconditional body status maintenance and a default-on, title-only setting. The shared computation and extensive tests are useful, but two correctness gaps need correction before merge. ✅ Shared status computation — Body updates and MCP reads use the same facts loader and pure state computation. ✅ Revised setting scope — ✅ Conservative readiness checks — Unreadable check runs and unknown mergeability cannot produce This assessment is based on static review of the supplied code; no commands were run. Current checks show no failures and two pending checks. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F8: 🔴 Task history limit can hide active work
F9: 🔴 Body lock expires during protected work
SuggestionsThese are optional follow-ups and are not sent to S3: 🟢 Share queued-job reads across lists
ScoreThe implementation follows the amended scope and has substantial coverage, but active-work detection and cross-process body serialization still permit incorrect externally visible state. Current checks have no failures, with two still pending. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit ea6b9e5
Summary of ChangesI've fixed F8 and F9 and added a regression test for each path. Each new test fails on the old code and passes now. Typecheck and lint are clean in core, and the related suites pass (130 tests across the status, sync, MCP pull request, work overview and visual preview attachment suites). F8: active work hidden by the 20-task limit (
F9: body lock expiring during protected work (new
Tests for F9 (
There's no visual change in this fix, so I didn't capture a preview. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ath. Each new test fails on the old code and passes now. Typecheck and lint are clean in core, and the related suites pass (130 tests across the status, sync, MCP pull request, work overview and visual preview attachment suites). I've fixed F8 and F9 and added a regression test for each path. Each new test fails on the old code and passes now. Typecheck and lint are clean in core, and the related suites pass (130 tests across the status, sync, MCP pull request, work overview and visual preview attachment suites). **F8: active work hidden by the 20-task limit** (`pullRequestStatusFacts.ts`) - `loadPullRequestStatusTasks` still reads the 20 newest task records, which give the latest outcome. It now also reads every task that is still active, with no limit, in a separate query. A task with no history counts as pending, as it did before. - The two results are de-duplicated and sorted newest first, so `tasks[0]` is still the newest record. - To keep the definition of "active" in one place, `pullRequestStatus.ts` now exports `TERMINAL_TASK_STATES` and the query uses it. - New test: one running follow-up task followed by 20 newer cancelled tasks. The status now reads "Follow-up in progress" instead of Ready. - I checked the other inputs to the status: queued jobs, Ultrafix state and checks have no history limit, so they don't have the same problem. **F9: body lock expiring during protected work** (new `pullRequestBodyLock.ts`) - The lock is renewed while the protected work runs. It counts as lost when a renewal finds another owner, or when the lease runs out because renewals keep failing. - The protected work now receives a lease and must call `lease.assertHeld()` right before it writes. That call checks ownership in Redis, extends the lease, and throws `PullRequestBodyLockLostError` if the lock was lost. - Both writers that change PR bodies, the status sync and `updatePullRequestBody`, now make that check before their PATCH. No other code PATCHes a PR body, so nothing else needed the change. - If a scheduled status sync loses the lock, it runs again: it re-reads the newer body and fits the status back in. - **Behaviour change:** other body writers, such as visual-preview publication, now get an error when they lose the lock, instead of silently writing over a newer body. - The lock code moved into its own module because the sync file was close to the 400-line limit. `withPullRequestBodyLock` is still exported from the package index. - **What is still unguarded:** the GitHub PATCH can't be protected by Redis. If renewals fail for a whole 30-second lease while that one request is in flight, two writers could still overlap. That is a race between two external services, so I bounded it rather than tried to make it impossible. **Tests for F9** (`packages/core/test/pullRequestStatusSync.test.ts`) - The fake Redis now models lease expiry, the renew script and failing renewals. The other process is a second, separate copy of the lock module, so it doesn't share the first one's in-process queue. - There are four tests: - **Renewal holds the lock:** a slow status read holds it, and the other process waits. - **Status writer taken over:** the lock is lost and taken by the other process. The status write throws, the newer preview body stays, and the retry keeps the preview. - **Renewals fail:** they fail for longer than the lease, and nothing is written. - **Other writer taken over:** the same takeover case for `updatePullRequestBody`. There's no visual change in this fix, so I didn't capture a preview. PR: #3535 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThis PR centralizes PR status computation and implements the revised, title-only ✅ Shared computation — The body updater and MCP tools use the same facts loader and pure status function. ✅ Revised setting scope — ✅ Defensive update handling — Timestamp-only changes avoid PATCH requests; body length limits and renewing Redis leases have focused coverage. This review is based on static tracing of the supplied code; no commands were run. The authoritative checks show zero failures and two pending checks. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F10: 🔴 Status updates can overwrite human edits
F11: 🔴 Branch names incorrectly establish PR ownership
SuggestionsThese are optional follow-ups and are not sent to S4: 🟢 Share queued-job snapshots
ScoreThe shared computation, setting integration, and focused tests are strong, but the body-preservation and ownership defects require correction. Current checks have no failures, with two still pending. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 78d675d
Summary of ChangesThe background 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
… described: all 5 tests passed, none failed, and the process hung at exit until the timeout ended it. Nothing changes in the earlier report. The background `mcpWorkOverview` run has finished the way I described: all 5 tests passed, none failed, and the process hung at exit until the timeout ended it. Nothing changes in the earlier report. PR: #3535 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
|
CI failed: Validate unsigned darwin-x64 package Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit be70c62 Summary of ChangesThis failure didn't come from this PR's code. The step wraps Fix
Checks
Nothing visible changed, so there's no visual preview. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ed because the macOS runner couldn't reach nodejs.org. While rebuilding the `better-sqlite3` native module, node-gyp tried to download the Node headers and got `ConnectTimeoutError: Connect Timeout Error (attempted address: nodejs.org:443, timeout: 10000ms)`. This failure didn't come from this PR's code. `npm ci` failed because the macOS runner couldn't reach nodejs.org. While rebuilding the `better-sqlite3` native module, node-gyp tried to download the Node headers and got `ConnectTimeoutError: Connect Timeout Error (attempted address: nodejs.org:443, timeout: 10000ms)`. The step wraps `npm ci` in `apps/desktop/scripts/retry-transient-download.mjs`, which retries only on known network-error patterns. It didn't recognise this one: node-gyp prints Undici's error class and message but not the `UND_ERR_CONNECT_TIMEOUT` code that the script looks for. So it logged "Command failed without a transient download signature; not retrying." and failed on the first attempt. That script is the same on `main`. **Fix** - `apps/desktop/scripts/retry-transient-download.mjs`: added `ConnectTimeoutError` / `Connect Timeout Error` to the patterns that trigger a retry. - `apps/desktop/scripts/retry-transient-download.test.mjs`: added the exact line from the job log to the cases that must retry. I also added a test that runs `npm ci` with the full node-gyp failure output and checks that it is retried after the backoff and then succeeds. **Checks** - All 14 tests in the retry suite pass. - Run against the old script, the 2 new tests fail and the other 12 still pass. - Lint printed only an npm update notice and no lint output, so I can't say lint actually ran on these two files. Nothing visible changed, so there's no visual preview. PR: #3535 Comment by: @propr-dev[bot] (ID: 6856400934) Model: Claude Opus 5.5
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements the revised scope well, but needs changes before merge: ownership detection can modify a human-created fork PR, and synchronization can publish stale readiness despite receiving newer mergeability information. ✅ Title-only configuration — ✅ Careful body preservation — Status updates re-read the description, preserve surrounding text, reserve space for new descriptions, and avoid timestamp-only PATCH requests. ✅ Substantial regression coverage — Tests cover transitions, unavailable facts, head changes, body limits, and lock takeover. This is a static review of the supplied code; no commands were run. Current checks report 32 passed, two pending, and no failures. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F12: 🔴 Verify the epic branch’s repository
F13: 🔴 Reject changed mergeability before publishing
SuggestionsThese are optional follow-ups and are not sent to S5: 🟢 Share queue reads across list results
ScoreThe revised configuration, body preservation, and tests are strong, but the two correctness defects require localized fixes before merge. Pending checks alone do not lower the score. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements the revised scope well: unconditional body status maintenance and a default-on, title-only setting reserved for future use. One coverage gap prevents merge readiness. ✅ Shared computation — Body updates and MCP reads use the same status computation, including conservative handling of unavailable checks and unknown mergeability. ✅ Body preservation — Status updates re-read the description after gathering facts, validate the PR revision, and coordinate ProPR writers through a renewable Redis lease. ✅ Revised setting scope — This was a static review of the supplied code; no commands were run. Authoritative checks show 34 passed, none failed, and one pending. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F18: 🔴 Backfill permanently excludes overflow pull requests
SuggestionsThese are optional follow-ups and are not sent to S9: 🟢 Test MCP status response contractsThe supplied additions thoroughly test computation and body synchronization, but do not directly test the new MCP status attachment paths. Endpoint-level tests for shared PRs in work-overview rows, the 20-open-PR limit, closed results, and unavailable facts would protect these response contracts. This is optional additional coverage; no defect in those paths was established. ScoreThe shared computation, preservation safeguards and extensive tests are strong. The unconditional rollout still misses eligible PRs beyond fixed enumeration limits, requiring a localized correction before merge. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit a79ea18
Summary of ChangesI fixed all three findings. A finished check failure now shows as needs attention even while other checks are still running, and the startup backfill and base-push refresh now continue past their batch limits until every pull request has been read. The three status suites pass (93 tests), as do the two root suites that use the status block. F16: pending checks no longer hide a confirmed failure (
F17/F18: no pull request or repository is left out (
Found along the way, not fixed:
There's no visual preview, since nothing in the UI changed. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ows as needs attention even while other checks are still running, and the startup backfill and base-push refresh now continue past their batch limits until every pull request has been read. The three status suites pass (93 tests), as do the two root suites that use the status block. I fixed all three findings. A finished check failure now shows as needs attention even while other checks are still running, and the startup backfill and base-push refresh now continue past their batch limits until every pull request has been read. The three status suites pass (93 tests), as do the two root suites that use the status block. **F16: pending checks no longer hide a confirmed failure** (`pullRequestStatus.ts`) - The order is now: 1. ProPR work still running (a task, an active Ultrafix loop, or a queued job) → `working`. 2. A confirmed problem → `needs_attention`. The problems are a failed last run, a failed conflict resolution, a stopped Ultrafix loop, a failed check, a merge conflict, or a review score below the goal. 3. Otherwise, checks still pending → `working`. - The finding's exact case (goal reached, score 8, one check failed and one pending) now returns `needs_attention` / `check_failed`. - **Behaviour change:** a review score below the goal (and the other confirmed problems) now also wins over pending checks. Before, they read `working` until CI finished. - "Checks could not be read" still comes after pending checks, because it isn't a confirmed problem. - New tests cover each confirmed problem with checks pending, show running ProPR work still winning, and show the "could not be read" boundary. The behaviour tests fail on the old code. **F17/F18: no pull request or repository is left out** (`pullRequestStatusReconcile.ts`, new `pullRequestStatusReconcileRuns.ts`) - Batches stay the same size: 3 pages of 100 pull requests, and 100 repositories per backfill batch. - A batch that hits the limit now records where it stopped: the last page it read and the highest PR number covered. The next batch starts after this one's updates have started (at least 2 seconds later). - **Backfill:** repositories past the first 100, and listings cut short, run in the next batch. They are deferred, not retried, so they run regardless of how many retries came before. - **Base push:** each branch is read batch by batch. If the branch is pushed again mid-way, ProPR finishes the remaining pages for the new tip, then reads the pages it had already covered again. If a new push restarted the read from page 1 instead, frequent pushes would mean later pages are never reached; a test fails if that happens. - PRs that close between batches move later ones to earlier pages. A resumed batch steps back to the page holding its last position, so none are skipped. - One related change: retries of a failed base-push batch now resume from where the batch stopped. - The old test that confirmed PR 320 was excluded now checks it is reached. Two new end-to-end tests (backfill, and a push to `main`) show PR 320 getting its status; both fail on the old code. - I moved the batching logic into the new file so `pullRequestStatusSync.ts` stays under the 400-line lint limit. `docs/docs/features/pr-status.md` now describes the new order of states and the batches that continue until everything is read. **Found along the way, not fixed:** - **Gap within one batch:** if a PR closes in the moment between two page reads of the same batch, one PR can slip past unread. GitHub's REST pull request list has no stable cursor, so preventing this would mean moving to the GraphQL API. - **Test typechecking:** `pullRequestStatusSync.test.ts` already has three type errors, at lines 20 and 427–428. They don't show up because core tests aren't typechecked. I fixed the typing in the helper I added. There's no visual preview, since nothing in the UI changed. PR: #3535 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements the revised scope well, but needs a localized correction before merging: mixed legacy commit statuses produce inaccurate check counts. ✅ Scope change implemented — The body block has no repository setting gate, while ✅ Careful body updates — Status synchronization re-reads the description after gathering facts, checks for head/base changes, and verifies the renewing body lease before writing. ✅ Substantial regression coverage — Added tests cover transitions, ownership, body preservation, pagination, retries, and lock takeover. This review used static analysis of the supplied code; no commands were run. Current checks report 0 failed, 2 pending, and 32 passed. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F19: 🔴 Mixed commit statuses misreport passing checks
SuggestionsThese are optional follow-ups and are not sent to S10: 🟢 Share queue reads across list results
ScoreThe implementation has strong scope alignment and extensive defensive testing, but the incorrect check summary needs correction. Pending checks also remain to complete. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 32adaa2
Summary of ChangesThe fix for F19 is in place and verified. What was wrong. The status loader in The correction. The loader now classifies legacy contexts itself whenever the status response listed every context. Each blocking context is counted as failed, pending, or passed on its own, and non-blocking contexts count as none of those. When contexts went unlisted, the loader still passes the combined state to the shared summary so its conservative reading is kept. Check-run handling is unchanged. The code lives in a new Sibling check. The PR body block and all three MCP tools read checks through this one loader, so the fix covers every PR-changed consumer. The Ultrafix CI-wait path uses the shared helper directly, but that code and the helper predate this PR, so I left them alone. Regression tests were added to the sync suite, since the facts module opens a database connection that only that suite closes at teardown:
The two mixed-context tests fail against the previous loader and pass with the fix.
Independent discovery, not changed. The pre-existing shared helper has the same blind spot for its own callers: with a failed and a pending legacy context and no non-blocking patterns, the Ultrafix CI-wait description lists only the failed context and omits the pending one. That is outside this PR's changed behaviour. No visual preview was produced. The change alters the counts in a text status line, which is not a perceptible UI change to capture. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
The fix for F19 is in place and verified. **What was wrong.** The status loader in `packages/core/src/services/pullRequestStatus/pullRequestStatusFacts.ts` handed legacy commit statuses to the shared check summary and derived `passed` by subtraction. The shared summary only classifies legacy contexts individually when a non-blocking pattern matched. Otherwise it reads the combined state, so a head with one failed and one pending context came back as one failed and nothing pending, and the loader reported the unfinished context as passed. **The correction.** The loader now classifies legacy contexts itself whenever the status response listed every context. Each blocking context is counted as failed, pending, or passed on its own, and non-blocking contexts count as none of those. When contexts went unlisted, the loader still passes the combined state to the shared summary so its conservative reading is kept. Check-run handling is unchanged. The code lives in a new `classifyLegacyStatuses` helper so the loader stays under the lint complexity limit. **Sibling check.** The PR body block and all three MCP tools read checks through this one loader, so the fix covers every PR-changed consumer. The Ultrafix CI-wait path uses the shared helper directly, but that code and the helper predate this PR, so I left them alone. **Regression tests** were added to the sync suite, since the facts module opens a database connection that only that suite closes at teardown: - Failed plus pending legacy contexts report one failed, one pending, zero passed. - Listed legacy contexts and check runs are counted together, context by context. - A non-blocking legacy context neither fails nor holds the status and is not counted as passed. - Unlisted contexts fall back to the combined state. The two mixed-context tests fail against the previous loader and pass with the fix. | Check | Result | |---|---| | Sync suite, 56 tests | pass | | Negative run on old loader | 2 of 4 new tests fail, as expected | | Core typecheck | clean | | Core lint on the changed source file, zero warnings | clean | **Independent discovery, not changed.** The pre-existing shared helper has the same blind spot for its own callers: with a failed and a pending legacy context and no non-blocking patterns, the Ultrafix CI-wait description lists only the failed context and omits the pending one. That is outside this PR's changed behaviour. No visual preview was produced. The change alters the counts in a text status line, which is not a perceptible UI change to capture. PR: #3535 Comment by: @propr-ultrafix (ID: 0) Model: Claude Fable 5.1
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements the revised scope well, but needs localized correctness fixes before merging. ✅ Title-only configuration — ✅ Protected body updates — Status synchronization renews its Redis lease, checks ownership before writing, and re-reads the PR after gathering facts to preserve intervening body edits. ✅ Shared status computation — The body and MCP tools use the same pure computation, with substantial coverage of transitions and readiness boundaries. This review used static analysis of the supplied code; no commands were run. Current checks report zero failures and five pending. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F20: 🔴 Truncated legacy statuses produce false counts
F21: 🔴 Reconciliation drops retries after check-read failures
SuggestionsThese are optional follow-ups and are not sent to S11: 🟢 Share queue reads across list results
ScoreThe shared computation, configuration coverage, and body-write protections are strong. Incorrect legacy counts and prematurely settled reconciliation still require fixes; the current checks have no reported failures but remain incomplete. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 244c1a5
Summary of ChangesBoth findings are fixed and verified. The three status suites pass (103 tests, up from 97), the two root suites that render the block pass (34 tests), core typechecks, and lint is clean on the changed source files. No visual change, so no preview was captured. F20: legacy contexts are paginated and counted per context (
F21: rejected check reads keep their reconciliation retries (
Tests in Docs: two sentences in Independent discovery, not changed: the pre-existing shared check reader in 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…es pass (103 tests, up from 97), the two root suites that render the block pass (34 tests), core typechecks, and lint is clean on the changed source files. No visual change, so no preview was captured. Both findings are fixed and verified. The three status suites pass (103 tests, up from 97), the two root suites that render the block pass (34 tests), core typechecks, and lint is clean on the changed source files. No visual change, so no preview was captured. **F20: legacy contexts are paginated and counted per context** (`packages/core/src/services/pullRequestStatus/pullRequestStatusFacts.ts`) - Legacy commit statuses are now read page by page under the same three-page budget as check runs, through one shared pager. The 101-context head from the finding takes two requests and reports 99 passed, 1 failed, 1 pending. - Passed is no longer derived by subtracting from GitHub's total. Only a listed, blocking, successful context counts as passed. A context left unread by the budget is neither passed nor pending. - When contexts stay unread, every listed failed or pending context keeps its classification. A combined failure or pending state that no listed context accounts for is attributed to an unread context, so it still blocks readiness. - The check-run pager had the same assumption in one corner: a short page with runs still unlisted used to be marked complete. It now reads as incomplete, the same as for legacy contexts. **F21: rejected check reads keep their reconciliation retries** (`pullRequestStatusSync.ts`) - The checks fact carries a new optional `readFailed` flag, set only when a GitHub check request rejected. The page budget leaves it unset, so a commit with too many checks is never retried. - The sync outcome carries that flag, and a scheduled run treats it as unsettled when the run came from the startup backfill or a base push. The existing bounded refresh schedule then re-reads, and a complete read ends the retries. Ordinary transition updates still rely on the next transition, as before. **Tests** in `packages/core/test/pullRequestStatusSync.test.ts`. The fake GitHub now pages legacy statuses and can reject check reads. I replaced the test that accepted the subtraction arithmetic with four loader tests, including the exact scenario from the finding, and added three scheduling tests: backfill retry, base-push retry, and the page budget not retrying. Six of the seven fail on the previous code; the page-budget test is the control and passes on both. **Docs:** two sentences in `docs/docs/features/pr-status.md` now state the commit-status read limit and which failures are retried. **Independent discovery, not changed:** the pre-existing shared check reader in `packages/core/src/webhook/checkRunHelpers.ts` still reads a single page of legacy contexts. Its summarizer falls back to the combined state, so it does not miscount, but it carries the same single-page assumption. It is outside this PR's changed behaviour. PR: #3535 Comment by: @propr-ultrafix (ID: 0) Model: Claude Fable 5.1
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements a shared status computation, live body updates, and the revised title-only setting. It needs a localized correction before merge: the webhook filter mistakes human edits for ProPR’s own updates. ✅ Scope change implemented — The body block has no repository setting; ✅ Defensive synchronization — Body updates re-read the PR after gathering facts, validate the status subject, and check a renewable Redis lease before writing. Added tests cover concurrent writers and intervening human edits. This review used static analysis only; no commands were run. The supplied current checks report 34 passed, none failed, and one pending. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F22: 🔴 Human status edits bypass reconciliation
SuggestionsThese are optional follow-ups and are not sent to S12: 🟢 Share queue reads across statuses
ScoreThe implementation has substantial defensive logic and regression coverage, but the webhook provenance defect breaks unconditional status maintenance. The pending check alone does not lower the score. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 74f321e
Summary of ChangesF22 is fixed and verified. ProPR now recognises its own status edits by the block it recorded writing, not by the shape of the edit, and a person's block-only edit gets the status reconciled instead of standing. What changed
Sibling check. The other body writers keep the block, so their edits are never block-only and were never affected. The block a new PR is created with is written by an Tests. Five new tests cover: a cross-process own edit matched only through Redis, human deletion, human replacement of the block text, deletion of the creation block, and the removal case on a closed PR, plus the record-before-PATCH ordering and CRLF matching. All four human-edit tests fail on the old classification and pass now. Results:
No visual change, so no preview was captured. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…tus edits by the block it recorded writing, not by the shape of the edit, and a person's block-only edit gets the status reconciled instead of standing. F22 is fixed and verified. ProPR now recognises its own status edits by the block it recorded writing, not by the shape of the edit, and a person's block-only edit gets the status reconciled instead of standing. **What changed** - **Write provenance** in a new module, `pullRequestStatusProvenance.ts`. Right before each PATCH, under the body lock, the sync records the block it is about to leave in the body, or its removal. Records are kept in-process and shared through Redis with a 6-hour expiry, keeping the last 8 writes per PR so a burst of updates with several webhooks in flight still matches. Recording happens before the PATCH, so the webhook it causes can never arrive ahead of its record. A failed record is logged and only costs one extra status read. - **Webhook classification** replaces the old own-edit predicate. A block-only `edited` event is "own" only when the resulting block, or its absence, is a recorded write. Comparison is exact, update time included, with CRLF normalised for browser saves. Anything else is "foreign": the handler schedules a status update for that PR and returns an accepted, seat-free disposition with reason `pull_request_status_block_edited`, without running any other handler. Own edits are still ignored as before. - **Redis access for the webhook process** is registered with the signal module when sync is enabled, so the webhook module stays off the heavy sync import graph. A process that does not maintain the status has no record to consult and treats block-only edits as foreign, where the reconcile request is a no-op. - **Docs**: the pr-status page now says how own edits are recognised and what happens when a person deletes or rewrites the line. **Sibling check.** The other body writers keep the block, so their edits are never block-only and were never affected. The block a new PR is created with is written by an `opened` event, not an edit, and is not recorded, so a person deleting it is correctly reconciled. A removal ProPR makes on close or merge is recorded and recognised as its own. **Tests.** Five new tests cover: a cross-process own edit matched only through Redis, human deletion, human replacement of the block text, deletion of the creation block, and the removal case on a closed PR, plus the record-before-PATCH ordering and CRLF matching. All four human-edit tests fail on the old classification and pass now. Results: | Suites | Result | |---|---| | Core status suites + routing payload | 111 pass | | Root webhook suites (intent withdrawal, delivery interest, repository filter) | 213 pass | | Core typecheck, lint on changed files, core dist build | clean | No visual change, so no preview was captured. PR: #3535 Comment by: @propr-ultrafix (ID: 0) Model: Claude Fable 5.1
|
|
|
/ultrafix goal=8 max=3 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 3) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements the revised scope well overall, but needs a localized correction before merge: historical write provenance can cause human edits to leave the live status missing or stale. ✅ Unified computation — Body updates and MCP reads share the same status computation, including pending checks, failures, and unknown mergeability. ✅ Body preservation — Status synchronization re-reads the description after gathering facts and checks its renewable lease before proceeding. ✅ Revised setting scope — The supplied current checks show no failures; five remain pending. This review is a static analysis of the supplied code; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F23: 🔴 Historical provenance suppresses legitimate reconciliation
SuggestionsThese are optional follow-ups and are not sent to S13: 🟢 Bound local provenance retentionThe ScoreThe shared computation, scope adjustment, and extensive regression coverage are strong. One verified reconciliation defect remains; the supplied checks otherwise show no failures. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit ae529a5
Summary of ChangesI fixed F23. ProPR now ignores a block-only The fix (
I checked the other places that use provenance. New tests (
All three fail against the previous code. The three status suites pass (70, 33 and 8 tests), core typechecks, and lint is clean on the changed source file. The existing tests still pass, including those for ProPR's own write, its removal on a closed pull request, and browser line endings. There is no visual change, so I didn't capture a preview. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…k only when the block it leaves is the latest one ProPR meant to write. Matching any block it wrote at some point is no longer enough. I fixed F23. ProPR now ignores a block-only `edited` webhook only when the block it leaves is the latest one ProPR meant to write. Matching any block it wrote at some point is no longer enough. **The fix** (`packages/core/src/services/pullRequestStatus/pullRequestStatusProvenance.ts`) - The list of eight past writes is replaced by one record per pull request: the latest block ProPR is about to write (empty for a removal), with the time it was recorded. Each write replaces the previous record. The record is still made before the PATCH, kept in this process, and shared through Redis. - `isRecordedPullRequestStatusWrite` takes the newer of the in-process and Redis records and compares its block exactly with the delivered block. - **Close, reopen, then a person deletes the block:** the old removal record has been replaced, so the event counts as someone else's edit and the status is reconciled. - **A person restores an older block:** it doesn't match the latest record either, so the current status is written back. - In-process records now expire after the same six hours as the Redis ones. - **Trade-off:** past writes are no longer kept to recognise late deliveries. If ProPR writes twice in quick succession, the webhook from the first write now triggers a reconcile. That costs one status read and no PATCH, because the body already holds the latest block. Keeping past writes would bring the defect back. I checked the other places that use provenance. `classifyPullRequestStatusEdit` is the only reader and status sync is the only writer; the other body writers keep the block as it is, so their edits are never block-only. One race remains and can't be closed: a person editing the body between ProPR's record and its PATCH. GitHub has no conditional body update. **New tests** (`packages/core/test/pullRequestStatusSync.test.ts`), each checked with and without the Redis record: - Close, reopen, then a person deletes the restored block: the edit is treated as someone else's, the status update is scheduled, and the block comes back. - A person puts back an earlier block after the status changed: it is reconciled to the current "Ready". - A recorded write in this process stops counting after six hours. All three fail against the previous code. The three status suites pass (70, 33 and 8 tests), core typechecks, and lint is clean on the changed source file. The existing tests still pass, including those for ProPR's own write, its removal on a closed pull request, and browser line endings. There is no visual change, so I didn't capture a preview. PR: #3535 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
|
⏳ Ultrafix is waiting for CI before the next These blocking checks on
Checks matching this repository's non-blocking checks never gate Ultrafix. The loop continues automatically once the blocking checks pass; if they have not settled within 2 hours, Ultrafix stops. |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements a shared status computation, live body maintenance, and MCP status fields while honoring the revised, title-only ✅ Scope change implemented — Body updates have no repository setting gate; ✅ Conservative readiness — The computation prevents ✅ Body preservation and recovery — Status updates re-read the body after gathering facts, validate the status subject, and use a renewing shared lock. Added tests cover concurrent writers, human edits, pagination, and reconciliation retries. This assessment uses the supplied diff and context only; no commands or tests were run. The authoritative check summary reports 32 passed, two pending, and no failures. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S14: 🟢 Share queued-job snapshots
S15: 🟢 Evict expired provenance entries
ScoreThe implementation follows the amended objective and includes substantial coverage of state transitions and recovery boundaries. No actionable defect was verified; the remaining checks are pending rather than failed. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |

AI Implementation Summary
Closes #3529
Branch:
3529/claude-opus-5-5-compute-one-pr-status-and-20261113-1020-mgyCommits: ✅ Changes committed (dc473b8)
AI Processing Completed
Execution Details:
Summary:
I've implemented issue #3529. The affected suites pass (137 files); typecheck is clean in every workspace and lint is clean on the changed files.
One status computation (
packages/core/src/services/pullRequestStatus/)computePullRequestStatus(facts)is a pure function that returnsstate(working,needs_attention,ready,none) anddetail: activity, Ultrafix cycle and maximum, review score, checks passed/failed/pending, the reason a PR needs you, and epic issues merged/total.nonBlockingChecks), mergeability, the latest review score, the instance rating goal and epic progress.readyis never reported from the review score alone. Goal reached with checks pending isworking; with a failed check it isneeds_attention. Checks that can't be read never count as ready.The
prStatusDisplaysetting (off by default, applies to every branch of a repository)update_repository_configuration/get_repository_configuration, the settings catalog, the CLI (--pr-status on|offonrepo addandrepo toggle), a UI toggle under Automation, and the regenerated settings docs.The live block in the PR body
<!-- propr:pr-status -->markers; only text between them is ever rewritten. New issue PRs are created with it already in the body (room is reserved in the body length budget). It is removed when the PR is merged or closed, or on the next change after the setting is turned off.editedwebhooks; these are recognised and ignored before any handler runs.MCP:
get_pull_request,list_pull_requestsandget_work_overviewnow returnproprStatus. The two list tools compute it for at most 20 open PRs per call to bound GitHub traffic: the rest readnulland the response setsstatusTruncated.Behaviour to know before merging
workingeven when a person, not ProPR, made the push. I simplified "after ProPR's last push" to "pending on the current head".Tests added:
editedwebhook is ignored.Test environment: several suites failed only because
/tmp/git-processoris read-only in this container; they pass with writable clone paths set.Docs: a new
docs/docs/features/pr-status.mdpage, plus rows inmcp.mdandpropr-cli.md, and a CHANGELOG entry. I captured a preview of the new toggle in Repositories → Automation.Detailed Logs:
d6635a7d-5a9d-4147-b458-2dbb5fd625acLog files stored at:
/usr/src/app/logs/executions/issue-3529-2026-11-13T11-20-16-470Z-conversation.json/usr/src/app/logs/executions/issue-3529-2026-11-13T11-20-16-470Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3529.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
PR status setting in repository Automation
Repositories → integry/propr → Settings → Automation with the new "Show the ProPR status in the pull request" toggle turned on (desktop, 1440×900, API stubbed).
Connect sign-in required. Original retained until 2027-02-11T11:20:22.281Z.
View the full-resolution original in ProPR Connect