Skip to content

chore(ci): scaffold check-agent-identity and approve the perf commit type - #1032

Merged
c-vigo merged 4 commits into
devfrom
feature/1031-scaffold-agent-identity-perf-type
Jul 14, 2026
Merged

c-vigo merged 4 commits into
devfrom
feature/1031-scaffold-agent-identity-perf-type

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Bundles two small hook-SSoT chores that touch the same files (nix/hooks.nix + rendered .pre-commit-config.yaml), sharing one CI run.

#1031 — scaffold the check-agent-identity hook

  • scaffold = true; on the hook in nix/hooks.nix; re-rendered assets/workspace/.pre-commit-config.yaml.
  • Closes the [BUG] Wrong identity tags in commits & PR messages #163 pipeline gap: consumers now guard the commit author/committer, not only the message. The blocklist the hook reads (.github/agent-blocklist.toml) was already manifest-synced — verified.
  • Being pre-commit-stage, it is also enforced by prek run --all-files in the scaffold's lint job.

#1030 — perf is now an approved commit type (Option A)

  • Added to the SSoT --types list in nix/hooks.nix (both renders), DEFAULT_APPROVED_TYPES in vig-utils (the effective CI allowlist — validate-commit-range runs with no --types override), the type table in docs/COMMIT_MESSAGE_STANDARD.md (both copies), and the CLAUDE.md summary line.
  • Option A per the issue's own suggestion: standard Conventional Commits type, already reached for naturally once in history.

TDD: each change lands as failing-test commit → implementation commit.

Out of scope (deliberate)

check-pr-agent-fingerprints remains dead code. Note for the follow-up decision on #1031: after #1026 the PR title is already guarded by validate-commit-range --title; the entry point's only unique coverage is the PR body. Recommend wiring it into commit-checks as a cheap defense-in-depth step, or dropping it — either resolves the documented-but-uncalled-guard shape.

Test evidence

  • uv run pytest tests/test_flake_hooks.py → 17 passed (includes both drift gates)
  • uv run pytest packages/vig-utils/tests/test_validate_commit_msg.py tests/test_flake_hooks.py → 128 passed
  • prek run --all-files → green (re-verified independently before push)

Closes #1031
Closes #1030
Refs: #163, #1019, #1026

c-vigo added 4 commits July 14, 2026 09:41
Add `scaffold = true` to the check-agent-identity hook definition in
nix/hooks.nix (the SSoT) and re-render assets/workspace/.pre-commit-config.yaml,
so consumer repos guard the commit author/committer, not only the message.
The blocklist it reads is already manifest-synced into the scaffold.

Refs: #1031
Add `perf` (a standard Conventional Commits type, already used once in
history) to the approved-type allowlist: the SSoT in nix/hooks.nix (both
rendered .pre-commit-config.yaml files), DEFAULT_APPROVED_TYPES which CI's
validate-commit-range uses by default, the type table in
docs/COMMIT_MESSAGE_STANDARD.md, and the repo CLAUDE.md summary.

Refs: #1030
@c-vigo
c-vigo merged commit 0c0d459 into dev Jul 14, 2026
15 checks passed
@c-vigo
c-vigo deleted the feature/1031-scaffold-agent-identity-perf-type branch July 14, 2026 08:02
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.

1 participant