Skip to content

fix(rules): CSKILL keyword FPs and CSDK bypassPermissions gap - #157

Merged
ivanpaghubasan merged 1 commit into
mainfrom
fix/cskill-crypto-and-bypass-permissions
Sep 22, 2026
Merged

ivanpaghubasan merged 1 commit into
mainfrom
fix/cskill-crypto-and-bypass-permissions

Conversation

@ivanpaghubasan

Copy link
Copy Markdown
Collaborator

Two confirmed bugs from outreach feedback (August-September batch).

Bug 1 — CSKILL-080/081 keyword FPs: matched raw substrings with no word boundaries or operational context, firing on documentation mentions rather than actual behavior. New sentence-scoped word-boundary predicate (schema 17 -> 18) used only by these two rules; CSKILL-082..087 keep the old raw-substring matching, not implicated in any confirmed FP.

Bug 2 — retargeted after verification against the Agent SDK's own docs: allowed_tools only auto-approves, it does not restrict, so bypassPermissions + a narrow allow-list is the worst case, not a mitigated one. Retargeted onto the two mechanisms that genuinely restrict:

  • CSDK-202: new per-construction-site predicate correlating permission_mode + disallowed_tools at the same site
  • New CSDK-206 (medium/0.6): the complementary case
  • CSDK-103/120: added a tools-scope co-check on AgentDefinition.tools

Mirrored byte-for-byte from the engine fixture.

Two confirmed bugs from outreach feedback (August-September batch).

Bug 1 — CSKILL-080/081 keyword FPs: matched raw substrings with no
word boundaries or operational context, firing on documentation
mentions rather than actual behavior. New sentence-scoped
word-boundary predicate (schema 17 -> 18) used only by these two
rules; CSKILL-082..087 keep the old raw-substring matching, not
implicated in any confirmed FP.

Bug 2 — retargeted after verification against the Agent SDK's own
docs: allowed_tools only auto-approves, it does not restrict, so
bypassPermissions + a narrow allow-list is the worst case, not a
mitigated one. Retargeted onto the two mechanisms that genuinely
restrict:
- CSDK-202: new per-construction-site predicate correlating
  permission_mode + disallowed_tools at the same site
- New CSDK-206 (medium/0.6): the complementary case
- CSDK-103/120: added a tools-scope co-check on AgentDefinition.tools

Mirrored byte-for-byte from the engine fixture.
@ivanpaghubasan
ivanpaghubasan merged commit 3de8e70 into main Sep 22, 2026
1 check passed
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.

2 participants