Skip to content

test(harness-config): accept a shell line continuation in conflict-scan-pair #12046

Closed

Description

@kyle-sexton

Refs: #11560, #12005

Observed

The conflict-scan-pair grader in plugins/harness-config/evals/ai-cross-surface-conflict/case.yaml rejects a correct two-file scan written with shell line continuations. In the serialized command string, a backslash-newline is \\\n. The after-script branch's filler (?:[^"\\;&|]|\\[^nr])*? consumes the escaped backslash, then stops at the escaped n. So this correct call fails:

{"command":"bash /opt/.../conflict-scan.sh \\\n  CLAUDE.md \\\n  services/billing/CLAUDE.md","description":"run"}

The plugin path is long, so a model may well wrap the file list this way. The case is frozen to measure the before and after versions, and a false negative would count a correct run as a regression. claude-review found this on PR #12005 (thread at case.yaml:9). It was the fourth round on this grader, and the escalation guard ships the grader after three rounds and moves the remaining edge cases here.

Fix wanted

Allow an escaped backslash followed by an escaped newline before the general escape in the after-script branch, as the reviewer suggested:

input_match: '"command":"(?:[^"\\]|\\.)*?(?:conflict-scan\.sh(?:(?:[^"\\;&|]|\\\\\\[nr]|\\[^nr])*?\.md\b){2}|\.md\b(?:[^"\\]|\\.)*?\.md\b(?:[^"\\]|\\.)*?conflict-scan\.sh(?:\\")?\s+(?:--count\s+)?\$)'

Then add the call above as a must-pass sample in samples/conflict-scan-pair.json. The existing must-fail sample, CLAUDE.md then cat services/billing/CLAUDE.md on the next line, must still fail.

Land this before the first after-version run of audit-instructions (rewrite slice A, #11564), so the before and after passes use the same grader.

Done when

  • The continuation sample passes, every existing sample still scores as labeled, and /evals:validate exits 0.

This was generated by AI.

Activity

  1. added
    needs-triage
    on Nov 1, 2026
  2. github-actions commented on Nov 1, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: the conflict-scan-pair grader regex in the ai-cross-surface-conflict eval rejects a correct two-file scan written with shell line continuations. The fix is to widen the after-script branch of the regex. Then add the continuation call as a must-pass sample, and keep the existing must-fail sample failing. Done when every sample scores as labeled and /evals:validate exits 0. The issue gives the exact regex and the done-when, so nothing is missing. I found no duplicates among the open issues.

    Automated triage, applied by the lanes App.

  3. added and removed
    needs-triage
    on Nov 1, 2026
  4. added
    status: ready
    status: confirmed
    and removed
    status: ready
    on Nov 1, 2026
  5. melodic-automation-lanes commented on Nov 1, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  6. melodic-automation-lanes commented on Nov 1, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: admission moved the issue to status: confirmed; its comment says why.

  7. added a commit that references this issue on Nov 1, 2026
    eb15b29
  8. kyle-sexton commented on Nov 1, 2026

    @kyle-sexton
    MemberAuthor

    Fixed in PR #12005 (eb15b29), not deferred. An independent adjudication found that the PR's round-3 commit 2284c37 introduced this, so it is fixed there. The PR body now closes this issue.

    This was generated by AI.

  9. added
    needs-owner-decision
    on Nov 1, 2026
  10. melodic-automation-lanes commented on Nov 1, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: Widen the after-script branch of the conflict-scan-pair input_match regex to accept an escaped backslash plus escaped newline, add the continuation sample, and keep every existing sample scoring as labeled.

    Dependencies

    • #​12005 must be merged first: it introduces the case.yaml grader and samples this issue edits

    Related work

    Open questions

    1. The base checkout has no plugins/harness-config/evals/ directory, so case.yaml, samples/conflict-scan-pair.json and the conflict-scan-pair grader do not exist yet. Should this wait until PR #​12005 merges, and be refined again then?
      RECOMMENDED: Yes. Hold it until #​12005 is merged. Then the regex edit and the new sample can be checked against the real files. Basis: judgment: Glob for plugins/harness-config/evals/** and Grep for conflict-scan-pair in .base both returned no matches; the only conflict-scan files are under plugins/harness-config/skills/audit-instructions/scripts/.

    Sources read

    • plugins/harness-config/evals/: no files found in the base checkout, so case.yaml and samples/conflict-scan-pair.json are absent
    • plugins/harness-config/skills/audit-instructions/scripts/conflict-scan.sh: the script the grader targets exists, but no grader or eval case references it yet

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  11. removed
    status: confirmed
    on Nov 1, 2026
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

    needs-owner-decision

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions