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.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(relay): require ephemeral baseline acknowledgment [H21,H16]
Corey Olson55733f8b7351
diff --git a/src/relay.js b/src/relay.jsindex 16b33d0b..49050f5a 100644--- a/src/relay.js+++ b/src/relay.js@@ -1088,17 +1088,19 @@ export async function relayOperation(root, operation, args, io, command, applyLomoves.add(state.board);let requestedMove;try {+ const requiresAcknowledgment = process.env.PULLBOARD_RELAY_TOKEN !== undefined || state.environment || io.relayCanary;let ordered;const queue = guarded.queue;try { ordered = await ensureOrdered(root, file, state, io); }catch (error) {if (outboxQueueable(state, error, operation, io, args)) return await queue(error);- // #341: a baseline the relay has not accepted never blocks a move; the move rides in the later baseline.- if (!baselineNotAccepted(state) || !transientRelayFailure(error)) throw error;+ // #341/#919 retain persistent local moves; ephemeral sessions and canaries always require acknowledgment.+ if (requiresAcknowledgment || !baselineNotAccepted(state) || !transientRelayFailure(error)) throw error;keepMoveForLaterBaseline(file, state, error, io);ordered = false;}if (!ordered) {+ if (requiresAcknowledgment) throw new Refused('RELAY_UNAVAILABLE', 'this session requires a relay acknowledgment; retry the move when the relay accepts the board baseline');if (state.baselinePause) reportBaselinePause(state, io);return applyPausedMoveLocally();}