Skip to content

docs(openspec): fix plan #2491 name the App 401 reason once - #3046

Merged
dan-petty merged 2 commits into
mainfrom
docs/2491-fix-plan
Nov 1, 2026
Merged

dan-petty merged 2 commits into
mainfrom
docs/2491-fix-plan

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

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

The plan named a file that does not exist. It left the place of ERRORS.git open. It said the advice may show twice. It set a docs task that needs no run. Fix the path, the Feasibility evidence, the acceptance map and the tasks.
@dan-petty dan-petty added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 1, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Changes to the plan

  • proposal.md: names the real files (src/devops_cli/lang/en/errors.py, not lang/git.py). Adds a spec delta note, an Acceptance map and a Feasibility section with the commands and their output. States that no document changes.
  • design.md: names the new constant ERRORS.git.github_app_jwt_refused. Says the reason holds no "check the App ID" advice, because _token_failed already adds it. Adds a rejected alternative.
  • tasks.md: one test-first group. It compares the whole error with to_dict(). It lists the reads and the changed files with the correct paths. It drops the docs task and the follow-up note.

Evaluation findings (PR #2992)

The fix stage re-verified each lead against origin/main. The premise holds: a 401 from the JWT exchange gives the gh-login text and drops GitHub's reason. With the assertion set to == "", uv run devops ci test tests/github/test_github_app_identity.py gave 1 failed and 22 passed, and the diff showed the message of the issue.

The verify stage reported no open finding (blocker, major or minor).

Verification

  • openspec validate --strict: pass.
  • uv run devops openspec check: pass.
  • uv run pytest tests/invariants/test_change_folders.py -n 0 -q: 16 passed.
  • Every path in the plan exists on origin/main.
  • The branch holds a merge of origin/main. It changes only openspec/changes/2491-a-refused-jwt-exchange-of-the/.

@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 13:15
@dan-petty
dan-petty merged commit 4fe2de2 into main Nov 1, 2026
19 checks passed
@dan-petty
dan-petty deleted the docs/2491-fix-plan branch November 1, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/openspec OpenSpec changes, specs and their checks type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant