Skip to content

refactor(rate-limits)!: rename rate-limit-guard plugin to rate-limits - #15827

Merged
kyle-sexton merged 13 commits into
mainfrom
refactor/rename-rate-limit-guard-to-rate-limits
Nov 13, 2026
Merged

kyle-sexton merged 13 commits into
mainfrom
refactor/rename-rate-limit-guard-to-rate-limits

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Refs: #15556
session: AI Hero

Summary

Renames the rate-limit-guard plugin to rate-limits, completely: the plugin directory, the install id rate-limits@melodic-software, the /rate-limits and /rate-limits:setup commands, the status tool mcp__rate-limits__status, three option keys and their variables, the runtime directory ~/.claude/rate-limits/, and every reference in other plugins, docs, ADRs, contracts, evals, tests, script lists and released changelogs. Owner decisions Q107 and Q133, and the 2026-11-12 rulings "everything's migrated: nothing cosmetic, nothing left behind" and "I want a clean cutover".

Paired dotfiles PR: melodic-software/dotfiles branch refactor/rename-rate-limit-guard-to-rate-limits. Merge this PR first, then the dotfiles PR within the hour. The account-rotation companion (TeeDirectoryName, the RateLimitGuard* identifiers) is not in either PR; see Remaining.

Fix

  • git mv plugins/rate-limit-guard plugins/rate-limits, hooks/rate-limit-guard.test.ts to hooks/rate-limits.test.ts, and the control skill's features/rate-limit-guard/ to features/rate-limits/.

  • Marketplace entry name and source (position kept); plugin.json name, and its description now opens "Rate-limit windows for loop lanes and Claude" instead of "Shared rate-limit guard".

  • Option keys, values unchanged:

    Old key New key
    rate_limit_guard_enabled rate_limits_enabled
    rate_limit_guard_band rate_limits_band
    rate_limit_guard_toast rate_limits_toast

    CLAUDE_PLUGIN_OPTION_RATE_LIMIT_GUARD_* becomes CLAUDE_PLUGIN_OPTION_RATE_LIMITS_*, and hook::check_enabled "RATE_LIMIT_GUARD" in lib/hook-utils.test.sh becomes "RATE_LIMITS". model_notices, rate_limit_report_mode, rate_limit_line_threshold, rate_limit_approach_pct and rate_limit_line_data keep their names.

  • Other old-to-new pairs: /rate-limit-guard to /rate-limits, /rate-limit-guard:setup to /rate-limits:setup, mcp__rate-limit-guard__status to mcp__rate-limits__status (no code change: the tool registers as status under the plugin name), ~/.claude/rate-limit-guard/ to ~/.claude/rate-limits/. rate-limits.json, stop-events.jsonl and record-rate-limit-stop.sh keep their names.

  • hooks/register.tsx: CONTRACT_DIR, the transcript prefix, the slash command and its command.run matcher, the README URL. record-rate-limit-stop.sh: the directory variable GUARD_DIR is now CONTRACT_DIR, matching the module.

  • The inline floor moved in one commit with its source: reference/reader-contract.md and its seven registered copies (work-loop, its paused-wait.md and guard-reader-rules.md, attend-queue, babysit-loop and its paused-wait.md, the pull-request watch handoff, extract-ssot orchestrated mode, both loop-lane prompt files), and scripts/check-loop-lane-floor-drift.sh and its test.

  • Headings whose anchors carried the old name, renamed with every link to them: loop-lane contract §6 "Rate-limits binding" (#6-rate-limits-binding, linked from docs/conventions/loop-lane/README.md and the contract's table of contents); "Rate-limits floor (inlined)" in work-loop, attend-queue, babysit-loop and the watch handoff (#rate-limits-floor-inlined, linked from prompts/loops/loop-lane-prompts.md); extract-ssot "Rate-limits integration (when present)". The reader contract's title is "Rate-limits reader contract". Prose that cites those sections by title now uses the new one: the loop-lane contract's "rate-limits binding (§6)", "the rate-limits floor step below" in work-loop and babysit-loop, babysit-loop cycle-shape.md, loop-lane-prompts.md, and "the rate-limits operable floor" in check-loop-lane-floor-drift.sh's message and the pr-require-checks.yml comment.

  • Readers outside the plugin: install_state.py's matcher (rate-limits/.*\.tmp\.\d+) and its test, lib/write-snapshot.mjs and its registered copies, context-usage's hook comment and test, the lanes skill and launcher comment, session-flow, docs-hygiene, autonomy, harness-ops, ADRs 0018, 0028, 0052 and 0093, the contracts, docs/cursor-compatibility.md, docs/upstream/claudedevs-cost-performance.md, the evals named in the issue, and the sorted lists in scripts/ (each entry keeps its sorted slot; resort-shared-copies.py --check reports nothing to move).

  • plugins/evals convert-evals-json.py and validate-cases.py cite "run feat(evals): convert other plugins' evals.json files to claude plugin eval suites #8635" without the plugin name.

  • verify-legacy-fails.json: the recorded head_ref is fix/lane-rate-limits (owner ruling on records).

  • Generated files from their generators: docs/catalog.md (scripts/generate-catalog.mjs); the cheat sheet generator reported no change; docs/architecture/landscape.json re-recorded with landscape-record.sh --source "current repository plus reference graph" --remote "not used" and landscape.md and portfolio.md re-rendered with render-landscape.sh (the diff is one edge path, generated_on and last_touched); shared copies checked with scripts/sync-shared-copies.sh --check.

  • /rate-limits:setup moves from check-only to narrow-write: check step 6 reports a leftover ~/.claude/rate-limit-guard/ as drift, and the new apply migrates it. argument-hint is [check|apply]; the description, Purpose, "does NOT do" sections and the README ("Install") say what apply does. This is the issue's path for machines without dotfiles. apply, in order:

    1. stops while any file in the old directory changed within the reader contract's staleness window (a session still running the old plugin), as context-usage's migration does; this cannot see an idle session on the old name, and whatever such a session writes later, a later apply merges;
    2. stops when the statusLine in effect names a path under the old directory, and prints it;
    3. lists every entry and stops on anything outside the known set: the snapshot, stop-events.jsonl, *.lock, *.tmp.*, and the pre-0.12.0 leftovers bin/statusline-shim.sh, spool/, .statusline-tee-path, .tee-disabled, .last-write;
    4. skips the record when there is no old stop-events.jsonl; otherwise, holding the hook's own lock in both directories (flock -w 2 over stop-events.jsonl.lock, as hooks/record-rate-limit-stop.sh:120-125 and hook::append_jsonl at hooks/hook-utils.sh:3132-3142 take it: the old directory's first on fd 8, which a session still on the old name appends under, then the new one's on fd 9; unlocked where flock is missing, as the hook is), moves the old file when the new one is absent, or writes the old lines, a newline if the old file lacks a final one, then the new lines to a temp file, renames the old file aside and the temp over the new file, and deletes the aside copy, so no later apply can merge it twice; the old lock held for 2 s stops it with exit 3, the new one with exit 4;
    5. in one block holding the old directory's lock (fd 8, exit 3 when held for 2 s), checks that no stop-events.jsonl is in the old directory again (a session on the old name may have written one after step 4; exit 4, a later apply merges it) and otherwise removes the directory, whose entries step 3 already proved known.
      Locking only the new directory's file, as the block did before, let a session on the old name append after the merge read the old file (that record lost when the file is renamed aside) or after the rename aside (a fresh old file the removal deleted unmerged).
      The skill's block, extracted from SKILL.md, was run against throwaway homes: old-first merge, an old file lacking its newline, a move into an absent new file, the old lock held (exit 3, both files unchanged, then a rerun after release merges), the new lock held (exit 4, the same); and step 5's block: a stop record reappeared (exit 4, directory and file kept), the old lock held (exit 3, directory kept), a clean directory removed: 25/25.
      Known limits:
    • A second apply puts a late old-name record ahead of newer ones in the new file. Readers compare detected_at, so only which lines rotation keeps is affected.
    • A hook on the old name resolves its paths before it takes the lock, so one that opens the lock file while the removal holds it, or passes its mkdir -p just before the delete, can still drop one record silently; the migration cannot close that window.
  • Review findings fixed (PR refactor(rate-limits)!: rename rate-limit-guard plugin to rate-limits #15827): PRRT_kwDOTCGFQM629Q_r (old records went last, so the next rotation dropped the newest), PRRT_kwDOTCGFQM629E9S (the merge took no lock while the hook rotates under one), PRRT_kwDOTCGFQM629E9N (a machine with no old record could never clear the drift). The independent review's additions are in the steps above: the old file consumed under the lock and the absent-new move done under it (A), the live-session wait (B), known-entries-only removal and the statusLine stop (C), the description and README (D).

  • No reader fallback to the old directory: the issue accepts the short lane window (an absent snapshot classifies as unknown, reactive-only), and the floor-drift gate requires every copy to name one path.

  • Changelog: a major fragment for rate-limits; patch fragments for every other plugin this change touches. Fragment files are named rename-to-rate-limits-*.md, so no tracked path carries the old name.

  • Released entries in plugins/rate-limits/CHANGELOG.md that would name something removed before the rename now describe it: the check skill (5), the namespaced band command (3), the statusline shim path (4, via reword-removed-names.py), the per-session spool/ path (1, by hand), and the removed tee's environment variables (RLG_TEE_* and RLG_SETTINGS_DOC, 8 lines in [0.12.0], [0.8.0], [0.7.27], [0.7.0], [0.6.1] and [0.6.0], now "the tee's async switch variable" and the like). A repository-wide search for tokens built from the new name (rate_limits_*, RATE_LIMITS_*, rate-limits:<x>, /rate-limits <x>, rate-limits/<path>) finds only names that exist today.

Old name

Every remaining hit of git grep -n -i -e rate-limit-guard -e rate_limit_guard -e ratelimitguard -e 'rate limit guard' and of git grep -n -i -E 'rate[- ]limit[- ]guard' is a migration line, except the two allowed hits listed after the table. Removal condition for all of them: every lane has converged on rate-limits@melodic-software, no session running the old plugin remains, and no machine holds ~/.claude/rate-limit-guard/.

File Line Why it reads the old name
plugins/rate-limits/skills/setup/SKILL.md 18 pre-computed probe for the leftover directory
plugins/rate-limits/skills/setup/SKILL.md 176 check step 6, the drift row
plugins/rate-limits/skills/setup/SKILL.md 185, 190, 197, 217, 231, 244, 249 the apply migration: its subject, the live-session wait, the statusLine stop, the stop-record block and its old-directory lock, and the removal block and its lock
plugins/source-control/skills/babysit-prs/scripts/verify-legacy-fails.json 3173, 3185, 3221, 3293 head_ref of four recorded verifier FAILs: the real head branch of merged PR #9863 (fix/lane-rate-limit-guard), a fact about that artifact and not the plugin's name; the security lane asked for it back. Removal condition: the legacy-fails record drops PR #9863

git ls-files | grep -i -e rate-limit-guard -e rate_limit_guard -e ratelimitguard prints nothing.

Allowed hits, removal condition never:

  • plugins/source-control/skills/babysit-prs/scripts/babysit_gh.py:341 and tests/test_babysit_gh_rate_guard.py:1: "the rate-limit guard" there is babysit_gh's guard against GitHub's own API rate limit, a different thing from this plugin.
  • The _rlg_* function names in the code-tidying eval fixture plugins/code-tidying/evals/fixtures/statusline-stamp.sh.txt and its case real-statusline-stamp-aggressive/case.yaml: the removed tee's real identifiers in a fixture, not the plugin name.

The spaced phrase "rate-limit guard" wherever it named this plugin, its floor or its pause (21 places in skills, evals, config-resolution.md, the loop-lane contract and released entries) now reads "rate-limits floor", matching the renamed headings.

Reported, not renamed: the telemetry field guard_mode (work-loop SKILL.md:96, babysit-loop SKILL.md:307) is a recorded key readers parse, so it keeps its name; the prose term "guard mode" (18 places) names that field's value and does not contain the plugin name. The removed tee's nine helper function names in released rate-limits entries ([0.8.0], [0.7.31], [0.7.30], [0.7.15], [0.6.1], [0.6.0], [0.5.7]) are described instead of named, the same as the removed variables.

Released entries corrected in place (rule in the header of scripts/check-changelog-parity.sh, #2388; every ## [<v>] heading kept, --check-preserved green). Each plugin's fragment names its versions:

  • rate-limits: the title and [3.0.16], [3.0.0], [2.1.10], [2.1.9], [2.1.8], [2.0.10], [2.0.2], [0.17.0], [0.16.0], [0.15.0], [0.13.0], [0.12.0], [0.11.0], [0.10.4], [0.10.0], [0.8.37], [0.8.30], [0.8.24], [0.8.22], [0.8.17], [0.8.16], [0.8.14], [0.7.18], [0.7.0], [0.5.7], [0.5.6], [0.5.5], [0.4.3], [0.3.0], [0.2.1], [0.1.0], [0.8.0], [0.7.27], [0.6.1], [0.6.0]
  • actionlint [0.7.1]; bash-format [0.6.3]; biome-format [0.5.2]; context-budget [0.6.14]; dometrain [0.1.3]; eol-normalizer [0.5.2]; firecrawl [0.5.5]; go-format [0.2.2]; guardrails [0.16.1]; harness-config [0.40.17]; knowledge [0.9.5]; machine-health [0.7.1]; markdown-format [0.6.4]; miro [0.2.3]; planning [0.26.3]; playwright [0.6.7]; powershell-format [0.5.2]; python-format [0.5.2]; repo-hygiene [0.10.17]; skill-quality [0.10.2]; spelling [0.3.2]
  • context-usage: [0.12.0], [0.7.73], [0.7.62], [0.7.60], [0.7.56], [0.7.54], [0.7.53], [0.7.51], [0.7.31], [0.7.28], [0.5.3], [0.4.0], [0.3.0]
  • desktop-notification: [0.6.24], [0.5.2]
  • disk-hygiene: [0.20.33], [0.9.4]
  • docs-hygiene: [0.26.9], [0.26.7], [0.26.5], [0.21.38], [0.21.25], [0.21.22], [0.14.0], [0.12.1]
  • harness-ops: [3.14.0], [0.29.0], [0.21.1]
  • plugin-quality: [0.7.19], [0.7.17]
  • session-flow: [0.48.7], [0.34.14], [0.23.7]
  • source-control: [0.79.21], [0.79.20], [0.79.13], [0.79.9], [0.74.0], [0.55.55], [0.55.28], [0.49.1], [0.39.0], [0.31.4], [0.24.0], [0.36.0], [0.33.1]
  • work-items: [0.49.4], [0.49.3], [0.48.7], [0.48.3], [0.39.64], [0.39.38], [0.34.1], [0.29.0], [0.22.0], [0.28.0], [0.25.4]
  • Dated records: ADR 0048's release counts, ADR 0093's dated review headings and carve-out paths, docs/contracts/loop-lane/CHANGELOG.md (eleven lines: five plugin-name hits and six mentions of the §6 binding or floor) and docs/contracts/retired-conventions/CHANGELOG.md (one line).

Verification

  • claude plugin test plugins/rate-limits: 152 pass, 0 fail (hooks/rate-limits.test.ts); claude plugin validate plugins/rate-limits: passed with warnings.
  • After the two-lock change: claude plugin test plugins/rate-limits 152 pass, scripts/check-changelog-fragments.sh --check 45 fragments valid, scripts/check-line-citations.py exit 0, and the extracted apply step 4 and step 5 blocks 25/25 against throwaway homes.
  • plugins/rate-limits/scripts/check-mod-load.test.sh 9 PASS, 0 FAIL; hooks/record-rate-limit-stop.test.sh 19/19 (re-run after the CONTRACT_DIR rename).
  • node --test lib/write-snapshot.test.mjs: 30/30.
  • lib/hook-utils.test.sh: 703 pass, 1 fail: prereq_notice_to: printed command (it printed this host's installed biome path). The case expects biome to be absent (lib/hook-utils.test.sh:1849 matches 'FAIL biome (cli, required): '*), and this host has biome installed through mise, so the failure is this host's, not this change's. The edited check_enabled cases (lines 3724-3777) pass.
  • scripts/check-loop-lane-floor-drift.sh: exit 0, 7 consumers match; check-loop-lane-floor-drift.test.sh 28/28.
  • test_install_state.py (pytest via uv run --with pytest): 91 passed. Babysit-prs test_babysit_verify_index.py (loads verify-legacy-fails.json): 48 passed.
  • claude plugin test plugins/context-usage: 341 pass.
  • scripts/validate-plugins.sh --only <the 33 touched plugins>: all manifests and the catalog validated (the pre-push hook first caught the org name in the autonomy fragment, now removed). validate-plugin-contracts.mjs: 65 setup skills pass with the new apply.
  • After merging origin/main (chore(release): release 19 plugins #15755 release, refactor(python-format)!: rename ruff-format plugin to python-format #15783 python-format rename): check-changelog-fragments.sh --check (45 valid) and --check-required origin/main (33 plugins), check-changelog-parity.sh --check, --check-preserved origin/main (33 changelogs, 7,129 headings) and --check-bump; sync-shared-copies.sh --check (820 copies); catalog and cheat sheet --check; check-cross-plugin-source-drift.sh, check-plugin-catalog-enablement.sh, check-plugin-manifest-presence.sh, check-killswitch-hoist.sh, check-hook-userconfig-argv.sh; landscape --drift-against: no gating drift. The pre-push check-affected passed on the pushed head.
  • scripts/release-plugins.sh in a throwaway clone (before the main merge): rate-limits 3.0.21 -> 4.0.0 (major), each other plugin a patch, and the new entry carries no old name.
  • scripts/check-line-citations.py: exit 0 (no citation into the shifted setup SKILL.md). scripts/check-skill-precompute-compose.sh --all: 2 violations, both in other plugins (code-tidying, work-items), warn-only. validate-cases.py plugins/rate-limits/evals: warnings only, no failure; no rate-limits eval asserts check-only or cites setup line numbers.
  • Not done: an eval case for check reporting the leftover directory. The leftover row is a load-time probe of $HOME/.claude/rate-limit-guard, and a case's scaffold writes only into the case workspace, so a case cannot arrange the leftover without writing under the running machine's real home; it would also add old-name hits. The setup-skill fixes after 4b831eaa2f re-ran: claude plugin test plugins/rate-limits 152 pass, record-rate-limit-stop.test.sh 19/19, the changelog, catalog, cheat-sheet, shared-copies and plugin-contract checks, check-line-citations.py exit 0, and validate-cases.py plugins/rate-limits/evals 0 FAIL.
  • Released entries [0.12.0], [0.8.30], [0.8.22] and [0.3.0] named the removed shim-installing setup apply (two as /rate-limits:setup apply); they now describe it ("the setup skill's shim install"). Bare apply mentions of that removed action in [0.7.x] and earlier entries, and context-usage's own setup apply in [0.3.0], are left as they are.
  • Not run: the full .github suite, typos, and the /docs-hygiene:rename-references apply flow (its pattern forms all contain the literal old token, which the case-insensitive grep above covers; a brace-split and abbreviation sweep found only the items listed above).
  • After the follow-up commit: the four grep forms and rate[- ]limit[- ]guard (only the hits above, plus a line-break-aware sweep: none), check-changelog-fragments.sh --check (45 valid) and --check-required origin/main (33), check-changelog-parity.sh --check, --check-preserved origin/main (7,129 headings) and --check-bump, catalog and cheat sheet --check, sync-shared-copies.sh --check (820), the floor-drift gate (exit 0), check-line-citations.py (exit 0), and validate-cases.py on plugins/source-control/evals and plugins/work-items/evals (0 FAIL). The pre-push check-affected passed.

Remaining

Issue #15556 stays open after this PR:

  • The dotfiles companion PR: enabledPlugins, uninstallPlugins, the renamedPlugins entry with its dataDir (prepend: ["stop-events.jsonl"], activeDir: ".", activeSeconds: 600), and the dotfiles checks; its manifest check passes only after this PR merges.
  • melodic-software/claude-code-account-rotation: TeeDirectoryName = "rate-limit-guard" to "rate-limits", every RateLimitGuard* identifier and file, and a release; then bump the dotfiles pin (.chezmoidata/claude-code-account-rotation.yaml, version: 2.16.1 today). Until then the dashboard shows no quota once the new mod is on a host.
  • After all merge and one fleet-converge per lane: the acceptance checks in the issue (plugin list, no old directory, the new snapshot written, stop records carried over, the new MCP tool, saved values under the new keys).

Review

  • Security review, manifest flags (renamed marketplace entry, plugin id and option keys, defaults unchanged): the rename is the owner's decision (owner, 2026-11-12: "everything's migrated: nothing cosmetic, nothing left behind"). The entry was defaultEnabled: false before the rename and stays so.
  • Security review, renamed kill switch: an opt-out saved under the earlier id no longer applies after the update. The dotfiles companion moves saved option values to the new id and keys on managed lanes; the rename fragment now tells every other machine, a managed policy included, to set rate_limits_enabled to false under the new id (bd5d294).
  • Security review, verify-legacy-fails.json: the four head_ref values are restored to the branch the verifier artifacts recorded (bd5d294). PR fix(ci): stop every lane GitHub call while rate limited #9863 is merged, so the entries held nothing either way.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01RMa43z1UkcP7TaART7rVjB

kyle-sexton and others added 5 commits November 12, 2026 22:20
Renames the plugin directory, install id, commands, three option keys and
their variables, the runtime directory ~/.claude/rate-limits/ and the
status tool mcp__rate-limits__status, and every reference in other
plugins, docs, ADRs, contracts, evals, tests, script lists and released
changelogs. /rate-limits:setup check reports a directory left by the
earlier name as drift and the new apply moves its stop record.

Refs: #15556

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VQb9Pz6CBRwjqpnFDbP9Rr
…limit-guard-to-rate-limits

# Conflicts:
#	.changes/rate-limits/rename-to-context-usage-829a4253.md
#	docs/adr/0028-classify-a-plugin-s-hooks-by-packaging-before-proposing-a-split.md
#	scripts/suite-seconds.txt
…y their new titles

Prose that cites the loop-lane binding, the inline floor or the floor
step now uses the renamed titles; ADR 0028 keeps its list sorted.

Refs: #15556

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VQb9Pz6CBRwjqpnFDbP9Rr
…variable names

"rate-limit guard" where it names the plugin, its floor or its pause now
reads "rate-limits floor"; released rate-limits entries describe the
removed tee's environment variables instead of naming them.

Refs: #15556

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VQb9Pz6CBRwjqpnFDbP9Rr
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T04:34:43.767216Z 429e01d 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: 429e01dab5

ℹ️ 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".

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed bd5d29411e21a8befa00bc98087a5473749546ff: read 1 of 1 changed file(s); 1 finding(s), 0 as inline comments.

Security review, incremental (PR #15827, head bd5d2941, since 7f5bf0fb)

This lane reviewed an earlier head, so this review was blocking only: it reports CRITICAL and IMPORTANT findings and drops SUGGESTIONs.

Scope. I read the one file in the incremental scope, all of its hunks: .changes/rate-limits/rename-to-rate-limits-815d2c24.md. The push adds one sentence to the major changelog fragment. It warns that an opt-out saved under the old plugin id (including one set by a managed policy) no longer applies, and says to set rate_limits_enabled to false under rate-limits@<marketplace>. This is release-note prose with no executable effect, and it is not a standing instruction, so the instruction-surface lens has nothing to judge. The behaviour it describes, that an opt-out keyed on the old id stops applying, comes from the rename this lane reviewed at 7f5bf0fb. The renamed entry is still opt-in: "defaultEnabled": false at marketplace.json#L768. So this sentence lets nothing new reach any user's machine. No new security issue in this push.

Restated summary finding. The earlier review raised this as a summary finding with no line anchor, so it is restated each round:

  • manifest plugins[rate-limits] name/source: flag, marketplace entry renamed from rate-limit-guard (IMPORTANT). The source is ./plugins/rate-limits (marketplace.json#L766), which is still inside this repository. The entry sets "defaultEnabled": false (#L768), so it is opt-in and rated IMPORTANT, not CRITICAL. The earlier post is this comment.

Settled threads. The three settled threads are about plugins/rate-limits/skills/setup/SKILL.md, which this push does not touch (lines changed: no). None is raised again.

PR context. No text in it tells the lane what to do.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 1 inline finding(s) on 429e01dab578f84d3336bf6976242bad79d3bc70; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed bd5d29411e21a8befa00bc98087a5473749546ff: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

claude-review, incremental pass on bd5d2941 since 7f5bf0fb. This lane already reviewed an earlier head (blocking only: yes), so this pass reports blocking findings only.

Scope. One file changed since the last review: .changes/rate-limits/rename-to-rate-limits-815d2c24.md. I read its whole hunk.

Result: no blocking findings.

The change adds one sentence to the rate-limits changelog fragment's "Renamed" entry. It warns that an opt-out saved under the earlier id, including one set by managed policy, no longer applies. It tells users to set rate_limits_enabled to false under rate-limits@<marketplace>.

The sentence holds up against the code at this head:

Fragment. The fragment stays bump: major, which fits a breaking rename that also drops users' saved opt-outs.

  • manifest version bump (fragment bump: major): pass

Prior and settled threads. The settled threads on plugins/rate-limits/skills/setup/SKILL.md show lines changed since resolution: no, and this push does not touch that file. Nothing is re-raised. The single prior inline finding is resolved and has not recurred.

Spend. None. The change is changelog prose only.

No hold: nothing here can start a charge, and nothing is a security surface.

Verifier dropped 0 of 0 candidates.

…lock

/rate-limits:setup apply now writes the old records ahead of the new
file's under the hook's flock and consumes the old file inside the lock,
skips a machine with no old record, waits while a session still writes
the old directory, stops when the status line runs a script from it, and
removes only the entries earlier releases are known to leave. The
description and README say what apply does; released entries no longer
name the removed shim-installing setup action.

Refs: #15556

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43z1UkcP7TaART7rVjB
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

A lane run on this pull request's head failed because the token broker refused it as workflow-modified: .github/workflows/pr-run-activity-write.yml changed on main after the run's event, and a rerun keeps the old file. pr-merge pushes an empty commit so the next pr-unblock run uses main's files. It does this once per version of that file, so if a run fails the same way again, a person looks at it. The push starts no run itself: the conflict-resolution run starts at the next push to main or half-hourly pr-unblock-dispatch tick, or when a listed person runs it by hand, and an address-feedback run can start after both review lanes review the new head, if an unresolved thread is left for it.

The token broker refused a lane run on the previous head as workflow-modified (.github/workflows/pr-run-activity-write.yml). This commit changes no file.
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

The pr-unblock lane stopped resolve-conflicts on this pull request: the lane could not resolve every conflict. The lane sets no label: the run ends in a failing pr-unblock/conflict status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=15827 -f activity=resolve-conflicts

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 13, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Held on purpose: a review found the stop-record merge does not take the earlier name's stop-events.jsonl.lock, so a session still on that name can lose a record during the merge. Fix in flight, session: AI Hero. The hold ends with the push that carries the fix and the main merge; the label comes off in that step.

kyle-sexton and others added 4 commits November 13, 2026 01:52
…d merge

The setup skill's apply merged the earlier-name stop record holding only the
new directory's stop-events.jsonl.lock, so a session still on the earlier name
could append to the old file during the merge and lose that record. The block
now takes the old directory's lock first (fd 8, exit 3), then the new one's
(fd 9, exit 4). Step 5 re-checks that no stop record reappeared in the old
directory before removing it, and step 1 says the freshness check cannot see
an idle session on the earlier name, whose later writes a later apply merges.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43z1UkcP7TaART7rVjB
…r its lock

The setup skill's apply step 5 checked for a reappeared stop record and
deleted the directory in separate steps with no lock, so a session on the
earlier name could append in between and lose the record. Step 5 is now one
block that holds the old directory's stop-events.jsonl.lock (exit 3 when
held), exits 4 when a stop record is there again, and otherwise removes the
directory, whose entries step 3 already proved known.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43z1UkcP7TaART7rVjB
…-to-rate-limits' into refactor/rename-rate-limit-guard-to-rate-limits
…limit-guard-to-rate-limits

# Conflicts:
#	.claude/skills/control-claude-code-plugins/SKILL.md
#	docs/adr/0028-classify-a-plugin-s-hooks-by-packaging-before-proposing-a-split.md
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 13, 2026
…ut step

The four head_ref values in verify-legacy-fails.json are the head branch of
merged PR #9863 as its verifier artifacts recorded it, so they stay as
recorded. The rename fragment now tells a machine or managed policy that
turned the plugin off to set rate_limits_enabled to false under the new id.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43z1UkcP7TaART7rVjB
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit cb5f541 Nov 13, 2026
80 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/rename-rate-limit-guard-to-rate-limits branch November 13, 2026 12:09
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 13, 2026
kyle-sexton added a commit to melodic-software/claude-code-account-rotation that referenced this pull request Nov 13, 2026
Refs: melodic-software/claude-code-plugins#15556
session: AI Hero

## Summary

Dates the `[Unreleased]` heading as `[3.0.0] - 2026-11-13`. Merging this
PR publishes release
`v3.0.0`: `release-publish-binaries.yml` tags the merge commit and
uploads the linux-x64 and
win-x64 executables, `config.template.json`, the follower-log wrapper
and `SHA256SUMS`.

What ships: live-session quota is read from
`rate-limits/rate-limits.json` inside the live config
directory, where the `rate-limits` Claude Code plugin writes it (#441).
Major release under the
project's Semantic Versioning: a machine that has not moved to the
`rate-limits` plugin has no file
at the new path, so its live card shows no tee figures until it does.
The entry now leads with a
bold "Breaking for machines without the `rate-limits` plugin" marker, in
the form the 2.0.0 entry
used. Update the plugin on each machine before installing this release.

## Fix

`CHANGELOG.md`: the `[Unreleased]` heading becomes `[3.0.0] -
2026-11-13`, and its one entry gains the breaking lead. No code changes;
the release workflow builds and publishes from the merge commit.

## Verification

- `CHANGELOG.md` top heading reads `## [3.0.0] - 2026-11-13`, which
matches the version regex the
  release workflow resolves.
- `eng/check-no-machine-paths.sh`: clean. Pre-commit and pre-push
guardrail hooks passed.
- Changelog-only diff (3 insertions, 2 deletions); no code changes, so
no tests run here.

## Related

- #441: the change this release ships.
- melodic-software/claude-code-plugins#15827: the plugin rename it
depends on (merged).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01RMa43z1UkcP7TaART7rVjB

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant