feat(pat): add all-scope grant and safe single revoke#680
Open
shangguanxuan633-lab wants to merge 1 commit into
Open
Conversation
shangguanxuan633-lab
force-pushed
the
codex/pat-auth-release-clean-main-20260718
branch
from
July 19, 2026 23:34
6a0acb6 to
fdbf9b4
Compare
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.
Summary
dws pat chmod --allplanning and confirmed grant execution--yesbefore every non-dry-run PAT grant--revoke; intentionally no batch revoke--dry-runan authenticated, one-attempt, side-effect-free server preview that can return missing permissionsUser-facing behavior
dws pat chmod --all --dry-run --format jsonasks the server for the complete actionable plandws pat chmod --all --yesgrants only the server-attestedselectedScopesdws pat chmod <scope> --revoke --dry-run --format jsonpreviews one explicit grantdws pat chmod <scope> --revoke --yesrevokes only that one ACTIVE explicit grant--dry-run --yesremains read-only--yesis absentSafety boundaries
pat.batch_planorpat.scope_revokewithdryRun=true--tokendoes not load persisted credentialsScope / cleanliness
6a0acb6a331179b1773bddcb78e91b179672fc85(the mergeable SHA will be regenerated after ci(schema): require base-owned migration approvals #679 merges and its one-shot manifest is consumed)main@e69a1084Validation
COVERAGE_TARGET=100make test: 5 passed / 0 failed / 1 absent baseline suite skippedgo test ./...: pass on the same production treego vet ./...: passServer counterparts
Pre-production deployment is complete for the PAT-owned changes:
dda5b7a3f1c2d694e23eb31c4ad6819319182691(PAT product tests 408 passed, 26 skipped; changed executable coverage 121/121)bf1739541c236eb016ad46c0850705c64a65a408(related tests 94/94; changed executable coverage 159/159)The shared Gateway Aone order also contains unrelated CRs, so this PR does not claim global validation/sign-off for that entire shared order.
Merge order / hard gates
mainThe consumed manifest is under
scripts/policy/**; therefore this PR ultimately needs a real maintainer ownership/adoption and CODEOWNER review. The AI policy must not be bypassed by removing labels without that ownership transition.Supersedes #630, whose head is based on older main, contains historical merge noise, and is no longer the release candidate.