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(core): explain red gates and main-only spec rows [C7,S8,V10]
Corey Olsona12bc7c51e4e
diff --git a/src/cli.js b/src/cli.jsindex 1596cc27..8b9da011 100644--- a/src/cli.js+++ b/src/cli.js@@ -4105,6 +4105,10 @@ async function specCommand(io, { first, second, rest, values }) {const cited = name === ctx.config.spec ? citations(ctx, history) : new Map();const lost = permanenceProblems(parsed === practice ? practice.repo : parsed, { committed: history.ids, cited });if (name === ctx.config.spec) {+ const mainRows = new Set((previousSources.get(name) ?? []).map(row => row.id));+ for (const problem of lost) {+ if (mainRows.has(problem.id)) problem.message = 'is present on main but missing from this worktree; run git merge main, then pullboard spec check';+ }const answered = handAnsweredQuestions(previousSources.get(name) ?? [], parsed.rows, () => hookRead(ctx, (board) => store.rowDecisions(board)) ?? []);lost.push(...answered.map((id) => ({ id, message: io.guidance(`pending question answered by hand; ask the person to run pullboard spec answer ${id} "<choice or text>" and restore the pending row`) })));}diff --git a/src/gate.js b/src/gate.jsindex 88c7193b..a69e3cd6 100644--- a/src/gate.js+++ b/src/gate.js@@ -157,7 +157,8 @@ export function landingShardCount(root) {* lines under it that say why, then the end of the output, within one cap, so a refusal or a retry* carries the reason and not the whole log. Passing tests are skipped however they are named. The* end has its own share of the cap and every line is cut short, so no single long line can push the- * summary out.+ * summary out. Unstructured commands keep their first diagnostic, and omitted nonempty lines are+ * counted so the excerpt never looks like the complete output.** @param {string} output* @returns {string}@@ -174,7 +175,7 @@ export function digestOf(output) {tail.unshift(lines[at]);room -= lines[at].length + 1;}- room = DIGEST_CHARS - (TAIL_CHARS - room);+ room = DIGEST_CHARS - (TAIL_CHARS - room) - 80; // Reserve the omission count inside the same cap.const body = lines.slice(0, lines.length - tail.length);const failing = [];for (let at = 0; at < body.length && failing.length < 40; at += 1) {@@ -188,7 +189,16 @@ export function digestOf(output) {}at += (end === -1 ? block.length : end) - 1;}- return [...failing, ...tail].join('\n');+ if (!failing.length) {+ for (const line of body.filter(line => !PASSING_RE.test(line)).slice(0, CONTEXT_LINES + 1)) {+ if (line.length >= room) break;+ failing.push(line);+ room -= line.length + 1;+ }+ }+ const omitted = lines.length - failing.length - tail.length;+ const notice = omitted ? [`… ${omitted} nonempty output lines omitted …`] : [];+ return [...failing, ...notice, ...tail].join('\n');}/**@@ -693,5 +703,5 @@ export function gateReport(gate) {if (!gate.profile?.files?.length) return timings ? `${summary}; ${timings.replaceAll('\n', '; ')}${gate.profilePath ? `; timing profile: ${gate.profilePath}` : ''}` : summary;return `${summary}\n${timings}${profilePath}`;}- return `gate red in ${gate.seconds}s:\n${digestOf(gate.output).replace(/^/gm, ' ')}\n${timings ? `${timings}\n` : ''}the whole output is in ${gate.log}${profilePath}`;+ return `gate red in ${gate.seconds}s:\n${(digestOf(gate.output) || '(gate produced no output)').replace(/^/gm, ' ')}\n${timings ? `${timings}\n` : ''}the whole output is in ${gate.log}${profilePath}`;}