Skip to content

Move file-due onto lib/github-rest budgetedClient #15456

Description

@kyle-sexton

Agent Brief

Type: Task
Summary: Move file-due.mjs onto budgetedClient from .github/scripts/lib/github-rest.mjs in place of its own copy (part of restructuring pass #14159).

Current behavior:
.github/scripts/recurring-schedule/file-due.mjs:21,154-174 re-implements budgetedClient from .github/scripts/lib/github-rest.mjs:7,15-38, with the same headers, the same "call budget of N spent" text and the same ${method} ${path.split("?")[0]}: HTTP error with status. The only differences are 204 and /zip handling, and file-due sends no such call (:114 is a POST to /issues).

Desired behavior:

  • file-due calls budgetedClient(env, { budget: Number(env.CALL_BUDGET ?? 50) }), and api.used() becomes call.used().
  • file-due is floored (merge-holds.mjs:445), and its only repository import today, rate-guard, is floored too. Keep the rule that a floored module imports only floored modules: add a .github/scripts/lib/github-rest.mjs row to docs/conventions/pr-pipeline.yaml and regenerate with python3 -I scripts/sync-hold-floor.py, unless the lane confirms test_merge_holds_sync.py does not reach file-due.
  • Blocked by the first entry-tail item, which also edits the floor rows, so floor edits stay serial.

Files:

  • .github/scripts/recurring-schedule/file-due.mjs
  • docs/conventions/pr-pipeline.yaml (only when the row is added)

Key interfaces:

  • file-due's requests, budget messages, errors and exit code are the same as now.
  • file-due.test.mjs passes call directly and keeps passing.
  • If the row is added and a floor-list test such as test_babysit_risk.py changes, the PR adds a .changes/source-control/ patch fragment: "Internal restructuring, no behavior change." A pull request touching pr-pipeline.yaml holds for a person's review.

Acceptance criteria:

  • file-due's budgeted client is gone and it uses budgetedClient from lib/github-rest.mjs.
  • Behavior is unchanged: the same requests, messages and exit code for the same inputs.
  • The diff edits only the listed files, the lines of a test that assert on them when the change breaks that assertion, the files python3 -I scripts/sync-hold-floor.py regenerates, and a .changes/source-control/ patch fragment when test_babysit_risk.py changes.
  • The pull request stays within 400 changed lines, not counting regenerated lines, and 15 hand-edited files.
  • python3 -I scripts/sync-hold-floor.py --check passes.
  • test_merge_holds_sync.py, test_babysit_risk.py, .github/actions/resolve-config/callers.test.mjs and the node suite of .github/scripts/recurring-schedule/ pass.
  • ci-status is green.

Out of scope:

  • Other budgetedClient callers, other duplication, eval cases, fixtures, and skill and agent text.

Activity

  1. added
    status: ready
    on Nov 11, 2026
  2. added theissue type on Nov 11, 2026
  3. removed
    status: ready
    on Nov 11, 2026
  4. melodic-automation-lanes commented on Nov 12, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"23e9583df50f3d2ab1caccfa1eaa1b94400d1a96df023ccc7ffd2d02bbbace80","body_sha256":"edaad9b121352b468ee5ad23633d42ec68f0c8a9fbe8874ff02a0a1d7b18ba1e"}

  5. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor
    No description provided.
  6. melodic-automation-lanes commented on Nov 12, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue lane stopped partway through this issue and needs a person.

    Reason: security

    Matched security word: security. A match holds the stop whether or not the text names a risk, so read the word in context below.

    Why, in the run's own words:

    patch-protected-path: .github/workflows/pr-review-hosted.yml, .github/workflows/pr-review-security-hosted.yml and .github/workflows/pr-require-checks.yml. The issue needs a floor row for .github/scripts/lib/github-rest.mjs in docs/conventions/pr-pipeline.yaml, and scripts/sync-hold-floor.py then regenerates the hold-paths / hold_patterns blocks in those three workflow files (its BLOCKS table), which this lane cannot push. The row cannot be skipped: test_merge_holds_sync.py's ROUTE_ENTRIES closure reaches file-due.mjs (.github/scripts/pr-unblock/fix-ci-context.mjs:34 imports ../pr-verify/resolve-pr.mjs, whose line 74 imports ../recurring-schedule/file-due.mjs), so once file-due imports lib/github-rest.mjs, test_the_floor_holds_the_code_that_acts_on_a_stop_route requires github-rest.mjs on the floor.

    What the run says it did not do:

    • The file-due.mjs refactor, the pr-pipeline.yaml floor row for .github/scripts/lib/github-rest.mjs, and the sync-hold-floor.py regeneration were not done: the regeneration writes protected .github/workflows/ files.
    • Repository checks (check-changelog-fragments, check-changed-skills, check-affected) were not run because the working tree has no changes.

    Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43153959999

    To retry, set Work status to agent-ready again (clearing the needs-human hold).

  7. kyle-sexton commented on Nov 12, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
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

    Type

    Fields

    Work status

    needs-human

    Priority

    low

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions