qwen-code/packages
Shaojin Wen 471141fcde
fix(review): correct the borrowed lenses and vacuous-test severity (follow-up to #7735/#7736) (#7746)
* fix(review): correct and tighten the borrowed lenses per review

Four findings on the lenses this PR adds:

- **Agent 2 (subprocess injection), Critical.** The guidance said "terminate the
  argv with `--`", but `--` ends *option* parsing without neutralizing a
  *pathspec* — for an overloaded command it creates one (`git checkout -- release`
  restores a path instead of switching branch; `git checkout -- .` still discards
  changes). Reword: validate against the subcommand grammar; a `--` helps only
  where it keeps the operand's role, and the value allowlist is what closes it.
- **Agent 1b (changed literal).** A default ripgrep skips hidden `.github/**`, so
  a marker consumed only by a workflow reads as "no consumer". Require a
  hidden-path search (`rg --hidden --glob '!.git/**' --fixed-strings`).
- **Agent 4 (unreproducible benchmark).** "Flag as unverified" conflicts with the
  actionable-findings-only contract. Make it actionable when load-bearing (request
  the script/env/raw numbers) or no finding when incidental (record under
  not-verified), never a non-defect finding.
- **Agent 5 (equivalent mutant).** Add a focused `buildRoleBrief(PLAN, '5')` test
  pinning the equivalent-mutant rule and its discriminating-input requirement, so
  a prompt-assembly regression cannot silently drop it.

* fix(review): a vacuous test is a Suggestion, not a Critical for being the sole guard

Agent 5's mutation lens graded a sole-guard vacuous test as Critical, but the
shared severity ladder — and Agent 7's deterministic efficacy probe — grade an
ineffective test as Suggestion. Step 4 keeps the higher severity, so the same
inert guard arrived as Critical from Agent 5 and Suggestion from Agent 7, and
the Critical won: a PR could be blocked solely for lacking an *effective* test,
the exact inflation those shared rules exist to prevent.

Align it with the dimension's own "name the bug, not the gap" rule: a vacuous
test is a Suggestion, escalated to Critical only when it asserts the opposite of
the intended behaviour, was weakened in-diff, or lets a specific incorrect
behaviour ship (in which case that behaviour is the Critical, with the test as
evidence). Mirrored in the test-matrix brief and the SKILL.md dimension table,
and pinned by a buildRoleBrief(PLAN, '5') assertion so the semantic reversal
cannot pass the generic word-presence check again.

* fix(review): pin the Agent 2 and test-matrix brief corrections, sync the SKILL table

---------

Co-authored-by: verify <verify@local>
2026-07-26 13:22:35 +00:00
..
acp-bridge feat(skills): add overridable default-disabled state (#7357) 2026-07-25 18:29:20 +00:00
audio-capture chore(release): v0.21.0 (#7675) 2026-07-24 13:47:34 +00:00
channels fix(channels): use username as senderId in GitHub adapter to fix allowlist gate (#7727) 2026-07-26 00:21:22 +00:00
chrome-extension chore(release): v0.21.0 (#7675) 2026-07-24 13:47:34 +00:00
cli fix(review): correct the borrowed lenses and vacuous-test severity (follow-up to #7735/#7736) (#7746) 2026-07-26 13:22:35 +00:00
core fix(review): correct the borrowed lenses and vacuous-test severity (follow-up to #7735/#7736) (#7746) 2026-07-26 13:22:35 +00:00
cua-driver fix(mcp): add opt-in model payload filtering (#7413) 2026-07-21 09:49:04 +00:00
desktop fix(desktop): scale formatBytes past GB so terabyte sizes don't render as "undefined" (#7623) 2026-07-25 09:21:15 +00:00
mobile-mcp chore(release): v0.20.1 (#7461) 2026-07-22 02:00:22 +00:00
sdk-java fix(sdk-java): Harden daemon transport reliability (#7603) 2026-07-24 04:22:05 +00:00
sdk-python fix(sdk-python): validate max_tool_calls and max_subagent_depth as integers (#7548) 2026-07-23 08:45:13 +00:00
sdk-typescript feat(skills): add overridable default-disabled state (#7357) 2026-07-25 18:29:20 +00:00
vscode-ide-companion feat(skills): add overridable default-disabled state (#7357) 2026-07-25 18:29:20 +00:00
web-shell feat(web-shell): persist terminal history pagination errors (#7709) 2026-07-26 11:31:36 +00:00
web-templates fix(cli): measure insight days and hours in local time everywhere (#7670) 2026-07-24 15:41:13 +00:00
webui feat(web-shell): persist terminal history pagination errors (#7709) 2026-07-26 11:31:36 +00:00
zed-extension