Skip to content

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.

chore(core): merge main for doctrine rename [D1,D2,A5]

Corey Olson3ff7a993a202
diff --cc src/cli.js
index a16f17cf,453c3957..e88008f3
--- a/src/cli.js
+++ b/src/cli.js
@@@ -10,7 -10,9 +10,9 @@@ import { pathToFileURL } from 'node:url
import { parseArgs } from 'node:util';
import * as store from './board.js';
import { CONFIG_FILE, COORDINATOR, loadConfig } from './config.js';
-import { loadDoctrine } from './doctrine.js';
+import { doctrineHistory, loadDoctrine } from './doctrine.js';
+ import { requirePersonChannel } from './person.js';
+ import { decisionProjection, planRowApply, prepareRowDecisions, restoreRowApply, writeRowApply } from './row-decisions.js';
import { digestOf, gateReport, runGate, runShell } from './gate.js';
import { bareWorktreeFinding, contains, differFromHead, git, headCommit, headTree, isClean, repoInfo, resolveCommit, tryGit, untracked } from './git.js';
import {
diff --cc src/hooks.js
index c50c375f,09418c2a..c79e14b8
--- a/src/hooks.js
+++ b/src/hooks.js
@@@ -6,8 -6,8 +6,9 @@@
import { spawnSync } from 'node:child_process';
import { chmodSync, existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
import { join } from 'node:path';
+import { DOCTRINE_FILE, LEGACY_DOCTRINE_FILE } from './config.js';
import { git, gitChildEnv, tryGit } from './git.js';
+ import { Refused } from './refused.js';
import { outOfLane } from './lanes.js';
import { citedIds, deletedIds, idProblems } from './spec.js';
diff --cc src/init.js
index 01885b02,890a4348..705e1dd8
--- a/src/init.js
+++ b/src/init.js
@@@ -168,16 -184,18 +184,19 @@@ export function initRepo({ info, openBo
throw new Refused('NOT_MAIN', 'run init in the main checkout; worktrees join a lane instead');
}
const { root } = info;
+ const doctrine = existsSync(join(root, CONFIG_FILE)) ? loadConfig(root).practice : doctrineFile(root);
const gate = detectGate(root);
+ const written = [];
+ /** Record only paths setup actually writes; unrelated files never enter its staging command. */
+ const onWrite = (path) => written.push(path);
const notes = [
- writeNew(join(root, CONFIG_FILE), configTemplate(gate, detectFixers(root)), CONFIG_FILE),
- writeNew(join(root, 'SPEC.md'), specTemplate(basename(root)), 'SPEC.md'),
- writeNew(join(root, doctrine), practiceTemplate(), doctrine),
- ...writeAgentDocs(root),
- ...installHooks(root),
- ...installSkills(root),
- writeSessionHook(root),
+ writeNew(join(root, CONFIG_FILE), configTemplate(gate, detectFixers(root)), CONFIG_FILE, onWrite),
+ writeNew(join(root, 'SPEC.md'), specTemplate(basename(root), gate), 'SPEC.md', onWrite),
- writeNew(join(root, 'PRACTICE.md'), practiceTemplate(), 'PRACTICE.md', onWrite),
++ writeNew(join(root, doctrine), practiceTemplate(), doctrine, onWrite),
+ ...writeAgentDocs(root, onWrite),
+ ...installHooks(root, onWrite),
+ ...installSkills(root, onWrite),
+ writeSessionHook(root, onWrite),
];
const board = openBoardHere();
try {