Skip to content

fix(ci): ci-status's hold-lift window counts a removal made through an App #9520

Closed

Description

@kyle-sexton

Problem

ci-status's lift window (.github/workflows/pr-require-checks.yml:3587-3588) opens at the newest unlabeled event for the human-gated label whose actor id is on the trusted list. It does not check performed_via_github_app, so a removal an App made while acting for a listed person counts as that person's lift. The merge policy's own rule refuses App-made removals (babysit_merge_policy.py _class_removed_by_non_human), and #9512 applies it in pr-merge's escalation. Found by the security review on #9512.

Fix

Add and .performed_via_github_app == null to that select, with a case in scripts/ci-hold-human-gated.test.sh (or the test that runs this body) where an App-made removal by a listed id opens no window.

Done when

An App-made removal never opens the lift window, and a person's direct removal still does.

Activity

  1. added
    needs-triage
    on Oct 23, 2026
  2. github-actions commented on Oct 23, 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: the lift window in pr-require-checks.yml should open only on a direct removal of the human-gated label by a listed person. A removal made through a GitHub App should not open it. The fix is one added jq condition (.performed_via_github_app == null) plus a test case in scripts/ci-hold-cost-decision.test.sh. The existing direct-removal case must still pass. The scope and done-when are clear, so nothing is missing. Related: #9437, #9369.

    Automated triage, applied by the lanes App.

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

    @kyle-sexton
    MemberAuthor

    Builder: the Automation Lanes session builds this from the owner's machine. The fix edits .github/workflows, which the lanes App cannot push (patch-rules.json:3); that boundary stays. Its PR closes this issue. needs-human came off under the owner's 2026-10-26 rule (a person only for an intent or vision change, an implementation finding that alters intent or the primary design, or a HIGH/CRITICAL security issue); none applies. agent-ready stays off so the issue lane does not race the build.

  6. added
    status: confirmed
    and removed
    needs-owner-decision
    needs-human
    on Oct 26, 2026
  7. 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.

  8. added
    status: ready
    and removed
    status: ready
    on Oct 26, 2026
  9. melodic-automation-lanes commented on Oct 26, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  10. melodic-automation-lanes commented on Oct 26, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: the issue is at status: ready.

  11. added
    needs-triage
    and removed
    status: confirmed
    on Oct 26, 2026
  12. melodic-automation-lanes commented on Oct 26, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: ci-status's lift window opens only at an unlabeled event by a listed person made directly, never through a GitHub App.

    Acceptance criteria

    • The select in the lift-window step of .github/workflows/pr-require-checks.yml (the since= jq near line 3845) also requires .performed_via_github_app == null.
    • scripts/ci-hold-cost-decision.test.sh, which runs that step, has a case where an unlabeled event by the owner's id carries performed_via_github_app set (e.g. {slug: "x"}) and the window does not open (expect "no no no", as the untrusted-removal case at line 471-472 does).
    • The existing case at scripts/ci-hold-cost-decision.test.sh:473-474, a trusted person's direct removal, still opens the window.
    • bash scripts/ci-hold-cost-decision.test.sh exits 0.
    • The other tests that read the same workflow body (scripts/ci-hold-human-gated.test.sh, scripts/ci-hold-lifted-by.test.sh) still pass.

    Related work

    Sources read

    • .github/workflows/pr-require-checks.yml:3844-3847: the window opens at the newest unlabeled event for the label whose actor id is on the human list; no performed_via_github_app check (the issue's 3587-3588 line numbers have moved).
    • .github/workflows/pr-require-checks.yml:4558: a sibling check already treats .performed_via_github_app != null as a non-human removal.
    • scripts/ci-hold-cost-decision.test.sh:138: the event helper builds events with no performed_via_github_app field, so the new case must add one.
    • scripts/ci-hold-cost-decision.test.sh:471-474: existing untrusted-removal and trusted-removal window cases to extend.
    • scripts/ci-hold-human-gated.test.sh: has no window case, so it is not the right place for the new test.

    Automated refinement by the lanes App. Intake triages the issue again with it.

  13. removed
    needs-triage
    on Oct 26, 2026
  14. added
    status: ready
    on Oct 26, 2026
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

    status: ready

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions