Repository navigation
curate(trap.d): decline 1 fragment, filed as a tracking issue (#994) - #995
Merged
Merged
Conversation
989.pre-commit-hook-script-crlf-write-text was a one-off code observation about a specific test file (no newline= guard on a pre-commit hook shebang write, inert on the current CI matrix) rather than an agent-facing lesson. Checked against HEAD: still true. Filed as #994 instead of promoting a rule. Co-Authored-By: Claude Sonnet 5 <[email protected]>
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.
One curate pass over
trap.d/. STRAY-NAMES was empty (nothing to copy from the clone), onefragment was waiting, and this pass takes the whole backlog in one batch (there was only the one).
Decline:
989.pre-commit-hook-script-crlf-write-texttests/test_git_backup_rotate_advice_974.py:154'spre_commit.write_text("#!/bin/sh\nexit 1\n")has no
newline=""guard, so Python's default text-mode newline translation would rewrite theshebang to CRLF on write on Windows, which could make some shebang parsers misread the interpreter
path and stop the script from exec-ing as intended.
Checked against HEAD -- still true. The claim holds exactly as written: line 154 still has no
newline=argument.Inert today, so not blocking: the whole test file's
pytestmarkstill carriesskipif(sys.platform == "win32", ...)for an unrelated reason (#79), and CI's own matrix(
.github/workflows/tests.yml,os: [ubuntu-latest, macos-latest, windows-latest]) confirmswindows-latestis exactly the leg that skip exempts, so nothing in CI exercises the CRLF patheither way right now.
Declined as a rule, not promoted: the fix (
newline="\n"added to that onewrite_textcall,or writing via
open(path, "wb")with an explicit byte payload) is a one-line-shaped fix scopedto this single test, not a generalizable lesson an agent-facing rule would teach anyone away from.
Filed as #994 instead, with the same reasoning, so the finding survives once this fragment is
deleted. Decline line recorded in
.claude/jit-context/paths/00-manual/00-README.md(thepathslayer, since the finding concerns one specific test file).
Part of #989.
[AI-generated]