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: reproduce missing person-given computer labels
Corey Olson00601b5cceb5
diff --git a/test/relay-client-fixture.js b/test/relay-client-fixture.jsindex bac7af33..608adb0f 100644--- a/test/relay-client-fixture.js+++ b/test/relay-client-fixture.js@@ -701,8 +701,8 @@ globalThis.fetch = function tracedFetch(input, init) {const keyFile = join(env.PULLBOARD_HOME, 'relay-keys', id + '.key');/** Start a saved real relay link without exposing the pairing fragment. */- async function link() {- const result = await cli('relay', 'on', '--url', origin);+ async function link(name) {+ const result = await cli('relay', 'on', '--url', origin, ...(name === undefined ? [] : ['--name', name]));assert.equal(result.code, 0, 'real device sign-in links the board');privateKeys.add(readFileSync(keyFile, 'utf8').trim());return result;@@ -732,7 +732,7 @@ globalThis.fetch = function tracedFetch(input, init) {return (await run('relay', 'off')).code;}/** Clone the same committed project into a separate repository/home, then join through a printed code. */- async function otherDeviceJoin(code) {+ async function otherDeviceJoin(code, name) {const bare = join(scratch, 'project.git');const otherRoot = join(scratch, 'paired-clone');const otherHome = join(scratch, 'paired-home');@@ -745,7 +745,7 @@ globalThis.fetch = function tracedFetch(input, init) {const initEnv = { ...otherEnv };delete initEnv.PULLBOARD_MODEL; // Pairing imports the source coordinator's declaration.assert.equal((await childResult(otherRoot, initEnv, [CLI, 'init', '--json'])).code, 0, 'the cloned project initializes its private local board');- const joined = await run('relay', 'join', code, '--url', origin);+ const joined = await run('relay', 'join', code, '--url', origin, ...(name === undefined ? [] : ['--name', name]));const document = joined.document;if (joined.code !== 0) throw new Error('real clone did not join the one-use pairing code');const exported = await run('export');diff --git a/test/relay-computer-name.test.js b/test/relay-computer-name.test.jsnew file mode 100644index 00000000..47e9c582--- /dev/null+++ b/test/relay-computer-name.test.js@@ -0,0 +1,33 @@+/** Person-given computer names remain display data, never coordinator authority [E19,H16]. */+import assert from 'node:assert/strict';+import { hostname } from 'node:os';+import { test } from 'node:test';+import { relayClientFixture } from './relay-client-fixture.js';+import { relayWorkBudgetMs } from './relay-budget.js';++test('linked computers use person-given names in coordinator holds and devices [E19,H16]', { timeout: relayWorkBudgetMs(12) }, async t => { // budget: real two-device CLI sign-in, pairing, takeover and cleanup; no speed target.+ const box = await relayClientFixture(t);+ await box.link('Writing desk');+ const pairing = await box.cli('relay', 'pair');+ const other = await box.otherDeviceJoin(pairing.document.code, 'Travel laptop');+ assert.equal((await box.cli('add', box.lane, 'First named coordinator')).code, 0);+ const denied = await other.cli('add', box.lane, 'Other coordinator is refused');+ assert.equal(denied.document?.error?.code, 'COORDINATOR_HELD');+ assert.match(denied.document.error.message, /Writing desk/u);+ const taken = await other.cli('takeover');+ assert.equal(taken.code, 0);+ assert.equal(taken.document.coordinator, 'Travel laptop');+ assert.equal(taken.document.previous, 'Writing desk');+ const first = await box.cli('add', box.lane, 'Former coordinator is refused');+ assert.equal(first.document?.error?.code, 'COORDINATOR_HELD');+ assert.match(first.document.error.message, /Travel laptop/u);+ for (const [device, expected] of [[box, 'Travel laptop'], [other, 'Writing desk']]) {+ const roster = await device.cli('relay', 'devices');+ assert.equal(roster.code, 0);+ assert.ok(JSON.stringify(roster.document).includes(expected), 'device roster retains the explicit name');+ for (const privateText of [hostname(), box.root, other.root]) {+ assert.equal(JSON.stringify(roster.document).includes(privateText), false, 'roster does not disclose host or path');+ assert.equal(first.document.error.message.includes(privateText), false, 'refusal does not disclose host or path');+ }+ }+});