Skip to content

C5 — Adapt Cursor-coupled tests & keep the AI blocklist #630

Closed

Description

@c-vigo

Tracking: #625

Context

test_image.py::test_cursor_agent_installed (~line 179) and tests/bats/worktree.bats
(skip-on command -v agent, assert "Cursor Agent") assume cursor-agent. Separately,
validate_commit_msg.py + .github/agent-blocklist.toml block AI identities in commit
history — this control must keep blocking cursor AND claude (it is the org "never
name an AI in history" rule, not a Cursor dependency).

Scope

In:

  • Remove the cursor-agent image test.
  • Rewrite worktree.bats to the claude CLI.
  • Add a test asserting both cursor and claude identities are blocked in commit messages
    (covers validate_commit_msg.py + .github/agent-blocklist.toml, exercised via
    packages/vig-utils/tests/test_check_pr_agent_fingerprints.py).

Out:

Tasks

  • Remove test_cursor_agent_installed
  • Rewrite tests/bats/worktree.bats for the claude CLI
  • Add/extend a blocklist test proving cursor + claude are both rejected
    (in packages/vig-utils/tests/test_check_pr_agent_fingerprints.py)

Acceptance criteria

Dependencies

Files

  • tests/test_image.py
  • tests/bats/worktree.bats
  • packages/vig-utils/tests/test_check_pr_agent_fingerprints.py

Test notes

  • TDD — write the blocklist test first (it should pass; it guards against a regression that
    drops the cursor entries while removing Cursor).

Activity

  1. added
    area:workflow
    area:testing
    security
    on Jun 23, 2026
  2. c-vigo commented on Jul 1, 2026

    @c-vigo
    ContributorAuthor

    Delivered on dev via the Nix-migration epic PR #670 (merged 2026-06-30). test_cursor_agent_installed removed; worktree tests run on claude; the AI blocklist still asserts both cursor and claude are blocked (agent-blocklist.toml retains both). Closing as complete — this stayed open only because the epic merged to dev (not main) and these T/C-track issues carry Tracking: #625 but were never linked as GitHub sub-issues, so sync-issues auto-close never fired (tracked by #677). Refs #625.

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

    area:testingarea:workflowsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions