Skip to content

Read a with: Input Past a Deeper-Indented Comment in the Audit #1916

Closed

Description

@ptr727

Problem

workflow_input_text() in spec/audit.py reads a caller's with: inputs by indentation. It takes the key column from the first non-blank line under with:, even when that line is a comment. So a comment indented deeper than the keys hides every key after it. The caller check then reports "validate job passes none", although the caller passes the directory.

A double-quoted value carrying an escape (for example "Tools\nOther") is returned with the escape unprocessed, which the runner would expand, so the audit and the runner read different values.

Fix

Skip comment-only lines when fixing the key column. Refuse a double-quoted python-directories value that carries a backslash escape, the same way a folded (>) value is refused, rather than modeling YAML's escapes. Add selftest cases for both.

Found by the local strict review of #1914. Both shapes are contrived, and no fleet caller writes either.

Activity

  1. ptr727 commented on Sep 27, 2026

    @ptr727
    OwnerAuthor

    The comment-indent half is fixed in a5bdc15 (#1919): comment lines are skipped when fixing a with: block's key column. The escaped double-quoted value half is still open.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions