Skip to content

fix(roadmap): Read the plan head by SHA, not FETCH_HEAD - #5831

Merged
dan-petty merged 2 commits into
mainfrom
fix/5255-plan-check-reads-the-head-sha
Nov 15, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/5255-plan-check-reads-the-head-sha

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops roadmap plan-check fetched refs/pull//head and then read FETCH_HEAD, which all worktrees of a checkout share. A fetch by another agent between the two commands made the check read another commit and report a false problem, such as the head holds no change folder. The check now fetches the head commit that the pull request names (facts.head_sha) and reads that commit. A new test moves the pull ref to another commit and shows that the check still reads the tree of the named head.

Closes #5255

Change: openspec/changes/archive/2026-11-15-5255-plan-check-reads-the-head-sha/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 15, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 15, 2026 13:19
@dan-petty
dan-petty merged commit 2b46370 into main Nov 15, 2026
23 checks passed
@dan-petty
dan-petty deleted the fix/5255-plan-check-reads-the-head-sha branch November 15, 2026 13:26
dan-petty pushed a commit that referenced this pull request Nov 15, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.153.0](v0.152.1...v0.153.0)
(2026-11-15)


### Features

* **monitoring:** Turn on the Loki pattern ingester
([#5833](#5833))
([1189ce3](1189ce3))
* **roadmap:** Re-stage an item whose draft plan fails
([#5816](#5816))
([631a0b3](631a0b3))


### Bug Fixes

* **github:** retry a connect failure on GitHub session GET
([#5832](#5832))
([7fc5a87](7fc5a87))
* **roadmap:** Read the plan head by SHA, not FETCH_HEAD
([#5831](#5831))
([2b46370](2b46370))
* **security:** configure read-only root file system for GFD
([#5807](#5807))
([3c902d7](3c902d7)),
closes [#5791](#5791)
* **security:** Keep a lower-case name after a token keyword
([#5824](#5824))
([c4b2fc9](c4b2fc9))
* **tests:** Name the ceiling file and the usual fix
([#5829](#5829))
([cd0974c](cd0974c))

---
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): plan-check reads the shared FETCH_HEAD

1 participant