@@ -42,9 +42,9 @@ reporter is notified of each one. So:
4242 manifest** that lists each item, its class, and the issue it will point at.
4343 A wrong class is cheap to fix in a file and expensive to fix after a
4444 notification went out. Closing a single item the maintainer named is fine.
45- - ** Pace every write loop** : a few seconds between calls, and ** stop on the
46- first failed call** rather than carrying on blind. GitHub's secondary rate
47- limit on content creation trips well before its primary one, and a loop that
45+ - ** Pace every write loop** by ` AGENTS.md ` ** Pacing GitHub writes ** , and
46+ ** stop on the first failed call** rather than carrying on blind. GitHub's
47+ secondary rate limit trips well before its primary one, and a loop that
4848 keeps going after a 403 leaves a half-applied batch nobody can see.
4949- ** Never restate a vulnerability in public** , not even to summarize a report
5050 that was already filed publicly. See [ Security reports] ( #security-reports ) .
@@ -86,14 +86,22 @@ D=${D:-$(mktemp -d)}
8686# Copy the class's response from Canned responses into "$D/response.md" (the
8787# text inside the quote, with #ORIGINAL or the SDK link filled in) first.
8888# Close as not planned, with that response (body in a file, so quoting is
89- # safe). NOT for a duplicate: post the Duplicate response with `gh issue
90- # comment`, close it with the `board-ops` state_reason=duplicate call, and
91- # delete its card if it has one (`board-ops`, Delete a card). An empty or missing response stops here instead of closing silently.
89+ # safe). The comment and the close are two writes (`gh issue close --comment`
90+ # sends them back to back), and a run closes several issues, so every write
91+ # here is followed by the PR-close loop's `sleep 8`, including the last one
92+ # before the next issue. NOT for a duplicate: post the Duplicate response with
93+ # `gh issue comment`, close it with the `board-ops` state_reason=duplicate
94+ # call, and delete its card if it has one (`board-ops`, Delete a card), with
95+ # the same `sleep 8` after each of those three writes. An empty or missing
96+ # response stops here instead of closing silently.
9297BODY=$( cat " $D /response.md" ) && [ -n " $BODY " ] \
93- && gh issue close < N> --repo modelcontextprotocol/servers --reason " not planned" --comment " $BODY " \
94- || { echo " no response or close failed for #<N> — stop and check it" >&2 ; false ; }
98+ && gh issue comment < N> --repo modelcontextprotocol/servers --body " $BODY " \
99+ && sleep 8 \
100+ && gh issue close < N> --repo modelcontextprotocol/servers --reason " not planned" \
101+ && sleep 8 \
102+ || { echo " no response, or the comment or close failed for #<N> — look before retrying" >&2 ; false ; }
95103# Spam or empty, the one class with no response:
96- gh issue close < N> --repo modelcontextprotocol/servers --reason " not planned"
104+ gh issue close < N> --repo modelcontextprotocol/servers --reason " not planned" && sleep 8
97105```
98106
99107## Pass 1 — sweep onto the board (no approval implied)
@@ -447,13 +455,22 @@ while IFS=$'\t' read -r PR CLASS ISSUE _; do
447455 if [ -n " $SWEEP_LABEL " ]; then
448456 gh pr edit " $PR " --repo modelcontextprotocol/servers --add-label " $SWEEP_LABEL " < /dev/null \
449457 || { echo " label FAILED on #$PR — stopping" >&2 ; break ; }
458+ sleep 8
450459 fi
451- gh pr close " $PR " --repo modelcontextprotocol/servers --comment " $BODY " < /dev/null \
452- || { echo " close FAILED on #$PR — stopping; re-snapshot to see what is left" >&2 ; break ; }
453- sleep 5
460+ # Comment and close as two writes, so each is paced: `gh pr close --comment`
461+ # sends both back to back.
462+ gh pr comment " $PR " --repo modelcontextprotocol/servers --body " $BODY " < /dev/null \
463+ || { echo " comment FAILED on #$PR — stopping; look before retrying, it may have landed" >&2 ; break ; }
464+ sleep 8
465+ gh pr close " $PR " --repo modelcontextprotocol/servers < /dev/null \
466+ || { echo " close FAILED on #$PR (its comment is posted; close it, do not re-comment) — stopping" >&2 ; break ; }
467+ sleep 8
454468done < " $D /manifest.tsv"
455469```
456470
471+ Each ` sleep 8 ` paces a sustained loop, long enough to stay inside every limit
472+ in ` AGENTS.md ` ** Pacing GitHub writes** for as long as the batch runs.
473+
457474The step 0 issue closes take the same two sweep additions during the backlog
458475sweep: the close label (` gh issue edit <N> --add-label ` ) and the ` #4875 `
459476sentence at the end of the response, in the original comment rather than a
0 commit comments