Repository navigation
docs(openspec): plan #2491 Name GitHub's reason in App 401 error - #2992
Merged
Merged
Conversation
Closed
2 tasks done
dan-petty
added a commit
that referenced
this pull request
Nov 1, 2026
This change corrects the OpenSpec plan for #2491 in place. The plan came from pull request #2992. An evaluation on 2026-11-01 found defects in it. The corrected plan now says where the new message constant lives, what the new message holds, and how to prove the fix. It also names the spec delta and the acceptance map. The change touches only the plan folder. It changes no code and no test. Plans #2491
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.
Plans #2491
When GitHub refuses the App's JWT with HTTP 401, the error tells the operator to run gh auth login. A process acting as the App has no gh login, so the advice is wrong. The error also drops GitHub's reason from the response body. This change adds a 401 override in mint_installation_token, following the existing 422 pattern. The new reason includes GitHub's message and App-specific advice to check the App ID, installation ID and private key. The test assertion is updated to compare the full message.
Change:
openspec/changes/2491-a-refused-jwt-exchange-of-the/