docs/plans/2026-08-18-autofix-handoff-bilingual.md
Date: 2026-08-18
Design: docs/design/2026-08-18-autofix-handoff-bilingual.md
Make every autofix failure-path handoff comment bilingual (English body
unchanged + collapsed 中文说明 details block), matching the convention the
rest of qwen-autofix.yml already follows.
failure.zh.md companion file (Chinese translation of
failure.md), plain Markdown, no HTML.HEADLINE_ZH sibling variable at every HEADLINE site; report
block emits a <details> section before the Run log line; 3000-byte
truncated + sanitized Chinese excerpt.scripts/tests/qwen-autofix-workflow.test.js.| File | Change |
|---|---|
.github/workflows/qwen-autofix.yml | HEADLINE_ZH at ~9 template sites (+ clause variants); report-block details section; zh excerpt truncation/escaping |
.qwen/skills/autofix/SKILL.md | bilingual rule: failure.zh.md companion requirement + constraints |
scripts/tests/qwen-autofix-workflow.test.js | contract pins: details block present, HEADLINE/HEADLINE_ZH pairing, SKILL rule pin |
feat/autofix-handoff-bilingual from origin/mainnpx vitest run --config ./scripts/tests/vitest.config.ts qwen-autofix-workflow.test.js qwen-fleet-shepherd-workflow.test.js —
all green except two pre-existing local-environment failures (macOS bash
3.2 lacks mapfile for the gate script; confirmed failing on the clean
tree via stash)bash -n over all 58 run blocks<details/</details/<summary/
<!-- neutralized), mid-character truncation under set -eo pipefail,
three render scenarios (zh + gate-rejection / no zh / committed-not-pushed)