Repository navigation
feat(pr-pipeline): route issues a lane cannot finish to host-run at admission - #12628
Conversation
…dmission
Intake admission caught 2 of 28 sampled lane host-only stops (recall 0.12
over 154 host-run issues). Six done-when classes from the 2026-11-03
host-run predictor study now load from
.github/actions/resolve-config/unrunnable-rules.json as {kind, match,
unless} rows: eval, tracker-output, measure-over-time, host-data,
live-cc-probe and a narrowed named-host. unrunnableCriteria tries them
after the built-in kinds, so they route through the existing host-run
path, and an item only the eval row flags that names a billing account is
still a paid eval held for the owner.
The rows are narrowed from the study's frozen patterns so every existing
runnable vector stays with the lane. The loader fails closed like
pushRefusalsOf: a missing or malformed file, an empty rules list, or a bad
pattern throws out of admission.
Re-scored over the study sets with the committed code: rows alone 62/1
(P 0.98, R 0.40), every kind 66/1 (P 0.99, R 0.43), 22 of 28 host-only
stops; hold-out 30/1 (P 0.97, R 0.29) against 5/0 before. Every study
false positive and every hit that one item matches is a vector in
unrunnable-rules.vectors.json.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VcupojVgxFqBnrah9DwFLE
…ission-unrunnable-rules
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9fb9a7573b
ℹ️ 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".
|
claude-security-review reviewed Security review: PR #12628 (incremental, 9fb9a75..46ed6c7)I found no security issues in this push. critical-findings: 0 Scope. This was an incremental review. I read every hunk of both files in What I checked
Trust controls. The push doesn't touch the trusted-actor check, the lane token's scope, the kill switch or any merge hold. The admission gate's built-in refusals and the trusted-spec check are unchanged. Spend (not a finding). Slightly fewer issues will go to the host-run queue, so slightly more will start lane runs on subscription or prepaid credit. The push adds no billable resource. The prior-findings file lists only my earlier no-findings summary (0 rounds with findings, cap 3), so the round cap did not apply. |
|
claude-review reviewed Code review (incremental, 9fb9a75 → 46ed6c7)Scope. I read every hunk of both files on the incremental list: Prior finding. The
New finding (1, advisory, inline): the new Notes
|
Review on #12628 found three over-matches. - tracker-output now leaves with the lane the shapes the built-in comment kind exempts: a conditional item, an output a named script or automation posts, and an automation's own results. - eval reads VALID runs only as the upper-case validity verdict, so "invalid runs" passes. - eval counts a trigger rate or score, not any trigger run, and a "no loss" only near an eval. The six review sentences are now runnable vectors. Every study vector routes as before. Re-score: every kind 65/1 (P 0.98, R 0.42), hold-out 29/1 (P 0.97, R 0.28), 22 of 28 host-only stops. One hold-out hit, #11128, is lost: its "no loss" is more than 60 characters past its "eval". Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojVgxFqBnrah9DwFLE
…ission-unrunnable-rules
…ker-output row The tracker-output row's `unless` cleared an item for a conditional or a `by` anywhere in it. The built-in comment kind refuses a write that lands on this issue before either exemption, and reads `by` only after the write. So the row's conditional and by-script alternatives now skip an item that writes on this issue. The by-script alternative also needs the `by` in the write's own clause or after it. The automation-possessive alternative is unchanged. "Once the probe runs, its result is recorded on this issue." and "The counts gathered by the audit script are recorded on this issue." now route host-run. Every earlier vector routes as before, and the re-score is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojVgxFqBnrah9DwFLE
…ission-unrunnable-rules
|
claude-security-review reviewed Security review: PR #12628 (full diff at
|
|
claude-review reviewed Code review (full, head
|
…ide reads A bare `~/\.claude` flagged any done-when item that names the path, and plugin code reads and writes it in ~500 files, so ordinary code and doc edits would leave the lane for host-run. The row now matches only Write/read calls into or from the path, a path named "as never read", and `~/.claude/projects`; both study vectors (#4225, #12289) still route to the host queue, and the review's two lane items are pinned as kept with the lane. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojVgxFqBnrah9DwFLE
…ission-unrunnable-rules
No related issue: hub-routed lane improvement (Issue Triage's host-run predictor study, approved by GitHub Support on four conditions).
Summary
Intake admission sends an issue the issue lane cannot finish to host-run, but its built-in unrunnable kinds catch few of them: in a sample of 154 host-run issues and 147 lane-delivered controls since 2026-10-27, they flag 18 (recall 0.12), and only 2 of 28 sampled host-only lane stops. Each one missed is a lane run that fails late. This adds six rows of externalized rules that catch 22 of those 28 stops at intake.
Fix
.github/actions/resolve-config/unrunnable-rules.json: rows{kind, match, unless}for eval, tracker-output, measure-over-time, host-data, live-cc-probe and a narrowed named-host. Every row routes to host-run; no row adds an owner stop. The file carries its measured window and scores in ameasuredobject.admit.mjs:unrunnableRulesOfloads the file fail-closed likechargePattern(a missing, unparsable, empty or non-compiling file throws, so no issue is admitted on a guess);unrunnableCriteriatries the rows after the built-in kinds, so existing kind names and refine's exact-text comparison are unchanged. A billed item only the eval row flags is still a paid eval held for the owner. No routing code added.admit.test.mjsstill holds (tuned against existing vectors only, never the hold-out).unrunnable-rules.vectors.json+admit.test.mjs: every study hit and false positive is a vector (112: 91 route host-run, 16 known misses, 5 false positives with fix(planning): run a Must-test scope cut before recommending wayfind #11192 recorded as still flagged), plus four behavior tests including nine malformed-file cases.One existing assertion changed outcome: "a valid measured pass on the subscription" now routes host-run rather than lane; model evals are host work (#10222 went host-run). It still asserts no charge reason and no hold.
Measurement (s9)
Baseline for the before/after comparison: today's check catches 2 of 28 sampled host-only lane stops; the committed rules catch 22 of 28. The live host-only stop rate is re-measured on next week's sample and posted here.
Rollout check: the agent-ready issues carrying a refine split record (#12517, #8283) score the same before and after (no task-list items flagged), so no split record is invalidated.
Verification
scripts/check-affected.sh --base origin/main --no-fetch: 10 passed, 5 skipped.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01VcupojVgxFqBnrah9DwFLE