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
Merge remote-tracking branch 'origin/main' into core/728-claude
Corey Olson222c248383dc
diff --cc docs/formats.mdindex 3c04e090,56cc62a3..9592a00d--- a/docs/formats.md+++ b/docs/formats.md@@@ -113,8 -113,8 +113,10 @@@ Engine 11 permits resubmitting the samEngine 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.- Engine 24 adds the person's `acceptCheck`: an item's current check, named by its SHA-256 digest, accepted so a check already green on main no longer holds the item on a board whose `checks.provesNothing` is `"hold"`. Only the person may send it, from the terminal or the view; the relay refuses it from an agent or a machine. A move from an older engine is refused before it changes the board or replay cursor, and older clients refuse engine-24 moves before interpreting them.+ Engine 19 makes a corrected bar record why the old one was wrong. Once an item has ever been claimed, an `editItem` that changes its criterion or check must carry `reason`, the text of what the old bar got wrong; without one it is refused with `BAR_REASON`, naming `--reason`. The edit event then records `reason` and `barCorrection: {fields, reject}`: `fields` lists `criterion` and/or `check`, and `reject` is `{verdict, by, reason, at}` when the item's newest verdict is a reject no earlier correction already explained, or `null`. That reject is counted as caused by the bar. The board derives `barCorrection` from its own rows; a move supplies only `reason`. An edit before any claim needs no reason and records one only if given. `pullboard stats` JSON adds `bars`, keyed by agent: `{corrections, barRejects, buildRejects}`. Corrections and the rejects they explain count to the agent who corrected the bar; any other reject counts as the build's, to the agent who added the item. An `editItem` move carrying `reason` requires engine 19, and older engines refuse it with `RELAY_MOVE` before changing their board or cursor. Moves recorded under engines 18 and earlier replay without the reason rule. Engine numbers 13 to 18 are allocated to other changes; whichever lands later renumbers, keeping every earlier engine's replay unchanged.+++Engine 24 adds the person's `acceptCheck`: an item's current check, named by its SHA-256 digest, accepted so a check already green on main no longer holds the item on a board whose `checks.provesNothing` is `"hold"`. Only the person may send it, from the terminal or the view; the relay refuses it from an agent or a machine. A move from an older engine is refused before it changes the board or replay cursor, and older clients refuse engine-24 moves before interpreting them. Engines 20 through 23 are allocated to other changes.+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 --cc src/api-moves.jsindex 9636aeb7,9fb21c1f..361eaab1--- a/src/api-moves.js+++ b/src/api-moves.js@@@ -6,9 -6,8 +6,9 @@@ const MOVES ='spec-approve': { prefix: ['spec', 'approve'], positions: ['ids'], flags: ['by', 'text'] },'spec-decline': { prefix: ['spec', 'decline'], positions: ['ids'], flags: ['reason'] },'spec-answer': { prefix: ['spec', 'answer'], positions: ['row', 'answer'] },+ 'check-accept': { prefix: ['check', 'accept'], item: true },add: { positions: ['lane', 'title'], flags: ['criterion', 'specs', 'parent', 'after', 'brief', 'route', 'check'], booleans: ['wait'], booleans: ['wait'] },- edit: { item: true, flags: ['criterion', 'brief', 'route', 'check'], booleans: ['wait'], booleans: ['wait'] },+ edit: { item: true, flags: ['criterion', 'brief', 'route', 'check', 'reason'], booleans: ['wait'], booleans: ['wait'] },fact: { item: true, positions: ['kind', 'text'], flags: ['supersedes', 'ref'] },claim: { item: true },release: { item: true, flags: ['note'] },diff --cc src/board.jsindex a6c2f7b9,090581bb..21a07f6a--- a/src/board.js+++ b/src/board.js@@@ -15,8 -15,8 +15,9 @@@ import { briefFiles, briefSections } frimport { COORDINATOR } from './config.js';import { ENGINE_VERSION, GUARDS, IN_STATE, MOVES, STATES, UNKNOWN_MOVE, effectiveGuards, storeTriggers } from './machine.js';import { Refused } from './refused.js';+ import { barCorrectionFields } from './bar-corrections.js';import { parseSpec } from './spec.js';+export { acceptCheck } from './check-accept.js';export const ACCEPT_REASON = 'CRITERION_MET';export const PERSON = 'person';diff --cc src/cli.jsindex 51ef5eaa,c82f9c03..f9f097c1--- a/src/cli.js+++ b/src/cli.js@@@ -61,8 -62,8 +62,9 @@@ import} from './spec.js';import { answerQuestion, bundledBlueprints, planBlueprint, readBlueprint, saveBlueprint } from './blueprints.js';import { briefFiles } from './brief.js';+ import { commitFirst, commitOwnerLines, commitOwners, coordinatorInbox, coordinatorInboxLines, inboxFirst } from './resume.js';-import { checkBaseline, prepareCheckBaseline, sayCheckBaseline } from './check-baseline.js';+import { checkBaseline, prepareCheckBaseline, refuseCheckSyntax, sayCheckBaseline } from './check-baseline.js';+import { checkDigest, refuseProvesNothing } from './check-accept.js';import { retryCheckBaselines, startCheckBaseline } from './check-baseline-worker.js';import { compareMainFailures, mainRedMessage, mainRedReworkItems } from './main-red.js';import { runItems } from './run.js';@@@ -2958,9 -2946,9 +2970,10 @@@ function workCommands(io, args)criterion: values.criterion,check: values.check,after: editAfter(values.after),+ ...(values.reason !== undefined ? { reason: values.reason } : {}),};const { item, command } = store.validateItemEdit(board, id, change);+ if (command && command !== item.item_check) refuseCheckSyntax(command);if (command && command !== item.item_check) change.checkBaseline = values.wait ? checkBaseline(ctx.info.root, command) : prepareCheckBaseline(ctx.info.root, command);await ordered(ctx, board, 'editItem', [id, change]);if (change.checkBaseline?.result === 'pending') await launchBaseline(ctx, board, id, change.checkBaseline);diff --cc src/engine.jsindex 3c1c9190,8f1c9ca0..ec4a0f96--- a/src/engine.js+++ b/src/engine.js@@@ -2,7 -2,7 +2,8 @@@import { createHash, randomUUID } from 'node:crypto';import * as store from './board.js';import { recordedRefusal } from './recorded-refusal.js';+ import { BAR_ENGINE, carriesBarReason } from './bar-corrections.js';+import { CHECK_ACCEPT_ENGINE } from './check-accept.js';import { ENGINE_VERSION } from './machine.js';import { Refused } from './refused.js';import { requestMoveProblem, recordRequestMove } from './relay-requests.js';@@@ -21,11 -21,12 +22,12 @@@ export const ENGINE_OPERATIONS = Object]);/** Engine version at which each ordered operation first has stable replay semantics. */-const OPERATION_ENGINE = Object.freeze({ reopen: 8, recordLandingBatch: 8, recordLandingWaiver: 8, recordLandingFlake: 8, finishLandingBatch: 8 });+const OPERATION_ENGINE = Object.freeze({ reopen: 8, recordLandingBatch: 8, recordLandingWaiver: 8, recordLandingFlake: 8, finishLandingBatch: 8, acceptCheck: CHECK_ACCEPT_ENGINE });- /** Dependency edits add engine-10 meaning without changing ordinary historical edit envelopes. */+ /** Dependency edits add engine-10 meaning, and edit reasons engine-19 meaning, without changing ordinary historical edit envelopes. */function minimumOperationEngine(operation, args) {const options = args[1];+ if (carriesBarReason(operation, args)) return BAR_ENGINE;return operation === 'editItem' && options && Object.hasOwn(options, 'after') && options.after !== undefined? 10 : OPERATION_ENGINE[operation] ?? 1;}