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
fix: require an explicit item for multiple live claims [B5,C7]
Corey Olsona6ff44d8a123
diff --git a/src/commands/hook.js b/src/commands/hook.jsindex cfa9b55d..d91e3922 100644--- a/src/commands/hook.js+++ b/src/commands/hook.js@@ -86,7 +86,7 @@ export async function hookCommand(io, { first, second }) {const items = store.listItems(board, { all: true });const landing = info.isMain || store.landingBatches(board).some(batch => landingBatchOwnsRoot(batch, info.root));return {- claim: items.find(item => item.item_status === 'claimed' && item.item_owner === agent?.agent_id) ?? null,+ claims: items.filter(item => item.item_status === 'claimed' && item.item_owner === agent?.agent_id),landings: landing ? items.filter(item => item.item_status === 'verified' && !item.item_merged_commit) : [],};}) ?? {};diff --git a/src/commit-metadata.js b/src/commit-metadata.jsindex b98ec93a..621e7f23 100644--- a/src/commit-metadata.js+++ b/src/commit-metadata.js@@ -6,7 +6,7 @@ import {import { landingRows } from './landing-message.js';/** Validate supplied metadata before replacing it with the board's canonical trailer paragraph. */-export function prepareCommitMetadata(raw, { claim = null, landings = [], spec = null, syncMerge = false } = {}) {+export function prepareCommitMetadata(raw, { claim = null, claims = null, landings = [], spec = null, syncMerge = false } = {}) {const message = raw.replace(/\r\n/gu, '\n').split('\n').filter(line => !line.startsWith('#')).join('\n').trimEnd();if (syncMerge && /^Merge /u.test(message)) return { message: raw, problems: [] };const parsed = parseCommitMessage(message);@@ -14,7 +14,10 @@ export function prepareCommitMetadata(raw, { claim = null, landings = [], spec =if (!parsed.type) problems.push('write a typed header: type(scope): subject; only Git sync merges are exempt');const supplied = message.split('\n').filter(line => /^\s*Pullboard-/iu.test(line));const metadata = parsed.trailers.filter(entry => /^Pullboard-/iu.test(entry.key));- const expected = claim ?? landings.find(item => item.item_id === parsed.item);+ const held = claims ?? (claim ? [claim] : []);+ const selected = held.find(item => item.item_id === parsed.item);+ if (held.length > 1 && !selected) problems.push(`this seat holds ${held.map(item => `#${item.item_id}`).join(', ')}; name one with an explicit Pullboard-Item trailer, or release one claim`);+ const expected = held.length > 1 ? selected : held[0] ?? landings.find(item => item.item_id === parsed.item);if (supplied.length !== metadata.length) problems.push('keep Pullboard trailers together in the final paragraph, with no text after them');if (metadata.some(entry => !['Pullboard-Item', 'Pullboard-Rows'].includes(entry.key))) problems.push('the Pullboard- trailer prefix is reserved for Item and Rows');for (const key of ['Pullboard-Item', 'Pullboard-Rows']) {