Repository navigation
Description
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:1075retry-config-scan.awk:87runner-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.awkdefinestrimonce, 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
-fat each of the five load sites and arequire_readableline (cant-fail-scan.sh:301).
Files:
plugins/testing/skills/audit/scripts/mask-js.awkplugins/testing/skills/audit/scripts/cant-fail-scan.awkplugins/testing/skills/audit/scripts/retry-config-scan.awkplugins/testing/skills/audit/scripts/runner-config-scan.awk- a new
patchfragment 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.shruns the engines through the driver. The judge-calibration fixturecant-fail-scan.awk.fixtureis a frozen copy and stays as it is.
Acceptance criteria:
-
trimis defined once, inmask-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.shpasses, andplugins/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.
Metadata
Metadata
Assignees
Labels
Type
Fields
Work status
Priority
Activity
melodic-automation-lanes commentedon Nov 12, 2026
{"v":1,"actor_id":337595936,"title_sha256":"f9fff197231d9ed4a3dbc34f3da9732a7c053769eecb1c3148e2b0e7dd466c66","body_sha256":"1fec19aad42063eed2242c9d2d8933205ca6dafa05045c68f684c969d1f34c10"}
github-actions commentedon Nov 12, 2026