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.

refactor(person): keep shout attribution beside person checks [B26]

Corey Olson38b1e91a0494
diff --git a/src/cli.js b/src/cli.js
index a979393d..51e14f33 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -71,6 +71,7 @@ import {
AGENT_SESSION_IDS,
agentSessionDigest,
requirePersonChannel,
+ personShout,
} from './person.js';
import {
bindLocalSession,
@@ -3237,18 +3238,6 @@ 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,
diff --git a/src/person.js b/src/person.js
index 82d19477..539c4b97 100644
--- a/src/person.js
+++ b/src/person.js
@@ -1,5 +1,6 @@
/** Person actions use the view when a terminal is remote or belongs to an agent [B26]. */
import { createHash } from 'node:crypto';
+import { COORDINATOR } from './config.js';
import { Refused } from './refused.js';
/** Markers carried by Claude Code and Codex agent subprocesses, rather than user configuration. */
@@ -54,3 +55,16 @@ export function requireRelayOnChannel(channel = 'terminal', environment = proces
}
return channel;
}
+
+/**
+ * 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}
+ */
+export function personShout(io, me) {
+ return io.personRequest?.phase === 'execute' || (io.personChannel === 'view' && me.id === COORDINATOR);
+}