Skip to content

Session Handoff [auto-1910]: Context-Tracking Fallback Tokenizer for the Write Guard #2041

Closed

Description

@ptr727

Next steps

  1. Per Grant One More Review Round for the Guard's Context Scan Branch #2023: in _redirects_stdin, refuse a shell-operator token as a redirect target (as _collect_arglist already does), add a selftest case for the constructed command Grant One More Review Round for the Guard's Context Scan Branch #2023 names, run a fourth local strict review pass, and continue only if it finds nothing introduced. Park again otherwise.
  2. Drive the pull request to develop per drive-pr, its body carrying Closes on promotion: #1910, then close this lane out.

External blockers

None. Decision #2023 was answered by the maintainer (option 1) and is closed.

Internal dependencies

None beyond the order above.

State

Branch feature/auto-1910 pushed at 751d0582, no pull request yet. Re-derive the worktree from git worktree list. The full history of this lane is on the previous link #1957.

Parked decisions

None open on this lane.

What the last round did

An attended session put decision #2023 to the maintainer, recorded the answer on it, and closed it. It changed no code on this branch.

What not to repeat

See #1957 and its comments for the review passes already run and their findings. Do not re-ask #2023.

New learnings

None.

Activity

  1. added
    handoff
    on Sep 29, 2026
  2. ptr727 commented on Sep 29, 2026

    @ptr727
    OwnerAuthor

    Parked: waiting on decision #2045

    Done. This round followed the answer on #2023 (option 1). Develop is merged in at 4fcf791. That merge resolved one import conflict with #2033's unicodedata change. Commit 656b969 changes _redirects_stdin in two ways. It no longer takes a shell-operator token as a redirect's target, so the "\n" joining the two readings ends the loop's invocation. And a redirect with no target now bounds nothing. #2023's command and a dangling done < are both wait cases, and a mutation of either half fails a case. The selftest, ruff, mypy, and the commit hooks pass. The branch is pushed at 656b969, with no pull request yet.

    Why it parked. #2023 said to park again if the fourth pass found anything introduced. It found no hiding regression, but it found one introduced false deny. _operator_lex strips quotes, so while read l; do sleep 30; done < ";" reaches the guard with a bare ; as the redirect target. Develop allows that command and the branch denies it. The pass's receipt is recorded at 656b969 with 1 finding.

    Remaining. Follow the answer on #2045.

    Worktree. /home/pieter/repos/worktrees/ProjectTemplate-auto-1910 is left standing and clean at the pushed head.

    Filed along the way: #2045. No lesson was filed.

    Draft pull request summary (option 1): _context_lex replaces the comment strip and the _COMMENT_SCAN_BAIL skip list. _shell_tokens keeps develop's line reading followed by the scan's tokens, per #1960. The wait rule judges both heredoc strips, _closes_as_arithmetic is linear, and _redirects_stdin refuses an operator as a target, per #2023. Every constructed example in #1910 is a selftest case. #1910, #1958, and #1959 stay open.

  3. added
    blocked
    on Sep 29, 2026
  4. ptr727 commented on Sep 29, 2026

    @ptr727
    OwnerAuthor

    Continued in #2071, round 3 on track auto-1910.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedhandoff

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions