Skip to content

fix(pr-pipeline): intake admission follow-ups from the #9246 review #9254

Closed

Description

@kyle-sexton

Refs: #9246, #9214

Low-risk follow-ups from the security review of #9246 (intake adds agent-ready as the lanes App) at abe1417. None blocks the merge: no outsider path, and a cost/security/intent flag never reaches agent-ready (apply-verdict.mjs:274-288). #9224 also holds charge-adding PRs at merge.

Findings

  1. admit.mjs drops rule-admit.sh's fixed checks. rule-admit.sh:163-164,185 refuses on cost and trust-surface words, and :193 refuses a body edited after the lane comment. admit.mjs has none of these. A body asking for a paid Azure SKU or larger runners, with the model's flags none, is admitted. Fix: run the same fixed-word and edited-after checks in admit.mjs.
  2. The capacity check fails open. In check-wip-cap.mjs:104-106,128-130, a thrown search error becomes null, so admission basis is fail-open and admit.mjs:290 admits. Fix: defer when admission_basis === "fail-open".
  3. Pacing depends on wip.pause-from being set. With it empty, room is null and intake admission is unbounded. The YAML comment says clearing it only turns off alerts. Fix: state that clearing it removes intake's cap, or cap intake independently.
  4. Deferred issues are re-admitted on fewer checks. The hourly sweep (label-unblocked.mjs:132,201-208) and decide() do not re-check area: security, do-not-merge, a hold class, needs-human, removal of status: ready, or body edits made while deferred.
  5. The protected-path and task-list refusals are easy to get around. Case changes, a missing dot, fullwidth or zero-width characters and URL encoding all get through, and so does a task list inside a code fence. The list also misses .lsp.json, plugins/*/monitors|bin and other settings*.json names that INSTRUCTION_PATH_RE and NEVER_FLOOR_EXEMPT cover. The merge floor still holds these paths at PR time.
  6. admission-rules.json has no minimums. loadRules accepts an empty protected-paths, and widened rules admit work-class: structural. Fix: hard-code the hold classes (structural, untrusted-provenance) as never admissible. The merge floor guards the file, since it sits under .github/actions/**.
  7. Smaller gaps:
    • No body Hold: check.
    • Re-entry removes needs-human (reenter.mjs:7).
    • Issues authored by the lanes App are admitted through a dispatch.
    • Parallel apply-verdict runs can overshoot the cap.

Priority: 1 and 2.

Activity

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

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: follow-ups to admission from the #9246 review. A later comment reports findings 1 and 2 built in PR #10410 and findings 3 to 7 filed as #10729.

    The recorded decision:

    Decision recorded. The owner answered in the Refinement and Issue Triage sessions (2026-10-25), deciding the open items below on the facts:

    [quote truncated; the full decision is at the link]

    #9254 (comment)

    It settles the open questions: it scopes this issue to findings 1 and 2 and fixes the approach. The body only quotes "SKU" and "larger runners" as examples, so it asks for no charge. Nothing further is needed from the reporter.

    Automated triage, applied by the lanes App.

  3. added
    needs-human
    and removed
    needs-triage
    on Oct 22, 2026
  4. removed
    needs-human
    on Oct 26, 2026
  5. kyle-sexton commented on Oct 26, 2026

    @kyle-sexton
    MemberAuthor

    Released for re-triage under the owner's 2026-10-26 rule: a person is involved only for "1. A change in original intent/vision 2. Something comes up during implementation ... that alters intent/vision or the primary design 3. If there is a HIGH/CRITICAL security issue". None applies here, so the hold label came off and intake triage runs again now.

    To hold this issue again, add needs-human (or status: needs-decision) and name which of the three applies.

  6. added
    needs-triage
    needs-human
    and removed
    needs-triage
    on Oct 26, 2026
  7. melodic-automation-lanes commented on Oct 26, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: admission moved the issue to status: needs-decision; its comment says why.

  8. added
    needs-owner-decision
    on Oct 26, 2026
  9. removed
    needs-owner-decision
    needs-human
    on Oct 26, 2026
  10. kyle-sexton commented on Oct 26, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. The owner answered in the Refinement and Issue Triage sessions (2026-10-25), deciding the open items below on the facts:

    go with whatever the facts/data/metrics + /discovery:research says and ensure we're aligned with SOLID, DRY/SSOT principles

    I should only ever be in the loop ONLY when necessary (intent/vision changed, something came up during implementation that impacts trajectory/alignment, OR a high security risk) - I've covered this all before

    No owner ledger (.work/*/interview-checklist.md, .work/gh-monitor-owner-decisions/) names this issue. The body has no - [ ] criteria; it ends "Priority: 1 and 2."

    1. Which findings does this issue build?
      Decided: Findings 1 and 2, as the body's priority line says. Basis: body, "Priority: 1 and 2." Findings 3 to 7 are not in these criteria; the PR that builds 1 and 2 files them as one follow-up issue that refs fix(pr-pipeline): intake admission follow-ups from the #9246 review #9254, carrying their text, so this issue can close. Each tightens admission; none widens a boundary.
    2. Finding 1: which of rule-admit.sh's checks does admit.mjs take?
      Decided: The cost check and the edited-after check, not the trust-surface word list. Basis: the three points below.
      • Cost: admit.mjs relies on the model's flags and a cost rule for "no charge" (.github/scripts/intake-triage/admit.mjs:6-9), and has no fixed-word check. It applies rule-admit's charge-word definition, cost (plugins/work-items/scripts/rule-admit.sh:164), which fix(work-items): refuse rule admission only for metered or renewing charges #9877 narrowed to metered or renewing charges, from one shared definition rather than a second copy (DRY). Not the spend branch (:165-166, :182-185): over the 121 issues cached in raw/full/ this session, the full rule matches 41 and the charge words alone match 8, and the body's own example ("a paid Azure SKU or larger runners") needs only the charge words.
      • Edited after: admit.mjs already requires its spec text to be written and last edited by a listed human (admit.mjs:702-705, reading lastEditedAt and editor at :661), but not that the body is unchanged since the triage verdict. It does not admit an issue whose body was edited after the verdict comment it reads, as rule-admit.sh refuses one ("issue body edited after the lane comment", rule-admit.sh:202).
      • Trust-surface words stay out: admit.mjs leaves criterion 4 (no protected path named) unapplied on purpose (admit.mjs:9-10), and the deny list (rule-admit.sh:163) matches words such as ci, workflows and merge that most pipeline issues name, so it would stop most admissions. Basis: the owner's lowest-friction, highest-throughput rule (owner-quotes.md, Issue Triage 2026-10-25).
    3. Finding 2: what happens on a failed capacity read?
      Decided: Defer. check-wip-cap.mjs reports admission_basis: "fail-open" when the queued count could not be read (.github/actions/check-wip-cap/check-wip-cap.mjs:257) and still sets admission_open true when room is null (:254); admit.mjs then admits, reading null room as 1 (admit.mjs:1049). admit.mjs defers when admission_basis === "fail-open", as it already stops on search-incomplete (check-wip-cap.mjs:255, :365-367).

    Acceptance criteria:

    • admit.mjs does not admit an issue whose title or body matches rule-admit's charge-word definition (cost), and both read it from one definition.
    • admit.mjs does not admit an issue whose body was edited after the triage verdict comment it reads.
    • admit.mjs defers, and does not admit, when check-wip-cap reports admission_basis fail-open.
    • Tests in .github/scripts/intake-triage/admit.test.mjs cover each of the three cases and an issue that is still admitted.
    • Findings 3 to 7 are filed as one follow-up issue that refs fix(pr-pipeline): intake admission follow-ups from the #9246 review #9254.
  11. 11 remaining items

  12. melodic-automation-lanes commented on Oct 27, 2026

    @melodic-automation-lanes
    Contributor

    The lanes App's pull request #10410 merged with Refs:, so this issue stays open and nothing starts the lane on it again. work-unblock removed status: ready and agent-ready, so the hourly triage sweep sends it back to intake triage, which decides what work is left and admits it again.

  13. removed
    status: ready
    agent-ready
    on Oct 27, 2026
  14. github-actions commented on Oct 27, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (attempt 2 of 2).

  15. added
    status: ready
    needs-owner-decision
    and removed
    status: ready
    on Oct 27, 2026
  16. melodic-automation-lanes commented on Oct 27, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: its title or body names a charge (sku, larger runners), which needs an owner decision. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  17. kyle-sexton commented on Oct 28, 2026

    @kyle-sexton
    MemberAuthor

    Re-triage. Not an owner stop. Admission parked this at status: needs-decision only because the body quotes the words "SKU" and "larger runners" while describing finding 1. It asks for no charge. PR #10410 itself names this side effect.

    The recorded decision's criteria (#9254 (comment)), checked against merged PR #10410 (merge commit ddcb706):

    • admit.mjs refuses a charge word in the title or body, and admit.mjs and rule-admit.sh read it from one definition: plugins/work-items/scripts/charge-words.json.
    • admit.mjs refuses a body edited after the triage verdict comment it reads (verdict.writtenAt, passed by apply-verdict.mjs).
    • admit.mjs and the hourly sweep (label-unblocked.mjs) defer when check-wip-cap reports admission_basis fail-open.
    • Tests cover each case and an issue that is still admitted (admit.test.mjs, apply-verdict.test.mjs, label-unblocked.test.mjs, rule-admit.test.sh).
    • Findings 3 to 7 are filed as one follow-up issue: fix(pr-pipeline): intake admission follow-ups 3-7 from the #9246 review #10729.

    Closing as completed.

  18. removed
    needs-owner-decision
    on Oct 28, 2026
  19. added
    status: ready
    needs-owner-decision
    and removed
    status: ready
    on Oct 28, 2026
  20. kyle-sexton commented on Oct 29, 2026

    @kyle-sexton
    MemberAuthor

    Re-triage: closing. Every criterion in the recorded decision is met on main. The 2026-10-28 re-triage comment on this issue already checked them and said "Closing as completed", but the issue was never closed.

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

    needs-owner-decision

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions