Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

fix: keep actionable non-retry relay responses [C6,N26]

Corey Olsonba929625f4a4
diff --git a/src/recorded-move.js b/src/recorded-move.js
index 230d2158..36fea3e2 100644
--- a/src/recorded-move.js
+++ b/src/recorded-move.js
@@ -13,7 +13,8 @@ export function recordedMoveRefusal(io, error) {
if (!io.recordedMove || !(error instanceof Refused) || !/^(?:RELAY_|AUTH_|TOKEN_)/u.test(error.code)) return error;
const recorded = 'a move from this command was already recorded; any pending relay work remains queued locally; do not repeat the original command';
const next = 'run pullboard status to inspect the recorded work and pending relay sync; do not repeat the original command';
- if (['RELAY_BUSY', 'RELAY_UNAVAILABLE', 'RELAY_RESPONSE'].includes(error.code)) return new Refused(error.code, recorded, next);
+ const unsafeRetry = /\b(?:run|retry|repeat) (?:the |this |original )?(?:command|move)(?: again)?\b/iu.test(error.message + ' ' + (error.next ?? ''));
+ if (['RELAY_BUSY', 'RELAY_UNAVAILABLE', 'RELAY_RESPONSE'].includes(error.code) && unsafeRetry) return new Refused(error.code, recorded, next);
return new Refused(error.code, recordedRecovery(error.message.replace(/^\[[A-Z0-9_]+\] /u, '')) + '; ' + recorded,
recordedRecovery(error.next) ?? next);
}