Skip to content

fix(vigutils): AI agent identity enforcement (#163) - #194

Merged
c-vigo merged 1 commit into
devfrom
bugfix/163-wrong-identity-tags
Feb 25, 2026
Merged

c-vigo merged 1 commit into
devfrom
bugfix/163-wrong-identity-tags

Conversation

@gerchowl

@gerchowl gerchowl commented Feb 24, 2026 •

Copy link
Copy Markdown
Contributor

Description

Implements the full design from issue #163: five enforcement layers to strip AI agent identity from commits and PRs.

  • Canonical blocklist .github/agent-blocklist.toml — single source of truth for trailers, names, emails
  • prepare-commit-msg hook — strips Co-authored-by trailers before commit-msg validation
  • Pre-commit hook — rejects commits when author/committer matches blocklist (skips in CI)
  • validate-commit-msg — --blocked-patterns for TOML blocklist; shared agent_blocklist module
  • pr-title-check CI — scans PR title and body for agent fingerprints
  • Skill rules — strengthened in git_commit, worktree_execute, worktree_pr

Closes #163

Type of Change

  • fix -- Bug fix

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • .github/agent-blocklist.toml — canonical blocklist (trailers, names, emails)
  • scripts/prepare-commit-msg-strip-trailers.py — strips trailer patterns from COMMIT_EDITMSG
  • scripts/check-agent-identity.py — rejects author/committer matching blocklist
  • scripts/check-pr-agent-fingerprints.py — CI script for PR body scan
  • packages/vig-utils/src/vig_utils/agent_blocklist.py — shared load_blocklist, contains_agent_fingerprint
  • packages/vig-utils — validate_commit_msg extended with --blocked-patterns
  • .pre-commit-config.yaml — prepare-commit-msg, check-agent-identity, validate-commit-msg --blocked-patterns
  • .githooks/prepare-commit-msg — runs pre-commit prepare-commit-msg stage
  • .github/workflows/pr-title-check.yml — new step to check PR body
  • scripts/manifest.toml — agent-blocklist.toml + new scripts synced to workspace
  • Skill rules updated in git_commit, worktree_execute, worktree_pr

Changelog Entry

Fixed

  • AI agent identity enforcement: blocklist, prepare-commit-msg, author check, PR body scan (#163)
    • Canonical blocklist .github/agent-blocklist.toml (trailers, names, emails) — single source of truth
    • prepare-commit-msg hook strips Co-authored-by trailers before validation
    • Pre-commit hook rejects commits when author/committer matches blocklist (skips in CI)
    • validate-commit-msg accepts --blocked-patterns for TOML blocklist; rejects remaining fingerprints
    • pr-title-check CI scans PR title and body for agent fingerprints
    • Skill rules strengthened (git_commit, worktree_execute, worktree_pr)

Testing

  • Tests pass locally (uv run pytest packages/vig-utils/tests/ — 271 passed)
  • Manual testing performed (prepare-commit-msg strip, check-agent-identity, check-pr-agent-fingerprints)
  • Lint passes (just lint)

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

N/A

Refs: #163

…mit-msg, author check, PR body scan

- Canonical blocklist .github/agent-blocklist.toml (trailers, names, emails)
- prepare-commit-msg hook strips Co-authored-by trailers before validation
- Pre-commit hook rejects author/committer matching blocklist (skips in CI)
- validate-commit-msg --blocked-patterns for TOML; shared agent_blocklist module
- pr-title-check CI scans PR title and body for agent fingerprints
- Skill rules strengthened (git_commit, worktree_execute, worktree_pr)

Refs: #163
@c-vigo
c-vigo merged commit 85ba3af into dev Feb 25, 2026
12 of 13 checks passed
@c-vigo
c-vigo deleted the bugfix/163-wrong-identity-tags branch February 25, 2026 10:16
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