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: make submitted commit reachable to verifier [H16]
Corey Olsonee2db847be39
diff --git a/test/relay-client-replica-fixture.js b/test/relay-client-replica-fixture.jsindex 576e0bc6..95ca1aa6 100644--- a/test/relay-client-replica-fixture.js+++ b/test/relay-client-replica-fixture.js@@ -29,6 +29,13 @@ export async function relayUploadSummary(uploads, key, boardId) {}));}+/** Make a submitted commit locally verifiable by the other replica's real Git history. */+export function mergeCandidateForReview(root, env, sourceRoot, commit, gitAt) {+ gitAt(root, env, 'fetch', sourceRoot, commit);+ gitAt(root, env, 'merge', '--no-ff', '-m', 'test: make submitted commit available to verifier [G1]', 'FETCH_HEAD');+ gitAt(root, env, 'merge-base', '--is-ancestor', commit, 'HEAD');+}+/** Replay a fixture clone's real outbox through the production sync path without another CLI process. */export async function syncReplica(root, env) {const keys = ['HOME', 'USERPROFILE', 'PULLBOARD_HOME', 'PULLBOARD_RELAY_TOKEN', 'PULLBOARD_RELAY_SENDER_BACKGROUND',diff --git a/test/relay-client.test.js b/test/relay-client.test.jsindex 7032824b..d20096fa 100644--- a/test/relay-client.test.js+++ b/test/relay-client.test.js@@ -31,7 +31,7 @@ import { captureSpecApprovalBaseline } from '../src/spec-approval.js';import { AGENT_SHELL_MARKERS, SSH_SHELL_MARKERS } from '../src/person.js';import { legacyMirrorQueueFragment } from './relay-client-legacy-case.js';import { assertBaselineResumeEvidence, assertOriginalBaselineEvidence } from './relay-client-baseline-case.js';-import { localEvents, receipts, relayUploadSummary, syncReplica } from './relay-client-replica-fixture.js';+import { localEvents, mergeCandidateForReview, receipts, relayUploadSummary, syncReplica } from './relay-client-replica-fixture.js';import { assertDroppedReplyConsumed, commitInitializedRepoFiles, enterLegacyAckPolicy } from './relay-client-policy-fixture.js';import { threeReplicaPhaseCapture } from './relay-client-timing.js';@@ -1145,11 +1145,12 @@ async function recoverReplicaReplies(fixture, timing) {assert.equal(gitAt(worktrees[0], envs[0], 'rev-parse', retriedSubmit.pin), originalCommit);gitAt(worktrees[0], envs[0], 'restore', 'web/README.md');+ mergeCandidateForReview(worktrees[1], envs[1], worktrees[0], originalCommit, gitAt);relay.dropNextReply({ offline: true, operation: 'verify', item: 2, key, boardId });const lostVerify = await timing.wait('verify item 2 with its acknowledgement dropped', () => cliResult(worktrees[1], envs[1], 'verify', '2', 'accept', '--note', 'Lost verdict acknowledgement'));- assertDroppedReplyConsumed(relay, 'the lost item-2 verification reply');assert.equal(lostVerify.status, 1);assert.equal(lostVerify.document.error.code, 'RELAY_UNAVAILABLE');+ assertDroppedReplyConsumed(relay, 'the lost item-2 verification reply');relay.failReads(false);await timing.wait('sync clone B after the lost verdict acknowledgement', () => cli(clones[1], envs[1], 'status'));const beforeVerifyRetry = relay.uploads.length;