Skip to content

Read Only an Eval That Runs in the Write Guard's Include Reading #2975

Closed

Description

@ptr727

Context

A review of the change closing #2960 found this over-denial. That change reads an eval argument holding an include key as the command it runs, for the write guard's push check.

An eval That Is Only an Argument Is Read as One That Runs

The new reading takes every eval token as the builtin running, so echo eval 'git -c include.path=/example/config p' reads its quoted argument as a command and denies it as a possible push alias, though it only prints text. Develop's guard allows it. The direction is a false deny only.

Possible Direction

Gate the reading on _runs_eval, as the wait rule's reader does, and keep the quote-preserving tokens it uses. Before changing it, run a differential against the current reading, since a misjudged command position there would turn this deny into an allow for an eval that does run.

Activity

  1. added
    script
    on Oct 14, 2026
  2. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.

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

    script

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions