Skip to content

fix(lanes): let a technical sense of a secret noun keep its stop route - #13034

Merged
kyle-sexton merged 7 commits into
mainfrom
fix/security-word-capability
Nov 4, 2026
Merged

kyle-sexton merged 7 commits into
mainfrom
fix/security-word-capability

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

No related issue: this builds owner decision Q1 (a), the owner's pick recorded at #12043 (comment). #12043 is where the stops were counted and the question was asked; its own scope (eval-case repair) is not touched here.

Summary

The issue lane's security-word stop (stop-routes.mjs, SECRET_NOUN) held an issue for the owner whenever a run's ending stop reason named a secret noun outside a narrow capability phrasing. From 2026-10-28 to 2026-11-04 it held 12 issues. None was a real secret: "the role's subscription token", "bytes-per-token", "a pull-requests: write token", "has no Azure credentials" (data in the #12043 thread). The owner chose to release these technical senses (Q1 (a)).

Fix

.github/scripts/work-resolve-issue/stop-routes.mjs:

  • TOKEN_MEASURE: a measure (an input, output or cache token, a per-token measure, token spending or budget) names no credential and is released wherever it stands, the way a large token count already is (withoutCounts).
  • CRED_SENSE: a phrase that names a credential by kind or scope (a subscription, model, read or write token, "whose token has no <scope>", "the token's permissions", "has no ... credentials") is stripped beside the capability phrasings, so it releases only when capabilityOnly passes on every other word of the reason. Any word outside the capability set, before or after the phrase, holds ("the public run log now holds the write token", "the write token the lane uses is in the public run log"). CAPABILITY_WORDS gains only the non-exposure words the seven released reasons need.
  • OAuth and session tokens are never released. Nothing is released in a reason that also says what was done with a secret (TOKEN_HANDLING). SECURITY_CONCERN words (security, attack, takeover) are unchanged; three of the 12 stops came from those and stay with the owner.

Verification

  • stop-routes.test.mjs: 31/31. It releases seven reasons taken from the 7-day stops and holds 23 that pair a technical sense with an exposure, a secret value or a credential path, including every trace from the security lane's three rounds.
  • Each of the ten round-2 and round-3 traces, run alone: f842aa0 released 10 of 10, 6a70870 released 4 of 10, this head holds all 10.

Related

🤖 Generated with Claude Code

The issue lane's security-word stop held 12 issues in 7 days, none of
them a real secret: "the role's subscription token", "bytes-per-token",
"a pull-requests: write token", "has no Azure credentials". By the
owner's Q1 answer on #12043, a model or subscription token, a per-token
measure, token spending, a token's permission scope, and a lane with no
credentials now release the word as a token count already does. The
stop stays for a secret value, an exposure, or a credential path.

Refs: #12043

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MWmASNtP63MZxdDeoxYztD
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 4, 2026
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 4, 2026
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 4, 2026 02:09
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T02:12:10.925193Z 86c475a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-security-review: 1 inline finding(s) on 86c475a3fe6570e5a9960978e16066f18f25607e; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed c0e10a1ed5cc8c27acac52d6fa0b7244b386c56c: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #13034 at c0e10a1e (incremental since 0792d6cb)

I found no security issues in this push. This round is past the round cap (4 rounds against a cap of 3), so only CRITICAL and IMPORTANT findings would have been reported. None came up.

What I read: every hunk of both files in the incremental scope, stop-routes.mjs and stop-routes.test.mjs. stop-routes.mjs is on the trusted-path list, so I also read the code it gates at head (stop-routes.mjs:155-228). That covers CAPABILITY, TOKEN_COUNT, TOKEN_HANDLING, TOKEN_MEASURE, CRED_SENSE, withoutCounts, CAPABILITY_WORDS, capabilityOnly and endingRiskWord.

Last round's finding is fixed. input, output and cache tokens moved out of TOKEN_MEASURE (L192) and into CRED_SENSE (L195). So they are stripped only into rest (L223), and counted keeps the noun.

I traced host-only: the output token is in the public run log:

  • TOKEN_MEASURE no longer matches, so counted keeps output token.
  • CRED_SENSE strips it from rest, but capabilityOnly(rest) fails on is, in, public and log.
  • The fallback wordOutsideNames(counted) finds token, so the result is security-risk.

The other two traces (checkout input token sits in… and step's output token appears in…) hold the same way, and the push adds all three as held tests. What TOKEN_MEASURE still releases anywhere in a reason is only the hyphenated forms (<word>-per-token, per-token, token-spending|budget|count|counting|usage), and those cannot name a credential. The settled thread for old line 190 is marked lines changed since resolution: no, and its fix is confirmed, so I have not raised it again.

Other checks:

  • No hold is weakened. The push only makes the stop stricter: plural input/output/cache tokens used as a measure now has to pass capabilityOnly, where before it was released anywhere in a reason.
  • No trust control is touched. That covers the trusted-trigger check, the lane token's scope or broker, the kill switch and the merge-hold scripts.
  • Earlier note, still not counted: a reason made only of CAPABILITY_WORDS beside a CRED_SENSE phrase is still released. That now includes the moved nouns, for example the eval run records the output token. It is the same class as last round's uncounted note and was not changed here.
  • No embedded instructions: pr-context.md, settled-threads.md and prior-findings.md contain no instructions aimed at this lane.
  • No spend or billing, so no hold.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed c0e10a1ed5cc8c27acac52d6fa0b7244b386c56c: read 2 of 2 changed file(s); 1 finding(s), 0 as inline comments.

Code review: PR #13034, incremental 0792d6cb..c0e10a1e, 2 of 2 files read

I read every hunk in the incremental diff for .github/scripts/work-resolve-issue/stop-routes.mjs and stop-routes.test.mjs. Both files are on the trusted-path list, so I also read withoutCounts, CAPABILITY_WORDS, capabilityOnly and endingRiskWord at head, since those decide what this change releases. The code has no correctness findings. There is one advisory finding: the PR description is out of date.

What changed

  • input, output and cache tokens moved from TOKEN_MEASURE into CRED_SENSE (stop-routes.mjs#L192-L197).
    • Before, these phrases were removed in withoutCounts, so they released wherever they appeared in a reason.
    • Now they are removed only from rest, so capabilityOnly and the wordOutsideNames(counted) fallback both still see the noun.
    • TOKEN_MEASURE keeps only the hyphenated measures.
  • The comment block was updated to match, and three held test cases were added.

Checks (traced by hand against the head code; I had no shell, so I did not run the tests)

  • New held cases. For the output token is in the public run log:
    • TOKEN_HANDLING does not match, and TOKEN_MEASURE no longer strips anything.
    • CRED_SENSE strips output token from rest. capabilityOnly then fails on is, in, public and log.
    • The fallback wordOutsideNames(counted) finds token, so the reason returns security-risk.
    • The checkout input token and step output token traces hold the same way.
  • Released cases. None of the seven released reasons (stop-routes.test.mjs#L227-L233) contains input, output or cache token. bytes-per-token and token-spending still match the narrowed TOKEN_MEASURE, so none of the seven changes.
  • Trade-off. A measure worded like the run used 12k input tokens now holds. TOKEN_COUNT needs tokens right after the number, and used is not a capability word, so nothing releases it. That fails closed, and the owner chose it in the settled thread, so it is not a finding.
  • Last round's handoff to the security lane. Observation 1 ("remote cache token" released anywhere) is closed by this move. Observation 2 (records in CAPABILITY_WORDS) is untouched by this push and remains the security lane's call.

Finding (advisory, whole PR)

  1. The PR description no longer matches the code. The Fix section still lists "an input, output or cache token" under TOKEN_MEASURE and says it "is released wherever it stands". After c0e10a1 those phrases are in CRED_SENSE and release only when every other word is a capability word. The Verification section also says the test "holds 23" reasons; the held list at stop-routes.test.mjs#L239-L266 now has 26. If the description becomes the squash commit body, it records the release rule the security lane rejected. Fix: move input, output and cache tokens under the CRED_SENSE bullet, limit TOKEN_MEASURE to the hyphenated measures, and change the held count to 26.

Settled and prior

  • The settled thread for this push (original line 190) is marked lines changed since resolution: no. Its owner reply states the fix, and the code matches that reply, so I did not raise it again.
  • The three earlier settled threads are answered by the CRED_SENSE-into-rest design, which this push extends.
  • The prior summary comment had no findings, so nothing carries over. The round cap does not apply (0 of 3).

Other checks

No spend or billing impact.

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head f842aa034158526328fb0c264e7a59ef3dd2dbeb. What it wrote, as data:

What it wrote (29 lines)
Summary: PR #13034 says `Refs: #12043`, but it doesn't deliver any part of that issue. #12043 asks
  for eval cases that report `skill loaded: no` or fire in 0 runs to be listed on #6405, then
  repaired or removed, validated and re-dispatched. The diff instead changes the issue lane's
  security-word stop classifier in `stop-routes.mjs` so that some token and credential phrasings
  stop holding an issue for the owner. That is outside the issue's scope. The body also names no
  remaining work on #12043. It loosens a security hold the owner decided on (Q4), and the body
  itself says the change is waiting on the owner's answer. CI was green apart from `ci-status`,
  which is not test evidence.
- Spec: #12043 (`spec_kind` refs) asks to survey, repair or remove, and re-dispatch eval cases whose
  skill never loads. None of its done-when items (the comment listing the cases on #6405, repair or
  removal PRs, `validate-cases.py` passing, a re-dispatch) is touched. The delivered part is outside
  the issue's scope. Fix: link this PR to an issue that asks for the stop-route change, or file one,
  instead of `Refs: #12043`.
- PR body: on a `refs` link it must name the part of #12043 it delivers and the work that remains.
  It names neither, only a Hold on Q1. Fix: correct the link and state the delivered and remaining
  scope.
- .github/scripts/work-resolve-issue/stop-routes.mjs:19-26: `TOKEN_SENSE` and `CRED_END` let ending
  reasons that name a subscription, model or read/write token, a token's permissions, or 'has no
  credentials' skip the security-word hold. That weakens a guard the owner keeps (owner decision Q4,
  cited at `stop-routes.test.mjs:175-176`), and the spec does not ask for it. Land it only under a
  spec that records the owner's approval.
- Context only: the comment on #12043 about the `security` stop (no secret found in 'the role's
  subscription token') is evidence, not a requirement. It does not widen #12043 to cover changes to
  the stop classifier.
- upstream-jobs.json: test-node and the other suites concluded success
  (https://github.com/melodic-software/claude-code-plugins/actions/runs/41763223109/job/126355659346).
  `ci-status` failed, but that job sums the others and fails on holds a person lifts, so it is not
  test evidence. The new tests at `.github/scripts/work-resolve-issue/stop-routes.test.mjs:40-70` do
  check both sides, release and hold.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 4, 2026
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 4, 2026
The technical senses of a secret noun released anywhere in a reason, so
a stated leak in words TOKEN_HANDLING does not list ("the OAuth token is
in the public run log") skipped the security hold. Drop the oauth and
session senses, which are credentials, and release a sense that names a
credential by kind or scope only when the reason ends after it or a
capability follows. Measures (per-token, token-spending, input tokens)
still release anywhere.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MWmASNtP63MZxdDeoxYztD

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-security-review: 1 inline finding(s) on f842aa034158526328fb0c264e7a59ef3dd2dbeb; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

CRED_END released a credential phrase on a continuation (the lane, ;, ),
, so, cannot, to use) and nothing re-read what followed, so a stated leak
after it ("the write token the lane uses is in the public run log") kept
its host-only route. A credential sense now releases only at the end of
the reason, or after one clause saying what it cannot do that itself ends
the reason. Held cases cover every trace from the review thread.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-security-review: 1 inline finding(s) on 6a708706c9502f2b76aa078a01789a25b1cc772f; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

kyle-sexton and others added 2 commits November 3, 2026 23:43
Bounding CRED_END to the end of the reason left the words before a
credential sense unread ("the public run log now holds the write token").
A credential sense is now stripped beside the capability phrasings, so
capabilityOnly reads the whole reason and any word outside the capability
set holds; the set gains only the words the released reasons need. Measures
still release anywhere. Each review trace held is checked against both
earlier heads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-security-review: 1 inline finding(s) on 0792d6cb4e24ecb777bce40d517393a55b7665ec; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

In Actions wording an input or output token is an action's token input or
a step's token output, so stripping it from the counted text released a
stated leak ("the output token is in the public run log"). Input, output
and cache tokens now go through the capability-word check with the other
credential senses; only hyphenated measures release anywhere.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 4, 2026
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 4, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit c7d0980 Nov 4, 2026
66 of 67 checks passed
@kyle-sexton
kyle-sexton deleted the fix/security-word-capability branch November 4, 2026 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant