Repository navigation
test(worktree): adapt cursor-coupled tests and keep the AI blocklist - #650
Merged
c-vigo merged 2 commits intoJun 23, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements C5 (#630) of the Nix/Claude migration epic (#625): adapts the Cursor-coupled worktree test to the
claudeCLI and locks in the AI-identity blocklist so removing Cursor never weakens the org "never name an AI in history" control.tests/bats/worktree.bats— replaced thesend-keys 'a' approves agent trust promptcase (which skipped oncommand -v agentand asserted"Cursor Agent") withclaude CLI launches in tmux without an interactive trust prompt: skips oncommand -v claude, launchesclaude --dangerously-skip-permissions --versionthe way the migrated recipes do, and asserts no trust prompt stalls the pane. No assertion expectingcursor-agent/"Cursor Agent" remains.TestCanonicalBlocklistinpackages/vig-utils/tests/test_check_pr_agent_fingerprints.pyexercising the REAL.github/agent-blocklist.toml(not a mock): a parametrized test proves BOTHcursorandclaudeare rejected in a commit message, plus a guard that both names stay in the blocklist. Thecursorentries are intentionally kept.## UnreleasedChanged entry for C5 — Adapt Cursor-coupled tests & keep the AI blocklist #630.Reconciliation with C2 (#627)
C2 added
tests/bats/worktree-claude-cli.bats(static recipe-grep: justfiles driveclaude, nocursor-agentsurvives). That file is kept as-is — it covers the recipe layer. This PR covers the complementary runtime/behavioral layer inworktree.bats, so there is no duplication. C3 (#628) already removedtest_cursor_agent_installed; not touched.Verification
just precommit— all hooks pass.uv run pytest(vig-utils) — 495 passed (incl. 3 new blocklist tests).CI=true npx bats tests/bats/worktree.bats tests/bats/worktree-claude-cli.bats— 13 passed (tmux integration cases skip under CI by design).Done via TDD: blocklist regression test committed first (passes against current blocklist as a guard), then the bats rewrite, then the changelog.
Refs: #630