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.

feat(init): refuse an unknown blueprint before writing [I1,S1]

Corey Olson8bc4a527df3d
diff --git a/src/cli.js b/src/cli.js
index 068d2790..bf397eed 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -247,6 +247,7 @@ const OPTIONS = {
gate: { type: 'string' },
aim: { type: 'boolean' },
section: { type: 'string' },
+ blueprint: { type: 'string' },
route: { type: 'string' },
family: { type: 'string' },
model: { type: 'string' },
@@ -1580,6 +1581,9 @@ function setupCommands(io, { first, values }) {
return {
init: async () => {
const info = repoInfo(io.cwd);
+ // A named blueprint is read and checked before anything is written, so an unknown name
+ // or a broken file leaves the repository untouched (#678).
+ const blueprint = values.blueprint === undefined ? null : readBlueprint(values.blueprint, info.root);
const model = optionalModel(values.model);
const linked = relayLinked(info.root);
const ctx = linked && model !== undefined ? context(io) : null;