Repository navigation
curate: 8 trap.d fragments -- 1 promote, 1 merge, 6 decline - #807
Merged
Merged
Conversation
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>
This was referenced Sep 26, 2026
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.
This run is not attached to one issue -- it consumed every fragment waiting in
trap.d/as ofthis 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 anunrelated-looking pre-existing test (
test_delivery_record_per_machine_285.py) that nevermentions 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 onREADME.md(both driven throughclaude-jit-context'spre-path-hook.shagainst the rebuilt index).Merge
761.divergence-fold-replaces-old-not-extends-new-> merged intocase-divergence-pin-fold-dont-stack.md(samematch: 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_codeelement with what's now live onorigin/main, don't just extendnew_codein place and leaveold_codestale. Same file, same audience, added as a secondparagraph 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.
743.doctor-pwd-fallbackscripts/doctor.sh:94-100,:223-229745.entrypoint-sniff-has-two-unfixed-edgesscripts/session-start-hook.sh:910-926748.marker-signal-dies-if-mktemp-failsscripts/lib-memory-dir.sh:622777.rotated-slices-no-guardscripts/lib-memory-context.shrotated-slices loop788.consolidate-hardcoded-timeoutpipeline/consolidate.py:324None 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 (ablanket
win32skip reads suspicious here and needs triaging) is already fully addressed:docs/windows-skip-triage.mdalready carries a per-module verdict for every file in question, and.claude/jit-context/tools/00-manual/win32-skip-triage-entry.mdalready reminds a session adding aNEW blanket skip to add a triage-doc row in the same commit.
Checked against
docs/windows-skip-triage.mdat HEAD, correcting the fragment's own scope (itnamed only one of four affected files):
tests/test_write_handoff_pwd_root_743.py,tests/test_write_handoff_tracked_target_750.pyandtests/test_write_handoff_subdirectory_project_776.pyare each marked convertible (no blockerbeyond the bash-subprocess dependency);
tests/test_compact_deferred_guard_777.pyis markedunclear (plants a real symlink via
os.symlink, a POSIX-only primitive -- possibly the realblocker 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]