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(spec): retain malformed move refusal paths [H16,P6]
Corey Olsonfc00a8f15f17
diff --git a/src/moves/applyRowDecisions.js b/src/moves/applyRowDecisions.jsindex ff942c95..60e5a66c 100644--- a/src/moves/applyRowDecisions.js+++ b/src/moves/applyRowDecisions.js@@ -7,10 +7,10 @@ import { rowDecisions } from '../board-query.js';/** Preserve this operation's historical first-matching engine conditions [H16]. */function minimumEngine(args, board, at) {- if (board?.db && rowDecisions(board).some(record => record.revision && args[0]?.events?.includes(record.event))) {+ if (board?.db && Array.isArray(args[0]?.events) && rowDecisions(board).some(record => record.revision && args[0].events.includes(record.event))) {return Math.max(SPEC_REVISION_ENGINE, args[0]?.landingFence === undefined ? 0 : LANDING_LEASE_ENGINE,- args[1]?.cause?.startsWith('conflict:') ? RIGOR_AUTO_ENGINE : 0,- args[1]?.cause?.startsWith('sentinel:') ? BOARD_SENTINEL_ENGINE : 0);+ typeof args[1]?.cause === 'string' && args[1].cause.startsWith('conflict:') ? RIGOR_AUTO_ENGINE : 0,+ typeof args[1]?.cause === 'string' && args[1].cause.startsWith('sentinel:') ? BOARD_SENTINEL_ENGINE : 0);}if (typeof args[1]?.cause === 'string' && args[1].cause.startsWith('conflict:')) return RIGOR_AUTO_ENGINE;if (args[0]?.landingFence !== undefined) return LANDING_LEASE_ENGINE;diff --git a/src/moves/decideSpecRevisions.js b/src/moves/decideSpecRevisions.jsindex 88e34106..7a091eea 100644--- a/src/moves/decideSpecRevisions.js+++ b/src/moves/decideSpecRevisions.js@@ -7,8 +7,8 @@ import { BOARD_SENTINEL_ENGINE } from '../sentinel-engine.js';/** Retain every applicable surrounding operation floor, including overlapping payload features. */function minimumEngine(args) {return Math.max(SPEC_REVISION_ENGINE, args[0]?.landingFence === undefined ? 0 : LANDING_LEASE_ENGINE,- args[1]?.cause?.startsWith('conflict:') ? RIGOR_AUTO_ENGINE : 0,- args[1]?.cause?.startsWith('sentinel:') ? BOARD_SENTINEL_ENGINE : 0);+ typeof args[1]?.cause === 'string' && args[1].cause.startsWith('conflict:') ? RIGOR_AUTO_ENGINE : 0,+ typeof args[1]?.cause === 'string' && args[1].cause.startsWith('sentinel:') ? BOARD_SENTINEL_ENGINE : 0);}/** The operation's first argument carries its authenticated person actor. */diff --git a/src/moves/draftSpecRow.js b/src/moves/draftSpecRow.jsindex 471c8b33..cc601be4 100644--- a/src/moves/draftSpecRow.js+++ b/src/moves/draftSpecRow.js@@ -9,8 +9,8 @@ import { SPEC_REVISION_ENGINE } from '../spec-revision-engine.js';function minimumEngine(args, board, at) {if (args[0]?.row?.revises !== undefined) return Math.max(SPEC_REVISION_ENGINE, ROW_DRAFT_ENGINE,args[0]?.landingFence === undefined ? 0 : LANDING_LEASE_ENGINE,- args[1]?.cause?.startsWith('conflict:') ? RIGOR_AUTO_ENGINE : 0,- args[1]?.cause?.startsWith('sentinel:') ? BOARD_SENTINEL_ENGINE : 0);+ typeof args[1]?.cause === 'string' && args[1].cause.startsWith('conflict:') ? RIGOR_AUTO_ENGINE : 0,+ typeof args[1]?.cause === 'string' && args[1].cause.startsWith('sentinel:') ? BOARD_SENTINEL_ENGINE : 0);if (typeof args[1]?.cause === 'string' && args[1].cause.startsWith('conflict:')) return RIGOR_AUTO_ENGINE;if (args[0]?.landingFence !== undefined) return LANDING_LEASE_ENGINE;if (typeof args[1]?.cause === 'string' && args[1].cause.startsWith('sentinel:')) return BOARD_SENTINEL_ENGINE;diff --git a/src/moves/recordRowDecisions.js b/src/moves/recordRowDecisions.jsindex 09191939..f9b79d47 100644--- a/src/moves/recordRowDecisions.js+++ b/src/moves/recordRowDecisions.js@@ -6,10 +6,10 @@ import { SPEC_REVISION_ENGINE } from '../spec-revision-engine.js';/** Preserve this operation's historical first-matching engine conditions [H16]. */function minimumEngine(args, board, at) {- if (args[0]?.decisions?.some(record => record.revision !== undefined)) return Math.max(SPEC_REVISION_ENGINE,+ if (Array.isArray(args[0]?.decisions) && args[0].decisions.some(record => record?.revision !== undefined)) return Math.max(SPEC_REVISION_ENGINE,args[0]?.landingFence === undefined ? 0 : LANDING_LEASE_ENGINE,- args[1]?.cause?.startsWith('conflict:') ? RIGOR_AUTO_ENGINE : 0,- args[1]?.cause?.startsWith('sentinel:') ? BOARD_SENTINEL_ENGINE : 0);+ typeof args[1]?.cause === 'string' && args[1].cause.startsWith('conflict:') ? RIGOR_AUTO_ENGINE : 0,+ typeof args[1]?.cause === 'string' && args[1].cause.startsWith('sentinel:') ? BOARD_SENTINEL_ENGINE : 0);if (typeof args[1]?.cause === 'string' && args[1].cause.startsWith('conflict:')) return RIGOR_AUTO_ENGINE;if (args[0]?.landingFence !== undefined) return LANDING_LEASE_ENGINE;if (typeof args[1]?.cause === 'string' && args[1].cause.startsWith('sentinel:')) return BOARD_SENTINEL_ENGINE;