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: preserve declined spec row text [S9,S5]
Corey Olsone32a118372e0
diff --git a/docs/formats.md b/docs/formats.mdindex 53745ece..99d07b3a 100644--- a/docs/formats.md+++ b/docs/formats.md@@ -102,7 +102,7 @@ The board file is in the repository's Git common directory at `.git/pullboard/bo| `row grammar` | `1` | `SPEC_GRAMMAR_VERSION` in `src/spec.js`; optional `<!-- pullboard-grammar N -->` line in either file (absence means the current grammar) | Both files share the version. A declared version must match; an incompatible grammar change requires a coordinated version bump and compatible files. No automatic conversion occurs. || `board schema` | `2` | `SCHEMA_VERSION` in `src/board.js`, persisted as `PRAGMA user_version` | Create missing tables and indexes, add missing columns in place with declared defaults, restore missing or changed triggers, and remove stale machine triggers without replacing rows. || `event log` | `1` | `EVENT_LOG_VERSION` in `src/board.js`, persisted in `board_meta` as `event_log_version` | Older event-log versions upgrade in place; newer versions are refused with `EVENT_LOG_VERSION`. Preserve event rows when the board schema changes. |-| `move engine` | `11` | `ENGINE_VERSION` in `src/machine.js`, carried as `engine` in every sealed executable move | Bump when a move's meaning changes, independently of the event log and sealed envelope. A newer engine is refused with `ENGINE_VERSION`, naming both versions and asking you to upgrade Pullboard. |+| `move engine` | `12` | `ENGINE_VERSION` in `src/machine.js`, carried as `engine` in every sealed executable move | Bump when a move's meaning changes, independently of the event log and sealed envelope. A newer engine is refused with `ENGINE_VERSION`, naming both versions and asking you to upgrade Pullboard. |<!-- format-versions:end -->Pullboard 0.6.1 released engine 1. Engine 2 records a fresh explicit-build claim's skipped-review snapshot. Pullboard 0.8.1 released engine 3, including lane-sensitive graft refusals and authenticated relay senders. Engine 4 adds captured background-baseline completions through `completeCheckBaseline`; released engine-3 clients stop with `ENGINE_VERSION` before interpreting this new operation or advancing their replay cursor. Engine 5 requires a one-line reason when releasing a review and gives that reviewer a one-hour cooldown for the current submission. Each sealed move replays under its recorded engine version: engines 1 through 4 retain the original release event and review-reservation behavior. Engine 5 retains support for older moves, including engine-4 baseline completions. Pullboard 0.8.3 released engine 6, adding board-scoped machine credentials and permitting machine execution only for one exact, earlier authenticated phone request, including its payload digest. Engine 7 adds ordered item holds through `holdItem` and `releaseItemHold`; engine-6 clients stop with `ENGINE_VERSION` before interpreting either operation or advancing their replay cursor. Engine 8, shared by the 0.8.5 move changes, retains merged-item exception notes, selects the next review in roadmap order, and adds coordinator-only `reopen` for a submission returned without a verdict; engine-7 clients stop with `ENGINE_VERSION` before interpreting this new operation or advancing their replay cursor. Recorded engines 1 through 7 retain their original tier-first review selection. Engine 8 also adds durable refusal recovery for blocked relay positions; each explicit skip publishes the readable prefix even when another unsupported record follows. Engine 8 also permits coordinator criterion/check edits on a live claim as pending corrections; the holder cannot renew or submit until a refreeze adopts the correction while preserving the claim. Older request receipts retain their recorded engine semantics. Upgrade every linked device before using the new moves. Each release shares one engine bump across its changed moves. Engine 8 also retains declared model labels on registration and records each registered agent move's model snapshot; engines 1 through 7 retain their original registration and event details without these model fields. Pullboard 0.8.8 released engine 9, which allows resubmitting the same rejected commit after a corrected criterion is refrozen, but only when the rejection names a different frozen digest. Engine 8 retains its HEAD_NOT_NEW refusal and prior submit-event detail. Engine-9 submit events add `criterionDigest`, and engine-8 boards replay with the original refusal and event history.@@ -111,6 +111,8 @@ Engine 10 adds coordinator-only reopening for an unmerged verified item after aEngine 11 permits resubmitting the same commit after a coordinator no-verdict reopen only after the frozen bar is explicitly refrozen, or an edit clears the frozen bar and a new claim freezes it again. Reopening without a later bar change still refuses the same commit, and a rejection at the current frozen digest continues to require new work. This rule does not apply to a verified-item red-landing reopen. Engine 10 retains its earlier same-commit refusal for no-verdict reopens.+Engine 12 records declined person row decisions without replacing the exact source text: the row becomes `wont` and the reason stays in the decision record. Engine-11 decline receipts retain their original reason-as-row-text validation and replay outcome. Engine-11 clients refuse engine-12 moves before interpreting them; upgrade linked clients before recording new decline decisions.+The CLI declares its engine in every relay request's `X-Pullboard-Engine` header.A linked board requires at least engine 3 after issuing any agent token, includingrevoked or expired tokens. Issuing any machine credential raises that board’s minimum to engine 6, including after revocation or expiry. The minimum survives reopening the auth database;diff --git a/src/board.js b/src/board.jsindex 0cefd895..025ae554 100644--- a/src/board.js+++ b/src/board.js@@ -2584,9 +2584,13 @@ export function recordRowDecisions(board, { agentId, channel, decisions }) {const original = parseSpec(`## Decision\n${record.source}\n`).rows;const replacement = parseSpec(`## Decision\n${record.replacement}\n`).rows;const target = replacement[0];+ const engineVersion = board.executionEngineVersion ?? ENGINE_VERSION;+ const validDeclineText = record.decision !== 'decline' || (engineVersion >= 12+ ? record.text === original[0]?.text+ : target?.text === record.reason);if (original.length !== 1 || original[0].id !== record.id || replacement.length !== 1 || target.id !== record.id|| target.status !== (record.decision === 'approve' ? 'approved' : 'wont') || target.text !== record.text- || (record.decision === 'decline' && target.text !== record.reason)) throw new Refused('ROW_DECISION', 'the exact row must match its recorded approval or decline; use pullboard spec approve or decline');+ || !validDeclineText) throw new Refused('ROW_DECISION', 'the exact row must match its recorded approval or decline; use pullboard spec approve or decline');const key = `${record.kind}:${record.id}`;if (keys.has(key)) throw new Refused('ROW_DECISION', `${key} is named twice; use each row once`);keys.add(key);diff --git a/src/cli.js b/src/cli.jsindex 9ccc8f9c..0bc6af5a 100644--- a/src/cli.js+++ b/src/cli.js@@ -3120,6 +3120,7 @@ async function specCommand(io, { first, second, rest, values }) {io.result?.({ row, standing });io.say(`${row.id} [${row.status}${row.tier ? `, ${row.tier}` : ''}] ${row.text}`);if (row.stage) io.say(row.stage);+ if (row.reason) io.say(`reason: ${row.reason}`);if (row.gate) io.say(`gate: ${row.gate}`);if (row.serves.length) io.say(`serves: ${row.serves.join(', ')}`);io.say(`signed: ${standing.met.map((entry) => `${entry.by} ${entry.on}`).join(', ') || 'no'}${standing.stale.length ? `; stale: ${standing.stale.length}` : ''}`);diff --git a/src/machine.js b/src/machine.jsindex d8548350..605bf80b 100644--- a/src/machine.js+++ b/src/machine.js@@ -10,7 +10,7 @@*//** Executable move semantics, carried by every sealed move and retained during replay [H16]. */-export const ENGINE_VERSION = 11;+export const ENGINE_VERSION = 12;/** @typedef {'agent' | 'coordinator' | 'clock'} Role */diff --git a/src/row-decisions.js b/src/row-decisions.jsindex f45638c0..c96b5e00 100644--- a/src/row-decisions.js+++ b/src/row-decisions.js@@ -32,7 +32,7 @@ export function prepareRowDecisions(root, config, { ids, decision, reason = '',const principal = by ?? (signed ? defaultPrincipal(root) : 'person');return decisionRows(root, config, ids).map(({ kind, file, row, source }) => {const status = decision === 'approve' ? 'approved' : 'wont';- const text = decision === 'approve' ? proposedText?.trim() ?? row.text : reason.trim();+ const text = decision === 'approve' ? proposedText?.trim() ?? row.text : row.text;const replacement = source.replace(/\[([a-z]+)(,\s*[a-z]+)?\]/u, (_, old, tier = '') => `[${status}${tier}]`).replace(/(\]\s+)([^|]*)(?=\s*\||$)/u, (_, prefix, old) => `${prefix}${text}${old.match(/\s+$/u)?.[0] ?? ''}`);const record = { version: 1, type: 'row-decision', kind, file, id: row.id, source, replacement, text, decision, reason: decision === 'decline' ? reason.trim() : '', by: principal, on, commit, note: '' };@@ -49,7 +49,15 @@ export function pendingRowDecision(records, row, kind) {/** Add pending status to existing rows without replacing their current file-backed status. */export function decisionProjection(records, row, kind) {const decision = pendingRowDecision(records, row, kind);- return decision ? { ...row, decision, stage: `${decision.decision === 'approve' ? 'approved' : 'declined'}, pending apply` } : row;+ if (decision) return {+ ...row,+ decision,+ stage: `${decision.decision === 'approve' ? 'approved' : 'declined'}, pending apply`,+ ...(decision.decision === 'decline' ? { reason: decision.reason } : {}),+ };+ const appliedDecline = records.find((record) => record.kind === kind && record.id === row.id && record.applied+ && record.decision === 'decline' && row.status === 'wont' && row.text === record.text);+ return appliedDecline ? { ...row, reason: appliedDecline.reason } : row;}/** Decorate the shared API state so the cockpit receives the same pending decisions as spec show. */diff --git a/test/agent-model-engine.test.js b/test/agent-model-engine.test.jsindex 811622fc..e85e2e8d 100644--- a/test/agent-model-engine.test.js+++ b/test/agent-model-engine.test.js@@ -10,9 +10,9 @@ import { mkdtempSync, rmSync, writeFileSync } from 'node:fs';import { tmpdir } from 'node:os';import { join } from 'node:path';-test('model declarations and event snapshots retain engines 1 through 10 semantics [O8,O3,H16]', (t) => {- assert.equal(ENGINE_VERSION, 11, 'engine 11 preserves the released engine-8 through engine-10 model behavior');- for (const version of [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ENGINE_VERSION]) {+test('model declarations and event snapshots retain engines 1 through 11 semantics [O8,O3,H16]', (t) => {+ assert.equal(ENGINE_VERSION, 12, 'engine 12 preserves the released engine-8 through engine-11 model behavior');+ for (const version of [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ENGINE_VERSION]) {const board = store.openBoard(':memory:');t.after(() => store.closeBoard(board));const registration = prepareEngineMove(board, 'register', [{ lane: 'web', path: '/web', model: 'First Model' }]);diff --git a/test/pending-refreeze.test.js b/test/pending-refreeze.test.jsindex 82762011..15ad01aa 100644--- a/test/pending-refreeze.test.js+++ b/test/pending-refreeze.test.js@@ -243,16 +243,16 @@ async function checkDependencyLegacyClients(cleanup, directory, snapshot, targetconst oldFeature = legacyEngine.applyRelayMove(old, engine10Move, engine10Receipt);const currentFeature = applyRelayMove(current, engine10Move, engine10Receipt);assert.equal(oldFeature.error, undefined, JSON.stringify(oldFeature));- assert.deepEqual(currentFeature, oldFeature, 'engine 11 reproduces engine 10 dependency additions and clears');+ assert.deepEqual(currentFeature, oldFeature, 'engine 12 reproduces engine 10 dependency additions and clears');assert.deepEqual(store.getItem(current, target), legacyStore.getItem(old, target));- assert.deepEqual(store.events(current), legacyStore.events(old), 'engine 10 and engine 11 replay identical events');+ assert.deepEqual(store.events(current), legacyStore.events(old), 'engine 10 and engine 12 replay identical events');assert.equal(appliedSequence(current), legacyEngine.appliedSequence(old));assert.deepEqual(engineReceipt(current, engine10Move.id), legacyEngine.engineReceipt(old, engine10Move.id),- 'engine 10 and engine 11 retain the same dependency-move receipts');+ 'engine 10 and engine 12 retain the same dependency-move receipts');const oldSnapshot = legacyExchange.exportBoard(old);const currentSnapshot = exportBoard(current);assert.equal(oldSnapshot.tables.board_meta.find((row) => row.meta_key === 'relay_engine_version').meta_value, '10');- assert.equal(currentSnapshot.tables.board_meta.find((row) => row.meta_key === 'relay_engine_version').meta_value, '11');+ assert.equal(currentSnapshot.tables.board_meta.find((row) => row.meta_key === 'relay_engine_version').meta_value, '12');assert.deepEqual(withoutEngineMarker(currentSnapshot), withoutEngineMarker(oldSnapshot),'the sole snapshot difference is the intentionally newer writer-version marker');}@@ -261,7 +261,7 @@ async function checkDependencyLegacyClients(cleanup, directory, snapshot, target}test('dependency edits replay the same on every engine [B3,V2,H16]', async (t) => {- assert.equal(ENGINE_VERSION, 11);+ assert.equal(ENGINE_VERSION, 12);const directory = mkdtempSync(join(tmpdir(), 'pullboard-dependency-engines-'));const cleanup = [];t.after(() => {diff --git a/test/row-decisions-replay.test.js b/test/row-decisions-replay.test.jsindex c735516b..8f048ccf 100644--- a/test/row-decisions-replay.test.js+++ b/test/row-decisions-replay.test.js@@ -7,6 +7,7 @@ import { test } from 'node:test';import * as store from '../src/board.js';import { exportBoard, importBoard } from '../src/exchange.js';import { appliedSequence, applyEngineMove, engineReceipt, prepareEngineMove } from '../src/engine.js';+import { ENGINE_VERSION } from '../src/machine.js';import { AGENT_SHELL_MARKERS } from '../src/person.js';const RECORDED_AT = '2026-10-08T18:00:00.000Z';@@ -84,22 +85,48 @@ test('captured person decisions and coordinator apply replay identically withoutassert.throws(() => store.recordRowDecisions(source, {agentId: 'person', channel: 'view', decisions: [{ ...DECISIONS[0], replacement: DECISIONS[0].source }],}), { code: 'ROW_DECISION' });+ assert.throws(() => store.recordRowDecisions(source, {+ agentId: 'person', channel: 'view', decisions: [{+ ...DECISIONS[1], text: 'Unrelated replacement text.',+ replacement: DECISIONS[1].replacement.replace('The person declined.', 'Unrelated replacement text.'),+ }],+ }), { code: 'ROW_DECISION' }, 'a decline cannot replace the source row with an unrelated phrase');+ const oldEngineExport = exportBoard(source);+ source.executionEngineVersion = 11;+ try {+ assert.throws(() => store.recordRowDecisions(source, {+ agentId: 'person', channel: 'view', decisions: [{+ ...DECISIONS[1], text: 'Decline this rule.',+ replacement: '- L1 [wont] Decline this rule.',+ }],+ }), { code: 'ROW_DECISION' }, 'engine 11 refuses the new preserved-text decline shape');+ assert.throws(() => store.recordRowDecisions(source, {+ agentId: 'person', channel: 'view', decisions: [{+ ...DECISIONS[1], replacement: 'not a row',+ }],+ }), { code: 'ROW_DECISION' }, 'engine 11 still refuses a malformed legacy replacement without throwing');+ } finally {+ delete source.executionEngineVersion;+ }+ assert.deepEqual(exportBoard(source), oldEngineExport, 'engine-version-specific refusals leave the board unchanged');assert.deepEqual(exportBoard(source), baseline, 'actor and source/replacement refusals leave tables and metadata unchanged');- const recordMove = prepareEngineMove(one, 'recordRowDecisions', [{+ const recordMove = { ...prepareEngineMove(one, 'recordRowDecisions', [{agentId: 'person', channel: 'view', decisions: DECISIONS,- }], { id: 'person-row-decisions' });+ }], { id: 'person-row-decisions' }), engine: 11 };const recorded = replayWithDifferentShells(one, two, recordMove, 1, RECORDED_AT);assert.equal(recorded.events.length, 2);assert.ok(recorded.events.every((event) => event.event_kind === 'row_decision' && event.event_by === 'person'));assert.ok(recorded.events.every((event) => event.event_at === RECORDED_AT));+ assert.deepEqual(JSON.parse(recorded.events[1].event_detail).record, DECISIONS[1], 'engine 11 retains the original decline receipt fields');+ assert.equal(store.rowDecisions(one)[1].text, DECISIONS[1].reason, 'engine 11 keeps its historical reason-as-text record');assert.deepEqual(store.rowDecisions(one).map(({ id, decision, applied }) => ({ id, decision, applied })), [{ id: 'G1', decision: 'approve', applied: false },{ id: 'L1', decision: 'decline', applied: false },]);const eventIds = store.rowDecisions(one).map((record) => record.event);- const applyMove = prepareEngineMove(one, 'applyRowDecisions', [{ agentId: 'coordinator', events: eventIds }], { id: 'apply-row-decisions' });+ const applyMove = { ...prepareEngineMove(one, 'applyRowDecisions', [{ agentId: 'coordinator', events: eventIds }], { id: 'apply-row-decisions' }), engine: 11 };const applied = replayWithDifferentShells(one, two, applyMove, 2, APPLIED_AT);assert.equal(applied.events.length, 1);assert.equal(applied.events[0].event_kind, 'row_apply');@@ -115,3 +142,37 @@ test('captured person decisions and coordinator apply replay identically withoutassert.deepEqual(exportBoard(one), complete, 'an acknowledged apply retry appends no duplicate events');assert.equal(readFileSync(sentinel, 'utf8'), sentinelBefore, 'board-only engine operations never rewrite SPEC.md');});++test('engine 12 records preserved decline text and replays a separate reason [S18,S19,H16]', (t) => {+ assert.equal(ENGINE_VERSION, 12);+ const { source, copies: [one, two] } = decisionCopies(t);+ const preserved = {+ kind: 'spec', file: 'SPEC.md', id: 'G2',+ source: '- G2 [draft] Preserve this declined row.',+ replacement: '- G2 [wont] Preserve this declined row.',+ text: 'Preserve this declined row.', decision: 'decline', reason: 'No longer needed.',+ };+ const legacy = {+ ...preserved,+ replacement: '- G2 [wont] No longer needed.',+ text: 'No longer needed.',+ };+ assert.throws(() => store.recordRowDecisions(source, {+ agentId: 'person', channel: 'view', decisions: [legacy],+ }), { code: 'ROW_DECISION' }, 'engine 12 refuses a new legacy-shaped decline');++ const move = prepareEngineMove(one, 'recordRowDecisions', [{+ agentId: 'person', channel: 'view', decisions: [preserved],+ }], { id: 'engine-12-preserved-decline' });+ assert.equal(move.engine, ENGINE_VERSION);+ const first = applyEngineMove(one, move, { sequence: 1, at: RECORDED_AT });+ const second = applyEngineMove(two, move, { sequence: 1, at: RECORDED_AT });+ assert.deepEqual(first, second);+ assert.equal(first.error, undefined);+ assert.equal(JSON.parse(first.events[0].event_detail).record.text, preserved.text);+ assert.equal(JSON.parse(first.events[0].event_detail).record.reason, preserved.reason);+ assert.equal(store.rowDecisions(one)[0].replacement, preserved.replacement);+ assert.equal(store.rowDecisions(one)[0].text, preserved.text);+ assert.equal(store.rowDecisions(one)[0].reason, preserved.reason);+ assert.deepEqual(exportBoard(one), exportBoard(two));+});diff --git a/test/row-decisions.test.js b/test/row-decisions.test.jsindex a916ffb1..0e67edea 100644--- a/test/row-decisions.test.js+++ b/test/row-decisions.test.js@@ -318,7 +318,7 @@ test('[B26] failed view request names its cause', async (t) => {assert.ok(!stderr.includes('stderr-tail-01'), 'stderr older than the last 20 lines is omitted');});-test('[B26,S18,S19] person decisions wait on the board until one apply preserves every other field', async function pendingThenApply(t) {+test('[B26,S18,S19] a declined row keeps its text and its reason', async function pendingThenApply(t) {const box = project();const specPath = join(box.root, SPEC_FILE);const doctrinePath = join(box.root, DOCTRINE_FILE);@@ -345,19 +345,23 @@ test('[B26,S18,S19] person decisions wait on the board until one apply preservesassert.equal(readFileSync(doctrinePath, 'utf8'), beforeDoctrine, 'the doctrine source also waits for coordinator apply');assert.equal(eventCount(box), beforeEvents + 3, 'each decision is recorded as a board event');+ let pendingG2;+ let pendingG2Human;for (const [key, stage] of [['G1', 'approved, pending apply'], ['G2', 'declined, pending apply'], ['doctrine:L1', 'approved, pending apply']]) {const shown = command(box, box.root, 'spec', 'show', key, '--json');assert.equal(shown.status, 0, `${shown.stdout}${shown.stderr}`);const row = JSON.parse(shown.stdout).row;assert.ok(row.decision, `${key} includes the recorded decision`);assert.equal(row.stage, stage);+ if (key === 'G2') {+ pendingG2 = row;+ pendingG2Human = command(box, box.root, 'spec', 'show', 'G2');+ assert.equal(pendingG2Human.status, 0, `${pendingG2Human.stdout}${pendingG2Human.stderr}`);+ }}const stateResponse = await request(`${boardPath}/state`);assert.equal(stateResponse.status, 200);- const state = await stateResponse.json();- assert.equal(state.state.spec.find((row) => row.id === 'G1').stage, 'approved, pending apply');- assert.equal(state.state.spec.find((row) => row.id === 'G2').stage, 'declined, pending apply');- assert.equal(state.state.practice.find((row) => row.id === 'L1').stage, 'approved, pending apply');+ const pendingState = await stateResponse.json();const applied = command(box, box.root, 'spec', 'apply', '--json');assert.equal(applied.status, 0, `${applied.stdout}${applied.stderr}`);@@ -372,9 +376,33 @@ test('[B26,S18,S19] person decisions wait on the board until one apply preservesassert.equal(g2.status, 'wont');assert.equal(g2.tier, 'aim');assert.equal(g2.gate, 'true');- assert.match(g2.text, /not needed/u, 'the decline reason is recorded in the row text');+ assert.equal(g2.text, 'Decline this row.', 'applying a decline preserves the exact approved source text');+ assert.equal(pendingG2.text, 'Decline this row.');+ assert.equal(pendingG2.reason, 'not needed');+ assert.match(pendingG2Human.stdout, /reason: not needed/u);+ assert.equal(pendingState.state.spec.find((row) => row.id === 'G1').stage, 'approved, pending apply');+ assert.equal(pendingState.state.spec.find((row) => row.id === 'G2').stage, 'declined, pending apply');+ assert.equal(pendingState.state.spec.find((row) => row.id === 'G2').text, 'Decline this row.');+ assert.equal(pendingState.state.spec.find((row) => row.id === 'G2').reason, 'not needed');+ assert.equal(pendingState.state.practice.find((row) => row.id === 'L1').stage, 'approved, pending apply');assert.deepEqual(g3, { ...parseSpec(beforeSpec).rows.find((row) => row.id === 'G3') }, 'an unaffected row keeps every parsed field');assert.equal(l1.status, 'approved', 'coordinator apply also handles the repo doctrine file');+ const shownApplied = command(box, box.root, 'spec', 'show', 'G2', '--json');+ assert.equal(shownApplied.status, 0, `${shownApplied.stdout}${shownApplied.stderr}`);+ assert.equal(JSON.parse(shownApplied.stdout).row.text, 'Decline this row.');+ assert.equal(JSON.parse(shownApplied.stdout).row.reason, 'not needed');+ const humanApplied = command(box, box.root, 'spec', 'show', 'G2');+ assert.equal(humanApplied.status, 0, `${humanApplied.stdout}${humanApplied.stderr}`);+ assert.match(humanApplied.stdout, /reason: not needed/u);+ const appliedState = await request(`${boardPath}/state`);+ assert.equal((await appliedState.json()).state.spec.find((row) => row.id === 'G2').reason, 'not needed');++ writeFileSync(specPath, readFileSync(specPath, 'utf8').replace('Decline this row.', 'A later unrelated row text.'));+ const staleReason = command(box, box.root, 'spec', 'show', 'G2', '--json');+ assert.equal(staleReason.status, 0, `${staleReason.stdout}${staleReason.stderr}`);+ assert.equal(Object.hasOwn(JSON.parse(staleReason.stdout).row, 'reason'), false, 'an applied reason is hidden once its exact row text changes');+ const staleState = await request(`${boardPath}/state`);+ assert.equal(Object.hasOwn((await staleState.json()).state.spec.find((row) => row.id === 'G2'), 'reason'), false);const afterEvents = eventCount(box);const again = command(box, box.root, 'spec', 'apply', '--json');assert.equal(again.status, 0, again.stderr);