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(pr-pipeline): address-feedback thread scope admits executables beside a docs or data thread #8188
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.
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.
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.
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).
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.
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
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
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
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.**.
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.
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.
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.
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".
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.
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.
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.
Activity
github-actions commentedon Oct 18, 2026
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.
kyle-sexton commentedon Oct 25, 2026
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(orstatus: needs-decision) and say why in a comment.melodic-automation-lanes commentedon Oct 25, 2026
The latest triage verdict holds nothing: admission moved the issue to
status: confirmed; its comment says why.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.3 remaining items
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
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
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
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
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
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
Automated refinement by the lanes App. Answer with a comment whose first line is
**Decision recorded.**.kyle-sexton commentedon Oct 27, 2026
Decision recorded. The owner answered in the Refinement and Issue Triage sessions (2026-10-25), deciding the open items below on the facts:
This answers the questions in intake's refinement (#8188 (comment)). The body records the owner deferral:
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.Decided: Narrower than the body says.
CODE_FILE(.github/scripts/pr-unblock/thread-scope.mjs:23) is excluded from the plugin-wide rule (:101), soconftest.pyand*.share no longer admitted plugin-wide. What remains is the same-directoryTEST_FILErule (:24,:109): a test file beside a kept thread path of any file type is admitted.Decided: Not chosen now. The fix is picked when a trigger fires, against the code then on main. Basis: body, "Deferred until evidence".
prPathsbranch be limited too?Decided: Out of this issue. It admits only paths the pull request already changes and
prPathAllowedpermits (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_FILErule (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: confirmedis the matching status.kyle-sexton commentedon Oct 31, 2026
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.
kyle-sexton commentedon Nov 5, 2026
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.