Skip to content

curate: 8 trap.d fragments -- 1 promote, 1 merge, 6 decline - #807

Merged
fdaviddpt merged 2 commits into
mainfrom
curate/20260926T204147Z
Sep 26, 2026
Merged

fdaviddpt merged 2 commits into
mainfrom
curate/20260926T204147Z

Conversation

@fdaviddpt

Copy link
Copy Markdown
Contributor

This run is not attached to one issue -- it consumed every fragment waiting in trap.d/ as of
this pass (8 total) and gives each exactly one disposition. Part of #743, #745, #748, #754, #761,
#777, #788, #799 for provenance.

Promote

754.injection-guard-must-exempt-external-storage-git-backup -> new rule
.claude/jit-context/paths/00-manual/generalizing-a-narrow-security-check-needs-a-whole-suite-grep.md,
matching scripts/.*\.sh$. The #754/#755/#756 injection-guard generalization broke an
unrelated-looking pre-existing test (test_delivery_record_per_machine_285.py) that never
mentions any of those issue numbers -- found only by a full-suite run, not the four files the task
was scoped to. Worth a standing rule: before generalizing a narrow security/trust check, grep the
whole suite for callers, not just the issue's own test files. Firing proof: fires on
scripts/lib-memory-context.sh, silent on README.md (both driven through
claude-jit-context's pre-path-hook.sh against the rebuilt index).

Merge

761.divergence-fold-replaces-old-not-extends-new -> merged into
case-divergence-pin-fold-dont-stack.md
(same match: tests/test_case_divergence_298\.py$).
That rule already covers "fold a transition into one pair, don't stack a new one beside it" for
this exact file; #761's finding is the mechanics of doing the fold correctly once you're doing
it -- replace the whole old_code element with what's now live on origin/main, don't just extend
new_code in place and leave old_code stale. Same file, same audience, added as a second
paragraph rather than a sibling rule.

Decline, still true at HEAD, each filed as a tracking issue

Every fragment below was checked against the code at HEAD before declining, per #1736: a decline of
a live code defect must never be the only record of it once the fragment itself is deleted.

fragment still true at filed as
743.doctor-pwd-fallback scripts/doctor.sh:94-100, :223-229 #802
745.entrypoint-sniff-has-two-unfixed-edges scripts/session-start-hook.sh:910-926 #803
748.marker-signal-dies-if-mktemp-fails scripts/lib-memory-dir.sh:622 #804
777.rotated-slices-no-guard scripts/lib-memory-context.sh rotated-slices loop #805
788.consolidate-hardcoded-timeout pipeline/consolidate.py:324 #806

None of these is a generalizable lesson -- each is a scoped, single-site fix. #777 and #788 had
already been filed once each, as #791 and #793, by the maintainer loop before the reviews that
found them routed the finding to these same trap.d fragments instead and the maintainer closed
#791/#793 explicitly in favor of the fragment being the durable record. Since this pass now
deletes those fragments, #805 and #806 replace that record rather than duplicate it.

Decline, already covered by existing infrastructure

799.windows-skip-reason-stale -- no new rule, no issue filed. The fragment's own worry (a
blanket win32 skip reads suspicious here and needs triaging) is already fully addressed:
docs/windows-skip-triage.md already carries a per-module verdict for every file in question, and
.claude/jit-context/tools/00-manual/win32-skip-triage-entry.md already reminds a session adding a
NEW blanket skip to add a triage-doc row in the same commit.

Checked against docs/windows-skip-triage.md at HEAD, correcting the fragment's own scope (it
named only one of four affected files): tests/test_write_handoff_pwd_root_743.py,
tests/test_write_handoff_tracked_target_750.py and
tests/test_write_handoff_subdirectory_project_776.py are each marked convertible (no blocker
beyond the bash-subprocess dependency); tests/test_compact_deferred_guard_777.py is marked
unclear (plants a real symlink via os.symlink, a POSIX-only primitive -- possibly the real
blocker the fragment's own auditor guessed at). The residual work (converting the three
convertible rows, resolving the one unclear row) is visible directly in that doc's own verdict
column, the same way this repo already tracks backlog outside of milestones.

defer

None -- every fragment this pass read got a decision.

[AI-generated]

Promote: generalizing a narrow security check needs a whole-suite grep for
callers before widening it (#754's own lesson from the injection-guard work).

Merge: the case-divergence fold pattern replaces old_code wholesale, it does
not extend new_code in place (#761), folded into the existing
case-divergence-pin-fold-dont-stack.md rule for the same test file.

Decline (still true at HEAD, each filed as a tracking issue since the
fragment being consumed here was, in two cases, the only record left after
#791/#793 were closed in its favor): #743 doctor.sh's $PWD fallback (#802),
#745 the entrypoint sniff's three unfixed edges (#803), #748 the mktemp
drop-marker's own silent-failure edge (#804), #777 the rotated-slices
listing's missing injection guard (#805), #788 consolidate.py's hardcoded
timeout (#806).

Decline (already covered): #799's stale windows-skip reason worry is already
tracked in full by docs/windows-skip-triage.md and the existing
win32-skip-triage-entry.md rule -- corrected the fragment's own scope, which
named only one of the four affected test files.

Co-Authored-By: Max <noreply>
@fdaviddpt
fdaviddpt merged commit aa37372 into main Sep 26, 2026
16 checks passed
@fdaviddpt
fdaviddpt deleted the curate/20260926T204147Z branch September 26, 2026 23:29
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