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): name the item in refused reopen moves [H16]
Corey Olson5cf4a8dfb003
diff --git a/src/engine.js b/src/engine.jsindex 3928d5b9..504eb130 100644--- a/src/engine.js+++ b/src/engine.js@@ -7,7 +7,7 @@ import { Refused } from './refused.js';import { requestMoveProblem, recordRequestMove } from './relay-requests.js';import { relayMoveActor, relaySenderProblem, validRelaySender } from './relay-sender.js';-const ITEM_ID_FIRST_ARGUMENT = new Set(['editItem', 'escalate', 'recordAttempt', 'claim', 'release', 'submit', 'reserveReview', 'verify', 'merged', 'withdraw', 'refreeze', 'appendFact']);+const ITEM_ID_FIRST_ARGUMENT = new Set(['editItem', 'escalate', 'recordAttempt', 'claim', 'release', 'submit', 'reserveReview', 'verify', 'merged', 'withdraw', 'refreeze', 'reopen', 'appendFact']);/** Only these public board operations may be requested by an encrypted move. */export const ENGINE_OPERATIONS = Object.freeze([diff --git a/test/reopen.test.js b/test/reopen.test.jsindex 85a4a04e..6b8e5e37 100644--- a/test/reopen.test.js+++ b/test/reopen.test.js@@ -158,6 +158,17 @@ test('a reopened item resubmits at a new head after a criterion edit [V2,V6,H16]assert.equal(JSON.parse(store.events(replica).at(-1).event_detail).judgment, null);assert.equal(appliedSequence(replica), 1);assert.equal(engineReceipt(replica, move.id).sequence, 1);+ const forged = { ...move, id: 'forged-reopen' };+ const refusal = applyRelayMove(replica, forged, {+ sequence: 2, at: '2026-10-10T12:00:01.000Z', kind: 'move',+ sender: { kind: 'agent', userId: 'fixture-user', agent: 'web-1' },+ });+ assert.equal(refusal.error.code, 'RELAY_SENDER_MISMATCH');+ const refusedEvent = store.events(replica, { itemId: 1 }).at(-1);+ assert.equal(refusedEvent.event_kind, 'relay_refused', 'a forged reopen is visible in the item history');+ assert.equal(refusedEvent.item_id, 1);+ assert.equal(refusedEvent.event_by, 'web-1');+ assert.equal(appliedSequence(replica), 2);}const reopened = box.run(box.repo, 'reopen', '1', '--note', 'correct the frozen criterion');