Skip to content

[BUG] PR fingerprint check falsely flags ".cursor" file paths in PR body #221

Closed

Description

@c-vigo

Description

The PR Title Check workflow fails when a PR body includes file paths containing .cursor/, even when there is no AI identity disclosure in the message itself.

Current behavior blocks valid PRs that reference repository paths, for example:

  • .cursor/rules/changelog.mdc
  • assets/workspace/.cursor/rules/changelog.mdc

Steps to Reproduce

  1. Open or edit a PR body to include a file path containing .cursor/.
  2. Trigger PR Title Check (e.g., edit PR description or push a commit).
  3. Observe failure in step Check PR for agent fingerprints.

Example failing run:

Expected Behavior

The fingerprint check should detect actual agent identity disclosures (e.g., Co-authored-by, agent emails, explicit identity phrases), but should not fail on legitimate repository paths like .cursor/....

Actual Behavior

The check fails with:
PR title or body contains blocked AI agent fingerprint: 'cursor'. Remove agent identity from the PR.

Environment

  • GitHub Actions workflow: PR Title Check
  • Script: scripts/check-pr-agent-fingerprints.py
  • Blocklist source: .github/agent-blocklist.toml

Additional Context

Likely related to broad substring matching in names = [\"cursor\", ...] against full PR body text.
Suggested fix direction:

  • use token-aware or context-aware matching
  • ignore fenced code / file paths / dot-prefixed directory names
  • keep strict matching for trailers/emails and explicit identity phrases

Related to #163.

Possible Solution

Narrow the matching logic so cursor is not matched inside technical path tokens such as .cursor/.
For example:

  • keep strict regex checks for trailers/emails
  • for name checks, require word boundaries and/or contextual phrases indicating identity
  • add regression tests covering .cursor/... path references in PR title/body

Changelog Category

Fixed

  • TDD compliance (see .cursor/rules/tdd.mdc)

Activity

  1. added
    bug
    on Mar 4, 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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions