Skip to content

Commit dddbd78

Browse files
committed
file: ultraworkers#152 — diagnostic verb suffixes allow arbitrary positional args, double error prefix
Filed from nudge directive at 21:17 KST. Implementation exists on worktree `jobdori-127-verb-suffix` but needs rebase due to merge with ultraworkers#141. Ready for Phase 1 implementation once conflicts resolved.
1 parent 7bc66e8 commit dddbd78

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

ROADMAP.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5885,3 +5885,23 @@ pub fn from_cwd(cwd: impl AsRef<Path>) -> Result<Self, SessionControlError> {
58855885
**Blocker.** None.
58865886

58875887
**Source.** Q's ack on #150 surfaced the deeper gap: "#150 closed is real value" but the product function still has the brittleness. Session tally: ROADMAP #151.
5888+
5889+
## Pinpoint #152. Diagnostic verb suffixes allow arbitrary positional args, emit double "error:" prefix
5890+
5891+
**Gap.** Verbs like `claw doctor garbage` and `claw status foo bar` parse successfully instead of failing at parse time. The positional arguments fall through to the prompt-execution path, or in some cases the verb parser doesn't have a flag-only guard. Additionally, the error formatter doubles the "error:" prefix and doesn't hint at `--output-format json` for verbs that don't recognize `--json` as an alias.
5892+
5893+
**Example failures:**
5894+
- `claw doctor garbage` → silently treats "garbage" as a prompt instead of rejecting "doctor" as a verb with unexpected args
5895+
- `claw system-prompt --json` → errors with "error: unknown option" but doesn't suggest `--output-format json`
5896+
- Error messages show `error: error: <message>` (double prefix)
5897+
5898+
**Fix shape (~30 lines).** Three improvements:
5899+
1. Wire parse_verb_suffix to reject positional args after verbs (except multi-word prompts like "help me debug")
5900+
2. Special-case `--json` in the verb-option error path to suggest `--output-format json`
5901+
3. Remove the "error:" prefix from format_unknown_verb_option (already added by top-level handler)
5902+
5903+
**Acceptance:** `claw doctor garbage` exits 1 with "unexpected positional argument"; `claw system-prompt --json` hints at `--output-format json`; error messages have single "error:" prefix.
5904+
5905+
**Blocker.** None. Implementation exists on worktree `jobdori-127-verb-suffix` but needs rebase against main (conflicts with #141 which already shipped).
5906+
5907+
**Source.** Clawhip nudge 2026-04-21 21:17 KST — "no excuses, always find something to ship" directive. Session tally: ROADMAP #152.

0 commit comments

Comments
 (0)