Skip to content

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.

fix(shout): merge person attribution on trunk [N26,B26,B3,B7]

Corey Olson65c3e9842171
diff --cc src/cli.js
index 557b0cc8,e207be1f..1c12f731
--- a/src/cli.js
+++ b/src/cli.js
@@@ -2737,19 -2750,22 +2750,35 @@@ function sayReviewOffer(ctx, found)
else ctx.io.say('no build is currently free in your lane; this review is available');
}
+/**
+ * Whether a shout is the person's own: a relay person request, or the local view acting as the
+ * coordinator (N26, B26). The view acting as a named agent, or an agent shell as the coordinator,
+ * still speaks as that agent.
+ *
+ * @param {any} io
+ * @param {{ id: string }} me
+ * @returns {boolean}
+ */
+function personShout(io, me) {
+ return io.personRequest?.phase === 'execute' || (io.personChannel === 'view' && me.id === COORDINATOR);
+}
+
+ /**
+ * A review search that found nothing while another agent is still building: say so, with the wait,
+ * so a reviewer who starts first is not told NOTHING_FREE as if the board were idle [C7,P4].
+ *
+ * @param {any} ctx
+ */
+ function refuseWhileBuilding(ctx) {
+ const building = withBoard(ctx, (board) => {
+ const me = whoAmI(ctx, board).id;
+ const items = store.listItems(board);
+ if (items.some((item) => item.item_status === 'submitted' && item.item_built_by !== me)) return [];
+ return items.filter((item) => item.item_status === 'claimed' && item.item_owner !== me).map((item) => `#${item.item_id}`).reverse();
+ });
+ if (building.length) throw new Refused('REVIEW_NOT_READY', `nothing to review yet; the builder is still working on ${building.join(', ')}`);
+ }
+
/**
* `pullboard next` (N2): the whole start of an agent's loop in one command. With --wait, it keeps
* looking until something is free, so an agent blocked on other work needs no polling of its own.
diff --cc test/newcomer.test.js
index 36ef1609,36ef1609..a71bdf1b
--- a/test/newcomer.test.js
+++ b/test/newcomer.test.js
@@@ -49,6 -49,6 +49,7 @@@ test('init ends with a working staging
'.claude/skills/pullboard-signoff/SKILL.md',
'.claude/skills/pullboard-spec-review/SKILL.md',
'.claude/skills/pullboard-verify/SKILL.md',
++ '.codex/rules/pullboard.rules',
'.githooks/commit-msg', '.githooks/pre-merge-commit', '.githooks/pre-push',
'.gitignore',
'AGENTS.md', 'DOCTRINE.md', 'SPEC.md', 'pullboard.json',