Skip to content

Move the testing audit engines' trim into mask-js.awk #15635

Description

@kyle-sexton

Agent Brief

Type: Task
Summary: Move the trim function that the three testing audit awk engines repeat into mask-js.awk, which every program loading them already loads first (part of restructuring pass #14823).

Current behavior:
The same one-line function trim(s), which strips leading and trailing white space, sits in three engines under plugins/testing/skills/audit/scripts/:

  • cant-fail-scan.awk:1075
  • retry-config-scan.awk:87
  • runner-config-scan.awk:250

No other file in the plugin defines trim. Every program that loads one of the three loads mask-js.awk first: cant-fail-scan.sh:681,832,977,1074 and parity-check.sh:81. mask-js.awk:2-3 says the file holds a function only, with no BEGIN block, main block or helpers, so it composes with any engine that loads it.

Desired behavior:

  • mask-js.awk defines trim once, and its header (:2-3) says it holds functions only, with no BEGIN or main block, keeping the reason it gives (it composes with any engine that loads it).
  • The three engines delete their own trim.
  • No new awk file: a separate file would add one more -f at each of the five load sites and a require_readable line (cant-fail-scan.sh:301).

Files:

  • plugins/testing/skills/audit/scripts/mask-js.awk
  • plugins/testing/skills/audit/scripts/cant-fail-scan.awk
  • plugins/testing/skills/audit/scripts/retry-config-scan.awk
  • plugins/testing/skills/audit/scripts/runner-config-scan.awk
  • a new patch fragment in .changes/testing/: ### Changed, "Internal restructuring, no behavior change."

Key interfaces:

  • cant-fail-scan.sh's arguments, findings, output and exit codes: unchanged.
  • No test or eval names trim; cant-fail-scan.test.sh runs the engines through the driver. The judge-calibration fixture cant-fail-scan.awk.fixture is a frozen copy and stays as it is.

Acceptance criteria:

  • trim is defined once, in mask-js.awk, and none of the three engines defines it.
  • Behavior is unchanged: the same outputs, exit codes and printed results for the same inputs.
  • The diff edits only the listed files and the lines of a test that assert on them when the change breaks that assertion.
  • The pull request stays within 400 changed lines and 15 hand-edited files.
  • plugins/testing/skills/audit/scripts/cant-fail-scan.test.sh passes, and plugins/testing/skills/audit/scripts/parity-check.sh <base-sha>, given the pull request's base commit, exits 0.
  • ci-status is green.

Out of scope:

  • The engines' other helpers, the eval fixture copy, other duplication, eval cases, fixtures, and skill and agent text.

Activity

  1. added
    status: ready
    on Nov 12, 2026
  2. added theissue type on Nov 12, 2026
  3. removed
    status: ready
    on Nov 12, 2026
  4. melodic-automation-lanes commented on Nov 12, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"f9fff197231d9ed4a3dbc34f3da9732a7c053769eecb1c3148e2b0e7dd466c66","body_sha256":"1fec19aad42063eed2242c9d2d8933205ca6dafa05045c68f684c969d1f34c10"}

  5. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor
    No description provided.
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

    Fields

    Work status

    needs-triage

    Priority

    low

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions