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(metadata): read retired companion trailers without writing them [C7]
Corey Olson9ef0c210704c
diff --git a/src/commit-message.js b/src/commit-message.jsindex b91f4e04..ad3d3542 100644--- a/src/commit-message.js+++ b/src/commit-message.js@@ -112,7 +112,9 @@ export function parseCommitMessage(message) {const isTrailers = Boolean(last) && lines.every((line) => TRAILER_RE.test(line));const trailers = isTrailers ? lines.map((line) => { const [, key, value] = TRAILER_RE.exec(line); return { key, value: value.trim() }; }) : [];const body = (isTrailers ? paragraphs.slice(0, -1) : paragraphs).join('\n\n');- const itemValue = trailers.find((entry) => entry.key === ITEM_TRAILER)?.value;+ // Historical coordinator companions named their item with this retired alias; writers never do.+ const itemValue = (trailers.find((entry) => entry.key === ITEM_TRAILER)+ ?? trailers.find((entry) => entry.key === 'Pullboard-Companion'))?.value;const rowsValue = trailers.find((entry) => entry.key === ROWS_TRAILER)?.value;const typed = HEADER_RE.exec(header);const { shown, more, rest } = headerRows(header);@@ -146,6 +148,9 @@ export function commitMessageProblems(message, { item, rows }) {const problems = [];if (parsed.header.length > HEADER_LIMIT) problems.push(`its header has ${parsed.header.length} characters, over ${HEADER_LIMIT}`);if (!parsed.type) problems.push('its header has no type(scope): prefix');+ if (parsed.trailers.some((entry) => entry.key === 'Pullboard-Companion')) {+ problems.push('its Pullboard-Companion trailer is retired; generate Pullboard-Item instead');+ }if (parsed.item !== item) problems.push(`its ${ITEM_TRAILER} trailer is not #${item}`);const written = parsed.rows ?? [];if (written.join(',') !== rows.join(',')) problems.push(`its ${ROWS_TRAILER} trailer is not ${rows.join(',') || 'absent'}`);diff --git a/src/why-file.js b/src/why-file.jsindex aeb63b50..41e652bf 100644--- a/src/why-file.js+++ b/src/why-file.js@@ -39,7 +39,7 @@ export function itemsTouching(root, { file, line }) {}const ids = [];for (const body of log.stdout.split('\x01')) {- for (const match of body.matchAll(/^Pullboard-Item:\s*#(\d+)\s*$/gmu)) ids.push(Number(match[1]));+ for (const match of body.matchAll(/^Pullboard-(?:Item|Companion):\s*#(\d+)\s*$/gmu)) ids.push(Number(match[1]));}return [...new Set(ids)];}