Skip to content

fix(ci): stop admission starving the issue lane - #12511

Merged
kyle-sexton merged 15 commits into
mainfrom
fix/admission-l64
Nov 2, 2026
Merged

kyle-sexton merged 15 commits into
mainfrom
fix/admission-l64

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

No related issue: hub-routed admission fix (L64) from the 2026-11-02 slot metrics; issue lanes sat idle 52.1 of 121.9 slot-hours (43%) while agent-ready never fell below 2 and 86 issues were status-ready.

Summary

Admission was starving the issue lanes. This lets ready work through: the deferral queue counts only issues deferred for room, a first triage with a refine due waits instead of refusing, and a model eval run goes to the host queue instead of holding for the owner as a "paid eval".

Fix

  • admit.mjs deferredAhead: an older deferred issue counts as ahead only when it was deferred for room (still status: ready, no hold label, no open PR); a failed or incomplete read still counts it (fails toward deferring).

  • admit.mjs refineDue: when the only refusal is no trusted acceptance criteria and a refine is due, admission waits label-free at status: ready; refine asks triage again (refine.mjs:805-818). The trusted-criteria gate is unchanged.

  • admit.mjs bodyUnpushablePaths: the protected-path check also reads paths the body names, outside code fences, task items, evidence lines and path:N citations.

  • admit.mjs EVAL_RUN: a model eval run is a host-queue item, no hold. PAID_EVAL holds only an eval that names a billing account (Azure, larger runners, Actions or private-repo minutes or storage, an API key past the credits). Owner, standing direction s3, in session 2026-11-02: "Not cost, so spend it freely: model usage under the Claude subscriptions, and each account's promotional $200 API credits. Extra usage is off and spending limits are set on all 12 accounts, so reaching a limit stops work and never bills."

  • admit.mjs workCharges: a charge word counts in every clause except one that only lowers or removes the charge (LOWERING: shorten, reduce, drop, remove, disable, bound, "set a … policy") and takes none on (CHARGING, which includes set, bump, double, spin up, allocate, configure); a clause that lowers a guard on spend (SAFEGUARD: spending limit, cap, budget, quota) or names a charge it moves to (TOWARD: for, with, in favor of, instead of, over to) still counts, "cut over" is not a cut, and with no cost word such a clause holds as "a spend guard". BILLED also names Bedrock, Vertex, Foundry, AWS, GCP, OpenAI, OpenRouter, --provider and CLAUDE_CODE_USE_*. Owner decision 10-31 Q1: the check reads "what the issue will do, not background text". fix(lanes): secret-scan lane artifacts before upload and shorten their retention #8295's title ("... and shorten their retention") and pr-merge lane: dispatch proof artifacts expire while the post-merge floor still counts older merges #7479's criterion ("Bound the check to merges newer than the artifact retention ...") admit; "Raise retention to 400 days" and "Add an Azure storage account" still charge.

Not in this PR:

Verification

  • admit.test.mjs 590/590 (14 new or rewritten cases: deferredAhead, refine due on a first triage, body-named paths, eval routing and billed evals).
  • scripts/check-affected.sh --base origin/main 11 passed, 4 skipped.
  • BEFORE: the hub's slot figures above. AFTER: the same slot-hour idle share over the 7 days after merge.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01VcupojVgxFqBnrah9DwFLE

kyle-sexton and others added 2 commits November 2, 2026 15:46
The hub measured 52.1 of 121.9 issue-lane slot-hours idle (43%) while
agent-ready never fell below 2 and 86 issues were status-ready. Admission
changes in .github/scripts/intake-triage/admit.mjs:

- deferredAhead counts only an older issue deferred for room: one that
  keeps status: ready, carries no person's hold or untrusted label, and has
  no open pull request. A failed or incomplete read still counts as ahead.
- On a triage verdict whose only obstacle is missing criteria, and whose
  human-written body intake's refinement is due to refine (refineDue), the
  issue waits at status: ready instead of parking refused. The trusted
  criteria gate itself is unchanged.
- The protected-path check also reads the body's prose outside task items
  and code fences, less evidence lines, line citations and negated
  mentions (bodyUnpushablePaths).
