Skip to content

doc: fleet content-creation pacing — measured rates, the 2026-10-28 block, and a shared throttle (#2013) - #2226

Merged
dezren39 merged 2 commits into
mainfrom
queue/3334-2013-content-creation-pacing
Oct 29, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/3334-2013-content-creation-pacing

Conversation

@dezren39

@dezren39 dezren39 commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Design record for #2013 (queue task 3334).

What this adds

doc/2026-10-29T10-08-00Z_design_github-content-creation-pacing/ — the investigation the issue asks for:

  • Measured rates for developing-today/code from the GitHub API: 2 916 content-creating events on 2026-10-28 (479 issues/PRs + 2 437 comments), peak hour 22:00Z = 511 events against GitHub's documented 500/hour content-creation ceiling; peak minute 39; 10-minute stretches up to 144.
  • The gap: creation stopped after issue id(repl): find selection prompt silently drops unparseable numbers — a typo changes which blobs are fetched, and duplicates fetch twice #1999 at 23:08:35Z and resumed at 23:41:24Z — 31m48s, consistent with a secondary-limit block while work was queued.
  • Documented limits verified 2026-10-29 (80/min, 500/hour, 100 concurrent, no way to query secondary-limit status, ban warning for retrying while limited).
  • Why one lane blocks the account: one identity (1 900 of 1 978 recent items are dezren39), no pacing, and comments as the volume (agent notes are 5× the issue count).
  • Design: shared creation ledger, throttle (45/min, 300/hour, 1 s spacing, per-lane 50/hour, 75/hour breakage reserve, ≤ 20 issues per 30-minute program window), verify-by-read after every create (empty output = failure, nonce search to detect verified-existing), circuit breaker honouring retry-after.
  • Structural fix: one live agent note per task instead of one per checkpoint.

Not in this PR

Implementation (ledger, wrapper, wiring the filing paths) is the follow-on issue; this PR is the design record only. No production code changes.

Verification

  • Numbers reproducible with the commands recorded in the document (gh api repos/developing-today/code/issues, .../issues/comments, bucketed by created_at).
  • Docs-only change; no tests apply.

Closes nothing: #2013 stays open until the follow-on lands. Queue task 3334.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Measured creation rates for developing-today/code (2 916 events on
2026-10-28, peak hour 22Z = 511 = the documented 500/hour ceiling),
the 31m48s creation gap after #1999, and the design: shared creation
ledger, throttle with per-lane budgets and a breakage reserve,
verify-by-read after every create, and a circuit breaker.

Queue task 3334.
@dezren39
dezren39 requested a review from a team as a code owner October 29, 2026 10:07
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 43 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1bf33921-1fad-4a02-9faa-c268dbb2f2f1
Commits

Reviewing files that changed from the base of the PR and between 387041f and a88abe3.

Files selected for processing: 1
  • doc/2026-10-29T10-08-00Z_design_github-content-creation-pacing/2026-10-29T10-08-00Z_design_github-content-creation-pacing.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T10:10:06.358748Z d9ba84b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d9ba84bbb7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +201 to +204
- 403/429 with `retry-after`: sleep that many seconds, then one retry.
- 403/429 without it: sleep 60 s, then exponential (×2, five attempts).
- After five failures: **open the circuit** (no content creation for 15
minutes), mark the calling task parked with a resume brief, alert.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Honor the primary-limit reset before retrying writes

When other activity exhausts the account's shared primary budget, a creation request can return 403/429 without retry-after and with x-ratelimit-remaining: 0. This policy would retry after 60 seconds and eventually reopen after a fixed 15-minute cooldown, potentially before that budget resets. GitHub's documented handling requires waiting until x-ratelimit-reset in this case. Add that branch before the secondary-limit fallback so the implementation does not repeatedly send requests during a known primary-limit block.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant