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(person): record the signed-person moves in the registry [C7,H16]
Corey Olson0937a073b293
diff --git a/src/relay-outbox.js b/src/relay-outbox.jsindex 1649dbe4..d4723f26 100644--- a/src/relay-outbox.js+++ b/src/relay-outbox.js@@ -165,7 +165,7 @@ export const ITEM_SLOTS = Object.freeze({recordRowDecisions: [], applyRowDecisions: [], draftSpecRow: [], recordSpecApprovalBaseline: [],recordLandingBatch: [], recordLandingWaiver: [], recordLandingFlake: [], recordLandingTestDefect: [], finishLandingBatch: [],recordHealthFindings: [], decideSentinel: [], beginSentinelRun: [], finishSentinelRun: [],- recordFlakeObservation: [], recordGateRun: [], declareJob: [], recordJobRun: [], takeCoordinator: [], landingLeaseMove: [], setPersonSigning: [], proposePersonMove: [],+ recordFlakeObservation: [], recordGateRun: [], declareJob: [], recordJobRun: [], takeCoordinator: [], openHandoff: [], landingLeaseMove: [], setPersonSigning: [], proposePersonMove: [],...Object.fromEntries(FIRST_ITEM.map((operation) => [operation, [[0]]])),intakeOutside: [[0, 'item', 'parentId'], [0, 'item', 'after', '*']],addItem: [[0, 'parentId'], [0, 'after', '*']],@@ -177,6 +177,7 @@ export const ITEM_SLOTS = Object.freeze({addMilestone: [[0, 'items', '*']],editMilestoneItems: [[1, 'add', '*'], [1, 'remove', '*']],orderMilestoneItems: [[1, 'items', '*']],+ takeHandoff: [[0, 'item']],proposeSentinel: [[0, 'evidence', 'items', '*', 'id']],});diff --git a/test/machine.test.js b/test/machine.test.jsindex f784f378..4834bb8c 100644--- a/test/machine.test.js+++ b/test/machine.test.js@@ -105,7 +105,7 @@ const NOT_MOVES = {CHECKOUT_BUSY: 'a hook gives up waiting for a checkout another command holds, before any item move',UNMERGED_SCHEMA: 'shared-board schema compatibility checked before a command opens the database',PERSON_SIGNED: 'a person-only move on a board that signs person moves needs a passkey; no item move is person-only',- PERSON_SIGNING_CORRUPT: 'the signing policy record is read before ordering any move; it is no item lifecycle rule',+ PERSON_SIGNING_CORRUPT: 'the stored relay key is read when a command fetches the relay\'s authority, before any move; it is no item lifecycle rule',};/**@@ -129,6 +129,8 @@ const NON_MOVE_ENTRY_POINTS = ['cli.js#refuseRemoteCoordinatorModel',// Child-process commands may be serialized into scripts, so audit this exported setup guard directly.'resources.js#gateSlotEnvironment',+ // Before a person command, the relay's authority is read and compared with the board's stored key (#408).+ 'person-signing-cli.js#pinRelayAuthority',];/** Board functions handed a function to call, and the one the CLI and the runner hand them. */@@ -163,6 +165,8 @@ const CAUGHT = {// Only an unsupported historical grammar is ignored; new caller refusals remain audited below.'rigor-auto-source.js#automaticDecisionSource': ['spec.js#parseSpec'],'rigor-auto-source.js#rigorDecisionKey': ['spec.js#parseSpec'],+ // A passkey row proof is a non-throwing boundary: an answer it cannot rebuild makes the proof false (#408).+ 'person-row-proof.js#signedRowDecisionsMatch': ['blueprints.js#answerQuestion'],};/**diff --git a/test/move-registry-baseline.json b/test/move-registry-baseline.jsonindex 29ae5911..48de28f7 100644--- a/test/move-registry-baseline.json+++ b/test/move-registry-baseline.json@@ -62,7 +62,9 @@"recordJobRun","takeCoordinator","landingLeaseMove",- "recordPublishFinding"+ "recordPublishFinding",+ "proposePersonMove",+ "setPersonSigning"],"itemIdFirstArgument": ["signBar",@@ -631,6 +633,22 @@null,null,null+ ],+ "proposePersonMove": [+ null,+ "first",+ null,+ null,+ null,+ null+ ],+ "setPersonSigning": [+ null,+ "first",+ null,+ null,+ null,+ null]},"floorCases": [@@ -6947,7 +6965,18 @@"VIEW_SIGN_IN_UNKNOWN": "start sign-in again with pullboard view","WITHDRAWN": "wait on an item that is not withdrawn; see pullboard list --all","WRONG_BOARD": "open the repository registered to this board and confirm its identity with pullboard status",- "WRONG_LANE": "create a worktree in the required lane with pullboard worktree <lane> --model \"<model name>\", or take an item in your lane with pullboard next"+ "WRONG_LANE": "create a worktree in the required lane with pullboard worktree <lane> --model \"<model name>\", or take an item in your lane with pullboard next",+ "PASSKEY_ASSERTION": "confirm the move again on your passkey from the relay view",+ "PASSKEY_PRESENCE": "confirm the move again with Face ID, Touch ID or a key touch",+ "PASSKEY_REGISTRATION": "add the passkey again from the relay view on this phone or browser",+ "PASSKEY_REQUIRED": "add a passkey in the relay view on your phone or browser, then confirm the move",+ "PERSON_AUTHORITY": "upgrade the relay so it publishes its passkey stamp key, then retry",+ "PERSON_AUTHORITY_CHANGED": "check which relay this board belongs to; link it to the relay it pinned",+ "PERSON_PROPOSAL": "start the person move from a terminal seat, then confirm it with your passkey",+ "PERSON_SIGNED": "confirm it with your passkey in the relay view; pair a phone or browser first with pullboard relay on --all",+ "PERSON_SIGNER_REQUIRED": "decide the other rows with your passkey; a row that names SSH signers waits until signing is off",+ "PERSON_SIGNING_CORRUPT": "restore the board from a known-good export",+ "PERSON_SIGNING_ERASED": "restore a known-good board that keeps its signing history"},"replay": {"initial": {diff --git a/test/move-registry.test.js b/test/move-registry.test.jsindex ac717615..6f55adf6 100644--- a/test/move-registry.test.js+++ b/test/move-registry.test.js@@ -16,6 +16,7 @@ import { applyEngineMove, ENGINE_OPERATIONS } from '../src/engine.js';import { relayMoveActor } from '../src/relay-sender.js';import { NEXT_STEPS } from '../src/next-step-words.js';import { REGISTRY_AT } from './move-registry-fixture.js';+import { ENGINE_VERSION } from '../src/machine.js';const SNAPSHOT = JSON.parse(readFileSync(new URL('./move-registry-baseline.json', import.meta.url), 'utf8'));const CONSUMERS = ['src/engine.js', 'src/relay-sender.js', 'src/next-step-words.js'];@@ -59,7 +60,10 @@ test('today\'s move order, actors, recovery text and recorded SQLite prefix areassert.deepEqual(applyEngineMove(board, move, options), outcome, move.operation);assert.deepEqual(applyEngineMove(board, move, options), outcome, 'same-position retry returns its immutable receipt');}- assert.equal(JSON.stringify(exportBoard(board)), JSON.stringify(SNAPSHOT.replay.acceptedExpected), 'items, events, receipts and replay cursor retain accepted-main bytes for the exact historical moves');+ // A branch with an unlanded engine leaf replays one engine higher until the landing numbers it; every other byte is exact.+ const acceptedBytes = JSON.stringify(SNAPSHOT.replay.acceptedExpected)+ .replace(/(\{"meta_key":"relay_engine_version","meta_value":")\d+("\})/u, `$1${ENGINE_VERSION}$2`);+ assert.equal(JSON.stringify(exportBoard(board)), acceptedBytes, 'items, events, receipts and replay cursor retain accepted-main bytes for the exact historical moves');});test('two new board moves declared in two files need no edit to engine.js, relay-sender.js or next-step-words.js [C7,V4,H3,H16]', t => {