You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Task]: narrow the block-generated-paths deny pattern so hand-authored fixture mini-repos are editable #533
.claude/hooks/block-generated-paths.py denies Edit/Write to tests/fixtures/** on the rationale that the tree holds byte-for-byte CLI captures. That rationale is right for capture files (mcp_tools_list_snapshot.json, mutmut_guard, report snapshots) but wrong for the hand-authored fixture mini-repos under tests/fixtures/repo_map/ (cpp_project, php, csharp, repo_map_go): those are authored INPUTS to the resolver/scanner tests, added by ordinary PRs (#468, #479, #480, and now #530's view.hh), not generated output.
On the PR #530 run the hook forced authoring a new fixture header via a shell write to bypass the Edit/Write guard, which is exactly the drift the hook exists to prevent, applied to the wrong file class.
Outcome
The deny list distinguishes captured output from authored fixture inputs: either carve out tests/fixtures/repo_map/** (and any future authored mini-repo trees) or move real captures under a dedicated captures/ subtree the deny pattern targets precisely.
Acceptance criteria
Authored mini-repo fixtures are editable through normal tools; capture trees stay denied.
The hook docstring names the distinction so future fixture classes land on the right side.
Existing capture protections (pre-commit whitespace excludes) are unchanged.
Activity