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.

docs(docs): clarify DOCTRINE legacy guidance [I12]

Corey Olsonac72b7ebe3bc
diff --git a/docs/rfcs/0001-standard-doctrine.md b/docs/rfcs/0001-standard-doctrine.md
index 3531f4f4..1322820d 100644
--- a/docs/rfcs/0001-standard-doctrine.md
+++ b/docs/rfcs/0001-standard-doctrine.md
@@ -5,11 +5,11 @@
## Summary
-Pullboard ships a small standard doctrine that every repo inherits: twelve rules nearly every engineer agrees on, whatever the language, team size or workflow. A repo's PRACTICE.md holds only its own rules: it adds to the standard, overrides a rule, or declines one with a reason.
+Pullboard ships a small standard doctrine that every repo inherits: twelve rules nearly every engineer agrees on, whatever the language, team size or workflow. A repo's `DOCTRINE.md` holds only its own rules: it adds to the standard, overrides a rule, or declines one with a reason. A legacy `PRACTICE.md` remains a compatibility fallback.
## Motivation
-Today `pullboard init` copies a 26-rule PRACTICE.md into each repo, and the copy never changes again. Copies drift: Pullboard's own file had drifted from the template, and the two reused ids for different rules. One standard that every repo inherits stays one thing, improves for everyone at once, and can be discussed in one place.
+At the time of this RFC, `pullboard init` copied a 26-rule `PRACTICE.md` into each repo, and the copy never changed again. Those copies drifted: Pullboard's own file had drifted from the template, and two reused ids for different rules. One standard that every repo inherits stays one thing, improves for everyone at once, and can be discussed in one place.
## The standard, version 1
@@ -35,7 +35,7 @@ The rules use the spec row format. Their ids start with PB and are never reused.
## How a repo uses it
-Every repo inherits all of it. Its PRACTICE.md adds rules with its own ids, overrides a standard rule by repeating its PB id with new text, or declines one with a wont row naming the PB id and the reason. Agents and the view see the merged set, each rule marked as the standard's, with its version, or the repo's.
+Every repo inherits all of it. Its `DOCTRINE.md` adds rules with its own ids, overrides a standard rule by repeating its PB id with new text, or declines one with a wont row naming the PB id and the reason. A legacy `PRACTICE.md` remains a compatibility fallback. Agents and the view see the merged set, each rule marked as the standard's, with its version, or the repo's.
## How the standard changes
diff --git a/test/readme.test.js b/test/readme.test.js
index c1643384..55401db9 100644
--- a/test/readme.test.js
+++ b/test/readme.test.js
@@ -49,6 +49,39 @@ test('README names DOCTRINE.md and explains doctrine once [I12]', () => {
assert.doesNotMatch(layout, /PRACTICE\.md/u, 'the location figure leaves the legacy filename to migration guidance');
});
+test('current docs pages and shipped skills use DOCTRINE.md, reserving PRACTICE.md for history or fallback [I12]', () => {
+ /**
+ * List the current Markdown contracts recursively so newly added docs and shipped skills join the audit.
+ * @param {string} directory
+ * @returns {string[]}
+ */
+ function markdownFiles(directory) {
+ return readdirSync(join(ROOT, directory), { withFileTypes: true }).flatMap((entry) => {
+ const path = join(directory, entry.name);
+ if (entry.isDirectory()) return markdownFiles(path);
+ return entry.isFile() && (entry.name.endsWith('.md') || entry.name === 'SKILL.md') ? [path] : [];
+ });
+ }
+
+ const files = [...markdownFiles('docs'), ...markdownFiles('skills')].sort();
+ assert.ok(files.includes('docs/rfcs/0001-standard-doctrine.md'));
+ const specProof = readFileSync(join(ROOT, 'docs/proof/spec.md'), 'utf8');
+ assert.match(specProof, /This checkout still uses legacy `PRACTICE\.md`; new repos use `DOCTRINE\.md`, and `PRACTICE\.md` remains a compatibility fallback/u, 'the proof table is anchored by its explicit legacy-fallback introduction');
+ for (const file of files) {
+ const text = readFileSync(join(ROOT, file), 'utf8');
+ for (const [index, line] of text.split('\n').entries()) {
+ if (!line.includes('PRACTICE.md')) continue;
+ if (file === 'docs/proof/spec.md' && line.startsWith('| S')) continue; // historical proof rows follow the page's legacy-fallback introduction
+ assert.match(line, /legacy|fallback|histor|at the time/i, `${file}:${index + 1} labels PRACTICE.md as legacy, fallback or history`);
+ }
+ }
+
+ const rfc = readFileSync(join(ROOT, 'docs/rfcs/0001-standard-doctrine.md'), 'utf8');
+ assert.match(rfc, /`DOCTRINE\.md`/u, 'the accepted RFC names the current file');
+ assert.match(rfc, /legacy `PRACTICE\.md` remains a compatibility fallback/u, 'the accepted RFC labels the old name only as a fallback');
+ assert.match(rfc, /At the time of this RFC, `pullboard init` copied/u, 'the RFC keeps its old filename in clearly historical context');
+});
+
/**
* Every text in a figure with the box it may take up, from its anchor, font size and length.
*