Repository navigation
Description
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) }), andapi.used()becomescall.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.mjsrow todocs/conventions/pr-pipeline.yamland regenerate withpython3 -I scripts/sync-hold-floor.py, unless the lane confirmstest_merge_holds_sync.pydoes 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.mjsdocs/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.mjspassescalldirectly and keeps passing.- If the row is added and a floor-list test such as
test_babysit_risk.pychanges, the PR adds a.changes/source-control/patchfragment: "Internal restructuring, no behavior change." A pull request touchingpr-pipeline.yamlholds for a person's review.
Acceptance criteria:
- file-due's budgeted client is gone and it uses
budgetedClientfromlib/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.pyregenerates, and a.changes/source-control/patchfragment whentest_babysit_risk.pychanges. - The pull request stays within 400 changed lines, not counting regenerated lines, and 15 hand-edited files.
-
python3 -I scripts/sync-hold-floor.py --checkpasses. -
test_merge_holds_sync.py,test_babysit_risk.py,.github/actions/resolve-config/callers.test.mjsand the node suite of.github/scripts/recurring-schedule/pass. - ci-status is green.
Out of scope:
- Other
budgetedClientcallers, other duplication, eval cases, fixtures, and skill and agent text.
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Work status
needs-human
Priority
low
Activity
melodic-automation-lanes commentedon Nov 12, 2026
{"v":1,"actor_id":337595936,"title_sha256":"23e9583df50f3d2ab1caccfa1eaa1b94400d1a96df023ccc7ffd2d02bbbace80","body_sha256":"edaad9b121352b468ee5ad23633d42ec68f0c8a9fbe8874ff02a0a1d7b18ba1e"}
github-actions commentedon Nov 12, 2026
melodic-automation-lanes commentedon Nov 12, 2026
The work-resolve-issue lane stopped partway through this issue and needs a person.
Reason:
securityMatched 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:
What the run says it did not do:
Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43153959999
To retry, set Work status to agent-ready again (clearing the
needs-humanhold).kyle-sexton commentedon Nov 12, 2026
test(ci): cover file-due's call budget on the shared client