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
Carried over from a consumer project: open findings of the capacity pipe guard (refuses a piped t3-capacity, whose exit status a pipe hides), now shipped as fork-kit/agent-guards/bin/capacity-pipe-guard (#847, #834 G4). Checked against fork main: time is still in the wrapper list (item 1). All minor; none blocks normal work.
time { ..; } | .. is not refused. With time read as a wrapper, { becomes the command word and the group is never opened: time { t3-capacity 2048; } | tail -1 && x passes (also with time -p). Fix: after the wrapper time and its flags, a { or ( still opens a group. Test: both forms refused.
A value glued to a wrapper flag is misread when its last letter is a value letter.command_at looks only at the last letter of a flag word.
Missed: sudo -uroot t3-capacity 1 | tail -1 && x (t is a value letter of sudo, so the tool is taken as the value).
Fix: read the letters left to right; the first value letter takes the rest of the word, or the next word when it is the last letter. Tests: the commands above.
Not read and not in the "Not covered" list:env -S 't3-capacity 1' | tail.
Installer points (found on the older --install of the guard; check whether agent-guards-install has the same): it removed every PreToolUse hook whose command contains the guard's name and replaced the guard's entry whole (extra keys lost); run under sudo it left the settings file owned by root; a temp settings file left by a killed install was never removed; the JSON round trip rewrote 1e5 as 100000.0.
Wording:t3-capacity's stderr line ("A pipe hides this exit status") also shows when output goes to a file and the gate is right; it could say so.
State question: an install that runs again, is killed half-way, or meets a settings file edited by hand or by an older install.
Size: S. Area:fork-kit/agent-guards (and fork-kit/heavy for item 5). Not critical.
Activity
fix(agent-guards): #930 and #931 leftovers (#993)
fix(agent-guards): #930 and #931 leftovers (#993)