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
Merge commit '6cef7fbcb68bfb84f95d1e77e0961e047c93b38a' into HEAD
Corey Olson249ea3801488
diff --cc src/board.jsindex 1243571b,38e71024..5c2e25a0--- a/src/board.js+++ b/src/board.js@@@ -1,12 -1,9 +1,18 @@@+import { applyHealthFindings } from './board-health.js';+import {+ applyLaneLead,+ isLaneEscalation,+ laneLeads,+ leadOwnsDecision,+ routeLaneMessage,+} from './lane-lead.js';+export { laneLeads };+ import { activityNewsFlag } from './activity-news.js';+ import { migrateEventLogVersion } from './board-event-log-migrate.js';+ import {+ configureBoardJournal,+ closeBoardWrites,+ } from './board-write-lock.js';import {focusOrder,focusReasons,@@@ -1732,12 -1695,47 +1697,13 @@@ function persistShout(board, { from, to* @returns {number}*/export function shout(board, message) {- return atomic(board, () => insertShout(board, routeLaneMessage(board, message, board.executionEngineVersion ?? ENGINE_VERSION)));- return atomic(board, () => insertShout(board, { ...message,- news: activityNewsFlag(message, board.executionEngineVersion ?? ENGINE_VERSION) }));++ return atomic(board, () => insertShout(board, routeLaneMessage(board, { ...message,++ news: activityNewsFlag(message, board.executionEngineVersion ?? ENGINE_VERSION) }, board.executionEngineVersion ?? ENGINE_VERSION)));}-/** Record one current health snapshot atomically, notifying each new or resolved episode once [A6]. */-export function recordHealthFindings(board, { agentId, observedRevision, findings }) {- return atomic(board, () => {- if ((board.executionEngineVersion ?? ENGINE_VERSION) < HEALTH_SENTINEL_ENGINE) {- throw new Refused('ENGINE_VERSION', `sentinel receipts require engine ${HEALTH_SENTINEL_ENGINE}; upgrade Pullboard before scanning`);- }- if (!board.db.prepare('SELECT 1 FROM agent WHERE agent_id = ?').get(agentId)) {- throw new Refused('NOT_JOINED', 'join this board before recording a health scan: pullboard join <lane>');- }- const revision = board.db.prepare('SELECT COALESCE(MAX(event_id), 0) AS revision FROM event').get().revision;- if (!Number.isSafeInteger(observedRevision) || observedRevision !== revision) {- throw new Refused('HEALTH_SCAN_STALE', 'the board changed while health was scanning; run pullboard resume again');- }- const active = normalizedHealthFindings(findings);- const last = board.db.prepare("SELECT event_detail FROM event WHERE event_kind = 'health-scan' ORDER BY event_id DESC LIMIT 1").get();- const previous = last ? JSON.parse(last.event_detail).active : [];- const before = new Map(previous.map(finding => [healthFindingIdentity(finding), finding]));- const after = new Map(active.map(finding => [healthFindingIdentity(finding), finding]));- const added = active.filter(finding => !before.has(healthFindingIdentity(finding)));- const resolved = previous.filter(finding => !after.has(healthFindingIdentity(finding)));- if (!added.length && !resolved.length) return { added: [], resolved: [] };- const agents = listAgents(board);- const lanes = [...new Set(agents.map(agent => agent.agent_lane))];- const engine = board.executionEngineVersion ?? ENGINE_VERSION;- /** Deliver through ordinary feed/inbox records without registering a synthetic worktree seat. */- const log = (finding, cleared) => {- const item = finding.item === null ? null : itemById(board, finding.item);- logEvent(board, 'sentinel', cleared ? 'health-resolved' : 'health-failure', finding.item, {- key: finding.key, cause: `refusal:${finding.cause}`, since: finding.since, subject: finding.subject,- owner: finding.owner, commit: item?.item_commit ?? null, engine: HEALTH_SENTINEL_ENGINE,- });- };- deliverHealthNotices({ resolved, added, engine, log, coordinator: COORDINATOR, shout: (to, text) => insertShout(board, { from: 'sentinel', to, text, lanes }),- targets: finding => healthTargets(finding, { engine, coordinator: COORDINATOR, person: PERSON, lanes, agents }) });- logEvent(board, agentId, 'health-scan', null, { active, engine: HEALTH_SENTINEL_ENGINE });- return { added: added.map(finding => finding.key), resolved: resolved.map(finding => finding.key) };- });+/** Record one health snapshot through its unchanged transactional implementation [A6]. */+export function recordHealthFindings(board, options) {+ return applyHealthFindings(board, options, { atomic, insertShout });}/**@@@ -2364,7 -2339,5 +2309,9 @@@ export function intakeOutside(board, op/** Record the person's exact-commit owner approval. */export function approveOutside(board, id, options) { return applyOutsideApproval(board, id, options, atomic); }+/** Name a lane lead only through coordinator-owned ordered policy [B21]. */+export function setLaneLead(board, options) {+ return applyLaneLead(board, options, { atomic, logEvent });+}+ /** Tailored inbox activity is the same canonical read projection as other board queries. */+ export { agentActivity } from './board-query.js';diff --cc src/cli-main.jsindex 8ec64dad,bc2553dc..7dbc868a--- a/src/cli-main.js+++ b/src/cli-main.js@@@ -126,7 -126,7 +126,8 @@@ const OPTIONS =since: { type: 'string' },window: { type: 'string' },decision: { type: 'boolean' },+ kind: { type: 'string' },+ news: { type: 'boolean' },evidence: { type: 'string' },outcome: { type: 'string' },item: { type: 'string' },diff --cc src/commands/shout.jsindex 81786917,4df95125..6515eb80--- a/src/commands/shout.js+++ b/src/commands/shout.js@@@ -25,7 -25,7 +25,7 @@@ export async function run(io, { first,const hasRecipient = first && recipients.includes(first) && (values.item === undefined || second !== undefined);const to = values.item !== undefined ? `item:${values.item}` : hasRecipient ? first : values.decision ? (me.id === COORDINATOR ? 'person' : COORDINATOR) : first ?? '';const text = [hasRecipient ? second : first, ...(hasRecipient ? rest : [second, ...rest])].filter(Boolean).join(' ');- const id = await ordered(ctx, board, 'shout', [{ from: personShout(io, me) ? store.PERSON : me.id, to, text, ...(values.item !== undefined ? { item: Number(values.item) } : {}), lanes: laneNames(ctx.config), decision: Boolean(values.decision), ...(values.kind === undefined ? {} : { kind: values.kind }), evidence }]);- const id = await ordered(ctx, board, 'shout', [{ from: personShout(io, me) ? store.PERSON : me.id, to, text, ...(values.item !== undefined ? { item: Number(values.item) } : {}), lanes: laneNames(ctx.config), decision: Boolean(values.decision), ...(values.news ? { news: true } : {}), evidence }]);++ const id = await ordered(ctx, board, 'shout', [{ from: personShout(io, me) ? store.PERSON : me.id, to, text, ...(values.item !== undefined ? { item: Number(values.item) } : {}), lanes: laneNames(ctx.config), decision: Boolean(values.decision), ...(values.kind === undefined ? {} : { kind: values.kind }), ...(values.news ? { news: true } : {}), evidence }]);io.result?.({ id, decision: Boolean(values.decision) });const agents = store.listAgents(board);const recipient = agents.some((agent) => agent.agent_id === to) ? agentDisplayName(agents, ctx.config, to) : to;diff --cc src/help.jsindex 25b9ae2c,d627754c..6d67b6a9--- a/src/help.js+++ b/src/help.js@@@ -151,8 -151,8 +151,10 @@@ Worpullboard shout <lane|agent|person|all> <text> pullboard inboxpullboard shout --item <id> <text> message the item builder, reviewer and coordinatorA seat shout to all reaches only coordinator and person; their broadcasts reach everyone.+ pullboard shout coordinator <text> --kind question|blocker --decision route through a named lane lead+ pullboard lanes lead <lane> <seat|off> coordinator names or removes the existing lane seat+ pullboard shout all <text> --news coordinator/person release or focus news, digested at session start+ Inbox combines direct coordination with item/dependency, file and cited-row activity; other lane activity is summarized.pullboard shout [<to>] <text> --decision ask for a decision; defaults to your coordinator or the personpullboard shout <to> <text> --evidence attempt|receipt --outcome <word> --item <id> --commit <rev>pullboard answer <shout-id> <text> [--as person] [--implies <ids>] [--supersedes <answer-id>]diff --cc src/moves/shout.jsindex cc1b9451,777df28a..03780ea6--- a/src/moves/shout.js+++ b/src/moves/shout.js@@@ -1,4 -1,4 +1,5 @@@+import { laneMessageFloor } from '../lane-lead.js';+ import { ACTIVITY_NEWS_ENGINE } from '../activity-news-engine.js';import { RIGOR_AUTO_ENGINE } from '../rigor-auto-engine.js';/** Routing metadata owned by shout, discovered without a shared registry edit [C7,V4,H16]. */import { ITEM_SHOUT_ENGINE } from '../item-shout-engine.js';@@@ -16,6 -14,16 +15,17 @@@ function historicalMinimumEngine(args,return 1;}+ /** News combines every applicable floor; old arguments retain their historical replay condition order. */+ function minimumEngine(args, board, at) {- if (args[0]?.news !== true) return historicalMinimumEngine(args, board, at);- return Math.max(ACTIVITY_NEWS_ENGINE,++ const laneFloor = laneMessageFloor(board, args[0]);++ if (args[0]?.news !== true) return Math.max(laneFloor, historicalMinimumEngine(args, board, at));++ return Math.max(laneFloor, ACTIVITY_NEWS_ENGINE,+ typeof args[1]?.cause === 'string' && args[1].cause.startsWith('conflict:') ? RIGOR_AUTO_ENGINE : 1,+ args[0]?.item !== undefined ? ITEM_SHOUT_ENGINE : 1,+ args[0]?.landingFence !== undefined ? LANDING_LEASE_ENGINE : 1,+ typeof args[1]?.cause === 'string' && args[1].cause.startsWith('sentinel:') ? BOARD_SENTINEL_ENGINE : 1);+ }+/** Read precisely the actor argument used by this operation [H2,H16]. */function actor(move) { return move.args[0]?.from ?? null; }