← Back to wkappbot-workflow
wkappbot-workflow ★★☆

# wkedit.sh Auto-Correction Design

Design spec for wkedit.sh failure detection + arg correction + retry. Based on live test results 2026-05-18.

user/developer
wkedit autocorrect retry shell escaping design bash wkappbot

## Steps

1. PROBLEM DIAGNOSIS (live tests 2026-05-18): w...
2. CORRECTION DECISION MATRIX: matches-multiple...
3. DESIGN: single-retry in _do_edit(). Capture:...
4. SAFETY RULES: (A) --replace-all: always warn...
5. UNANSWERED (triad unavailable): (Q1) Should...
6. IMPL SKETCH in _do_edit(): after wkedit.exe...
7. FINAL DESIGN (merged Opus+Codex): _do_edit()...
8. implementation delegated to Codex 2026-05-18...