Skip to content

docs(README): name .husky among the pinned config paths - #1077

Merged
max-sixty merged 1 commit into
mainfrom
fix/readme-config-pinning-husky
Aug 30, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/readme-config-pinning-husky

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

The README's Config pinning bullet lists four of the five root paths the action restores from the base branch, omitting .husky. That understates the protection to the audience most likely to be evaluating it: .husky/ holds git hooks, so a fork's copy is a code-execution path, and pinning it is exactly the kind of thing a reader of that paragraph is checking for.

The implementation and the threat model have both been right the whole time — SENSITIVE=(.mcp.json .claude.json .gitmodules .ripgreprc .husky) in shared/steps/restore-sensitive-config.sh, and docs/security-model.md names all five. Only the README drifted, and it has been wrong since .husky was added.

This adds .husky to the README list and pins the three-way agreement with a test: it parses the SENSITIVE array out of the script and asserts every entry is named in the README's config-pinning paragraph and in docs/security-model.md. The next path added to that array now fails the suite until both docs name it.

Verification

The test fails on the pre-fix README and passes after:

FAILED generator/tests/test_shared_steps.py::test_sensitive_paths_are_documented_where_adopters_read_them
AssertionError: .husky missing from README

The README match is scoped to the config-pinning paragraph rather than the whole file, so a mention elsewhere can't satisfy the claim.

uv run pytest — 733 passed. pre-commit clean on both changed files.

.husky has been in SENSITIVE since it was introduced; git log -S'.husky' on the script and the two docs returns only the commits that added it to the script, never one that added it to the README.

The config-pinning bullet listed four of the five paths in SENSITIVE. Adds .husky and a test holding the script, the README, and the threat model to the same list.
@max-sixty
max-sixty merged commit 2eab082 into main Aug 30, 2026
7 checks passed
@max-sixty
max-sixty deleted the fix/readme-config-pinning-husky branch August 30, 2026 05:23
max-sixty added a commit that referenced this pull request Aug 30, 2026
It merged to main after the section was drafted, so the tag ships it while
the notes omitted it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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