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
chore(merge): integrate accepted ssh person fixtures [B26,C7]
Corey Olson6b29e7ac1aee
diff --cc src/person.jsindex bc5f1de8,15500649..e6ddc8ff--- a/src/person.js+++ b/src/person.js@@@ -1,4 -1,5 +1,5 @@@-/** Person actions use the view when the terminal belongs to an agent [B26]. */+/** Person actions use the view when a terminal is remote or belongs to an agent [B26]. */+ import { createHash } from 'node:crypto';import { Refused } from './refused.js';/** Markers carried by Claude Code and Codex agent subprocesses, rather than user configuration. */@@@ -7,9 -8,17 +8,20 @@@ export const AGENT_SHELL_MARKERS = Obje'CODEX_THREAD_ID', 'CODEX_SESSION_ID', 'CODEX_CI', 'CODEX_SHELL',]);+/** SSH transport markers removed from test child environments that act as the person. */+export const SSH_SHELL_MARKERS = Object.freeze(['SSH_CONNECTION', 'SSH_CLIENT', 'SSH_TTY']);++ /** Session identifiers belong beside the shell markers; only their digest reaches the local checkout binding. */+ export const AGENT_SESSION_IDS = Object.freeze(['CLAUDE_CODE_SESSION_ID', 'CODEX_THREAD_ID', 'CODEX_SESSION_ID']);++ /** Distinguish agent sessions, including one stable session for an agent shell with no identifier. */+ export function agentSessionDigest(environment = process.env) {+ if (!AGENT_SHELL_MARKERS.some((name) => Boolean(environment[name]))) return null;+ const name = AGENT_SESSION_IDS.find((key) => Boolean(environment[key]));+ const identity = name ? [name, environment[name]] : ['agent-shell-without-session'];+ return createHash('sha256').update(JSON.stringify(identity)).digest('hex');+ }+/** Refuse terminal person actions in an agent shell; only the authenticated view adapter supplies view. */export function requirePersonChannel(channel = 'terminal', environment = process.env) {if (!['terminal', 'view'].includes(channel)) {