Repository navigation
fix(github): correct readiness files and merged monitor output - #5349
Merged
Merged
Conversation
#2530) GitHub does not move the base.sha of a pull request when a merge commit moves the merge base. A compare from that value gives the same stale file list as the pulls files endpoint: for PR #2509, the compare from base.sha gave 184 files, and the compare from main gave 11. Readiness and the implement draft now compare from the base branch name to the head commit sha. A fork's head is its commit sha too, because GitHub keeps that commit in the base repository. The dry-run plan names compare/<base-ref>...<head-sha>. The tests give the compare a merge base that differs from base.sha, and one test routes the stale compare with the archived changes of other issues.
…2530) A compare answer at GitHub's limit of 300 files returned before every other grounding rule, so the body form and the closing issues were not judged, and the perimeter advisory still read the partial list. The truncation is now the grounding rule changed_files_are_whole. Only the rules that read the file list skip a truncated list. The perimeter advisory does not judge it, and a warning names the limit where the item rules do not apply. ChangedFilesRead.truncated has no default. An implement draft at the limit is refused with a reason that names the limit, not as a missing change. The messages read the limit from CONST_GITHUB_COMPARE_FILES_LIMIT.
The watch of the implement job read only the merged flag, so a pull request closed without a merge read as ready. The watch now stops the item on any terminal state. The monitor tests run with a settle time of 300 seconds, so they fail when the terminal stop of the poll loop is removed, and they cover the merged and the closed case. The markdown test has a closed row. The help of devops pr monitor names the merged and the closed results, and the generated command documents follow it.
#2530) The tests of a malformed compare answer asserted the name _CompareFiles. They now assert the compare path and the count of invalid fields, which the error text gives.
…help (#2530) plan_blockers takes the file read and the base branch, so the plan rule tests give both. The MCP tool listing snapshot holds the help of pr_monitor, which now names the merged and the closed results. The snapshot was regenerated with --snapshot-update.
…2530) The lookup of the base's change directory still reads at the payload's base.sha on purpose (design.md), so the scenario now says that no compare request names it. The tasks name the tests by their current names, and a test docstring names the base branch.
Owner
Author
Review and checksThis PR carries the code of #4980 with the fixes of its vetting review:
Fixes of this review, on top of the builder branch:
Live probe on 2026-11-13: Local checks at head 27fb0be:
Known limits:
|
dan-petty
marked this pull request as ready for review
November 13, 2026 03:42
dan-petty
pushed a commit
that referenced
this pull request
Nov 13, 2026
🤖 I have created a release *beep* *boop* --- ## [0.126.0](v0.125.5...v0.126.0) (2026-11-13) ### Features * **security:** refuse a commit that names the configured domain ([#5347](#5347)) ([c0a53b7](c0a53b7)) ### Bug Fixes * **github:** correct readiness files and merged monitor output ([#5349](#5349)) ([e477ab2](e477ab2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
devops pr check-readinessread the changed files from the pulls files endpoint. That list keeps the old base after a merge commit moves the merge base, so PR #2509 got a false not-grounded blocker from 184 files in place of 11. The readiness read and the implement draft read now compare the tip of the base branch with the head commit, also for a fork. They do not use the payloadbase.sha, because GitHub does not move it. A compare answer at the GitHub limit of 300 files gives one blocker that names the limit, and only the rules that read the file list skip it.devops pr monitorreads the pull request state on each poll and stops at once on a merged or closed pull request. It printsPR #N is merged.(exit 0) orPR #N is closed.(exit 2), with no check count and no ready line. The implement watch also stops on a closed pull request.Closes #2530
Change:
openspec/changes/archive/2026-11-13-2530-readiness-compare-from-base-branch/