Skip to content

fix(pr-pipeline): address-feedback thread scope admits executables beside a docs or data thread #8188

Closed as not planned

Description

@kyle-sexton

Deferred until evidence. Do not build this before a trigger below fires.

Problem

The address-feedback lane's thread scope (.github/scripts/pr-unblock/thread-scope.mjs, #8184) admits any file in the plugins/<p>/ directory a kept thread's path sits in, plus a test file (test_*.py, *_test.py, *.test.*, *.spec.*) beside that path. The rule ignores file type. A prompt-injected fix on a docs or data thread (a README, an eval sample) can therefore add or change code that CI runs, such as a conftest.py, a *.sh, or a *.test.mjs, anywhere in the plugin. .github/ stays refused.

Found by the review:security-reviewer pass on #8184, rated P3.

Why deferred

Owner direction (2026-10-18): no restrictions until needed. Four scope-guard trips showed the narrow rule blocked real fixes (#8043, #8103, #8142, #8178), and none has shown the wide rule misused.

Revisit when

  • an address-feedback lane commit adds or changes an executable or test file for a thread whose path is a docs or data file, or
  • the lane's trust boundary changes (for example it starts acting on fork PRs or untrusted reviewers).

Possible fix

Admit an executable or test file only when the kept thread's own path is code, or refuse a set of CI-run names (conftest.py, *.sh, *.test.*) unless a thread names that file.

🤖 Generated with Claude Code

Activity

  1. added
    needs-human
    on Oct 18, 2026
  2. github-actions commented on Oct 18, 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: Knowable
    Flags: none
    Blocked by: none

    I understood this as a P3 hardening gap: the address-feedback thread scope admits executable or test files (conftest.py, *.sh, .test.) beside a docs or data thread. The issue records an owner decision to defer the fix until one of the listed triggers fires. Neither trigger has been reported here. The work is one focused change in thread-scope.mjs and its tests, with two possible approaches. Nothing is missing for triage. No likely duplicates among the open issues.

    Automated triage, applied by the lanes App.

  3. removed
    needs-human
    on Oct 25, 2026
  4. kyle-sexton commented on Oct 25, 2026

    @kyle-sexton
    MemberAuthor

    Released for re-triage under the owner's 2026-10-24 rule: an issue stops for a person only for an intent or vision question, a security call, a host or attended run, or spend outside prepaid credit. The hold label came off and intake triage runs again now; it re-applies a hold, with a numbered question, when one of those applies.

    To hold this issue again, add needs-human (or status: needs-decision) and say why in a comment.

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

    @melodic-automation-lanes
    Contributor

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

  7. added
    needs-owner-decision
    on Oct 25, 2026
  8. removed
    needs-owner-decision
    needs-human
    on Oct 26, 2026
  9. 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.

  10. added
    needs-triage
    on Oct 26, 2026
  11. 3 remaining items

  12. added
    status: confirmed
    on Oct 26, 2026
  13. 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).

  14. added
    needs-owner-decision
    and removed
    status: ready
    on Oct 26, 2026
  15. 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: Admit a same-directory test file only when a kept thread's own path in that directory is code, so a docs or data thread cannot reach CI-run test files.

    Related work

    Open questions

    1. Should this be built now? The body says deferred until evidence, on an owner direction of 2026-10-18 to add no restrictions until needed, and neither revisit trigger is reported as fired.
      RECOMMENDED: No. Keep it deferred until a lane commit changes an executable or test file for a docs or data thread, or the lane starts acting on fork PRs or untrusted reviewers. Basis: judgment
    2. Is the plugin-wide gap still open? The current code already excludes script and code files (CODE_FILE covers .py, .sh, .mjs and similar) from the plugin-wide part of the scope, so conftest.py and *.sh are no longer admitted that way. Only a test file in the same directory as any kept thread path is still admitted, including non-code names like foo.test.json.
      RECOMMENDED: Treat the body's conftest.py and *.sh claim as already fixed. Rewrite the issue to the remaining gap, the same-directory TEST_FILE rule applying to any kept thread path. Basis: .github/scripts/pr-unblock/thread-scope.mjs:23-24,97-109
    3. Which fix applies to the remaining gap: require a code-file thread path for the test-file rule, or refuse CI-run names unless a thread names them?
      RECOMMENDED: Require that a kept thread path in the same directory matches CODE_FILE before admitting a test file. It is a one-line change in inThreadScope with a test in thread-scope.test.mjs. Basis: .github/scripts/pr-unblock/thread-scope.mjs:108-109
    4. Should the prPaths branch (files the PR already changes) also be limited for docs or data threads? PR 9444 allows it for code files too.
      RECOMMENDED: No. It only reaches files the PR already changes and the reviewed diff already shows them, so leave it out of this issue. Basis: .github/scripts/pr-unblock/thread-scope.mjs:91-93

    Sources read

    • context.json: issue 8188 body, defers the fix on an owner direction and lists two revisit triggers; the comments are re-triage releases that record no decision
    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/.github/scripts/pr-unblock/thread-scope.mjs:23-24: CODE_FILE excludes sh, py, mjs, js, ts and similar; TEST_FILE matches test_*.py, *_test.py and .test. or .spec.
    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/.github/scripts/pr-unblock/thread-scope.mjs:97-109: the plugin-wide rule skips CODE_FILE; the test-file rule needs only a kept thread path in the same directory

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  16. kyle-sexton commented on Oct 27, 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

    This answers the questions in intake's refinement (#8188 (comment)). The body records the owner deferral:

    Owner direction (2026-10-18): no restrictions until needed.

    1. Should this be built now?
      Decided: No. The body says "Deferred until evidence. Do not build this before a trigger below fires", and neither trigger has fired. Trigger 1: no comment on the issue reports an address-feedback commit that changes an executable or test file for a docs or data thread. Trigger 2: on origin/main (0bf3dbf458) the lane still acts only for trusted people with write access (.github/scripts/pr-unblock/address-feedback.mjs:10-11, :223, :257-260). The finding is P3 (body), not HIGH or CRITICAL, so no security question goes to the owner.
    2. Is the plugin-wide gap still open?
      Decided: Narrower than the body says. CODE_FILE (.github/scripts/pr-unblock/thread-scope.mjs:23) is excluded from the plugin-wide rule (:101), so conftest.py and *.sh are no longer admitted plugin-wide. What remains is the same-directory TEST_FILE rule (:24, :109): a test file beside a kept thread path of any file type is admitted.
    3. Which fix applies to the remaining gap?
      Decided: Not chosen now. The fix is picked when a trigger fires, against the code then on main. Basis: body, "Deferred until evidence".
    4. Should the prPaths branch be limited too?
      Decided: Out of this issue. It admits only paths the pull request already changes and prPathAllowed permits (thread-scope.mjs:91). Basis: thread-scope.mjs:91.

    Closed as a recorded deferral. Reopen triggers, from the body: an address-feedback lane commit adds or changes an executable or test file for a thread whose path is a docs or data file, or the lane's trust boundary changes. When one fires, reopen this issue, cite it in a comment, and scope the fix to the same-directory TEST_FILE rule (thread-scope.mjs:109) as it stands then. Until then there is no lane work, so this record sets no - [ ] criteria. Close as not planned.

    Status: the record does not support status: needs-decision. While the issue stays open, status: confirmed is the matching status.

  17. kyle-sexton commented on Oct 31, 2026

    @kyle-sexton
    MemberAuthor

    Reopening into the After zero milestone. Remaining value: type-aware thread scope, so an injected fix cannot add executables. Closed as deferred; the owner rule of 2026-10-31 keeps work with value open and cordoned.

  18. added this to the milestone on Oct 31, 2026
  19. removed
    needs-owner-decision
    on Oct 31, 2026
  20. kyle-sexton commented on Nov 5, 2026

    @kyle-sexton
    MemberAuthor

    Closed at the owner's direction (2026-11-05, hub session): hardening issues close now and are rediscovered and reopened one at a time at the hardening pass.

  21. removed
    status: confirmed
    on Nov 5, 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

    No labels
    No labels

    Type

    Fields

    Work status

    confirmed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions