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
test(relay): cover signing moves in complete parity oracle [E22,H16]
Corey Olsondb9c573c714f
diff --git a/test/relay-parity-extra-seeds.js b/test/relay-parity-extra-seeds.jsindex 70784b8d..e3cb9f2a 100644--- a/test/relay-parity-extra-seeds.js+++ b/test/relay-parity-extra-seeds.js@@ -9,6 +9,7 @@ import { barReadiness } from '../src/bar-readiness.js';import { revisionReference } from '../src/spec-revisions.js';import { receiptBody } from '../src/gate-run-receipt.js';import { requireHandoffActive } from '../src/handoff-state.js';+import { preparePersonRequest } from '../src/person-request.js';/** Outside metadata is synthetic fixture input; these calls make no GitHub or owner-authentication assurance claim. */export async function seedOutside(context) {@@ -160,3 +161,16 @@ export async function seedCurrentOperations(context) {lane: box.lane === 'tests' ? 'core' : 'tests', key: 'reader-parity', title: 'Projection companion',criterion: 'A real cross-lane child remains visible in both readers', brief: 'Synthetic private board child; no real work requested.' }));}++/** New signing mutations are projection inputs, never proof of passkey authority or presence [E22,H16]. */+export async function seedPersonSigning(context) {+ const { board, store, exercise, agent } = context;+ await exercise('setPersonSigning', () => store.setPersonSigning(board, { agentId: agent, signed: true }));+ assert.equal(store.personSigning(board).signed, true, 'the actual native signing event enables the device projection');+ const request = preparePersonRequest({ verb: 'signing', args: { signed: 'off' } }, randomUUID());+ await exercise('proposePersonMove', () => store.proposePersonMove(board, { agentId: agent, request }));+ const proposal = store.personProposals(board).find(entry => entry.id === request.id);+ assert.ok(proposal, 'the native proposal retains its exact request identity');+ assert.deepEqual(proposal.move, request.move, 'the device projection carries the exact proposed intent');+ assert.equal(store.personSigning(board).signed, true, 'a proposal grants no authority to turn signing off');+}diff --git a/test/relay-parity-operations.js b/test/relay-parity-operations.jsindex 979edd41..ddff65d3 100644--- a/test/relay-parity-operations.js+++ b/test/relay-parity-operations.js@@ -12,7 +12,7 @@ import { decodeBoardKey } from '../src/seal.js';import { createParityReader, assertReaderParity } from './relay-parity-reader.js';import { createStudyExercise, seedStudyState, seedHandoff } from './relay-parity-seeds.js';import { submitFixture } from './board-submit-fixture.js';-import { seedOutside, seedLandingObservations, seedMembership, seedAdministrative, seedBatch, seedCoordinatorAuthority, seedSpecOutcomes, seedBarSignature, seedCurrentOperations } from './relay-parity-extra-seeds.js';+import { seedOutside, seedLandingObservations, seedMembership, seedAdministrative, seedBatch, seedCoordinatorAuthority, seedSpecOutcomes, seedBarSignature, seedCurrentOperations, seedPersonSigning } from './relay-parity-extra-seeds.js';import { syntheticFlakeObservation } from './flake-observation-fixture.js';/** Run inside the existing private fixture's genuine environment, retaining one HTTP server and person session. */@@ -57,6 +57,7 @@ export async function exerciseOperationParity({ root, origin, token, boardId, laawait seedBarSignature(context);await seedCoordinatorAuthority(context);await seedHandoff(context);+ await seedPersonSigning(context);const missing = tracking.missing(MOVE_OPERATIONS);assert.deepEqual(missing, [], `every declared native operation must pass the complete oracle; setup refusals=${JSON.stringify(tracking.setupRefusals)}`);return { covered: [...tracking.covered].sort(), declared: [...MOVE_OPERATIONS].sort() };