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(core): distinguish private export lock waiting [A7,C7]
Corey Olsonab6df103a467
diff --git a/test/export-lock-diagnostic.test.js b/test/export-lock-diagnostic.test.jsnew file mode 100644index 00000000..eacce09e--- /dev/null+++ b/test/export-lock-diagnostic.test.js@@ -0,0 +1,28 @@+/** Temporary private live-lock diagnostic for #1181; not a product acceptance contract [A7,H16,C7]. */+import assert from 'node:assert/strict';+import { test } from 'node:test';+import { locked } from '../src/relay-lock.js';+import { legacyRelayClientFixture } from './relay-client-fixture.js';++test('private export diagnostic distinguishes a live relay lock from local export work [A7,H16,C7]', async t => {+ const box = await legacyRelayClientFixture(t);+ await box.link();+ let acquired;+ let release;+ const ready = new Promise(resolve => { acquired = resolve; });+ const released = new Promise(resolve => { release = resolve; });+ const holder = locked(box.linkFile, async () => {+ t.diagnostic('private relay lock acquired by diagnostic process ' + process.pid);+ acquired();+ await released;+ });+ await ready;+ try {+ const result = await box.cliWithSnapshotUploads(0, 'export');+ assert.equal(result.code, 0, 'a local export should complete while the independent private relay sender is held');+ } finally {+ release();+ await holder;+ t.diagnostic('private relay lock released');+ }+});