Repository navigation
curate: 21 trap.d fragments -- 12 promoted, 3 merged, 6 declined - #763
Merged
Merged
Conversation
trap.d's queue (18 pre-existing plus 3 stray uncommitted, from the primary clone's own working tree) plus two new fragments logged for this pass (#739, #746) -- 21 total, all decided, none deferred. New fragments added and curated in this same pass: - 746: two PRs (#734 then #746) each stranded a sanctioned-divergence pair in test_case_divergence_298.py by stacking a new pair on a site an earlier PR had already pinned, going red on origin/main invisibly to either PR's own CI. - 739: a targeted local pytest run missed a Python 3.9 str|None annotation and a new shell bracket-range pattern, both caught only by the full CI matrix. Promoted (12 new rules, all firing-proven both directions via pre-path-hook.sh / pre-tool-hook.sh, plus a known-good control): - paths/00-manual: bash-locale-pin-byte-and-case-ops, dollar-paren-lt-file-is-a- special-case, hand-kept-completeness-list-goes-stale, kill-a-subshell-not-its- forked-child, per-session-value-shared-channel, security-check-three-states- not-two, simulating-tool-absence-on-macos, spawn-counter-splits-on-embedded- newlines, case-divergence-pin-fold-dont-stack - tools/00-manual: supertool-cwd-verify-tree, raw-append-write-unguarded (interim, filed claude-supertool#2699), targeted-pytest-misses-py39-and-scanners Merged into existing rules: - 630, 695.outward-walk-assumes-lexical-scope -> folded into bash-locale-pin-byte-and-case-ops.md as supporting evidence - 705.edit-toml-literal-double-escape -> appended to supertool-literal- backslashes.md Declined, each recorded in the owning layer's 00-README.md: - 695.emit-read-max-is-an-unvalidated-knob (still true, filed #758) - 719.silent-exclude-mkdir-failure (still true, filed #759) - 721.git-dir-symlink-bypasses-tracked-check (still true, filed #761, low-priority: attacker already needs a stronger primitive) - 660.promo-installed-key-array-plugins-shape (still true, filed #762) - 722.edit-tool-cannot-write-raw-unicode-literal (not a code claim; narrow, workaround already obvious) - 725.recon-reads-dirty-sibling-clone-not-origin-main (not this repo's code; filed claude-oss#1745 against oss:recon itself) 721.git-command-failure-reads-as-untracked and 721.case-fold-helper-not-pinned- to-c-locale were promoted rather than declined: both describe a generalizable class (git-gated security checks folding failure into the permissive branch; missing LC_ALL=C pinning) worth teaching beyond the one call site, so each became -- or was folded into -- a promoted rule above, alongside filing the underlying code issue. 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.
What this is
The
/oss:run:curatepass overtrap.d/-- 18 fragments already waiting, 3 more that hadbeen written straight into the primary clone's working tree as untracked strays (#1723, now
swept), plus 2 new fragments this pass logged itself (
#739,#746) before curating themtoo. 21 total. Every one gets exactly one disposition below; none deferred.
New fragments logged and curated in this pass
tests/test_case_divergence_298.pypinsold->new pairs against
origin/main. Twice now (main is red at 7ba7609 (#732): stale _SANCTIONED_DIVERGENCE entry in test_case_divergence_298.py for lib-memory-dir.sh's elif/python branch #734, test: drop the #726 sanctioned-divergence pair #744 stranded on main #746) a second PR stacked a new pairon a site an earlier PR had already pinned, and the earlier pair's old AND new forms both
vanished from
origin/mainonce the second PR merged -- 8 CI legs red onmainatba2a592, invisible to either PR's own CI (each compared against the pre-mergeorigin/main). Promoted aspaths/00-manual/case-divergence-pin-fold-dont-stack.md, keyedon the test file itself.
fix(#738): per_session /remember no longer writes into the last-started session's handoff #739 ran an 18/18-green local subset and still shipped a Python-3.9-incompatible
str | Noneannotation and a new shell bracket-range pattern the repo's own locale scanner testexists to catch. Promoted as
tools/00-manual/targeted-pytest-misses-py39-and-scanners.md.Promoted (12 new rules)
Each fires both directions -- a must-fire payload and a must-not-fire payload, driven through
pre-path-hook.sh/pre-tool-hook.shwith a known-good control alongside -- caught one realbug in the process:
paths-dimensionmatch:values must not carry the~prefixtools-dimension rules use (copied by habit fromsupertool-required.md's ownmatch: ~.*);with it, every one of these rules matched literally nothing, silently.
paths/00-manual/bash-locale-pin-byte-and-case-ops.md-- pinLC_ALL=Cbefore anybyte-range/case-fold bash comparison; folds in macos-latest CI: a bash case-pattern matching a real control byte silently failed to match, mechanism unknown, not reproducible locally #630 and safe_eval drops every bridge variable containing 'I' under tr_TR locale — no save ever completes #695's outward-walk fragment as
supporting evidence (below).
paths/00-manual/dollar-paren-lt-file-is-a-special-case.md--$(<file)is a special-casedgrammar production; any other token in the parens silently reads nothing.
paths/00-manual/hand-kept-completeness-list-goes-stale.md-- a static "every X isguarded" check fed a hand-kept list only proves the list, not the guard.
paths/00-manual/kill-a-subshell-not-its-forked-child.md--kill $subshell_piddoes notreach a
sleepit forked; the orphan can hold an inherited fd open past the timeout.paths/00-manual/per-session-value-shared-channel.md-- a per-session value publishedthrough one shared file is owned by whichever session wrote it last.
paths/00-manual/security-check-three-states-not-two.md-- a security-relevant checkgated on a shelled-out command must not fold "command failed" into its permissive branch
(folds in 721.git-command-failure-reads-as-untracked).
paths/00-manual/simulating-tool-absence-on-macos.md-- faking "tool X absent" by droppinga whole PATH entry can silently take macOS-bundled sibling tools down with it.
paths/00-manual/spawn-counter-splits-on-embedded-newlines.md-- a multi-line quotedjq/awk/sed filter argument inflates any spawn count that splits a recorded
"$*"onnewlines.
paths/00-manual/case-divergence-pin-fold-dont-stack.md-- see test: drop the #726 sanctioned-divergence pair #744 stranded on main #746 above.tools/00-manual/supertool-cwd-verify-tree.md-- supertool's default cwd can silentlypoint at the wrong tree; verify, don't trust.
tools/00-manual/raw-append-write-unguarded.md-- interim copy: the raw-command guardblocks a raw read but not a raw
>>append. Filed upstream asclaude-supertool#2699.
tools/00-manual/targeted-pytest-misses-py39-and-scanners.md-- see fix(#738): per_session /remember no longer writes into the last-started session's handoff #739 above.Merged into an existing rule
705.edit-toml-literal-double-escape-> appended totools/00-manual/supertool-literal-backslashes.md(escaping direction still matters evenwith
literal_backslashes = true).630.macos-case-byte-range-silent-mismatchand695.outward-walk-assumes-lexical-scope->folded into
bash-locale-pin-byte-and-case-ops.mdas supporting evidence rather thanstandalone rules (both are single-incident, one confirmed reverted before merge, the other
a scanner-logic caveat with no live instance in this tree today).
Declined, each recorded in the owning layer's
00-README.mdEvery decline here is a live-code claim, checked against this branch's own HEAD before
declining -- five were still true and got a tracking issue; one was a tool-workflow
observation, not a code claim, so no issue was needed.
695.emit-read-max-is-an-unvalidated-knob-- still true(
lib-memory-context.sh:198). Too narrow a single undocumented, developer-only knob for astanding rule. Filed as REMEMBER_EMIT_READ_MAX has no numeric guard, unlike every sibling knob in the same file #758.
719.silent-exclude-mkdir-failure-- still true (50-git-backup.sh:504, noelseon themkdir -pguard). The fragment already names the exact one-line fix; declined as a rulebecause there's no lesson here beyond "write the fix". Filed as git-backup's info/exclude write has no else branch -- a failed mkdir silently skips the config.json exclusion (#719 follow-up) #759.
721.git-dir-symlink-bypasses-tracked-check-- still true, but the fragment's own analysisholds: the attacker already needs a strictly stronger local-write primitive than this
plugin's threat model assumes anywhere else. Filed as _remember_handoff_is_tracked resolves PROJECT_DIR/.git the ordinary way -- a pre-planted symlink/gitdir pointer answers against a different repository (out of #720/#721's own threat model) #761, low priority.
660.promo-installed-key-array-plugins-shape-- still true (session-start-hook.sh:1494,to_entriesdoesn't error on a non-object.plugins), but not established live (noevidence the real writer ever emits a non-object shape). Filed as installed_key membership probe silently reverses on a non-object .plugins shape (to_entries doesn't error on an array) #762.
722.edit-tool-cannot-write-raw-unicode-literal-- not a code claim (ruff's PLE2515 is alegitimate lint, not a supertool bug); narrow, single-incident, workaround already obvious.
725.recon-reads-dirty-sibling-clone-not-origin-main-- the defect is inoss:recon(
Digital-Process-Tools/claude-oss), confirmed still present inagents/recon.mdatclaude-oss 0.42.0 (no instruction pinning its reads to
origin/<default-branch>). Not thisrepository's code to fix or to rule an agent out of here. Filed as
claude-oss#1745, naming
commands/run/curate.md's own worktree-first fix (#1670) for the identical class as thetemplate recon could adopt.
Two fragments promoted instead of declined, despite naming a specific code site
721.git-command-failure-reads-as-untrackedand721.case-fold-helper-not-pinned-to-c-localeeach describe a generalizable class worth teaching beyond their one call site (a security
check folding command-failure into its permissive branch; missing
LC_ALL=Cpinning), soboth became -- or were folded into -- one of the promoted rules above, alongside filing #760
for the still-live
_remember_handoff_is_trackedinstance.Out of scope, left untouched, worth a human's attention
.claude/jit-context/tools/01-oss/python-heredoc-writes-are-unvalidated.mdandraw-file-reads-are-uncapped.mdsit untracked in the primary clone's working tree (not thisworktree, cut from
origin/main, which cannot see them). Byte-identical to the plugin's own0.42.0 template for that layer -- a scaffold sync gap (this repo's tracked
01-osslayer ismissing exactly these two files), not a curate decision:
01-oss/is generated and thispass never writes there. Left for
/oss:run:scaffold.Firing proof
Every promoted rule was driven both directions through the actual hooks
(
pre-path-hook.shforpaths,pre-tool-hook.shfortools), rebuilding00-index.tsvfirst, with a pre-existing known-good rule (trap-fragments.md/supertool-required.md) alongside each batch as the control. Full transcript in this PR'sown session; happy to paste specific probes on request.
[AI-generated]