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): compose reference handling with current main [I1,C7,H16]
Corey Olson26cc3258b511
diff --cc src/board.jsindex 273234c3,3406dca3..0e31c1b7--- a/src/board.js+++ b/src/board.js@@@ -1,12 -1,9 +1,11 @@@- import { foreignBlockers } from './cross-repo-dependencies.js';+import { REFERENCE_ENGINE } from './reference-engine.js';+import { validateReferences } from './reference-authors.js';import {- dependencyValues,- validateNativeDependencies,- localDependencyIds,- dependencyLabel,- } from './item-dependencies.js';+ submissionItemValues,+ recordSubmissionEvent,+ } from './submission-record.js';+ import { foreignBlockers } from './cross-repo-dependencies.js';+ import * as itemDependencies from './item-dependencies.js';import { AGENT_GRANT_ENGINE } from './agent-grant-engine.js';import * as computedConflictEvidence from './computed-conflict-receipt.js';import { reopenAuthority } from './reopen-authority.js';@@@ -211,10 -214,10 +216,7 @@@ importreportDrift,} from './board-migrate.js';export { schemaMissing, writeRefused } from './board-migrate.js';--import {-- briefFiles,-- briefSections,--} from './brief.js';++import { checkRouted } from './item-routing.js';import {itemFiles,itemFileCollisions,@@@ -257,8 -260,11 +259,10 @@@ export { decideSpecRevisions } from './import * as landingEnvironment from './landing-environment-guards.js';import { Refused } from './refused.js';import { saveJoinedSession } from './parent-session.js';- import { itemAuthorProblem } from './item-authors.js';- import { refuseMaskedExit } from './check-mask.js';+ import {+ itemAuthorProblem,+ retainedVerifierIdentityProblem,+ } from './item-authors.js';-import { refuseMaskedExit } from './check-mask.js';import {ROUTES,canTake,@@@ -346,7 -352,7 +350,6 @@@ export { EVENT_LOG_VERSION } from './boexport { BOARD_BUSY_TIMEOUT_MS } from './board-schema-source.js';--const BRIEF_LIMIT = 8000;const REVIEW_RELEASE_COOLDOWN_MS = 60 * 60 * 1000;export const REJECT_REASONS = [@@@ -656,32 -662,31 +659,6 @@@ function checkRoute(route)}}--/**-- * Refuse an item a lighter model could not build cold (B10, B14). Any brief stays short enough to-- * read. Below the strong route the item needs all of it: a criterion, a check command that proves-- * it, and a brief naming the files and the test.-- *-- * @param {{ brief: string, route: string, criterion: string, check: string }} item-- */- function checkRouted({ brief, route, criterion, check }, engine = ENGINE_VERSION) {-function checkRouted({ brief, route, criterion, check }) {-- if (brief.length > BRIEF_LIMIT) {-- throw new Refused('BRIEF_TOO_LONG', `the brief is ${brief.length} characters; keep it under ${BRIEF_LIMIT} and point to longer docs by path`);-- }-- refuseMaskedExit(check);-- if (route === 'strong') return;- const referenceOptions = { references: engine >= REFERENCE_ENGINE };- const sections = briefSections(brief, referenceOptions);- const sections = briefSections(brief);-- const missing = [- ...(briefFiles(brief, referenceOptions).length ? [] : ['a brief with a Files: section naming the paths to touch']),- ...(briefFiles(brief).length ? [] : ['a brief with a Files: section naming the paths to touch']),-- ...(sections.test?.length ? [] : ['a Test: section saying what the test asserts']),-- ...(criterion.trim() ? [] : ['--criterion, saying when it is done']),-- ...(check.trim() ? [] : ['--check, the command that proves it']),-- ];-- if (missing.length) {-- throw new Refused('NO_BRIEF', `an item routed ${route} must be buildable cold; it needs ${missing.join(', ')}`);-- }--}--/*** Add an item to a lane, optionally under a parent in the same lane, with a brief for whoever* builds it and a route saying who can (B10, B11). The caller has checked the lane and the specdiff --cc src/item-routing.jsindex 00000000,00000000..edc283b4new file mode 100644--- /dev/null+++ b/src/item-routing.js@@@ -1,0 -1,0 +1,37 @@@++/** Validate the brief and check required for an item's declared route [B10,B14]. */++import {++ briefFiles,++ briefSections,++} from './brief.js';++import { refuseMaskedExit } from './check-mask.js';++import { REFERENCE_ENGINE } from './reference-engine.js';++import { Refused } from './refused.js';++++const BRIEF_LIMIT = 8000;++++/**++ * Refuse an item a lighter model could not build cold (B10, B14). Any brief stays short enough to++ * read. Below the strong route the item needs all of it: a criterion, a check command that proves++ * it, and a brief naming the files and the test.++ *++ * @param {{ brief: string, route: string, criterion: string, check: string }} item++ */++export function checkRouted({ brief, route, criterion, check }, engine) {++ if (brief.length > BRIEF_LIMIT) {++ throw new Refused('BRIEF_TOO_LONG', `the brief is ${brief.length} characters; keep it under ${BRIEF_LIMIT} and point to longer docs by path`);++ }++ refuseMaskedExit(check);++ if (route === 'strong') return;++ const referenceOptions = { references: engine >= REFERENCE_ENGINE };++ const sections = briefSections(brief, referenceOptions);++ const missing = [++ ...(briefFiles(brief, referenceOptions).length ? [] : ['a brief with a Files: section naming the paths to touch']),++ ...(sections.test?.length ? [] : ['a Test: section saying what the test asserts']),++ ...(criterion.trim() ? [] : ['--criterion, saying when it is done']),++ ...(check.trim() ? [] : ['--check, the command that proves it']),++ ];++ if (missing.length) {++ throw new Refused('NO_BRIEF', `an item routed ${route} must be buildable cold; it needs ${missing.join(', ')}`);++ }++}++