Repository navigation
chore(ci): scaffold check-agent-identity and approve the perf commit type - #1032
Merged
Merged
Conversation
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
This was referenced Jul 14, 2026
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
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-identityhookscaffold = true;on the hook innix/hooks.nix; re-renderedassets/workspace/.pre-commit-config.yaml..github/agent-blocklist.toml) was already manifest-synced — verified.prek run --all-filesin the scaffold's lint job.#1030 —
perfis now an approved commit type (Option A)--typeslist innix/hooks.nix(both renders),DEFAULT_APPROVED_TYPESinvig-utils(the effective CI allowlist —validate-commit-rangeruns with no--typesoverride), the type table indocs/COMMIT_MESSAGE_STANDARD.md(both copies), and theCLAUDE.mdsummary line.TDD: each change lands as failing-test commit → implementation commit.
Out of scope (deliberate)
check-pr-agent-fingerprintsremains dead code. Note for the follow-up decision on #1031: after #1026 the PR title is already guarded byvalidate-commit-range --title; the entry point's only unique coverage is the PR body. Recommend wiring it intocommit-checksas 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 passedprek run --all-files→ green (re-verified independently before push)Closes #1031
Closes #1030
Refs: #163, #1019, #1026