The AutoClaw plugin answers 406 when a chat's system prompt carries
another agent's identity line it doesn't rewrite ("AutoClaw refuses
chats whose system prompt carries another agent's identity line …, so
an unknown one needs another provider in this group"). retryable only
read refusedWords at 400 and 422, so holdWriter.failed() was false for
the 406, the try never reached the promptRefused branch, and the group
stopped at AutoClaw while its other members, taking the same prompt,
were never asked.
refusedWords now also matches AutoClaw's own words, and retryable
counts a refusal at any 4xx. Like WorkBuddy's 400, the refusing account
isn't rested and its mates are asked last.
Run:
- wsl-run go test ./internal/gateway -run
'PromptRefus|Restricted|Refus|TokenWall|Volcengine|Decide|Retryable':
ok. TestPromptRefusalRestsNobody is now table-driven, with AutoClaw's
406 body in a "next answers" case and a "nobody left" case.
- Broken by hand: with the new retryable case removed, both AutoClaw
subtests go red ("tried [acct-1]"); restored, green.
- gofmt -l: clean.
Not tried: a real AutoClaw account. The plugin side, rewriting ZCode's
subagent line, is autoclaw 0.2.23 (plugins f053e327).
Reported-by: aynauynij