Skip to content

Reduce false positives in the risky-code token-term recipe #3670

Description

@Widthdom

Found while dogfooding the locally built cdidx on branch codex/search-audit-issues-20260619.

Duplicate check: no open issue found for risky-code token-term false positives LSP parser token auth token.

Evidence:

  • The risky-code recipe includes a token-term child query.
  • In this codebase, token often refers to lexical tokens, parser tokens, LSP tokens, or cancellation tokens rather than authentication tokens.

Problem:
The recipe is useful for security audit discovery, but the token term can drown out auth/security-relevant findings.

Acceptance criteria:

  • Narrow the token-term query toward auth/credential/token-secret contexts.
  • Exclude or down-rank syntax/parser/LSP/cancellation-token domains by default.
  • Keep an escape hatch for broad token searches when requested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcodexenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions