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): keep the relay module within its line budget [E20]

Corey Olsona2870ca2b998
diff --git a/src/relay.js b/src/relay.js
index b82634b0..c46aa00f 100644
--- a/src/relay.js
+++ b/src/relay.js
@@ -856,8 +856,7 @@ async function replayRelayRecord(board, key, state, record) {
if (record.kind === 'request') return receivePersonRequest(board, move, { sequence: record.event_id, at: record.event_at, sender: record.sender });
return applyRelayMove(board, move, { sequence: record.event_id, at: record.event_at, sender: record.sender, kind: record.kind,
digest: createHash('sha256').update(record.sealed).digest('hex'), registration: record.registration });
- } catch (error) {
- // A seal no key opens, sent by an engine no newer than this one, is junk: set aside, never a reason to stop [E20].
+ } catch (error) { // A seal no key opens, from an engine no newer than this one, is junk: set aside, never a stop [E20].
if (!(error instanceof Refused) || !(['RELAY_MOVE', 'RELAY_RESPONSE', 'SEAL_FORMAT', 'SEAL_AUTH_FAILED'].includes(error.code) || error.code === 'SEAL_VERSION' && record.sender?.engine <= ENGINE_VERSION)) throw error;
return refuseRelayMove(board, move, { sequence: record.event_id, at: record.event_at, sender: record.sender, kind: record.kind, code: ['SEAL_AUTH_FAILED', 'SEAL_VERSION'].includes(error.code) ? 'RELAY_SEAL' : error.code,
digest: createHash('sha256').update(String(record.sealed)).digest('hex'),