File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -429,16 +429,16 @@ if [ -s "$BOARD_TMP/lost-ids.json" ]; then
429429 gh project item-edit --project-id PVT_kwDOCt2Azc4BcZgq --id " $id " \
430430 --field-id PVTSSF_lADOCt2Azc4BcZgqzhXCpm0 --single-select-option-id < NEW_OPTION_ID> \
431431 || { echo " item-edit failed on $id — stopping; re-run step 1 to see what is left" >&2 ; break ; }
432- sleep 1 # AGENTS.md "Pacing GitHub writes"
432+ sleep 8 # 450 an hour: under AGENTS.md "Pacing GitHub writes" for a sustained loop
433433 done
434434else
435435 echo " no lost-ids.json — step 1 did not complete; nothing re-applied" >&2
436436fi
437437```
438438
439- Step 3 paces its edits by ` AGENTS.md ` ** Pacing GitHub writes** ; a board of
440- several hundred cards takes more than one hour's allowance , so expect to resume
441- it .
439+ Step 3 paces its edits by ` AGENTS.md ` ** Pacing GitHub writes** . The 1 s floor
440+ alone would pass the hourly cap within ten minutes , so the loop sleeps 8 s: a
441+ restore of 250 cards takes about 35 minutes .
442442
443443Step 1's join is the safety check: only a card that held the deleted option in
444444the snapshot is re-applied, so you don't overwrite a card that was already blank
Original file line number Diff line number Diff line change @@ -447,14 +447,23 @@ while IFS=$'\t' read -r PR CLASS ISSUE _; do
447447 if [ -n " $SWEEP_LABEL " ]; then
448448 gh pr edit " $PR " --repo modelcontextprotocol/servers --add-label " $SWEEP_LABEL " < /dev/null \
449449 || { echo " label FAILED on #$PR — stopping" >&2 ; break ; }
450- sleep 1 # AGENTS.md "Pacing GitHub writes": one request per second, even within an item
450+ sleep 8
451451 fi
452- gh pr close " $PR " --repo modelcontextprotocol/servers --comment " $BODY " < /dev/null \
453- || { echo " close FAILED on #$PR — stopping; re-snapshot to see what is left" >&2 ; break ; }
454- sleep 5
452+ # Comment and close as two writes, so each is paced: `gh pr close --comment`
453+ # sends both back to back.
454+ gh pr comment " $PR " --repo modelcontextprotocol/servers --body " $BODY " < /dev/null \
455+ || { echo " comment FAILED on #$PR — stopping; look before retrying, it may have landed" >&2 ; break ; }
456+ sleep 8
457+ gh pr close " $PR " --repo modelcontextprotocol/servers < /dev/null \
458+ || { echo " close FAILED on #$PR (its comment is posted; close it, do not re-comment) — stopping" >&2 ; break ; }
459+ sleep 8
455460done < " $D /manifest.tsv"
456461```
457462
463+ Each ` sleep 8 ` paces a sustained loop by ` AGENTS.md ` ** Pacing GitHub writes** :
464+ one write per 8 s is 450 an hour, under the hourly cap that a 1 s floor alone
465+ would pass in under ten minutes.
466+
458467The step 0 issue closes take the same two sweep additions during the backlog
459468sweep: the close label (` gh issue edit <N> --add-label ` ) and the ` #4875 `
460469sentence at the end of the response, in the original comment rather than a
You can’t perform that action at this time.
0 commit comments