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
Session Handoff [auto-1636]: Credit a Comparison Bound Only Inside a Test Invocation (#1636) #1989
Fix _BOUND_IN_CONDITION Reads an Ordinary Command Flag as an Arithmetic Guard #1636 in host-setup/agent-safety/claude/gh-write-guard.py._BOUND_IN_CONDITION's -(?:lt|le|gt|ge)\b alternative is searched against the whole joined loop condition, so an ordinary command flag spelling one of those pairs (ls -lt, grep -le) is credited as an arithmetic bound and an unbounded wait loop passes requirement 7. Credit the comparison operator only where it sits inside a test or [ invocation or inside [[ ]], as the issue states. Done looks like: while ! ls -lt out | grep -q result; do sleep 30; done and while ! grep -le done log; do sleep 30; done are denied, a loop bounded by [ "$i" -lt 10 ], test "$i" -lt 10, or [[ $i -lt 10 ]] is still allowed, and the existing guard test suite passes. Prove the new test by reverting the fix and watching it fail.
Drive the pull request to develop with drive-pr, its body carrying Closes on promotion: #1636, and close this lane out.
External blockers
None known.
Internal dependencies
None. Sibling requirement-7 defects #1633 and #1637 are separate issues in the same file, and parked lanes auto-1634 and auto-1910 also touch this file on their own branches. Do not fold any of them in, and expect a rebase conflict to be possible when one of them lands.
State
No branch, worktree or pull request exists for this lane yet. Re-derive from git worktree list and the open pull request list before starting.
The parked decision queue
0 parked decisions.
What the last round did
Nothing. This lane was created by an unattended-handoff picker from the open backlog.
Done. Branch feature/auto-1636 is pushed with three signed commits on develop 8c802f3: d11c3ea, 8f9f498 and d28bde0. They replace the _BOUND_IN_CONDITION regex with _bound_in_condition(cond) in host-setup/agent-safety/claude/gh-write-guard.py, which credits -lt/-le/-gt/-ge only as an operand of a [, [[, or test invocation in command position, including path-qualified and builtin spellings. Inside that operand it tracks $(...)/<(...) depth, backtick spans, and grouping parentheses. Both shapes #1636 names are denied, and new _WAIT_CASES rows cover each round. Each new row was proved by running it against the previous version and watching it fail. --selftest passes and ruff is clean. A local-review receipt is recorded for d28bde0.
No pull request is open yet. The worktree /home/pieter/repos/worktrees/ProjectTemplate-auto-1636 is left standing and clean.
Why parked. The local strict review's two-round edit budget ran out with four introduced findings still open on round three: a glued x$(...) substitution, a fused ;(/|( subshell after test, a case arm inside $(...), and a regression on a quoted literal backtick operand. Each round's parser refinement drew about four new findings, so the choice of design is now the maintainer's. Decision #1990 lists them and puts three options: fail closed on any opaque operand (recommended), keep refining, or ship as is and file the rest.
What remains. Apply the answer on #1990 to _bound_in_condition and its _WAIT_CASES rows. Run a fresh local strict review and record it. Then open the pull request to develop with Closes on promotion: #1636, drive it with drive-pr, and close this lane out. Sibling lanes auto-1634 and auto-1910 touch the same file, so expect a rebase.
Lane closed out. The maintainer answered #1990 with option 2, keep refining. Three more local strict review rounds closed every shape they raised, including the quote handling, now read from a quote-keeping second lex. The edit budget ran out on one fail-closed false deny, which the maintainer chose to ship and track as #1998. PR #1999 merged to develop as 796d7df, and its branch and worktree are removed. #1636 closes on promotion PR #2000.
Activity
ptr727 commentedon Sep 28, 2026
Parked: waiting on decision #1990
Done. Branch
feature/auto-1636is pushed with three signed commits on develop 8c802f3: d11c3ea, 8f9f498 and d28bde0. They replace the_BOUND_IN_CONDITIONregex with_bound_in_condition(cond)inhost-setup/agent-safety/claude/gh-write-guard.py, which credits-lt/-le/-gt/-geonly as an operand of a[,[[, ortestinvocation in command position, including path-qualified andbuiltinspellings. Inside that operand it tracks$(...)/<(...)depth, backtick spans, and grouping parentheses. Both shapes #1636 names are denied, and new_WAIT_CASESrows cover each round. Each new row was proved by running it against the previous version and watching it fail.--selftestpasses and ruff is clean. A local-review receipt is recorded for d28bde0.No pull request is open yet. The worktree
/home/pieter/repos/worktrees/ProjectTemplate-auto-1636is left standing and clean.Why parked. The local strict review's two-round edit budget ran out with four introduced findings still open on round three: a glued
x$(...)substitution, a fused;(/|(subshell aftertest, acasearm inside$(...), and a regression on a quoted literal backtick operand. Each round's parser refinement drew about four new findings, so the choice of design is now the maintainer's. Decision #1990 lists them and puts three options: fail closed on any opaque operand (recommended), keep refining, or ship as is and file the rest.What remains. Apply the answer on #1990 to
_bound_in_conditionand its_WAIT_CASESrows. Run a fresh local strict review and record it. Then open the pull request to develop withCloses on promotion: #1636, drive it withdrive-pr, and close this lane out. Sibling lanes auto-1634 and auto-1910 touch the same file, so expect a rebase.Lessons filed. None.
ptr727 commentedon Sep 28, 2026
Lane closed out. The maintainer answered #1990 with option 2, keep refining. Three more local strict review rounds closed every shape they raised, including the quote handling, now read from a quote-keeping second lex. The edit budget ran out on one fail-closed false deny, which the maintainer chose to ship and track as #1998. PR #1999 merged to develop as 796d7df, and its branch and worktree are removed. #1636 closes on promotion PR #2000.