Skip to content

feat(rate-limit-guard): decide what an action at a rate-limit threshold would do for a lane #12274

Closed as not planned

Description

@kyle-sexton

Refs: #6156

Box 5 of #6156, split out under the 2026-10-13 decision (#6156 (comment)). The 90% pause edge stays fixed. Box text from #6156, verbatim:

Configurable actions at rate-limit thresholds. context-guard lets zones.json set an action per zone and per threshold (README.md:66-68; the actions are none, save-state, handoff and block, register.tsx:18). rate-limit-guard's options set the line threshold, approach mark, data and band only (plugins/rate-limit-guard/.claude-plugin/plugin.json, userConfig), and the 90% pause edge is a contract constant. #6152 makes actions configurable for context boundaries only, by an owner-approved exception. To decide: what an action at a rate-limit threshold would be for a lane, given the pause edge stays fixed.

This was generated by AI.

Activity

  1. added
    needs-triage
    on Nov 2, 2026
  2. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    Proposed work class: none

    Size: Medium
    Complexity: Medium
    Uncertainty: Knowable
    Flags: intent
    Blocked by: none

    I understand this is box 5 of #6156: decide what a configurable action at a rate-limit threshold would mean for a lane, with the 90% pause edge fixed. The issue asks for a decision and doesn't pick a design, so these questions are open. I found no likely duplicates among the open issues.

    1. Which actions should rate-limit-guard offer? RECOMMENDED: none, save-state and handoff, with no block. Basis: the 90% pause edge is a fixed contract, and block would overlap with it.
    2. Which thresholds can carry an action? RECOMMENDED: only the line threshold and the approach mark, never the 90% edge. Basis: those are the existing configurable points, and the edge stays fixed.
    3. Where is the action configured? RECOMMENDED: a new userConfig option in plugin.json. Basis: that is where rate-limit-guard's other options already live.

    To answer, post a comment that starts with this line:

    **Decision recorded.** 1: <answer>; 2: <answer>; 3: <answer>
    

    Automated triage. A maintainer reviews it.

  3. added
    needs-owner-decision
    on Nov 2, 2026
  4. melodic-automation-lanes commented on Nov 2, 2026

    @melodic-automation-lanes
    Contributor

    The triage verdict left this issue at status: needs-decision:

    • flagged: intent
    • held by status: needs-decision
    • no lanes App verdict comment shows whether an earlier verdict was flagged
  5. removed
    needs-triage
    on Nov 2, 2026
  6. melodic-automation-lanes commented on Nov 2, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: Add an optional per-threshold action option to rate-limit-guard (likely none, save-state, handoff) for the line threshold and approach mark only, leaving the fixed pause edge unchanged.

    Related work

    Open questions

    1. Which actions should a rate-limit threshold offer a lane?
      RECOMMENDED: none, save-state and handoff; no block, because the fixed pause edge already stops a lane. Basis: plugins/rate-limit-guard/reference/reader-contract.md:49
    2. Which thresholds can carry an action: the line threshold and approach mark only, never the pause edge?
      RECOMMENDED: Line threshold and approach mark only; the pause edge stays fixed and keeps drain-then-pause. Basis: plugins/rate-limit-guard/README.md:328
    3. Where is the action configured, and does it affect a lane or only what Claude is told?
      RECOMMENDED: A new userConfig option in plugin.json, read by the lane through the reader contract and not tied to LOOP_LANE_RATE_LIMIT_PAUSE. Basis: plugins/rate-limit-guard/.claude-plugin/plugin.json:43
    4. The issue says the pause edge is 90%, but the repo says 95%. Which value is the fixed edge?
      RECOMMENDED: 95%, as the repo and README state; correct the issue text. Basis: plugins/rate-limit-guard/README.md:78
    5. Should rate-limit-guard reuse context-guard's action definitions or define its own?
      RECOMMENDED: Reuse context-guard's action vocabulary so the two guards share one set. Basis: judgment

    Sources read

    • plugins/rate-limit-guard/.claude-plugin/plugin.json:43: line threshold option; the lane pause threshold stays 95 whatever it is set to
    • plugins/rate-limit-guard/README.md:78: line threshold is a line setting only; the opted-in lane pause stays 95%
    • plugins/rate-limit-guard/README.md:328: file path and 95% pause threshold are deliberately not configurable
    • plugins/rate-limit-guard/reference/reader-contract.md:49: drain-then-pause for an opted-in lane on a trip

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  7. removed
    needs-owner-decision
    on Nov 3, 2026
  8. kyle-sexton commented on Nov 3, 2026

    @kyle-sexton
    MemberAuthor

    Closing as not planned: the reader contract already answers this box, and nothing is left to build.

    For a lane, the action at a rate-limit threshold is the fixed drain-then-pause floor: an opted-in lane at 95% "finish[es] in-flight work, stop[s] claiming new work, pause[s] until the pause end, and report[s]"; without the opt-in it "keeps working and reports the window" (plugins/rate-limit-guard/reference/reader-contract.md:49-52). The 95% threshold is a contract constant, "deliberately not configurable: cross-plugin consumers read the documented values, so a per-user override could silently split writer and readers", and rate_limit_line_threshold "sets only when Claude gets the threshold line" (reader-contract.md:297-300). Every lane copy of the floor is drift-checked against the contract by scripts/check-loop-lane-floor-drift.sh (reader-contract.md:313-314). A configurable per-threshold action for lanes would add a per-user setting that changes what a lane does, which is the split the contract rules out, and a lane has no person to receive a save-state or handoff at a lower mark. Context-guard's per-zone actions stay the exception for context boundaries only (#6152). This issue's 90% is the contract's 95%. Written by the issue-triage session.

  9. kyle-sexton commented on Nov 3, 2026

    @kyle-sexton
    MemberAuthor

    Closed as not planned: the reader contract already answers this box and nothing is left to build. The reasoning, with file and line citations, is in the comment above. Written by the issue-triage session.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    Work status

    needs-owner-decision

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions