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
feat(core): merge headers take the item's type from its commits [C7]
Corey Olson8f3465f2e013
diff --git a/src/cli.js b/src/cli.jsindex c23109be..9b56a848 100644--- a/src/cli.js+++ b/src/cli.js@@ -386,6 +386,7 @@ import { unlinkedRelayProjects } from './relay-setup.js';import {accountedFailures,landingRemote,+ itemCommitType,landingMessage,waivedFailures,waiverLine,@@ -1443,15 +1444,17 @@ export async function addBlueprint(ctx, board, me, blueprint, { report = true, r* @param {any} info* @param {any} item* @param {string} [commit] - The exact checked composition the acceptance authorizes.- * @param {{ spec?: any }} [options] - The spec the trailer's rows are ordered by.+ * @param {{ spec?: any, requireIds?: string[] }} [options] - The spec the trailer's rows are ordered by, and+ * the commit types the hook requires ids for.* @returns {string}*/-export function landNext(info, item, commit = item.item_commit, { spec = null } = {}) {+export function landNext(info, item, commit = item.item_commit, { spec = null, requireIds } = {}) {const mainRoot = primaryCheckoutRoot(info);- const branch = mainCheckout(info.root)?.branch ?? '';+ const trunk = mainCheckout(info.root);+ const branch = trunk?.branch ?? '';const remote = landingRemote(info.root, branch);// The hand merge writes the same generated message as pullboard land: the trailers are one paragraph.- const message = landingMessage(item, { spec });+ const message = landingMessage(item, { spec, type: itemCommitType(info.root, trunk?.commit, commit), ...(requireIds ? { requireIds } : {}) });const trailers = `"$(printf '%s\\n' ${message.trailers.split('\n').map(shellWord).join(' ')})"`;const command = remote? 'pullboard land'diff --git a/src/commands/verify.js b/src/commands/verify.jsindex c3016b1a..e264472d 100644--- a/src/commands/verify.js+++ b/src/commands/verify.js@@ -221,7 +221,7 @@ export async function verifyHere(ctx, id, { second, values }) {ctx.io.say(result.decision === 'ACCEPT'? `verified #${id}: ${result.reason}${result.check === 'none' ? '; no frozen check ran' : ''}${approvalRows.length ? `; ${agentApprovalLine(approvalRows)}` : ''}${verifiedTiming}`: `rejected #${id}: ${result.reason}; it is open again for rework`);- if (accepted) ctx.io.say(landNext(ctx.info, accepted, acceptedLandingCommit, { spec: loadSpec(ctx.info.root, ctx.config) }));+ if (accepted) ctx.io.say(landNext(ctx.info, accepted, acceptedLandingCommit, { spec: loadSpec(ctx.info.root, ctx.config), requireIds: ctx.config.commits?.requireIds }));return 0;}diff --git a/src/commit-message.js b/src/commit-message.jsindex e5761eaf..b91f4e04 100644--- a/src/commit-message.js+++ b/src/commit-message.js@@ -29,7 +29,7 @@ function titleWords(title) {/*** The bracket suffix for a header with `room` characters left: every id when they all fit, else the- * first ids that fit and `+N` for the rest. `[+N]` alone always fits, because the title left room for it.+ * first ids that fit and `+N` for the rest. The first id always fits, because the title left room for it.** @param {string[]} rows* @param {number} room@@ -39,14 +39,15 @@ function bracket(rows, room) {if (!rows.length) return '';const all = ` [${rows.join(',')}]`;if (all.length <= room) return all;- let shown = 0;+ let shown = 1;while (shown < rows.length - 1 && ` [${[...rows.slice(0, shown + 1), `+${rows.length - shown - 1}`].join(',')}]`.length <= room) shown += 1;return ` [${[...rows.slice(0, shown), `+${rows.length - shown}`].join(',')}]`;}/*** Build a commit message from board facts. The title keeps priority: it takes the header up to the- * room a `[+N]` needs, then the rows fill what is left. It never refuses for how many rows an item+ * room the first id (and a `+N`) needs, so the header always cites a row the commit hook can check,+ * then the rows fill what is left. It never refuses for how many rows an item* cites: every row is in the `Pullboard-Rows` trailer whatever the header shows.** @param {{ type: string, scope?: string, title: string, item?: number | null, rows?: string[], fallback?: string, body?: string }} message@@ -55,7 +56,7 @@ function bracket(rows, room) {*/export function buildCommitMessage({ type, scope = '', title, item = null, rows = [], fallback = '', body = '' }) {const prefix = `${type}${scope ? `(${scope})` : ''}: `;- const reserve = rows.length ? ` [+${rows.length}]`.length : 0;+ const reserve = rows.length ? ` [${rows.length === 1 ? rows[0] : `${rows[0]},+${rows.length - 1}`}]`.length : 0;const budget = HEADER_LIMIT - prefix.length - reserve;let subject = '';for (const word of titleWords(title)) {diff --git a/src/land.js b/src/land.jsindex 7a1ff13f..9238a7e3 100644--- a/src/land.js+++ b/src/land.js@@ -67,6 +67,7 @@ import { Refused } from './refused.js';import {buildCommitMessage,commitMessageProblems,+ parseCommitMessage,specOrder,} from './commit-message.js';import { loadSpec } from './spec.js';@@ -158,9 +159,30 @@ export function landingFailures(output, root, { excludeCancelled = false } = {})return [...unique.values()];}-/** The merge header type an item with no spec rows takes from its lane; any other lane lands as chore. */+/** The merge header type an item with no typed commit takes from its lane; any other lane lands as chore. */const LANE_MERGE_TYPES = Object.freeze({ docs: 'docs', test: 'test' });+/** Which commit type names an item when its commits mix types: the first in this list wins. */+const TYPE_RANK = Object.freeze(['feat', 'fix', 'perf', 'refactor', 'revert', 'docs', 'test', 'build', 'ci', 'style', 'chore']);++/**+ * The item's type, read from the typed headers of its own commits (those in `commit` and not in+ * `base`): feat over fix over the rest (RFC 0005 takes the type from the item, and an item has no+ * type field). Null when none of its commits is typed, so the lane rule applies.+ *+ * @param {string} root+ * @param {string | null | undefined} base+ * @param {string | null | undefined} commit+ * @returns {string | null}+ */+export function itemCommitType(root, base, commit) {+ if (!root || !commit) return null;+ const listed = tryGit(root, ['log', '--no-merges', '--format=%s', base ? `${base}..${commit}` : commit]);+ if (listed.status !== 0) return null;+ const types = new Set(listed.stdout.split('\n').map((subject) => parseCommitMessage(subject).type).filter(Boolean));+ return TYPE_RANK.find((type) => types.has(type)) ?? null;+}+/*** The rows a landing names: the item's final frozen set when it has one, since a refreeze after the* claim is what the verdict checked, else its cited ids; in spec order when the spec is at hand.@@ -181,17 +203,18 @@ export function landingRows(item, spec = null) {/*** The whole landing message from board state through the shared builder [B3,R3]: header* `<type>(merge): <title> [<rows that fit>,+N]`, then `Pullboard-Item` and `Pullboard-Rows` as the- * last paragraph. It never refuses for how many rows an item cites.+ * last paragraph. It never refuses for how many rows an item cites. The type is the item's own+ * (from its commits); with none, or with one the commit hook would refuse without rows, the lane's.** @param {any} item- * @param {{ spec?: { rows: { id: string }[] } | null }} [options]- * @returns {{ header: string, body: string, trailers: string, message: string, rows: string[] }}+ * @param {{ spec?: { rows: { id: string }[] } | null, type?: string | null, requireIds?: string[] }} [options]+ * @returns {{ header: string, body: string, trailers: string, message: string, rows: string[], type: string }}*/-export function landingMessage(item, { spec = null } = {}) {+export function landingMessage(item, { spec = null, type = null, requireIds = ['feat', 'fix'] } = {}) {const rows = landingRows(item, spec);- // An item with no rows cites none, so its merge header names its lane's type: docs or test; anything else is chore (B3).- const type = rows.length ? 'chore' : (LANE_MERGE_TYPES[item.item_lane] ?? 'chore');- return { ...buildCommitMessage({ type, scope: 'merge', title: item.item_title, item: item.item_id, rows }), rows };+ const own = type && !(requireIds.includes(type) && !rows.length) ? type : null;+ const chosen = own ?? (rows.length ? 'chore' : (LANE_MERGE_TYPES[item.item_lane] ?? 'chore'));+ return { ...buildCommitMessage({ type: chosen, scope: 'merge', title: item.item_title, item: item.item_id, rows }), rows, type: chosen };}/** Produce a hook-valid lower-case merge header at a word boundary [R3]. */@@ -204,13 +227,13 @@ export function landingSubject(item, options = {}) {* writes them, so a problem here is a Pullboard defect, never something an item's citations fix.** @param {any[]} items- * @param {{ rows: { id: string }[] } | null} spec+ * @param {{ spec: { rows: { id: string }[] } | null, typeOf?: (item: any) => string | null, requireIds?: string[] }} context* @returns {Map<number, ReturnType<typeof landingMessage>>}*/-export function checkLandingMessages(items, spec) {+export function checkLandingMessages(items, { spec, typeOf = () => null, requireIds = ['feat', 'fix'] }) {const messages = new Map();for (const item of items) {- const built = landingMessage(item, { spec });+ const built = landingMessage(item, { spec, type: typeOf(item), requireIds });const problems = commitMessageProblems(built.message, { item: item.item_id, rows: built.rows });if (problems.length) {throw new Refused('LAND_HEADER', `the landing message for #${item.item_id} fails its own check (${problems.join('; ')}); nothing merged; shout the coordinator: pullboard shout coordinator "#${item.item_id} landing message fails its check"`);@@ -225,6 +248,21 @@ function landingSpec(root, config) {return config?.spec ? loadSpec(root, config) : null;}+/**+ * Everything a landing message needs from the trunk at `base`: its spec, each item's own type and+ * the types the commit hook requires ids for.+ *+ * @param {string} root+ * @param {string} base+ * @param {any} config+ * @param {(item: any) => string} commitOf - The item's checked landing commit.+ * @returns {{ spec: any, typeOf: (item: any) => string | null, requireIds: string[] }}+ */+export function landingContext(root, base, config, commitOf) {+ return { spec: landingSpec(root, config), typeOf: (item) => itemCommitType(root, base, commitOf(item)),+ requireIds: config?.commits?.requireIds ?? ['feat', 'fix'] };+}+/** Keep the submitted identity and, when different, its sealed checked composition. */function landingEntry(item) {return { id: item.item_id, commit: item.item_commit,@@ -307,7 +345,8 @@ async function mergeGroup(state, items) {if (!isClean(batch.root) || untracked(batch.root).length) throw new Refused('LAND_DIRTY', 'the landing worktree has unfinished edits; inspect its recorded path before adopting');git(batch.root, ['checkout', '--detach', batch.base]);// Every message is built and checked before the first merge, so a bad one cannot land half a batch.- const messages = checkLandingMessages(items.map((entry) => store.getItem(state.board, entry.id ?? entry.item_id)), landingSpec(batch.root, state.config));+ const messages = checkLandingMessages(items.map((entry) => store.getItem(state.board, entry.id ?? entry.item_id)),+ landingContext(batch.root, batch.base, state.config, (item) => store.checkedLandingCommit(state.board, item)));const merged = [];const conflicts = [];const resolutions = [];@@ -1361,7 +1400,7 @@ export async function runLandingBatch({ root, board, config, write, say, owner,}const selected = candidates(board, root, trunk.commit, maximum);if (!dryRun) for (const item of selected.ready) requireOutsideOwner(board, item);- checkLandingMessages(selected.ready, landingSpec(root, config));+ checkLandingMessages(selected.ready, landingContext(root, trunk.commit, config, (item) => item.item_landing_commit));const stale = selected.blocked.find(item => item.code === 'STALE_VERDICT');if (!selected.ready.length && stale) throw staleVerdictRefusal({ item_id: stale.id }, stale);if (dryRun) {diff --git a/test/commit-message.test.js b/test/commit-message.test.jsindex 7c666aa4..49847cf7 100644--- a/test/commit-message.test.js+++ b/test/commit-message.test.js@@ -1,6 +1,8 @@/** The shared commit-message builder and parser: ids fill what fits, then +N, with every row in a trailer (RFC 0005) [C7,B3,R3]. */import assert from 'node:assert/strict';-import { test } from 'node:test';+import { writeFileSync } from 'node:fs';+import { join } from 'node:path';+import { after, test } from 'node:test';import {HEADER_LIMIT,buildCommitMessage,@@ -9,8 +11,12 @@ import {parseCommitMessage,specOrder,} from '../src/commit-message.js';-import { checkLandingMessages, landingMessage, landingRows } from '../src/land.js';+import { checkLandingMessages, itemCommitType, landingMessage, landingRows } from '../src/land.js';import { citedIds, parseSpec } from '../src/spec.js';+import { createE2eHelpers } from './e2e-helpers.js';++const e2e = createE2eHelpers();+after(e2e.cleanup);/** Row ids A1..An, the shape a long cited set takes. */const rowsUpTo = (count, letter = 'A') => Array.from({ length: count }, (_, index) => `${letter}${index + 1}`);@@ -104,14 +110,51 @@ test('a landing names the refrozen rows in spec order, and a batch checks everyassert.equal(landingMessage(none, { spec }).message, 'docs(merge): no rows\n\nPullboard-Item: #6');const many = { item_id: 8, item_lane: 'core', item_title: 'Many rows', item_spec_ids: rowsUpTo(36).join(',') };assert.equal(landingMessage(many).rows.length, 36, 'no citation count refuses');- const checked = checkLandingMessages([refrozen, none, many], spec);+ const checked = checkLandingMessages([refrozen, none, many], { spec });assert.deepEqual([...checked.keys()], [5, 6, 8]);// A malformed row id (never written by the spec) fails the check for the whole batch, naming the item.const broken = { ...many, item_id: 9, item_spec_ids: '', item_frozen: JSON.stringify({ rows: [{ id: 'A1' }, { id: 'A2,A3' }] }) };- assert.throws(() => checkLandingMessages([refrozen, broken], spec), (error) => {+ assert.throws(() => checkLandingMessages([refrozen, broken], { spec }), (error) => {assert.equal(error.code, 'LAND_HEADER');assert.match(error.message, /#9/u);assert.doesNotMatch(error.message, /shorten|cut|remove|fewer|cited set/iu, 'no refusal advises removing citations');return true;});});++test('one header per item type: the type comes from the item\'s own commits, feat over fix over the rest [C7,B3,R3]', () => {+ const box = e2e.sandbox();+ const repo = join(box.dir, 'types');+ box.git(box.dir, 'init', '-q', '-b', 'main', repo);+ /** Commit one file with a header, returning the new head. */+ const commit = (file, header) => {+ writeFileSync(join(repo, file), `${header}\n`);+ box.git(repo, 'add', file);+ box.git(repo, 'commit', '-q', '-m', header);+ return box.git(repo, 'rev-parse', 'HEAD');+ };+ const base = commit('base.txt', 'chore: start the fixture');+ const item = { item_id: 40, item_lane: 'core', item_title: 'Typed landing', item_spec_ids: 'A1' };+ const cases = [+ [['docs(core): explain it [A1]', 'feat(core): add it [A1]', 'fix(core): mend it [A1]'], 'feat'],+ [['test(core): prove it', 'fix(core): mend it [A1]'], 'fix'],+ [['docs(core): explain it'], 'docs'],+ [['test(core): prove it'], 'test'],+ [['refactor(core): tidy it', 'chore(core): sweep it'], 'refactor'],+ [['perf(core): speed it', 'docs(core): explain it'], 'perf'],+ [['chore(core): sweep it'], 'chore'],+ [['an untyped header'], null],+ ];+ for (const [index, [headers, expected]] of cases.entries()) {+ box.git(repo, 'switch', '-q', '--detach', base);+ let head = base;+ for (const [step, header] of headers.entries()) head = commit(`case-${index}-${step}.txt`, header);+ assert.equal(itemCommitType(repo, base, head), expected, headers.join(' | '));+ const built = landingMessage(item, { type: itemCommitType(repo, base, head) });+ assert.equal(built.header, `${expected ?? 'chore'}(merge): typed landing [A1]`, 'each item type writes its own merge header');+ assert.deepEqual(parseCommitMessage(built.message).type, expected ?? 'chore');+ }+ // A feat item with no rows would fail the commit hook's id rule, so it lands under its lane's type.+ assert.equal(landingMessage({ ...item, item_spec_ids: '', item_lane: 'docs' }, { type: 'feat' }).header, 'docs(merge): typed landing');+ assert.equal(landingMessage({ ...item, item_spec_ids: '' }, { type: 'test' }).header, 'test(merge): typed landing');+});diff --git a/test/land-next.test.js b/test/land-next.test.jsindex 2faefe9e..656eae0d 100644--- a/test/land-next.test.js+++ b/test/land-next.test.js@@ -55,7 +55,7 @@ test('an accept says how to land, and a dry run catches a missing origin [I1,B3]// Clause 1, repo without a remote: the accept prints the exact git merge command for this repo.const first = acceptedItem(box, 'web/first.txt');- const merge = new RegExp(`^next: this repo has no remote for pullboard land to push to, so the coordinator merges it on main: (cd ${literal(box.repo)} && git merge --no-ff ${first.commit} -m 'chore\\(merge\\): write web/first\\.txt \\[G1\\]' ${literal(trailerArg(first.id))} && pullboard merged ${first.id} HEAD)$`, 'mu');+ const merge = new RegExp(`^next: this repo has no remote for pullboard land to push to, so the coordinator merges it on main: (cd ${literal(box.repo)} && git merge --no-ff ${first.commit} -m 'feat\\(merge\\): write web/first\\.txt \\[G1\\]' ${literal(trailerArg(first.id))} && pullboard merged ${first.id} HEAD)$`, 'mu');const printed = merge.exec(first.out);assert.ok(printed, `the accept names the hand merge for a repo without origin:\n${first.out}`);@@ -70,7 +70,7 @@ test('an accept says how to land, and a dry run catches a missing origin [I1,B3]const ran = spawnSync('/bin/sh', ['-c', printed[1]], { cwd: box.dir, env: box.env, encoding: 'utf8' });assert.equal(ran.status, 0, `${ran.stdout}${ran.stderr}`);assert.equal(box.tryGit(box.repo, 'merge-base', '--is-ancestor', first.commit, 'main').status, 0, 'main now carries the accepted commit');- assert.equal(box.git(box.repo, 'log', '-1', '--format=%B', 'main'), `chore(merge): write web/first.txt [G1]\n\nPullboard-Item: #${first.id}\nPullboard-Rows: G1`,+ assert.equal(box.git(box.repo, 'log', '-1', '--format=%B', 'main'), `feat(merge): write web/first.txt [G1]\n\nPullboard-Item: #${first.id}\nPullboard-Rows: G1`,'the hand merge writes the generated header and the trailers as its last paragraph');const shown = JSON.parse(box.run(box.repo, 'show', String(first.id), '--json').out);assert.equal(shown.item_merged_commit, box.git(box.repo, 'rev-parse', 'main'));@@ -90,7 +90,7 @@ test('an accept says how to land, and a dry run catches a missing origin [I1,B3]test('an accept names the primary checkout when Git metadata is stored separately [I1,B3]', () => {const box = withReviewer(project(undefined, undefined, { separateGitDir: true }));const accepted = acceptedItem(box, 'web/separate.txt');- const merge = new RegExp(`^next: this repo has no remote for pullboard land to push to, so the coordinator merges it on main: (cd ${literal(box.repo)} && git merge --no-ff ${accepted.commit} -m 'chore\\(merge\\): write web/separate\\.txt \\[G1\\]' ${literal(trailerArg(accepted.id))} && pullboard merged ${accepted.id} HEAD)$`, 'mu');+ const merge = new RegExp(`^next: this repo has no remote for pullboard land to push to, so the coordinator merges it on main: (cd ${literal(box.repo)} && git merge --no-ff ${accepted.commit} -m 'feat\\(merge\\): write web/separate\\.txt \\[G1\\]' ${literal(trailerArg(accepted.id))} && pullboard merged ${accepted.id} HEAD)$`, 'mu');const printed = merge.exec(accepted.out);assert.ok(printed, `the accept names the actual primary checkout for separate Git metadata:\n${accepted.out}`);@@ -102,7 +102,7 @@ test('an accept names the primary checkout when Git metadata is stored separatelconst fallback = acceptedItem(unregistered, 'web/fallback.txt', {beforeVerify: () => rmSync(join(unregistered.env.PULLBOARD_HOME, 'projects.json'), { force: true }),});- const mergeCommand = `git merge --no-ff ${fallback.commit} -m 'chore(merge): write web/fallback.txt [G1]' ${trailerArg(fallback.id)} && pullboard merged ${fallback.id} HEAD`;+ const mergeCommand = `git merge --no-ff ${fallback.commit} -m 'feat(merge): write web/fallback.txt [G1]' ${trailerArg(fallback.id)} && pullboard merged ${fallback.id} HEAD`;assert.ok(fallback.out.includes(`next: could not safely locate the primary checkout; run from the main checkout: ${mergeCommand}`), fallback.out);assert.doesNotMatch(fallback.out, /\bcd\s/u, 'an unvalidated path is never guessed');const ranFallback = spawnSync('/bin/sh', ['-c', mergeCommand], { cwd: unregistered.repo, env: unregistered.env, encoding: 'utf8' });diff --git a/test/land.test.js b/test/land.test.jsindex 70aac84a..40fb5fa9 100644--- a/test/land.test.js+++ b/test/land.test.js@@ -458,7 +458,7 @@ test('land pushes one exact batch in verdict order and records each first-contaiconst result = json(box, box.repo, 'land', '--max', '4');const order = [3, 1, 0, 2].map((index) => entries[index].item);assert.deepEqual(result.landed, order);- assert.deepEqual(mergeSubjects(box, base, result.batch.tip), [4, 2, 1, 3].map((n) => `chore(merge): land fixture ${n} [G1]`));+ assert.deepEqual(mergeSubjects(box, base, result.batch.tip), [4, 2, 1, 3].map((n) => `feat(merge): land fixture ${n} [G1]`), 'each merge takes its item\'s type from the item\'s feat commit');assert.equal(result.batch.state, 'landed');assert.equal(box.git(box.repo, 'rev-parse', 'main'), result.batch.tip);assert.equal(box.git(box.remote, 'rev-parse', 'main'), result.batch.tip, 'real pre-push accepted the gated tip');@@ -1252,9 +1252,9 @@ test('landing diagnostics retain unknown failures and merge subjects obey typed// Node 24 node --test reports with spec by default: its failing-tests summary names each file and test (#1071).const spec = landingFailures(`\u2716 red one (1.2ms)\n\u2716 failing tests:\n\ntest at web/red.test.js:6:1\n\u2716 red one (1.2ms)\n AssertionError\n\ntest at /elsewhere/x.test.js:1:1\n\u2716 outside (3ms)\n`, root);assert.deepEqual(spec, [{ name: 'red one', file: 'web/red.test.js' }, { name: 'outside', file: null }], 'spec failures keep their file, and an outside path is unknown');- // The title keeps priority; the rows fill what is left, and +N counts the rest (RFC 0005).+ // The title keeps priority up to the room its first row needs; the rows fill what is left (RFC 0005).const subject = landingSubject({ item_id: 91, item_title: 'A VERY LONG TITLE '.repeat(10), item_spec_ids: 'B3,R3' });- assert.equal(subject, 'chore(merge): a very long title a very long title a very long title [+2]');+ assert.equal(subject, 'chore(merge): a very long title a very long title a very long [B3,R3]');assert.ok(subject.length <= 72);});diff --git a/test/landing-message.test.js b/test/landing-message.test.jsindex 140d4a04..9f540d1f 100644--- a/test/landing-message.test.js+++ b/test/landing-message.test.js@@ -83,9 +83,9 @@ test('a landing batch writes ids that fit then +N, and every frozen row in specreturn [parseCommitMessage(message).item, message];}));assert.equal(messages.get(many.id),- `chore(merge): land every cited row [Z1,Z2,Z3,Z4,Z5,Z6,Z7,Z8,Z9,Z10,+26]\n\nPullboard-Item: #${many.id}\nPullboard-Rows: ${ROWS.join(',')}`);+ `feat(merge): land every cited row [Z1,Z2,Z3,Z4,Z5,Z6,Z7,Z8,Z9,Z10,+26]\n\nPullboard-Item: #${many.id}\nPullboard-Rows: ${ROWS.join(',')}`);assert.equal(messages.get(refrozen.id),- `chore(merge): refrozen after the claim [G1,Z3,Z9]\n\nPullboard-Item: #${refrozen.id}\nPullboard-Rows: G1,Z3,Z9`);+ `feat(merge): refrozen after the claim [G1,Z3,Z9]\n\nPullboard-Item: #${refrozen.id}\nPullboard-Rows: G1,Z3,Z9`);for (const message of messages.values()) assert.ok(message.split('\n')[0].length <= 72, message);// Git's own trailer reader agrees with the shared parser.assert.equal(box.git(box.repo, 'log', '-1', '--format=%(trailers:key=Pullboard-Rows,valueonly)', merges.find((commit) => box.git(box.repo, 'log', '-1', '--format=%B', commit) === messages.get(many.id))), ROWS.join(','));