- A model eval run is host work (EVAL_RUN), not a paid eval. Only an eval
  item that names a billing account (Azure, larger runners, Actions or
  private-repo minutes or storage, an API key past the credits) keeps the
  PAID_EVAL owner hold. Owner direction 2026-11-02: "Not cost, so spend it
  freely: model usage under the Claude subscriptions, and each account's
  promotional $200 API credits. Extra usage is off and spending limits are
  set on all 12 accounts, so reaching a limit stops work and never bills."
  The eval-kind test expectations move to the new kind for that reason.

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

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T21:15:18.883351Z 1aca63f 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.

@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: 1aca63facb

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

Comment thread .github/scripts/intake-triage/admit.mjs Resolved
kyle-sexton and others added 2 commits November 2, 2026 16:15
workCharges read the title and stated work word by word, so "retention"
in a title that shortens it (#8295) or in a criterion that bounds a check
by it (#7479) held the issue for the owner. Owner decision 2026-10-31 Q1:
the check reads what the issue will do, not background text. A charge
word now counts only in a clause that says the work will buy, add,
create, raise, extend, enable, move to, use or need something that bills,
and Azure counts as a billing account there. Tests that expected a hold on
text that takes on no charge ("drop the billing alert", "Runs are billed
per job", "Reduce the Azure subscription usage") now expect admission, or
were reworded to take one on.

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

@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 1aca63facbcc374663215554925e61d748543747; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

Comment thread .github/scripts/intake-triage/admit.mjs Resolved
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #12511 at 59f54fc

I found no security issues in this pull request.

I read every hunk in all 3 changed files in .claude-lane/pr.diff:

  • the changelog fragment
  • .github/scripts/intake-triage/admit.mjs, which is on the trusted-path list, so I read all of its change and what it gates
  • admit.test.mjs

For context I also read decide (admit.mjs#L1290-L1504) and how admit() handles a wait verdict (admit.mjs#L2487-L2507).

What I checked

  • deferredAhead only changes the order of the admission queue. An older deferred issue counts as ahead only when it is still status: ready, has no hold or untrusted label, and has no open pull request. A failed search, a failed pull request read, an incomplete answer, or more than DEFERRED_AHEAD_READS older issues all still count as one ahead, so it fails toward deferring. Every issue that gets admitted still goes through decide.

  • refineDue wait: the issue waits instead of being refused only when all of these hold:

    • the missing-criteria refusal is the only refusal;
    • there is no hold, nothing is parked and nothing else is waiting;
    • it is a fresh triage verdict and the issue has no needs-human label;
    • a listed human wrote the body (admit.mjs#L1482).

    A wait with no pull requests clears admission-deferred and never adds agent-ready (L2497-L2506). The trusted-criteria gate (hasTrustedCriteria) is unchanged. The untrusted-provenance hold sets hold, which rules this path out.

  • bodyUnpushablePaths only adds refusals, so the protected-path check gets stricter.

  • EVAL_RUN / PAID_EVAL / BILLED: a model eval run now goes to host-run. The spec it comes from still has to come from a trusted author. An eval that names a billing account still holds for the owner. The owner settled this in the resolved thread on original line 471, which cites owner direction s3. BILLED has been widened since then to name Bedrock, Vertex, Foundry, AWS, GCP, --provider and CLAUDE_CODE_USE_*.

  • workCharges clause logic (LOWERING, CHARGING, SAFEGUARD, TOWARD, SPEND_LIMIT): every earlier finding from this lane on it was fixed, and the owner settled each thread. The last one, original line 810, was resolved at this head with lines changed since resolution: no.

Settled, not raised again. The exemption for "set a … policy" can still drop a cost word: "Set a retention policy of 400 days" returns no charge word. That is the same lowering-side point the settled threads on original line 762 cover, and the owner chose that exemption deliberately. I found no path from an untrusted author to a bill:

  • admission needs a trusted spec, enforced by the author gate and the untrusted-provenance hold;
  • the issue lane cannot push workflow files (patch-protected-path), where retention and runner settings live.

Prior findings. This lane's three earlier inline findings were all fixed, and the owner settled each thread. None is repeated here.

Round cap. The cap applied: past the cap: yes (3 of 3 rounds), so only CRITICAL or IMPORTANT findings would be posted. There are none.

Trust controls. This change touches no trusted-trigger, token-scope, kill-switch or merge-hold code, and it adds no trusted actor. admit.mjs controls admission and the owner's cost hold, not a listed merge hold. Each change to it either keeps the trusted-spec gate or makes a check stricter.

Instruction surface. No standing instruction is deleted or softened.

Spend (not a hold, not counted). Model eval runs now go to the host queue, which spends Claude subscription usage and the accounts' promotional API credits.

Embedded text. Neither the PR context nor the settled threads contain instructions aimed at this lane.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #12511, fix(ci): stop admission starving the issue lane

I read every hunk of all 3 changed files in the diff: the changelog fragment, admit.mjs and admit.test.mjs. For context I also read decide at head (L1330-1506) and refine.mjs applyRefinement (L709-838). I ran no tests. The "590/590" and check-affected.sh results in the PR body are the author's claims and I did not verify them. The PR closes no issue, so there are no acceptance criteria to check. No .claude/rules/ glob or plugin manifest applies.

The round cap applied. The prior-findings file says this is past the cap of 3 rounds. So this review posts only blocking findings, and I found none at this head.

Advisory findings dropped under the cap:

  • Body-prose path check over-refuses. bodyUnpushablePaths refuses an issue whose ## Problem text only mentions a workflow file. It fails closed, so it can refuse work the lane could do but cannot cause a bad push.

  • A refine-due wait can stall. The wait returns pulls: [], so the issue sits at status: ready with no admission label. It stays there in two cases:

    • refine fails before it posts;
    • refine posts an exact refinement but untrusted() finds no task list, so it does not ask for triage again (refine.mjs#L811-L813).

    This only happens in those narrow cases, so it is not blocking.

Settled threads. Every earlier cost-gate thread is resolved, and the fixes are at head:

  • BILLED now names other providers.
  • LOWERING is a reduce-list, and CHARGING covers set, bump, double, spin up, configure and keep.
  • SAFEGUARD and TOWARD block the lowering exemption, and "cut over" no longer counts as a cut.
  • SPEND_LIMIT limits the "a spend guard" hold to guards on money.

The spend-guard thread is marked lines changed since resolution: no, so I am not raising it again.

What looks right

  • deferredAhead fails toward deferring. A thrown pullsFor, an incomplete or malformed search answer, or deferred issues beyond the 10 it reads all count as ahead. The tests cover each of these.
  • The refineDue wait is narrow. It needs a triage verdict, criteria as the only refusal, no hold, no wait, no parked reason, no needs-human, a body a listed human wrote with no - [ ] line, no App refinement of that body yet, and room for two more comments. The criteria gate itself is unchanged.
  • PAID_EVAL is checked before the host-run kind, so a billed eval on a named host still goes to the owner.
  • workCharges now joins a task item's wrapped lines into one string before splitting clauses, so a soft-wrapped item reads as one sentence.

Spend (not a hold): model eval runs (claude plugin eval, measure-invocation, trigger probes) now go unattended to host-run instead of holding for the owner. They draw on subscription usage and the accounts' prepaid promotional API credits.

@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 825bef9dc052da7f303d02bd50f2037ad7868d16; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

Comment thread .github/scripts/intake-triage/admit.mjs Resolved

@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 825bef9dc052da7f303d02bd50f2037ad7868d16; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread .github/scripts/intake-triage/admit.mjs Resolved
kyle-sexton and others added 4 commits November 2, 2026 17:06
A charge word now counts in every clause but one that only lowers or
removes the charge, so a verb outside any list still holds the issue.
An eval naming another provider (Bedrock, Vertex, Foundry, AWS, GCP,
--provider, CLAUDE_CODE_USE_*) holds as a paid eval. The body
protected-path check reads consecutive prose lines as one paragraph, so
a soft-wrapped negation leaves its path out.

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

@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 66b381445683bfcb29d641efc6eb87dfc0edd62a; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread .github/scripts/intake-triage/admit.mjs Resolved

@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 66b381445683bfcb29d641efc6eb87dfc0edd62a; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

Comment thread .github/scripts/intake-triage/admit.mjs Resolved
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 66b381445683bfcb29d641efc6eb87dfc0edd62a. What it wrote, as data:

What it wrote (33 lines)
Summary: PR #12511 links no issue, so its own trusted title and body are the spec. Most of it is
  delivered and tested: the narrower deferredAhead check, the refineDue wait, the body-prose
  protected-path check and routing eval runs to the host queue. upstream-jobs shows test-node and
  test-bash green on the head. The blocker is the new LOWERING exemption in workCharges, which fails
  open on the owner's cost hold. The spec exempts only a clause that "only lowers or removes the
  charge", but the regex also drops clauses that remove a spending safeguard or switch to a billed
  service. Example: "Remove the spending limit" or "Cut over to Azure" would now reach the lane with
  no owner hold.
- `.github/scripts/intake-triage/admit.mjs` LOWERING/CHARGING (diff part-001 lines 137-140,
  171-173): removing or disabling a limit counts as lowering. Phrases like "Remove the Actions
  spending limit", "Disable the spending limit", "Turn off the budget cap" or "Delete the spend cap"
  contain no CHARGING verb, so the clause is dropped and "spending limit" never reaches the hold.
  Removing a limit makes charges more likely, not less, so this loosens the owner's cost hold beyond
  the spec. Fix: when LOWERING's object is a safeguard word (spending limit, cap, budget, quota
  limit), treat the clause as charging. Add tests that "Remove the spending limit." and "Disable the
  spend cap." still hold.
- `.github/scripts/intake-triage/admit.mjs` LOWERING: `cut` also matches the migration idiom "cut
  over". So "Cut over to Azure" or "Cut over the e2e job to larger runners" drops its charge words,
  including the new ADMIT_CHARGES `azure` match. "Drop the self-hosted runner for larger runners" is
  dropped too, because CHARGING lacks `for`, `in favor of`, `instead`, `replace` and `over to`. Fix:
  exclude `cut over` from LOWERING. Make a clause that names a destination (`to|for|in favor
  of|instead of|with` + charge word) count as charging. Add tests for each phrasing.
- `.github/scripts/intake-triage/admit.mjs` EVAL_RUN/PAID_EVAL: a model eval run now goes to the
  host queue instead of an owner hold. That is a change to a cost hold, but the spec asks for it and
  quotes the owner's 2026-11-02 direction, and BILLED still holds evals that name a billing account.
  A human should confirm that direction is recorded outside this PR body.
- `.github/scripts/intake-triage/admit.test.mjs`: tests were rewritten to the new behaviour, which
  is in scope. "Reduce the Azure subscription usage." was swapped for "Add an Azure storage
  account", and the title test moved from "drop the billing alert" to "raise the billing cap". No
  test covers the remove-a-limit or cut-over phrasings above.
- CI: test-node and test-bash (0-3) concluded success on the judged head
  (https://github.com/melodic-software/claude-code-plugins/actions/runs/41534716335/job/125583984639).
  No suite failed and no workflow or takeover-set file changed.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass at a new commit removes the label.

@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 2, 2026
kyle-sexton and others added 4 commits November 2, 2026 17:30
… charge

LOWERING exempted a clause by its verb alone, so "remove the Actions
spending limit", "cut over to larger runners" and "retire the standard
runners in favour of larger runners" lost their charge words and admitted
with no owner hold. A clause now takes the exemption only when it names no
guard on spend (spending limit, cap, budget, quota) and no charge word
follows a destination marker (for, with, in favour of, instead of, in place
of, over to); "cut over" no longer counts as lowering.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VcupojVgxFqBnrah9DwFLE
…st word

"Turn off the budget cap", "Delete the spend cap" and "Raise the quota"
name no charge-words.json cost word, so they held nothing. A clause with a
LOWERING or CHARGING verb and a SAFEGUARD word now reads as "a spend guard"
when it has no other charge word. charge-words.json is unchanged.

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

@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 2f61bd683b9f4f10353285e3d835e0e079468574; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread .github/scripts/intake-triage/admit.mjs Resolved
@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 2, 2026
kyle-sexton and others added 2 commits November 2, 2026 17:55
A clause with no cost word held as "a spend guard" on any bare cap, budget
or quota, so lane work such as raising the verify cap was held for the
owner. The spend-guard hold now needs a spend qualifier, a cap on spend or
a money amount; the lowering exemption still keeps every cap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VcupojVgxFqBnrah9DwFLE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant