Skip to content

Commit 6e44a2c

Browse files
cliffhallclaude
andcommitted
docs: pace the triage and recovery loops under the hourly cap
A 1 s or 5 s cadence passes 500 writes an hour within minutes, so both sustained loops now sleep 8 s (450 an hour). The triage loop also splits `gh pr close --comment` into a paced comment and close. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
1 parent 0d40c33 commit 6e44a2c

2 files changed

Lines changed: 17 additions & 8 deletions

File tree

‎.claude/skills/board-ops/SKILL.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
434434
else
435435
echo "no lost-ids.json — step 1 did not complete; nothing re-applied" >&2
436436
fi
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

443443
Step 1's join is the safety check: only a card that held the deleted option in
444444
the snapshot is re-applied, so you don't overwrite a card that was already blank

‎.claude/skills/issue-triage/SKILL.md‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff 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
455460
done < "$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+
458467
The step 0 issue closes take the same two sweep additions during the backlog
459468
sweep: the close label (`gh issue edit <N> --add-label`) and the `#4875`
460469
sentence at the end of the response, in the original comment rather than a

0 commit comments

Comments
 (0)