You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
installed_key membership probe silently reverses on a non-object .plugins shape (to_entries doesn't error on an array) #762
filed-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-capturein-session hooks and the summarizer — post-tool, prompt, session-start/end, haiku.py, prompts/priority:lowReal, but neither blocking nor compounding fast
Filed while curating trap.d/660.promo-installed-key-array-plugins-shape.md, an independent
oss:auditor finding on PR #661, ranked non-blocking (latent unless installed_plugins.json's
writer ever emits .plugins as a non-object). Still present at HEAD, scripts/session-start-hook.sh:1494:
The old per-candidate query (.plugins[$k] // empty | length) errored (jq exit 5, "Cannot index
array with string") if .plugins were a JSON array rather than an object; that error was caught
by a >/dev/null 2>&1 guard and treated as "cannot tell", suppressing the promo -- a deliberate #574 decision. to_entries is defined for arrays too (index keys "0", "1", ...), so it does
NOT error on an array shape: a real installed_key like supertool@dpt-plugins never matches an
index string, so the membership check now reads "not installed" instead of "cannot tell" -- the
promo fires in exactly the situation the old code was written to suppress it in.
Confirmed live in a standalone repro: both jq calls run directly against a shimmed installed_plugins.json with "plugins": ["x", "y"] -- old path suppresses, new path fires. Not
established whether installed_plugins.json's real writer can ever emit .plugins as a
non-object under schema version "2" -- if never, this is latent.
Candidate fix: validate .plugins is an object before to_entries, or catch a non-object
explicitly and fall back to cannot-tell, mirroring the old per-key behaviour.
filed-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-capturein-session hooks and the summarizer — post-tool, prompt, session-start/end, haiku.py, prompts/priority:lowReal, but neither blocking nor compounding fast
Activity
curate: 21 trap.d fragments -- 12 promoted, 3 merged, 6 declined (#763)
fix(#761,#762): fail closed on a symlinked .git; guard non-object .pl…