Skip to content

feat(rate-limits): make the account-switching link a user option - #17492

Merged
kyle-sexton merged 3 commits into
mainfrom
fix/17208-rate-limits-account-switch-url
Nov 19, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
fix/17208-rate-limits-account-switch-url

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #17208

Summary

The rate-limits options line, and the loop-lane floor every consumer copies, linked one organization's account-rotation repository. The link is now a user option (#17208).

Fix

  • New account_switch_url userConfig (string, no default). Set, the line reads switch accounts (<url>); unset, switch accounts with no link. A value that is not one http(s) URL with no whitespace reads as unset, with one transcript line.
  • reader-contract.md's drain-then-pause bullet and its exact copies (work-loop, attend-queue, babysit-loop, watch-handoff, orchestrated-mode, loop-lane prompts) name the option in place of the URL, changed together because scripts/check-loop-lane-floor-drift.sh compares them.
  • README table and generated options block, the setup skill's option posture table, the setup eval, and two eval expectations (babysit-loop evals.json, work-items three-options.json) match.
  • Fragments: rate-limits minor; source-control, work-items, docs-hygiene patch.

Verification

  • claude plugin test plugins/rate-limits: 160 pass, 0 fail (4 new cases: link set, three invalid values).
  • scripts/check-loop-lane-floor-drift.sh: 6 consumers match; check-loop-lane-floor-drift.test.sh 28/0.
  • scripts/validate-plugin-contracts.mjs: exit 0.

Remaining

What #17208 still needs after this PR, each carried by its own follow-up PR under Refs: #17208:

  • Classify every other organization-specific match in shipped content as runtime behavior, instruction, permitted citation or test fixture (the plan's rows table), and record the result on Remove organization-specific dependencies from shipped plugins #17208.
  • Make the remaining runtime and instruction matches read a documented, overridable value: the source-control trust and cost settings, including the DECISION_ROW owner-decisions link in plugins/source-control/skills/babysit-prs/scripts/babysit_merge_policy.py (open in fix(source-control)!: read the merge trust and cost settings from userConfig #17473); plugin-quality standards_repo, playbooks' repo-sweep issue target and fleet's converge_docs_url (branches pushed, PRs to follow); the git-hooks git_url shared by the plugins that install git hooks; and the guardrails lane App login.
  • Add the CI portability check (scripts/check-skill-portability.sh or its token classes) that fails when shipped content adds a new organization dependency outside the allowed citation shapes. It lands last, after the fixes, so it is green when it arrives.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd

kyle-sexton and others added 2 commits November 19, 2026 13:41
The options line after an approach or threshold line linked one
organization's account-rotation repository. The link is now the
account_switch_url userConfig option; unset, the line says the user can
switch accounts with no link. A value that is not one http(s) URL reads
as unset with one transcript line.

The reader contract's drain-then-pause bullet and its five exact copies
(work-loop, attend-queue, babysit-loop, watch-handoff, orchestrated-mode)
plus the loop-lane prompts copy name the option instead of the link, so
check-loop-lane-floor-drift stays green. Two eval expectations drop the
repository name.

Refs: #17208

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 19, 2026 19:01
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 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-19T19:03:20.395506Z 650a5ff Draft marked ready
ℹ️ 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.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44594023045

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: no findings (incremental, blocking only)

This review covers only what changed since 650a5ff65f59523e3931a58bfc199ae635be2c6a, which is one file: plugins/rate-limits/hooks/rate-limits.test.ts. The lane already reviewed an earlier head, so only blocking findings would be posted.

The change: one line, rate-limits.test.ts:1521. It adds the missing space between the test title string and its options object (',{ options becomes ', { options). The test's title, options, body and assertions are unchanged, so its behavior is the same.

Other checks:

  • Earlier findings: the earlier review of this lane had none to carry forward.
  • Settled threads: none apply.
  • Embedded instructions: none in the PR context.
  • Manifests: this change touches none.
  • Spend: none.
  • Loosened checks: the prompt had no verdict or patterns lines, so I used fail with no consumer entries. It had no decision-record line, so I did not check the citation requirement. Loosened-check verdict: pass (no check loosened).

Verifier dropped 0 of 0 candidates.

@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-security-review: 1 inline finding(s) on 650a5ff65f59523e3931a58bfc199ae635be2c6a; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #17492 (incremental, 650a5ff..5d50855)

This review covers only the commits since 650a5ff, and it was blocking only, because this lane already reviewed an earlier head.

Scope: one file changed, plugins/rate-limits/hooks/rate-limits.test.ts, with one hunk. The commit adds the missing space between a test(...) title string and its options object. Nothing else changes: the title, options, assertions and behaviour are all the same.

Result: no security issues. The change is test-file whitespace only. It touches no trusted path, no trust control, no instruction surface and no manifest.

Earlier finding:

  • The manifest userConfig.account_switch_url flag on plugins/rate-limits/.claude-plugin/plugin.json lines 73-77 was not raised again.
  • The owner (kyle-sexton) resolved that thread with a stated decision ("Classification: no change", with its reasons).
  • The thread is marked lines changed since resolution: no, and this push leaves plugin.json and register.tsx unchanged.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 650a5ff65f59523e3931a58bfc199ae635be2c6a. What it wrote, as data:

What it wrote (21 lines)
Summary: The PR references #17208 with `Refs:`, so it delivers only part of that issue. The code for
  that part is sound. A new `account_switch_url` userConfig replaces the hardcoded account-rotation
  repository link in the rate-limits options line. Unset or invalid values give no link, and an
  invalid value writes one transcript line. Each copy of the reader-contract floor (work-loop,
  attend-queue, babysit-loop, watch-handoff, orchestrated-mode, loop-lane prompts) now names the
  option, and the README, setup skill, evals and tests match. That is in scope for the issue's
  done-when item that organization-dependent behavior must read a configurable value, and the new
  tests cover a valid link and three invalid values. All CI jobs that ran concluded success,
  including Check Plugins, Check Skills and the Test Bash jobs
  (https://github.com/melodic-software/claude-code-plugins/actions/runs/44593953393). No job is
  known to have run the hook suite, and no capture was recorded. The PR fails on its body: it says
  what it delivers ("Plan items 2, 3, 5 and 7 (account-rotation URL rows)") but never names the work
  left for later on #17208. A `refs` delivery has to name it.
- PR body: add a line naming the work on #17208 left for later. Name at least the classification of
  every other organization-specific match (runtime, instruction, citation or fixture), the
  configurable value for the other runtime and instruction cases such as the DECISION_ROW link in
  babysit_merge_policy.py, and the CI portability check (`scripts/check-skill-portability.sh` or
  similar) that fails on new dependencies of this kind. A `Refs:` delivery has to say what remains.
- plugins/rate-limits/hooks/rate-limits.test.ts:170: the edit dropped the space after the comma
  before `{ options:` in the 'a report mode outside the list' test. Put it back to keep the
  formatting consistent.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 19, 2026
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 19, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 7b5008c Nov 19, 2026
69 of 71 checks passed
@kyle-sexton
kyle-sexton deleted the fix/17208-rate-limits-account-switch-url branch November 19, 2026 20:48
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 19, 2026
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