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(relay): require real acknowledgment for canary moves [H21,H16]

Corey Olson2b7e2d4b98c7
diff --git a/src/relay-outbox.js b/src/relay-outbox.js
index 25b45ebf..97c98c9d 100644
--- a/src/relay-outbox.js
+++ b/src/relay-outbox.js
@@ -317,7 +317,7 @@ function outboxEnabled(io) {
*/
export function outboxQueueable(state, error, operation, io, args = []) {
return state.mode === 'ordered' && state.baselineAccepted === true && !state.baselineConflict && !state.environment
- && process.env.PULLBOARD_RELAY_TOKEN === undefined && !io?.personRequest && !io?.personRequestMoveId
+ && process.env.PULLBOARD_RELAY_TOKEN === undefined && !io?.relayCanary && !io?.personRequest && !io?.personRequestMoveId
&& !['register', 'ensureCoordinator', 'takeCoordinator', 'landingLeaseMove'].includes(operation)
&& !args.some(arg => arg?.landingFence !== undefined) && transientRelayFailure(error) && outboxEnabled(io);
}
diff --git a/src/relay.js b/src/relay.js
index 16b33d0b..df64611c 100644
--- a/src/relay.js
+++ b/src/relay.js
@@ -1039,7 +1039,7 @@ function localFirstLink(file, operation, args, io) {
try { state = loadLink(file); } catch { return null; }
if (!state || state.unlinking || state.recovery || state.mode !== 'ordered' || state.baselineAccepted !== true
|| state.baselineConflict || state.baselinePause || state.baselineStale || state.environment) return null;
- if (process.env.PULLBOARD_RELAY_TOKEN !== undefined || io?.personRequest || io?.personRequestMoveId) return null;
+ if (process.env.PULLBOARD_RELAY_TOKEN !== undefined || io?.relayCanary || io?.personRequest || io?.personRequestMoveId) return null;
// A takeover needs the relay's authenticated sign-in lineage, which only the relay's order carries.
if (['register', 'ensureCoordinator', 'takeCoordinator', 'landingLeaseMove'].includes(operation) || args?.[0]?.landingFence !== undefined) return null;
if (credentialActor({ operation, args }) === 'person') return null;