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
feat(init): agents help the person open and share the board [H5,H17]
Corey Olsonfdf700b343e7
diff --git a/src/templates.js b/src/templates.jsindex c6c970c6..fd3bc901 100644--- a/src/templates.js+++ b/src/templates.js@@ -135,6 +135,14 @@ If your item needs code another lane owns and it is not there yet, shout that la**Talk.** \`pullboard shout <lane|agent|all> "<text>"\`. Read \`pullboard inbox\` before you start and after you submit. An MCP client can do the same as your agent: add \`pullboard mcp\`, run from your worktree, as a stdio server; it reads the board, shows an item, shouts and captures ideas for the coordinator, and never makes a person's move.**Never.** Bypass a hook with \`--no-verify\`, or get past a refusal with filler text: fix what it names. Edit the board's database. Verify your own work. Change an approved spec row without the person's OK. Delete or renumber a spec row. Act from the main checkout; it is the coordinator's. Count a yes relayed by another agent as the person's approval.++## Helping the person++When the person asks for help with Pullboard, such as "Help me open my Pullboard board" or "Help me share my boards with my phone", work out the technical side yourself: read \`pullboard status\`, check whether \`pullboard view\` is running, read \`pullboard relay\` for the link, and follow the next step in any refusal. Then say what is going on in plain words and walk the person through each step they must take, one at a time: give one step, wait for them to say what they see, then give the next.++**Opening their board.** Start \`pullboard view\` yourself; it opens the board on this computer and prints its link. On app.pullboard.dev the browser may ask to let the page reach apps on this device: tell the person to click Allow, so the page can read the board running here. If they clicked Block, walk them through turning it back on: click the icon at the left of the address bar, open Site settings for app.pullboard.dev, set the access to apps on this device to Allow, then reload the page.++**Sharing with the phone or another computer.** Have the person type \`pullboard relay on --all\` themselves in their own terminal: it signs in as them, so Pullboard refuses it from an agent. Tell them what they will see: a GitHub address and a code to enter there, one \`linked:\` line for each board, then a QR code. To sign in on the phone, the person scans that QR code, taps Sign in with GitHub and approves Pullboard; their boards then appear on the phone. For another computer, the person runs \`pullboard relay pair\` in a board here and types \`pullboard relay join <code>\` on the other computer. Then confirm the boards arrived: run \`pullboard relay\` in each board to see its link, and \`pullboard relay devices\` to see the paired phone.${AGENTS_END}`;}diff --git a/test/init-ignore.test.js b/test/init-ignore.test.jsindex 5384fd48..cc9791fe 100644--- a/test/init-ignore.test.js+++ b/test/init-ignore.test.js@@ -60,6 +60,45 @@ test('a fresh init tells the person and the agent how to start [I9,I1]', t => {assert.doesNotMatch(section, /\b(?:spec|lanes|gates)\b/iu, 'the first setup guidance uses plain words');});+/** Run init on a fresh repo and return the "Helping the person" section of the AGENTS.md it wrote. */+function helpSection(t) {+ const box = fixture(t);+ rmSync(join(box.root, 'pullboard.json'));+ const initialized = box.output('init');+ assert.equal(initialized.code, 0, initialized.stderr);+ const agents = readFileSync(join(box.root, 'AGENTS.md'), 'utf8');+ const start = agents.indexOf('## Helping the person\n');+ assert.ok(start >= 0, 'AGENTS.md has a "Helping the person" section after init');+ const end = agents.indexOf('\n## ', start + 1);+ return agents.slice(start, end < 0 ? agents.indexOf('<!-- pullboard:end -->') : end);+}++test('init tells agents how to help the person open their board [H5,H17]', t => {+ const section = helpSection(t);+ assert.match(section, /work out the technical side yourself: read `pullboard status`, check whether `pullboard view` is running, read `pullboard relay` for the link, and follow the next step in any refusal/u,+ 'the agent reads status, the view, the relay and the refusal itself');+ assert.match(section, /say what is going on in plain words and walk the person through each step they must take, one at a time/u, 'the agent explains plainly, one step at a time');+ assert.match(section, /Start `pullboard view` yourself/u, 'the agent starts the view itself');+ assert.match(section, /tell the person to click Allow/u, 'the agent explains the browser Allow prompt');+ assert.match(section, /If they clicked Block, walk them through turning it back on: .*Site settings for app\.pullboard\.dev, set the access to apps on this device to Allow, then reload the page/u,+ 'the agent knows how to turn access back on after Block');+ assert.match(section, /To sign in on the phone, the person scans that QR code, taps Sign in with GitHub and approves Pullboard/u, 'the agent helps with the phone sign-in');+ assert.match(section, /Have the person type `pullboard relay on --all` themselves in their own terminal: it signs in as them, so Pullboard refuses it from an agent/u,+ 'the person types relay on, because agents are refused it');+ assert.match(section, /Then confirm the boards arrived: run `pullboard relay` in each board .* and `pullboard relay devices` to see the paired phone/u, 'the agent confirms the boards arrived');+});++test('the help section never tells an agent to run relay on itself [H5,H17,P6]', t => {+ const section = helpSection(t);+ const sentences = section.split(/(?<=[.:;])\s+/u).filter(sentence => /pullboard relay (?:on|join)\b/u.test(sentence));+ assert.ok(sentences.length >= 2, 'the section names relay on and relay join');+ for (const sentence of sentences) {+ assert.match(sentence, /\bthe person (?:type|types|runs)\b/u, `the person is the one who types it: ${sentence}`);+ assert.doesNotMatch(sentence, /(?:^|\byou\s+|\*\*\s*)(?:run|start|type)\s+`pullboard relay (?:on|join)/iu, `the agent is never told to run it: ${sentence}`);+ }+ assert.doesNotMatch(section, /(?:^|[.:;]\s+)(?:Run|Start|Type)\s+`pullboard relay (?:on|join)/mu, 'no imperative sends the agent to relay on or join');+});+test('init appends only the agent-worktree ignore rule and the second init writes nothing [I1,I2,I16]', t => {for (const previous of [undefined, '', '# existing rules\r\nnode_modules/\r\n!keep-this', '.claude/worktrees/\n# already configured\n']) {const box = fixture(t, previous);