@oscaner-skills/cdd-engine 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/README.zh-CN.md +2 -2
- package/package.json +4 -3
- package/src-next/__tests__/dead-decl.guard.test.ts +39 -0
- package/src-next/__tests__/floor.guard.test.ts +69 -0
- package/src-next/__tests__/issue-body.guard.test.ts +66 -0
- package/src-next/__tests__/phase-suffix.guard.test.ts +72 -0
- package/src-next/__tests__/smoke.integration.test.ts +60 -77
- package/src-next/__tests__/support/strip-comments.ts +99 -0
- package/src-next/__tests__/zero-dep.test.ts +6 -46
- package/src-next/contract/__tests__/__snapshots__/project.schema.overall-spec.snap +39 -21
- package/src-next/contract/__tests__/__snapshots__/project.schema.phase-spec.snap +40 -28
- package/src-next/contract/__tests__/__snapshots__/project.schema.plan.snap +40 -23
- package/src-next/contract/__tests__/__snapshots__/project.schema.single-spec.snap +38 -21
- package/src-next/contract/__tests__/__snapshots__/project.shape.overall-spec.snap +21 -6
- package/src-next/contract/__tests__/__snapshots__/project.shape.phase-spec.snap +22 -12
- package/src-next/contract/__tests__/__snapshots__/project.shape.plan.snap +23 -8
- package/src-next/contract/__tests__/__snapshots__/project.shape.single-spec.snap +21 -6
- package/src-next/contract/__tests__/declare.test.ts +251 -12
- package/src-next/contract/__tests__/doc.test.ts +214 -45
- package/src-next/contract/__tests__/dockey.guard.test.ts +58 -0
- package/src-next/contract/__tests__/edge-conditions.guard.test.ts +81 -0
- package/src-next/contract/__tests__/frontmatter.test.ts +164 -0
- package/src-next/contract/__tests__/judge.test.ts +410 -172
- package/src-next/contract/__tests__/lint.test.ts +49 -39
- package/src-next/contract/__tests__/project.test.ts +60 -19
- package/src-next/contract/__tests__/structure-pin.test.ts +186 -0
- package/src-next/contract/declare.ts +179 -91
- package/src-next/contract/doc.ts +227 -164
- package/src-next/contract/frontmatter.ts +233 -0
- package/src-next/contract/home-extractors.ts +397 -0
- package/src-next/contract/invariants.ts +214 -69
- package/src-next/contract/judge.ts +28 -19
- package/src-next/contract/lint.ts +5 -41
- package/src-next/contract/project.ts +103 -43
- package/src-next/contract/skill-anatomy.ts +39 -11
- package/src-next/face/__tests__/board-view.test.ts +318 -115
- package/src-next/face/__tests__/capsule.test.ts +49 -25
- package/src-next/face/__tests__/channel-closure.guard.test.ts +28 -1
- package/src-next/face/__tests__/cli.test.ts +1091 -837
- package/src-next/face/__tests__/face.test.ts +5 -5
- package/src-next/face/__tests__/install-rows.guard.test.ts +58 -0
- package/src-next/face/__tests__/preview.test.ts +374 -0
- package/src-next/face/__tests__/projection.test.ts +5 -3
- package/src-next/face/__tests__/repo-root.guard.test.ts +120 -0
- package/src-next/face/__tests__/termination.test.ts +650 -0
- package/src-next/face/artifacts.ts +90 -37
- package/src-next/face/board-view.ts +128 -138
- package/src-next/face/capsule.ts +30 -16
- package/src-next/face/cli.ts +306 -97
- package/src-next/face/declare.ts +15 -18
- package/src-next/face/gate.ts +19 -18
- package/src-next/face/host.ts +6 -30
- package/src-next/face/lifecycle.ts +213 -188
- package/src-next/face/preview.ts +151 -0
- package/src-next/face/projection.ts +4 -1
- package/src-next/face/route-render.ts +39 -14
- package/src-next/face/termination.ts +573 -0
- package/src-next/face/words.ts +20 -2
- package/src-next/infra/__tests__/infra.test.ts +49 -3
- package/src-next/infra/__tests__/root.test.ts +56 -0
- package/src-next/infra/doc-roots.ts +29 -0
- package/src-next/infra/root.ts +73 -0
- package/src-next/infra/runtime.ts +12 -65
- package/src-next/infra/workspace.ts +95 -5
- package/src-next/render/__tests__/render.test.ts +92 -41
- package/src-next/render/__tests__/skeleton.test.ts +282 -64
- package/src-next/render/issue-body.ts +5 -2
- package/src-next/render/skeleton.ts +155 -90
- package/src-next/render/templates.ts +51 -56
- package/src-next/session/__tests__/graph.test.ts +11 -4
- package/src-next/session/__tests__/ledger.test.ts +3 -2
- package/src-next/session/__tests__/next.test.ts +100 -8
- package/src-next/session/__tests__/preflight.test.ts +79 -25
- package/src-next/session/__tests__/round-naming.test.ts +142 -0
- package/src-next/session/__tests__/run.test.ts +140 -128
- package/src-next/session/__tests__/wave.test.ts +11 -4
- package/src-next/session/ledger.ts +96 -24
- package/src-next/session/next.ts +116 -15
- package/src-next/session/preflight.ts +41 -10
- package/src-next/session/round-naming.ts +84 -0
- package/src-next/session/run.ts +24 -20
- package/templates/report/issue-body.json +0 -46
- package/src-next/face/__tests__/sync-runner.test.ts +0 -70
|
@@ -11,6 +11,7 @@ import { readdirSync, readFileSync } from "node:fs";
|
|
|
11
11
|
import { dirname, join, relative, resolve, sep } from "node:path";
|
|
12
12
|
import { fileURLToPath } from "node:url";
|
|
13
13
|
import { expect, it } from "vitest";
|
|
14
|
+
import { stripComments } from "./support/strip-comments.ts";
|
|
14
15
|
|
|
15
16
|
const SRC_NEXT = fileURLToPath(new URL("../", import.meta.url));
|
|
16
17
|
const PKG_ROOT = fileURLToPath(new URL("../../", import.meta.url)); // packages/cdd-engine/
|
|
@@ -36,52 +37,11 @@ const retiredByResolved = (resolved: string): RetiredPlane | null => {
|
|
|
36
37
|
const SPECIFIER_PATTERN = /(?:from\s+|import\s*\(\s*)(['"])([^'"]+)\1/g;
|
|
37
38
|
const SIDE_EFFECT_PATTERN = /^\s*import\s+(['"])([^'"]+)\1/gm;
|
|
38
39
|
|
|
39
|
-
//
|
|
40
|
-
//
|
|
41
|
-
//
|
|
42
|
-
//
|
|
43
|
-
//
|
|
44
|
-
const stripComments = (code: string): string => {
|
|
45
|
-
let out = "";
|
|
46
|
-
let i = 0;
|
|
47
|
-
let inLineComment = false;
|
|
48
|
-
let inBlockComment = false;
|
|
49
|
-
let inString: "'" | '"' | "`" | null = null;
|
|
50
|
-
while (i < code.length) {
|
|
51
|
-
const c = code[i];
|
|
52
|
-
const next = code[i + 1];
|
|
53
|
-
if (inLineComment) {
|
|
54
|
-
if (c === "\n") {
|
|
55
|
-
inLineComment = false;
|
|
56
|
-
out += c;
|
|
57
|
-
}
|
|
58
|
-
i++;
|
|
59
|
-
} else if (inBlockComment) {
|
|
60
|
-
if (c === "*" && next === "/") inBlockComment = false;
|
|
61
|
-
i++;
|
|
62
|
-
} else if (inString) {
|
|
63
|
-
if (c === "\\") {
|
|
64
|
-
out += c + (next ?? "");
|
|
65
|
-
i += 2;
|
|
66
|
-
} else {
|
|
67
|
-
out += c;
|
|
68
|
-
if (c === inString) inString = null;
|
|
69
|
-
i++;
|
|
70
|
-
}
|
|
71
|
-
} else if (c === "/" && next === "/") {
|
|
72
|
-
inLineComment = true;
|
|
73
|
-
i += 2;
|
|
74
|
-
} else if (c === "/" && next === "*") {
|
|
75
|
-
inBlockComment = true;
|
|
76
|
-
i += 2;
|
|
77
|
-
} else {
|
|
78
|
-
if (c === "'" || c === '"' || c === "`") inString = c;
|
|
79
|
-
out += c;
|
|
80
|
-
i++;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return out;
|
|
84
|
-
};
|
|
40
|
+
// Comment elision (line + block) with string literals kept verbatim — the shared
|
|
41
|
+
// length-preserving stripper (P9 branch-review-1 F4: one stripper for both source
|
|
42
|
+
// guards, `./support/strip-comments.ts`), so prose that quotes a `from "../src/x"`
|
|
43
|
+
// idiom never trips the guard and its heuristic boundary can never drift apart from
|
|
44
|
+
// the structural pin's copy.
|
|
85
45
|
|
|
86
46
|
const listTsFiles = (dir: string, files: string[]): string[] => {
|
|
87
47
|
for (const entry of readdirSync(dir, { withFileTypes: true })) {
|
|
@@ -2,33 +2,38 @@
|
|
|
2
2
|
"docType": "overall-spec",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"title": "overall-spec document structure",
|
|
5
|
-
"description": "Derived JSON Schema —
|
|
5
|
+
"description": "Derived JSON Schema — 42 declared elements · 35 required",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
|
-
"
|
|
8
|
+
"title": {
|
|
9
9
|
"type": "string",
|
|
10
|
-
"pattern": "
|
|
11
|
-
"description": "presence: required · home:
|
|
10
|
+
"pattern": "^.+$",
|
|
11
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
13
|
+
"doc-type": {
|
|
14
14
|
"type": "string",
|
|
15
|
-
"pattern": "
|
|
16
|
-
"description": "presence: required · home:
|
|
15
|
+
"pattern": "^(overall-spec|plan|phase-spec|single-spec)$",
|
|
16
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"version": {
|
|
19
19
|
"type": "string",
|
|
20
|
-
"pattern": "
|
|
21
|
-
"description": "presence: required · home:
|
|
20
|
+
"pattern": "^v\\d+\\.\\d+$",
|
|
21
|
+
"description": "presence: required · home: frontmatter · ref: version-lineage"
|
|
22
22
|
},
|
|
23
|
-
"
|
|
23
|
+
"date": {
|
|
24
24
|
"type": "string",
|
|
25
|
-
"pattern": "
|
|
26
|
-
"description": "presence: required · home:
|
|
25
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
26
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
27
27
|
},
|
|
28
|
-
"
|
|
28
|
+
"status": {
|
|
29
29
|
"type": "string",
|
|
30
|
-
"pattern": "
|
|
31
|
-
"description": "presence: required · home:
|
|
30
|
+
"pattern": "^(Draft|Approved|In progress|Complete)$",
|
|
31
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
32
|
+
},
|
|
33
|
+
"author": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^.+$",
|
|
36
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
32
37
|
},
|
|
33
38
|
"## Document scope": {
|
|
34
39
|
"type": "string",
|
|
@@ -65,6 +70,16 @@
|
|
|
65
70
|
"pattern": "^## Boundary rules$",
|
|
66
71
|
"description": "presence: required · home: section · ref: none"
|
|
67
72
|
},
|
|
73
|
+
"## Constraints": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"pattern": "^## Constraints$",
|
|
76
|
+
"description": "presence: required · home: section · ref: none"
|
|
77
|
+
},
|
|
78
|
+
"Constraint delta bullet": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"pattern": "^- ",
|
|
81
|
+
"description": "presence: required · home: section · ref: none"
|
|
82
|
+
},
|
|
68
83
|
"## Maintenance": {
|
|
69
84
|
"type": "string",
|
|
70
85
|
"pattern": "^## Maintenance$",
|
|
@@ -202,11 +217,12 @@
|
|
|
202
217
|
}
|
|
203
218
|
},
|
|
204
219
|
"required": [
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
-
"
|
|
220
|
+
"title",
|
|
221
|
+
"doc-type",
|
|
222
|
+
"version",
|
|
223
|
+
"date",
|
|
224
|
+
"status",
|
|
225
|
+
"author",
|
|
210
226
|
"## Document scope",
|
|
211
227
|
"## File paths",
|
|
212
228
|
"## Program charter",
|
|
@@ -214,6 +230,8 @@
|
|
|
214
230
|
"## Phase inventory",
|
|
215
231
|
"## Dependency graph",
|
|
216
232
|
"## Boundary rules",
|
|
233
|
+
"## Constraints",
|
|
234
|
+
"Constraint delta bullet",
|
|
217
235
|
"## Maintenance",
|
|
218
236
|
"## Change history",
|
|
219
237
|
"### Goal",
|
|
@@ -2,43 +2,53 @@
|
|
|
2
2
|
"docType": "phase-spec",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"title": "phase-spec document structure",
|
|
5
|
-
"description": "Derived JSON Schema —
|
|
5
|
+
"description": "Derived JSON Schema — 27 declared elements · 19 required",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
|
-
"
|
|
8
|
+
"title": {
|
|
9
9
|
"type": "string",
|
|
10
|
-
"pattern": "
|
|
11
|
-
"description": "presence: required · home:
|
|
10
|
+
"pattern": "^.+$",
|
|
11
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
13
|
+
"doc-type": {
|
|
14
14
|
"type": "string",
|
|
15
|
-
"pattern": "
|
|
16
|
-
"description": "presence: required · home:
|
|
15
|
+
"pattern": "^(overall-spec|plan|phase-spec|single-spec)$",
|
|
16
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"version": {
|
|
19
19
|
"type": "string",
|
|
20
|
-
"pattern": "
|
|
21
|
-
"description": "presence: required · home:
|
|
20
|
+
"pattern": "^v\\d+\\.\\d+$",
|
|
21
|
+
"description": "presence: required · home: frontmatter · ref: version-lineage"
|
|
22
|
+
},
|
|
23
|
+
"date": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
26
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
22
27
|
},
|
|
23
|
-
"
|
|
28
|
+
"status": {
|
|
24
29
|
"type": "string",
|
|
25
|
-
"pattern": "
|
|
26
|
-
"description": "presence: required · home:
|
|
30
|
+
"pattern": "^(Draft|Approved|Plan pending|Shipped)$",
|
|
31
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
27
32
|
},
|
|
28
|
-
"
|
|
33
|
+
"author": {
|
|
29
34
|
"type": "string",
|
|
30
|
-
"pattern": "
|
|
31
|
-
"description": "presence: required · home:
|
|
35
|
+
"pattern": "^.+$",
|
|
36
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
32
37
|
},
|
|
33
|
-
"
|
|
38
|
+
"parent-program": {
|
|
34
39
|
"type": "string",
|
|
35
|
-
"pattern": "
|
|
36
|
-
"description": "presence: required · home:
|
|
40
|
+
"pattern": "^.+$",
|
|
41
|
+
"description": "presence: required · home: frontmatter · ref: parent-program"
|
|
42
|
+
},
|
|
43
|
+
"parent-version": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"pattern": "^v\\d+\\.\\d+$",
|
|
46
|
+
"description": "presence: optional · home: frontmatter · ref: version-lineage"
|
|
37
47
|
},
|
|
38
|
-
"
|
|
48
|
+
"depends-on": {
|
|
39
49
|
"type": "string",
|
|
40
|
-
"pattern": "
|
|
41
|
-
"description": "presence:
|
|
50
|
+
"pattern": "^.+$",
|
|
51
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
42
52
|
},
|
|
43
53
|
"## Design": {
|
|
44
54
|
"type": "string",
|
|
@@ -132,12 +142,14 @@
|
|
|
132
142
|
}
|
|
133
143
|
},
|
|
134
144
|
"required": [
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
145
|
+
"title",
|
|
146
|
+
"doc-type",
|
|
147
|
+
"version",
|
|
148
|
+
"date",
|
|
149
|
+
"status",
|
|
150
|
+
"author",
|
|
151
|
+
"parent-program",
|
|
152
|
+
"depends-on",
|
|
141
153
|
"## Design",
|
|
142
154
|
"### N. group heading",
|
|
143
155
|
"#### N.M item heading",
|
|
@@ -2,38 +2,53 @@
|
|
|
2
2
|
"docType": "plan",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"title": "plan document structure",
|
|
5
|
-
"description": "Derived JSON Schema —
|
|
5
|
+
"description": "Derived JSON Schema — 31 declared elements · 24 required",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
|
-
"
|
|
8
|
+
"title": {
|
|
9
9
|
"type": "string",
|
|
10
|
-
"pattern": "
|
|
11
|
-
"description": "presence: required · home:
|
|
10
|
+
"pattern": "^.+$",
|
|
11
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
13
|
+
"doc-type": {
|
|
14
14
|
"type": "string",
|
|
15
|
-
"pattern": "
|
|
16
|
-
"description": "presence: required · home:
|
|
15
|
+
"pattern": "^(overall-spec|plan|phase-spec|single-spec)$",
|
|
16
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"version": {
|
|
19
19
|
"type": "string",
|
|
20
|
-
"pattern": "
|
|
21
|
-
"description": "presence: required · home:
|
|
20
|
+
"pattern": "^v\\d+\\.\\d+$",
|
|
21
|
+
"description": "presence: required · home: frontmatter · ref: version-lineage"
|
|
22
22
|
},
|
|
23
|
-
"
|
|
23
|
+
"date": {
|
|
24
24
|
"type": "string",
|
|
25
|
-
"pattern": "
|
|
26
|
-
"description": "presence: required · home:
|
|
25
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
26
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
27
|
+
},
|
|
28
|
+
"spec": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^.+$",
|
|
31
|
+
"description": "presence: required · home: frontmatter · ref: spec-ref"
|
|
32
|
+
},
|
|
33
|
+
"parent-program": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^.+$",
|
|
36
|
+
"description": "presence: required · home: frontmatter · ref: parent-program"
|
|
37
|
+
},
|
|
38
|
+
"parent-version": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"pattern": "^v\\d+\\.\\d+$",
|
|
41
|
+
"description": "presence: optional · home: frontmatter · ref: version-lineage"
|
|
27
42
|
},
|
|
28
|
-
"
|
|
43
|
+
"depends-on": {
|
|
29
44
|
"type": "string",
|
|
30
|
-
"pattern": "
|
|
31
|
-
"description": "presence: optional · home:
|
|
45
|
+
"pattern": "^.+$",
|
|
46
|
+
"description": "presence: optional · home: frontmatter · ref: phase-id"
|
|
32
47
|
},
|
|
33
|
-
"
|
|
48
|
+
"base": {
|
|
34
49
|
"type": "string",
|
|
35
|
-
"pattern": "
|
|
36
|
-
"description": "presence: optional · home:
|
|
50
|
+
"pattern": "^.+$",
|
|
51
|
+
"description": "presence: optional · home: frontmatter · ref: none"
|
|
37
52
|
},
|
|
38
53
|
"## Constraints": {
|
|
39
54
|
"type": "string",
|
|
@@ -147,10 +162,12 @@
|
|
|
147
162
|
}
|
|
148
163
|
},
|
|
149
164
|
"required": [
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
165
|
+
"title",
|
|
166
|
+
"doc-type",
|
|
167
|
+
"version",
|
|
168
|
+
"date",
|
|
169
|
+
"spec",
|
|
170
|
+
"parent-program",
|
|
154
171
|
"## Constraints",
|
|
155
172
|
"Constraint delta bullet",
|
|
156
173
|
"### Task N:",
|
|
@@ -2,33 +2,48 @@
|
|
|
2
2
|
"docType": "single-spec",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"title": "single-spec document structure",
|
|
5
|
-
"description": "Derived JSON Schema —
|
|
5
|
+
"description": "Derived JSON Schema — 16 declared elements · 15 required",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
|
-
"
|
|
8
|
+
"title": {
|
|
9
9
|
"type": "string",
|
|
10
|
-
"pattern": "
|
|
11
|
-
"description": "presence: required · home:
|
|
10
|
+
"pattern": "^.+$",
|
|
11
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
13
|
+
"doc-type": {
|
|
14
14
|
"type": "string",
|
|
15
|
-
"pattern": "
|
|
16
|
-
"description": "presence: required · home:
|
|
15
|
+
"pattern": "^(overall-spec|plan|phase-spec|single-spec)$",
|
|
16
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"version": {
|
|
19
19
|
"type": "string",
|
|
20
|
-
"pattern": "
|
|
21
|
-
"description": "presence: required · home:
|
|
20
|
+
"pattern": "^v\\d+\\.\\d+$",
|
|
21
|
+
"description": "presence: required · home: frontmatter · ref: version-lineage"
|
|
22
|
+
},
|
|
23
|
+
"date": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
26
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
27
|
+
},
|
|
28
|
+
"status": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^(Draft|Approved|In progress|Complete)$",
|
|
31
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
32
|
+
},
|
|
33
|
+
"author": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^.+$",
|
|
36
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
22
37
|
},
|
|
23
|
-
"
|
|
38
|
+
"depends-on": {
|
|
24
39
|
"type": "string",
|
|
25
|
-
"pattern": "
|
|
26
|
-
"description": "presence: required · home:
|
|
40
|
+
"pattern": "^.+$",
|
|
41
|
+
"description": "presence: required · home: frontmatter · ref: none"
|
|
27
42
|
},
|
|
28
|
-
"
|
|
43
|
+
"issues": {
|
|
29
44
|
"type": "string",
|
|
30
|
-
"pattern": "
|
|
31
|
-
"description": "presence:
|
|
45
|
+
"pattern": "^.+$",
|
|
46
|
+
"description": "presence: optional · home: frontmatter · ref: none"
|
|
32
47
|
},
|
|
33
48
|
"## Background & root cause": {
|
|
34
49
|
"type": "string",
|
|
@@ -72,11 +87,13 @@
|
|
|
72
87
|
}
|
|
73
88
|
},
|
|
74
89
|
"required": [
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
90
|
+
"title",
|
|
91
|
+
"doc-type",
|
|
92
|
+
"version",
|
|
93
|
+
"date",
|
|
94
|
+
"status",
|
|
95
|
+
"author",
|
|
96
|
+
"depends-on",
|
|
80
97
|
"## Background & root cause",
|
|
81
98
|
"## Design decisions",
|
|
82
99
|
"## Acceptance",
|
|
@@ -2,30 +2,35 @@
|
|
|
2
2
|
"docType": "overall-spec",
|
|
3
3
|
"structure": [
|
|
4
4
|
{
|
|
5
|
-
"home": "
|
|
5
|
+
"home": "frontmatter",
|
|
6
6
|
"elements": [
|
|
7
7
|
{
|
|
8
|
-
"anchor": "
|
|
8
|
+
"anchor": "title",
|
|
9
9
|
"presence": "required",
|
|
10
10
|
"refKind": "none"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
|
-
"anchor": "
|
|
13
|
+
"anchor": "doc-type",
|
|
14
|
+
"presence": "required",
|
|
15
|
+
"refKind": "none"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"anchor": "version",
|
|
14
19
|
"presence": "required",
|
|
15
20
|
"refKind": "version-lineage"
|
|
16
21
|
},
|
|
17
22
|
{
|
|
18
|
-
"anchor": "
|
|
23
|
+
"anchor": "date",
|
|
19
24
|
"presence": "required",
|
|
20
25
|
"refKind": "none"
|
|
21
26
|
},
|
|
22
27
|
{
|
|
23
|
-
"anchor": "
|
|
28
|
+
"anchor": "status",
|
|
24
29
|
"presence": "required",
|
|
25
30
|
"refKind": "none"
|
|
26
31
|
},
|
|
27
32
|
{
|
|
28
|
-
"anchor": "
|
|
33
|
+
"anchor": "author",
|
|
29
34
|
"presence": "required",
|
|
30
35
|
"refKind": "none"
|
|
31
36
|
}
|
|
@@ -69,6 +74,16 @@
|
|
|
69
74
|
"presence": "required",
|
|
70
75
|
"refKind": "none"
|
|
71
76
|
},
|
|
77
|
+
{
|
|
78
|
+
"anchor": "## Constraints",
|
|
79
|
+
"presence": "required",
|
|
80
|
+
"refKind": "none"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"anchor": "Constraint delta bullet",
|
|
84
|
+
"presence": "required",
|
|
85
|
+
"refKind": "none"
|
|
86
|
+
},
|
|
72
87
|
{
|
|
73
88
|
"anchor": "## Maintenance",
|
|
74
89
|
"presence": "required",
|
|
@@ -2,42 +2,52 @@
|
|
|
2
2
|
"docType": "phase-spec",
|
|
3
3
|
"structure": [
|
|
4
4
|
{
|
|
5
|
-
"home": "
|
|
5
|
+
"home": "frontmatter",
|
|
6
6
|
"elements": [
|
|
7
7
|
{
|
|
8
|
-
"anchor": "
|
|
8
|
+
"anchor": "title",
|
|
9
9
|
"presence": "required",
|
|
10
10
|
"refKind": "none"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
|
-
"anchor": "
|
|
13
|
+
"anchor": "doc-type",
|
|
14
|
+
"presence": "required",
|
|
15
|
+
"refKind": "none"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"anchor": "version",
|
|
14
19
|
"presence": "required",
|
|
15
20
|
"refKind": "version-lineage"
|
|
16
21
|
},
|
|
17
22
|
{
|
|
18
|
-
"anchor": "
|
|
23
|
+
"anchor": "date",
|
|
19
24
|
"presence": "required",
|
|
20
25
|
"refKind": "none"
|
|
21
26
|
},
|
|
22
27
|
{
|
|
23
|
-
"anchor": "
|
|
28
|
+
"anchor": "status",
|
|
24
29
|
"presence": "required",
|
|
25
30
|
"refKind": "none"
|
|
26
31
|
},
|
|
27
32
|
{
|
|
28
|
-
"anchor": "
|
|
33
|
+
"anchor": "author",
|
|
29
34
|
"presence": "required",
|
|
30
|
-
"refKind": "
|
|
35
|
+
"refKind": "none"
|
|
31
36
|
},
|
|
32
37
|
{
|
|
33
|
-
"anchor": "
|
|
38
|
+
"anchor": "parent-program",
|
|
34
39
|
"presence": "required",
|
|
35
|
-
"refKind": "
|
|
40
|
+
"refKind": "parent-program"
|
|
36
41
|
},
|
|
37
42
|
{
|
|
38
|
-
"anchor": "
|
|
39
|
-
"presence": "
|
|
40
|
-
"refKind": "
|
|
43
|
+
"anchor": "parent-version",
|
|
44
|
+
"presence": "optional",
|
|
45
|
+
"refKind": "version-lineage"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"anchor": "depends-on",
|
|
49
|
+
"presence": "required",
|
|
50
|
+
"refKind": "none"
|
|
41
51
|
}
|
|
42
52
|
]
|
|
43
53
|
},
|
|
@@ -2,35 +2,50 @@
|
|
|
2
2
|
"docType": "plan",
|
|
3
3
|
"structure": [
|
|
4
4
|
{
|
|
5
|
-
"home": "
|
|
5
|
+
"home": "frontmatter",
|
|
6
6
|
"elements": [
|
|
7
7
|
{
|
|
8
|
-
"anchor": "
|
|
8
|
+
"anchor": "title",
|
|
9
9
|
"presence": "required",
|
|
10
10
|
"refKind": "none"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
|
-
"anchor": "
|
|
13
|
+
"anchor": "doc-type",
|
|
14
|
+
"presence": "required",
|
|
15
|
+
"refKind": "none"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"anchor": "version",
|
|
19
|
+
"presence": "required",
|
|
20
|
+
"refKind": "version-lineage"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"anchor": "date",
|
|
24
|
+
"presence": "required",
|
|
25
|
+
"refKind": "none"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"anchor": "spec",
|
|
14
29
|
"presence": "required",
|
|
15
30
|
"refKind": "spec-ref"
|
|
16
31
|
},
|
|
17
32
|
{
|
|
18
|
-
"anchor": "
|
|
33
|
+
"anchor": "parent-program",
|
|
19
34
|
"presence": "required",
|
|
20
35
|
"refKind": "parent-program"
|
|
21
36
|
},
|
|
22
37
|
{
|
|
23
|
-
"anchor": "
|
|
24
|
-
"presence": "
|
|
38
|
+
"anchor": "parent-version",
|
|
39
|
+
"presence": "optional",
|
|
25
40
|
"refKind": "version-lineage"
|
|
26
41
|
},
|
|
27
42
|
{
|
|
28
|
-
"anchor": "
|
|
43
|
+
"anchor": "depends-on",
|
|
29
44
|
"presence": "optional",
|
|
30
45
|
"refKind": "phase-id"
|
|
31
46
|
},
|
|
32
47
|
{
|
|
33
|
-
"anchor": "
|
|
48
|
+
"anchor": "base",
|
|
34
49
|
"presence": "optional",
|
|
35
50
|
"refKind": "none"
|
|
36
51
|
}
|