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
REMEMBER_EMIT_READ_MAX has no numeric guard, unlike every sibling knob in the same file #758
filed-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-otherfits no other lane — kept so an unlabelled issue means untriaged, not 'nothing matched'priority:lowReal, but neither blocking nor compounding fast
Filed while curating trap.d/695.emit-read-max-is-an-unvalidated-knob.md (declined as a
jit-context rule -- too narrow to be a standing agent lesson -- but the defect the fragment
names is still present at HEAD).
scripts/lib-memory-context.sh:198 reads ${REMEMBER_EMIT_READ_MAX:-16384} and uses it directly
in [ "$2" -gt "$_remember_emit_max" ], with no case (''|*[!0-9]*) guard -- while MEMORY_INJECT_MAX_BYTES, log.sh's _budget/_grace, and every wc parse in the same file
all carry one.
Under set -eu with a non-numeric value, bash prints [: notanumber: integer expression expected to stderr, does not abort (the test is an if condition, so set -e is suppressed),
and falls through to the read arm -- sending every file down the quadratic path the 16 KB
threshold exists to keep them off. Low severity: this is an undocumented env knob nobody but a
developer would set to nonsense, not user-facing input.
Two honest fixes: guard it like its neighbours, or state in the comment that it is not
user-settable. Whichever a maintainer picks; not decided here.
filed-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-otherfits no other lane — kept so an unlabelled issue means untriaged, not 'nothing matched'priority:lowReal, but neither blocking nor compounding fast
Activity
curate: 21 trap.d fragments -- 12 promoted, 3 merged, 6 declined (#763)
fix(#758): guard REMEMBER_EMIT_READ_MAX like every sibling numeric kn…