Skip to content

curate(trap.d): decline 1 fragment, filed as a tracking issue (#994) - #995

Merged
fdaviddpt merged 1 commit into
mainfrom
curate/20261008T081403Z
Oct 8, 2026
Merged

fdaviddpt merged 1 commit into
mainfrom
curate/20261008T081403Z

Conversation

@fdaviddpt

Copy link
Copy Markdown
Contributor

One curate pass over trap.d/. STRAY-NAMES was empty (nothing to copy from the clone), one
fragment 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-text

tests/test_git_backup_rotate_advice_974.py:154's pre_commit.write_text("#!/bin/sh\nexit 1\n")
has no newline="" guard, so Python's default text-mode newline translation would rewrite the
shebang 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 pytestmark still carries
skipif(sys.platform == "win32", ...) for an unrelated reason (#79), and CI's own matrix
(.github/workflows/tests.yml, os: [ubuntu-latest, macos-latest, windows-latest]) confirms
windows-latest is exactly the leg that skip exempts, so nothing in CI exercises the CRLF path
either way right now.

Declined as a rule, not promoted: the fix (newline="\n" added to that one write_text call,
or writing via open(path, "wb") with an explicit byte payload) is a one-line-shaped fix scoped
to 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 (the paths
layer, since the finding concerns one specific test file).

Part of #989.

[AI-generated]

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]>
@fdaviddpt fdaviddpt added the no-changelog Change is invisible to users label Oct 8, 2026
@fdaviddpt
fdaviddpt merged commit 43e356b into main Oct 8, 2026
19 of 20 checks passed
@fdaviddpt
fdaviddpt deleted the curate/20261008T081403Z branch October 8, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Change is invisible to users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant