Skip to content

[Task]: narrow the block-generated-paths deny pattern so hand-authored fixture mini-repos are editable #533

Open

Description

@sumithr

Gap (from the #483/#359 work-issue run, PR #530)

.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

  1. added
    enhancement
    priority: later
    on Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-taskenhancementpriority: latertooling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions