Skip to content

fix(github): refuse an issue read that answers for another issue - #7336

Merged
dan-petty merged 3 commits into
mainfrom
fix/7331-refuse-issue-read-for-another-issue
Nov 26, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/7331-refuse-issue-read-for-another-issue

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

A read of an issue by its number can answer with another issue: GitHub redirects the read of a transferred issue. The store took that answer as the issue that it asked for.

GitHubRoadmapStore now compares the number and the repository of each such answer with the request. An answer that names another issue is no issue of the repository, as a missing one. A read gives None. A write that reads the issue first raises GitHubOperationError before any write request. The store logs a warning with the requested number.

The store drops the record of such a number from its listing and from the brain. IncrementalListing leaves the record out of the later reads of its lane, until GitHub lists the number again or until the next full read. So no row of that lane selects the number again. Each other lane drops the record at its own first read of the number.

Closes #7331

Change: openspec/changes/archive/2026-11-26-7331-refuse-issue-read-for-another-issue/

A read of an issue by its number can answer with another issue: GitHub
redirects the read of a transferred issue. The store compares the number
and the repository of the answer with the request. An answer that names
another issue is no issue of the repository: a read gives None, a write
that reads the issue first raises before any write request, and the
listing and the brain drop the record of the number.

Refs #7331
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/github GitHub Projects v2, Views, Milestones, Labels, and PR automation labels Nov 26, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Local checks at the head commit e771c355c, on the base b2c1707b1:

Check Result
uv run devops ci --check --only lint,format,docs,deps,constructs,openspec,test-settings,test-tree,startup-imports,swallowed-failures each row passes
uv run devops ci test of tests/roadmap/stores and of the 22 other test paths that reach the store or the GitHub fake 1288 passed
uv run mypy of the 4 changed modules under src/ no issue
uv run devops ci fail-to-pass --base origin/main passes: each test that fails on the base is a case of the 2 new test modules

Scope notes:

  • The comparison covers each place of GitHubRoadmapStore that takes an issue payload for a number: the plain read, the conditional read, the read of each write, the read-back of a record write, the title read of a pull request and the answer of the PATCH of an issue.
  • The listings below a number (comments_on, label_changes, blocked_by) and the GraphQL timeline reads (closures, last_renamed_at) hold no issue payload, so the comparison does not cover them. The design in the change folder gives the reasons.
  • No row changes. The Status sweep leaves such an item. The alternatives round ends with the error of a missing issue one time, and the next round of the lane does not select the item.

@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: e771c355ce365e52df3f56a0786dee03fb4a5962

Check Conclusion Link
Tests & Coverage (shard 1 of 5) success run
Tests & Coverage (shard 3 of 5) success run
Tests & Coverage (shard 2 of 5) success run
Changed-Test Independence (run 2 of 3) success run
Tests & Coverage success run
Changed-Test Independence (run 3 of 3) success run
Design Tokens success run
Changed-Test Independence success run
Static Analysis success run
Changed-Test Independence (run 1 of 3) success run
Tests & Coverage (shard 5 of 5) success run
Tests & Coverage (shard 4 of 5) success run
Test Job Duration skipped run
Dependency Freshness skipped run
Tests on Main skipped run
Service Image success run
Runner Image success run
devops-cli success run
zizmor success run
trivy-config success run
Plan Check skipped run
Trivy neutral run
Fail-to-Pass Check skipped run
Semantic PR title success run
CodeQL success run
Docs Site Build success run
Analyze (python) success run
Analyze (actions) success run

Skipped check: Test Job Duration
Skipped check: Dependency Freshness
Skipped check: Tests on Main
Skipped check: Plan Check
Skipped check: Trivy
Skipped check: Fail-to-Pass Check

@dan-petty
dan-petty marked this pull request as ready for review November 26, 2026 20:13
@dan-petty

Copy link
Copy Markdown
Owner Author

Review of the coordinator, 2026-11-26, at e771c35.

  • The new check was run on this head against real answers of the 9 repositories of the Service: 27 issues and pull requests, with a repository whose name holds a dot. Each answer names the requested number and repository, so the check refuses none. The store name in another letter case compares as equal.
  • The answer for a number of a transferred issue names another number and another repository, so the check refuses it.
  • Each write of the store that reads the issue first raises before a write request, and the answer of an edit is compared too.
  • Each check of the head is green, and uv run devops ci fail-to-pass --base origin/main gives 24 failed on the base and 0 on the head.

Left for a follow-up item: a round still fails one time for such an item before the lane drops it, and a round whose first read of the number is its comments fails at each round until the next full read. A row must leave the item and go on with the other items.

@dan-petty
dan-petty merged commit ff6c0cc into main Nov 26, 2026
47 of 48 checks passed
@dan-petty
dan-petty deleted the fix/7331-refuse-issue-read-for-another-issue branch November 26, 2026 20:43
dan-petty-release Bot added a commit that referenced this pull request Nov 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.223.2](v0.223.1...v0.223.2)
(2026-11-26)


### Bug Fixes

* **ci:** publish a release only after its files are attached
([#7339](#7339))
([8735301](8735301))
* **github:** refuse an issue read that answers for another issue
([#7336](#7336))
([ff6c0cc](ff6c0cc))

---
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/github GitHub Projects v2, Views, Milestones, Labels, and PR automation 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(github): refuse an issue read that answers for another issue

1 participant