Sync public tree to abeb195

This commit is contained in:
Michel Paulissen 2026-07-04 12:21:09 +02:00
parent c836abc405
commit fa0b074b05
4 changed files with 26 additions and 3 deletions

View file

@ -5,6 +5,15 @@ const fs = require("fs");
const path = require("path");
const repo = path.resolve(__dirname, "..");
if (
fs.existsSync(path.join(repo, "DISASMER_PUBLIC_TREE.json")) &&
!fs.existsSync(path.join(repo, "acceptance_criteria.md"))
) {
console.log(
"Acceptance doc contract smoke skipped: root acceptance markdown is filtered from this public tree"
);
process.exit(0);
}
function read(relativePath) {
return fs.readFileSync(path.join(repo, relativePath), "utf8");
@ -66,6 +75,11 @@ for (const [source, name] of [
]) {
assertEveryCriterionHasStatus(source, name);
assertNoOpenCriteria(source, name);
assert.match(
source,
/Design-document references to billing, paid plans, or plan flags are future metadata placeholders; they do not require MVP/,
`${name} must keep billing/paid-plan placeholders outside MVP implementation scope`
);
}
for (const file of ["MVP.md", "acceptance_criteria.md", "acceptance_criteria_phase2.md", "cli_acceptance_criteria.md"]) {