mirror of
https://github.com/EveryInc/compound-engineering-plugin.git
synced 2026-10-03 20:57:31 +02:00
Codex review flagged that the mutate() helper retried 3 codes while the skill text listed 6 as safe-to-retry. Two of those codes (ANCHOR_NOT_FOUND, ANCHOR_AMBIGUOUS) aren't actually blindly-retryable: they mean the quote no longer matches content, so re-reading state doesn't help. The caller has to tighten the anchor. Split the pre-commit bucket: - Token-related (STALE_BASE, BASE_TOKEN_REQUIRED, MISSING_BASE, INVALID_BASE_TOKEN) — same payload + fresh baseToken, helper auto-retries - Anchor-related (ANCHOR_NOT_FOUND, ANCHOR_AMBIGUOUS) — caller must regenerate the quote; helper surfaces the error Expanded the helper to handle all 4 token-related codes. Previous version missed INVALID_BASE_TOKEN.