Commit 2b5a7ce
chore(claude): route the PM seat's high-frequency reads to REST in the permission set (#11186)
The seat's GraphQL bucket is measured at the ceiling (~4965/5000 used in one
hour) while REST core sits nearly empty (~50/15000). The MCP list/read family
runs on GraphQL — `list_issues` returns Connection cursors, and a squeeze
measurement moved graphql used by +7/+4 across MCP calls while core barely
moved. Every read the loop repeats therefore spends the scarce bucket.
Pre-approve the REST equivalents so the seat can take them without a prompt,
spelled exactly like the additive label POST added by #11112 (method, host and
path shape pinned; URL immediately after `-X`; the trailing `*` absorbs the
Bearer header and any payload). Nine path shapes per repo, objectstack and
objectui twins: issue list, issue get, issue comments, issue labels read, PR
get, PR files, PR commits, commit check-runs, and the PR body PATCH. Plus
`GET /rate_limit`, which is free and is what a quota check reads.
Query-carrying paths get the wildcard against the path itself (`comments* *`)
so one entry covers both the bare and the `?per_page=…&page=N` spellings
without widening the path shape. No bare `curl *` entry is added.
The routing-guidance prose is NOT in this PR: `platform-readings.md` is at
134/134 and SKILL.md at 682/682, both zero headroom, and no honest deletion
was available — see the PR body.
Fixes #11181
Co-authored-by: Claude <noreply@anthropic.com>1 parent 2f93d0f commit 2b5a7ce
1 file changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
32 | 51 | | |
33 | 52 | | |
34 | 53 | | |
| |||
0 commit comments