You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ci): ci-status's hold-lift window counts a removal made through an App #9520
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.
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.
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.
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.
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).
melodic-automation-lanes commented on Oct 26, 2026
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.
.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.
Activity
github-actions commentedon Oct 23, 2026
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.
kyle-sexton commentedon Oct 26, 2026
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-humancame 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-readystays off so the issue lane does not race the build.kyle-sexton commentedon Oct 26, 2026
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(orstatus: needs-decision) and name which of the three applies.melodic-automation-lanes commentedon Oct 26, 2026
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).melodic-automation-lanes commentedon Oct 26, 2026
The latest triage verdict holds nothing: the issue is at
status: ready.melodic-automation-lanes commentedon Oct 26, 2026
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
unlabeledevent by a listed person made directly, never through a GitHub App.Acceptance criteria
since=jq near line 3845) also requires.performed_via_github_app == null.unlabeledevent by the owner's id carriesperformed_via_github_appset (e.g. {slug: "x"}) and the window does not open (expect "no no no", as the untrusted-removal case at line 471-472 does).Related work
Sources read
unlabeledevent 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)..performed_via_github_app != nullas a non-human removal.eventhelper builds events with no performed_via_github_app field, so the new case must add one.Automated refinement by the lanes App. Intake triages the issue again with it.