@oscaner-skills/cdd-engine 2.0.0 → 3.0.1

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.
Files changed (127) hide show
  1. package/README.md +2 -2
  2. package/README.zh-CN.md +2 -2
  3. package/{src-next/bin.ts → dist/bin.js} +18 -21
  4. package/dist/contract/declare.js +998 -0
  5. package/dist/contract/doc.js +565 -0
  6. package/dist/contract/frontmatter.js +209 -0
  7. package/dist/contract/home-extractors.js +379 -0
  8. package/dist/contract/invariants.js +1030 -0
  9. package/dist/contract/judge.js +109 -0
  10. package/dist/contract/lint.js +206 -0
  11. package/dist/contract/project.js +371 -0
  12. package/dist/contract/skill-anatomy.js +156 -0
  13. package/dist/contract/translate.js +85 -0
  14. package/dist/face/artifacts.js +189 -0
  15. package/dist/face/board-view.js +522 -0
  16. package/dist/face/capsule.js +141 -0
  17. package/dist/face/cli.js +891 -0
  18. package/dist/face/declare.js +241 -0
  19. package/dist/face/gate.js +158 -0
  20. package/dist/face/graph-view.js +66 -0
  21. package/dist/face/host.js +211 -0
  22. package/dist/face/lifecycle.js +603 -0
  23. package/dist/face/preview.js +136 -0
  24. package/dist/face/projection.js +259 -0
  25. package/dist/face/route-render.js +162 -0
  26. package/dist/face/termination.js +482 -0
  27. package/dist/face/words.js +220 -0
  28. package/{src-next/infra/config.ts → dist/infra/config.js} +19 -24
  29. package/dist/infra/doc-roots.js +19 -0
  30. package/dist/infra/git.js +37 -0
  31. package/dist/infra/process.js +22 -0
  32. package/dist/infra/root.js +62 -0
  33. package/dist/infra/runtime.js +85 -0
  34. package/dist/infra/workspace.js +276 -0
  35. package/dist/render/brief.js +82 -0
  36. package/dist/render/issue-body.js +129 -0
  37. package/dist/render/skeleton.js +434 -0
  38. package/dist/render/templates.js +520 -0
  39. package/dist/session/faces.js +38 -0
  40. package/dist/session/graph.js +309 -0
  41. package/dist/session/handoff-schema.js +295 -0
  42. package/dist/session/ledger.js +762 -0
  43. package/dist/session/next.js +211 -0
  44. package/dist/session/preflight.js +194 -0
  45. package/dist/session/round-naming.js +73 -0
  46. package/dist/session/run.js +441 -0
  47. package/dist/session/state.js +8 -0
  48. package/dist/session/wave.js +92 -0
  49. package/package.json +8 -7
  50. package/templates/report/issue-body.json +0 -46
  51. package/src-next/__tests__/bin.test.ts +0 -128
  52. package/src-next/__tests__/smoke.integration.test.ts +0 -202
  53. package/src-next/__tests__/zero-dep.test.ts +0 -134
  54. package/src-next/contract/__tests__/__snapshots__/project.schema.overall-spec.snap +0 -238
  55. package/src-next/contract/__tests__/__snapshots__/project.schema.phase-spec.snap +0 -153
  56. package/src-next/contract/__tests__/__snapshots__/project.schema.plan.snap +0 -173
  57. package/src-next/contract/__tests__/__snapshots__/project.schema.single-spec.snap +0 -89
  58. package/src-next/contract/__tests__/__snapshots__/project.shape.overall-spec.snap +0 -225
  59. package/src-next/contract/__tests__/__snapshots__/project.shape.phase-spec.snap +0 -155
  60. package/src-next/contract/__tests__/__snapshots__/project.shape.plan.snap +0 -175
  61. package/src-next/contract/__tests__/__snapshots__/project.shape.single-spec.snap +0 -85
  62. package/src-next/contract/__tests__/declare.test.ts +0 -242
  63. package/src-next/contract/__tests__/doc.test.ts +0 -358
  64. package/src-next/contract/__tests__/judge.test.ts +0 -873
  65. package/src-next/contract/__tests__/lint.test.ts +0 -314
  66. package/src-next/contract/__tests__/project.test.ts +0 -419
  67. package/src-next/contract/__tests__/translate.test.ts +0 -96
  68. package/src-next/contract/declare.ts +0 -983
  69. package/src-next/contract/doc.ts +0 -753
  70. package/src-next/contract/invariants.ts +0 -1268
  71. package/src-next/contract/judge.ts +0 -142
  72. package/src-next/contract/lint.ts +0 -275
  73. package/src-next/contract/project.ts +0 -596
  74. package/src-next/contract/skill-anatomy.ts +0 -273
  75. package/src-next/contract/translate.ts +0 -113
  76. package/src-next/face/__tests__/board-view.test.ts +0 -948
  77. package/src-next/face/__tests__/capsule.test.ts +0 -276
  78. package/src-next/face/__tests__/channel-closure.guard.test.ts +0 -102
  79. package/src-next/face/__tests__/cli.test.ts +0 -4643
  80. package/src-next/face/__tests__/face.test.ts +0 -289
  81. package/src-next/face/__tests__/graph-view.test.ts +0 -61
  82. package/src-next/face/__tests__/host.test.ts +0 -24
  83. package/src-next/face/__tests__/negation.ts +0 -6
  84. package/src-next/face/__tests__/projection.test.ts +0 -301
  85. package/src-next/face/__tests__/sync-runner.test.ts +0 -70
  86. package/src-next/face/__tests__/words.guard.test.ts +0 -93
  87. package/src-next/face/artifacts.ts +0 -195
  88. package/src-next/face/board-view.ts +0 -662
  89. package/src-next/face/capsule.ts +0 -149
  90. package/src-next/face/cli.ts +0 -819
  91. package/src-next/face/declare.ts +0 -326
  92. package/src-next/face/gate.ts +0 -170
  93. package/src-next/face/graph-view.ts +0 -74
  94. package/src-next/face/host.ts +0 -326
  95. package/src-next/face/lifecycle.ts +0 -700
  96. package/src-next/face/projection.ts +0 -282
  97. package/src-next/face/route-render.ts +0 -160
  98. package/src-next/face/words.ts +0 -296
  99. package/src-next/infra/__tests__/infra.test.ts +0 -287
  100. package/src-next/infra/git.ts +0 -39
  101. package/src-next/infra/process.ts +0 -34
  102. package/src-next/infra/runtime.ts +0 -185
  103. package/src-next/infra/workspace.ts +0 -232
  104. package/src-next/render/__tests__/render.test.ts +0 -499
  105. package/src-next/render/__tests__/skeleton.test.ts +0 -466
  106. package/src-next/render/brief.ts +0 -121
  107. package/src-next/render/issue-body.ts +0 -159
  108. package/src-next/render/skeleton.ts +0 -437
  109. package/src-next/render/templates.ts +0 -650
  110. package/src-next/session/__tests__/graph.test.ts +0 -270
  111. package/src-next/session/__tests__/handoff-plane.guard.test.ts +0 -48
  112. package/src-next/session/__tests__/handoff-schema.test.ts +0 -310
  113. package/src-next/session/__tests__/ledger.test.ts +0 -744
  114. package/src-next/session/__tests__/next.test.ts +0 -368
  115. package/src-next/session/__tests__/preflight.test.ts +0 -491
  116. package/src-next/session/__tests__/run.test.ts +0 -1014
  117. package/src-next/session/__tests__/wave-line-phase.guard.test.ts +0 -49
  118. package/src-next/session/__tests__/wave.test.ts +0 -469
  119. package/src-next/session/faces.ts +0 -110
  120. package/src-next/session/graph.ts +0 -411
  121. package/src-next/session/handoff-schema.ts +0 -373
  122. package/src-next/session/ledger.ts +0 -1004
  123. package/src-next/session/next.ts +0 -192
  124. package/src-next/session/preflight.ts +0 -240
  125. package/src-next/session/run.ts +0 -606
  126. package/src-next/session/state.ts +0 -30
  127. package/src-next/session/wave.ts +0 -139
@@ -1,238 +0,0 @@
1
- {
2
- "docType": "overall-spec",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "title": "overall-spec document structure",
5
- "description": "Derived JSON Schema — 39 declared elements · 32 required",
6
- "type": "object",
7
- "properties": {
8
- "# Title": {
9
- "type": "string",
10
- "pattern": "^# \\S.*$",
11
- "description": "presence: required · home: header · ref: none"
12
- },
13
- "**Version**": {
14
- "type": "string",
15
- "pattern": "^- \\*\\*Version\\*\\*: v\\d+\\.\\d+ · \\d{4}-\\d{2}-\\d{2}$",
16
- "description": "presence: required · home: header · ref: version-lineage"
17
- },
18
- "**Status**": {
19
- "type": "string",
20
- "pattern": "^- \\*\\*Status\\*\\*: (Draft|Approved|In progress|Complete)$",
21
- "description": "presence: required · home: header · ref: none"
22
- },
23
- "**Author**": {
24
- "type": "string",
25
- "pattern": "^- \\*\\*Author\\*\\*:",
26
- "description": "presence: required · home: header · ref: none"
27
- },
28
- "**Constraints**": {
29
- "type": "string",
30
- "pattern": "^- \\*\\*Constraints\\*\\*:",
31
- "description": "presence: required · home: header · ref: none"
32
- },
33
- "## Document scope": {
34
- "type": "string",
35
- "pattern": "^## Document scope$",
36
- "description": "presence: required · home: section · ref: none"
37
- },
38
- "## File paths": {
39
- "type": "string",
40
- "pattern": "^## File paths$",
41
- "description": "presence: required · home: section · ref: none"
42
- },
43
- "## Program charter": {
44
- "type": "string",
45
- "pattern": "^## Program charter$",
46
- "description": "presence: required · home: section · ref: none"
47
- },
48
- "## Issue inventory": {
49
- "type": "string",
50
- "pattern": "^## Issue inventory$",
51
- "description": "presence: required · home: section · ref: none"
52
- },
53
- "## Phase inventory": {
54
- "type": "string",
55
- "pattern": "^## Phase inventory$",
56
- "description": "presence: required · home: section · ref: none"
57
- },
58
- "## Dependency graph": {
59
- "type": "string",
60
- "pattern": "^## Dependency graph( \\(ASCII\\))?$",
61
- "description": "presence: required · home: section · ref: none"
62
- },
63
- "## Boundary rules": {
64
- "type": "string",
65
- "pattern": "^## Boundary rules$",
66
- "description": "presence: required · home: section · ref: none"
67
- },
68
- "## Maintenance": {
69
- "type": "string",
70
- "pattern": "^## Maintenance$",
71
- "description": "presence: required · home: section · ref: none"
72
- },
73
- "## Change history": {
74
- "type": "string",
75
- "pattern": "^## Change history$",
76
- "description": "presence: required · home: section · ref: none"
77
- },
78
- "### Goal": {
79
- "type": "string",
80
- "pattern": "^### Goal",
81
- "description": "presence: required · home: facet · ref: none"
82
- },
83
- "### Non-goals": {
84
- "type": "string",
85
- "pattern": "^### Non-goals",
86
- "description": "presence: required · home: facet · ref: none"
87
- },
88
- "### Cross-cutting": {
89
- "type": "string",
90
- "pattern": "^### Cross-cutting",
91
- "description": "presence: required · home: facet · ref: none"
92
- },
93
- "#### [MFRBEN] group": {
94
- "type": "string",
95
- "pattern": "^#### [MFRBEN] group",
96
- "description": "presence: optional · home: facet · ref: none"
97
- },
98
- "#### Upstream Endorsements": {
99
- "type": "string",
100
- "pattern": "^#### Upstream Endorsements$",
101
- "description": "presence: optional · home: facet · ref: none"
102
- },
103
- "Issue inventory columns": {
104
- "type": "string",
105
- "pattern": "^\\| Phase \\| Issue \\(ref\\) \\| Title summary \\|$",
106
- "description": "presence: required · home: table · ref: none"
107
- },
108
- "Issue row": {
109
- "type": "string",
110
- "pattern": "^\\|\\s*P\\d+(\\.\\d+)*\\s*\\|",
111
- "description": "presence: required · home: table · ref: issue-ref"
112
- },
113
- "Issue ref cell": {
114
- "type": "string",
115
- "pattern": "^(none|#\\d+|\\[#\\d+\\]|#\\d+#issuecomment-\\d+|([^)]*)|\\([^)]*\\))$",
116
- "description": "presence: required · home: table · ref: issue-ref"
117
- },
118
- "issuecomment anchor": {
119
- "type": "string",
120
- "pattern": "^#\\d+#issuecomment-\\d+$",
121
- "description": "presence: conditional · home: table · ref: issue-ref"
122
- },
123
- "Phase inventory columns": {
124
- "type": "string",
125
- "pattern": "^\\| # \\| Phase \\| Scope \\| Design spec \\| Implementation plan \\| Acceptance criteria \\| Dependency \\|$",
126
- "description": "presence: required · home: table · ref: none"
127
- },
128
- "Phase row": {
129
- "type": "string",
130
- "pattern": "^\\|\\s*P\\d+(\\.\\d+)*\\s*\\|",
131
- "description": "presence: required · home: table · ref: phase-id"
132
- },
133
- "Phase id token": {
134
- "type": "string",
135
- "pattern": "^P\\d+(\\.\\d+)*$",
136
- "description": "presence: required · home: table · ref: phase-id"
137
- },
138
- "Implementation plan cell": {
139
- "type": "string",
140
- "pattern": "^(Pending|\\[Pending\\]|In-flight|\\[In-flight\\]|Done|\\[[^\\]]+\\]\\([^)]+\\))$",
141
- "description": "presence: required · home: table · ref: markdown-link"
142
- },
143
- "Design spec cell": {
144
- "type": "string",
145
- "pattern": "^(\\[[^\\]]+\\]\\([^)]+\\)|P\\d+(\\.\\d+)*-design|Done|\\[Pending\\])$",
146
- "description": "presence: required · home: table · ref: spec-ref"
147
- },
148
- "Dependency cell": {
149
- "type": "string",
150
- "pattern": "^P\\d+(\\.\\d+)*\\s*->",
151
- "description": "presence: required · home: table · ref: phase-id"
152
- },
153
- "Hard edge": {
154
- "type": "string",
155
- "pattern": "^P\\d+(\\.\\d+)*\\s*->\\s*P\\d+(\\.\\d+)*",
156
- "description": "presence: required · home: graph · ref: phase-id"
157
- },
158
- "Soft edge": {
159
- "type": "string",
160
- "pattern": "^P\\d+(\\.\\d+)*\\s*->\\s*\\(?\\s*soft\\s*\\)?",
161
- "description": "presence: optional · home: graph · ref: phase-id"
162
- },
163
- "Graph legend": {
164
- "type": "string",
165
- "pattern": "^(?:- )?`?->\\s*(?:\\(soft\\))?\\s*`? = hard block|^(?:- )?`?->\\s*\\(soft\\)\\s*`? = suggestion only",
166
- "description": "presence: required · home: graph · ref: none"
167
- },
168
- "File path row": {
169
- "type": "string",
170
- "pattern": "^\\| [^|]+ \\| `[^`]+` \\|$",
171
- "description": "presence: required · home: table · ref: none"
172
- },
173
- "Change history row": {
174
- "type": "string",
175
- "pattern": "^\\|\\s*v\\d+\\.\\d+\\s*\\|",
176
- "description": "presence: required · home: table · ref: version-lineage"
177
- },
178
- "Version token": {
179
- "type": "string",
180
- "pattern": "^v\\d+\\.\\d+$",
181
- "description": "presence: required · home: table · ref: version-lineage"
182
- },
183
- "Change history date": {
184
- "type": "string",
185
- "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
186
- "description": "presence: required · home: table · ref: none"
187
- },
188
- "Backfill clause": {
189
- "type": "string",
190
- "pattern": "(Pending|\\[Pending\\])\\s*(→|->)\\s*\\S+",
191
- "description": "presence: conditional · home: table · ref: version-lineage"
192
- },
193
- "Design claim token": {
194
- "type": "string",
195
- "pattern": "^P\\d+(\\.\\d+)*-design$",
196
- "description": "presence: conditional · home: table · ref: spec-ref"
197
- },
198
- "Phase range ref": {
199
- "type": "string",
200
- "pattern": "^P\\d+(\\.\\d+)*\\s*[-–—]\\s*P\\d+(\\.\\d+)*$",
201
- "description": "presence: optional · home: table · ref: phase-id"
202
- }
203
- },
204
- "required": [
205
- "# Title",
206
- "**Version**",
207
- "**Status**",
208
- "**Author**",
209
- "**Constraints**",
210
- "## Document scope",
211
- "## File paths",
212
- "## Program charter",
213
- "## Issue inventory",
214
- "## Phase inventory",
215
- "## Dependency graph",
216
- "## Boundary rules",
217
- "## Maintenance",
218
- "## Change history",
219
- "### Goal",
220
- "### Non-goals",
221
- "### Cross-cutting",
222
- "Issue inventory columns",
223
- "Issue row",
224
- "Issue ref cell",
225
- "Phase inventory columns",
226
- "Phase row",
227
- "Phase id token",
228
- "Implementation plan cell",
229
- "Design spec cell",
230
- "Dependency cell",
231
- "Hard edge",
232
- "Graph legend",
233
- "File path row",
234
- "Change history row",
235
- "Version token",
236
- "Change history date"
237
- ]
238
- }
@@ -1,153 +0,0 @@
1
- {
2
- "docType": "phase-spec",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "title": "phase-spec document structure",
5
- "description": "Derived JSON Schema — 25 declared elements · 17 required",
6
- "type": "object",
7
- "properties": {
8
- "# Title": {
9
- "type": "string",
10
- "pattern": "^# \\S.*$",
11
- "description": "presence: required · home: header · ref: none"
12
- },
13
- "**Version**": {
14
- "type": "string",
15
- "pattern": "^- \\*\\*Version\\*\\*: v\\d+\\.\\d+ · \\d{4}-\\d{2}-\\d{2}$",
16
- "description": "presence: required · home: header · ref: version-lineage"
17
- },
18
- "**Status**": {
19
- "type": "string",
20
- "pattern": "^- \\*\\*Status\\*\\*: (Draft|Approved|Plan pending|Shipped)$",
21
- "description": "presence: required · home: header · ref: none"
22
- },
23
- "**Author**": {
24
- "type": "string",
25
- "pattern": "^- \\*\\*Author\\*\\*:",
26
- "description": "presence: required · home: header · ref: none"
27
- },
28
- "**Parent program**": {
29
- "type": "string",
30
- "pattern": "^- \\*\\*Parent program\\*\\*:? \\[[^\\]]+\\]\\([^)]+\\)",
31
- "description": "presence: required · home: header · ref: parent-program"
32
- },
33
- "**Depends on**": {
34
- "type": "string",
35
- "pattern": "^- \\*\\*Depends on\\*\\*:",
36
- "description": "presence: required · home: header · ref: none"
37
- },
38
- "Depends on ref": {
39
- "type": "string",
40
- "pattern": "^P\\d+(\\.\\d+)*",
41
- "description": "presence: conditional · home: header · ref: phase-id"
42
- },
43
- "## Design": {
44
- "type": "string",
45
- "pattern": "^## Design$",
46
- "description": "presence: required · home: design-body · ref: none"
47
- },
48
- "### N. group heading": {
49
- "type": "string",
50
- "pattern": "^### \\d+\\. ",
51
- "description": "presence: required · home: design-body · ref: none"
52
- },
53
- "#### N.M item heading": {
54
- "type": "string",
55
- "pattern": "^#### \\d+\\.\\d+ ",
56
- "description": "presence: required · home: design-body · ref: none"
57
- },
58
- "### Acceptance criteria": {
59
- "type": "string",
60
- "pattern": "^### Acceptance criteria$",
61
- "description": "presence: required · home: design-body · ref: none"
62
- },
63
- "Acceptance entry": {
64
- "type": "string",
65
- "pattern": "^- `",
66
- "description": "presence: required · home: design-body · ref: none"
67
- },
68
- "## Constraints": {
69
- "type": "string",
70
- "pattern": "^## Constraints$",
71
- "description": "presence: required · home: section · ref: none"
72
- },
73
- "Constraint delta bullet": {
74
- "type": "string",
75
- "pattern": "^- ",
76
- "description": "presence: required · home: section · ref: none"
77
- },
78
- "## Deviations": {
79
- "type": "string",
80
- "pattern": "^## Deviations$",
81
- "description": "presence: conditional · home: conditional · ref: none"
82
- },
83
- "Deviations columns": {
84
- "type": "string",
85
- "pattern": "^\\| Overall assumption \\| Phase decision \\| Overall updated\\? \\|$",
86
- "description": "presence: conditional · home: conditional · ref: none"
87
- },
88
- "Deviations row": {
89
- "type": "string",
90
- "pattern": "^\\|\\s*[^|]+\\s*\\|\\s*[^|]+\\s*\\|\\s*(Yes|No)\\b",
91
- "description": "presence: conditional · home: conditional · ref: none"
92
- },
93
- "Overall updated answer": {
94
- "type": "string",
95
- "pattern": "^Yes",
96
- "description": "presence: conditional · home: conditional · ref: none"
97
- },
98
- "## Incremental warning": {
99
- "type": "string",
100
- "pattern": "^## Incremental warning$",
101
- "description": "presence: conditional · home: conditional · ref: none"
102
- },
103
- "## Notes for downstream": {
104
- "type": "string",
105
- "pattern": "^## Notes for downstream$",
106
- "description": "presence: conditional · home: conditional · ref: none"
107
- },
108
- "## Review record": {
109
- "type": "string",
110
- "pattern": "^## Review record$",
111
- "description": "presence: conditional · home: conditional · ref: none"
112
- },
113
- "## Change history": {
114
- "type": "string",
115
- "pattern": "^## Change history$",
116
- "description": "presence: required · home: section · ref: none"
117
- },
118
- "Change history row": {
119
- "type": "string",
120
- "pattern": "^\\|\\s*v\\d+\\.\\d+\\s*\\|",
121
- "description": "presence: required · home: table · ref: version-lineage"
122
- },
123
- "Version token": {
124
- "type": "string",
125
- "pattern": "^v\\d+\\.\\d+$",
126
- "description": "presence: required · home: table · ref: version-lineage"
127
- },
128
- "Change history date": {
129
- "type": "string",
130
- "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
131
- "description": "presence: required · home: table · ref: none"
132
- }
133
- },
134
- "required": [
135
- "# Title",
136
- "**Version**",
137
- "**Status**",
138
- "**Author**",
139
- "**Parent program**",
140
- "**Depends on**",
141
- "## Design",
142
- "### N. group heading",
143
- "#### N.M item heading",
144
- "### Acceptance criteria",
145
- "Acceptance entry",
146
- "## Constraints",
147
- "Constraint delta bullet",
148
- "## Change history",
149
- "Change history row",
150
- "Version token",
151
- "Change history date"
152
- ]
153
- }
@@ -1,173 +0,0 @@
1
- {
2
- "docType": "plan",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "title": "plan document structure",
5
- "description": "Derived JSON Schema — 28 declared elements · 22 required",
6
- "type": "object",
7
- "properties": {
8
- "# Title": {
9
- "type": "string",
10
- "pattern": "^# \\S.*$",
11
- "description": "presence: required · home: header · ref: none"
12
- },
13
- "**Spec:**": {
14
- "type": "string",
15
- "pattern": "^\\*\\*Spec:\\*\\*\\s+\\[[^\\]]+\\]\\([^)]+\\)$",
16
- "description": "presence: required · home: header · ref: spec-ref"
17
- },
18
- "**Parent program**": {
19
- "type": "string",
20
- "pattern": "^- \\*\\*Parent program\\*\\*:? \\[[^\\]]+\\]\\([^)]+\\)",
21
- "description": "presence: required · home: header · ref: parent-program"
22
- },
23
- "**Version**": {
24
- "type": "string",
25
- "pattern": "^- \\*\\*Version\\*\\*: v\\d+\\.\\d+ · \\d{4}-\\d{2}-\\d{2}$",
26
- "description": "presence: required · home: header · ref: version-lineage"
27
- },
28
- "**Depends on**": {
29
- "type": "string",
30
- "pattern": "^- \\*\\*Depends on\\*\\*:",
31
- "description": "presence: optional · home: header · ref: phase-id"
32
- },
33
- "**Base**": {
34
- "type": "string",
35
- "pattern": "^- \\*\\*Base\\*\\*:",
36
- "description": "presence: optional · home: header · ref: none"
37
- },
38
- "## Constraints": {
39
- "type": "string",
40
- "pattern": "^## Constraints$",
41
- "description": "presence: required · home: section · ref: none"
42
- },
43
- "Constraint delta bullet": {
44
- "type": "string",
45
- "pattern": "^- ",
46
- "description": "presence: required · home: section · ref: none"
47
- },
48
- "Constraint delta sub-heading": {
49
- "type": "string",
50
- "pattern": "^### ",
51
- "description": "presence: optional · home: section · ref: none"
52
- },
53
- "### Task N:": {
54
- "type": "string",
55
- "pattern": "^### Task \\d+:( .*)?$",
56
- "description": "presence: required · home: task-block · ref: none"
57
- },
58
- "Task id token": {
59
- "type": "string",
60
- "pattern": "^\\d+$",
61
- "description": "presence: required · home: task-block · ref: task-id"
62
- },
63
- "**Objective**": {
64
- "type": "string",
65
- "pattern": "^- \\*\\*Objective\\*\\*:",
66
- "description": "presence: required · home: task-field · ref: none"
67
- },
68
- "**Files**": {
69
- "type": "string",
70
- "pattern": "^- \\*\\*Files\\*\\*:",
71
- "description": "presence: required · home: task-field · ref: none"
72
- },
73
- "File path token": {
74
- "type": "string",
75
- "pattern": "^[\\w./-]+",
76
- "description": "presence: required · home: task-field · ref: none"
77
- },
78
- "**Consumes**": {
79
- "type": "string",
80
- "pattern": "^- \\*\\*Consumes\\*\\*:",
81
- "description": "presence: required · home: task-field · ref: none"
82
- },
83
- "**Produces**": {
84
- "type": "string",
85
- "pattern": "^- \\*\\*Produces\\*\\*:",
86
- "description": "presence: required · home: task-field · ref: none"
87
- },
88
- "**Steps**": {
89
- "type": "string",
90
- "pattern": "^- \\*\\*Steps\\*\\*:",
91
- "description": "presence: required · home: task-field · ref: none"
92
- },
93
- "Step action": {
94
- "type": "string",
95
- "pattern": "^- ",
96
- "description": "presence: required · home: task-step · ref: none"
97
- },
98
- "Step checkable": {
99
- "type": "string",
100
- "pattern": "—\\s*checkable:\\s*\\S",
101
- "description": "presence: required · home: task-step · ref: none"
102
- },
103
- "**Acceptance**": {
104
- "type": "string",
105
- "pattern": "^- \\*\\*Acceptance\\*\\*:",
106
- "description": "presence: required · home: task-field · ref: none"
107
- },
108
- "**DependsOn**": {
109
- "type": "string",
110
- "pattern": "^- \\*\\*DependsOn\\*\\*:",
111
- "description": "presence: required · home: task-field · ref: none"
112
- },
113
- "DependsOn none": {
114
- "type": "string",
115
- "pattern": "^(none|\\s*)$",
116
- "description": "presence: optional · home: task-field · ref: none"
117
- },
118
- "DependsOn id": {
119
- "type": "string",
120
- "pattern": "^[1-9]\\d*$",
121
- "description": "presence: optional · home: task-field · ref: task-id"
122
- },
123
- "Task prose reference": {
124
- "type": "string",
125
- "pattern": "\\b(?:Task|T)\\s*([1-9]\\d*)\\b(?!\\.\\d)",
126
- "description": "presence: optional · home: task-field · ref: task-id"
127
- },
128
- "## Change history": {
129
- "type": "string",
130
- "pattern": "^## Change history$",
131
- "description": "presence: required · home: section · ref: none"
132
- },
133
- "Change history row": {
134
- "type": "string",
135
- "pattern": "^\\|\\s*v\\d+\\.\\d+\\s*\\|",
136
- "description": "presence: required · home: table · ref: version-lineage"
137
- },
138
- "Version token": {
139
- "type": "string",
140
- "pattern": "^v\\d+\\.\\d+$",
141
- "description": "presence: required · home: table · ref: version-lineage"
142
- },
143
- "Change history date": {
144
- "type": "string",
145
- "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
146
- "description": "presence: required · home: table · ref: none"
147
- }
148
- },
149
- "required": [
150
- "# Title",
151
- "**Spec:**",
152
- "**Parent program**",
153
- "**Version**",
154
- "## Constraints",
155
- "Constraint delta bullet",
156
- "### Task N:",
157
- "Task id token",
158
- "**Objective**",
159
- "**Files**",
160
- "File path token",
161
- "**Consumes**",
162
- "**Produces**",
163
- "**Steps**",
164
- "Step action",
165
- "Step checkable",
166
- "**Acceptance**",
167
- "**DependsOn**",
168
- "## Change history",
169
- "Change history row",
170
- "Version token",
171
- "Change history date"
172
- ]
173
- }
@@ -1,89 +0,0 @@
1
- {
2
- "docType": "single-spec",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "title": "single-spec document structure",
5
- "description": "Derived JSON Schema — 13 declared elements · 13 required",
6
- "type": "object",
7
- "properties": {
8
- "# Title": {
9
- "type": "string",
10
- "pattern": "^# \\S.*$",
11
- "description": "presence: required · home: header · ref: none"
12
- },
13
- "**Version**": {
14
- "type": "string",
15
- "pattern": "^- \\*\\*Version\\*\\*: v\\d+\\.\\d+ · \\d{4}-\\d{2}-\\d{2}$",
16
- "description": "presence: required · home: header · ref: version-lineage"
17
- },
18
- "**Status**": {
19
- "type": "string",
20
- "pattern": "^- \\*\\*Status\\*\\*: (Draft|Approved|In progress|Complete)$",
21
- "description": "presence: required · home: header · ref: none"
22
- },
23
- "**Author**": {
24
- "type": "string",
25
- "pattern": "^- \\*\\*Author\\*\\*:",
26
- "description": "presence: required · home: header · ref: none"
27
- },
28
- "**Depends on**": {
29
- "type": "string",
30
- "pattern": "^- \\*\\*Depends on\\*\\*:",
31
- "description": "presence: required · home: header · ref: none"
32
- },
33
- "## Background & root cause": {
34
- "type": "string",
35
- "pattern": "^## Background & root cause$",
36
- "description": "presence: required · home: section · ref: none"
37
- },
38
- "## Design decisions": {
39
- "type": "string",
40
- "pattern": "^## Design decisions$",
41
- "description": "presence: required · home: section · ref: none"
42
- },
43
- "## Acceptance": {
44
- "type": "string",
45
- "pattern": "^## Acceptance$",
46
- "description": "presence: required · home: section · ref: none"
47
- },
48
- "## Constraints": {
49
- "type": "string",
50
- "pattern": "^## Constraints$",
51
- "description": "presence: required · home: section · ref: none"
52
- },
53
- "## Change history": {
54
- "type": "string",
55
- "pattern": "^## Change history$",
56
- "description": "presence: required · home: section · ref: none"
57
- },
58
- "Change history row": {
59
- "type": "string",
60
- "pattern": "^\\|\\s*v\\d+\\.\\d+\\s*\\|",
61
- "description": "presence: required · home: table · ref: version-lineage"
62
- },
63
- "Version token": {
64
- "type": "string",
65
- "pattern": "^v\\d+\\.\\d+$",
66
- "description": "presence: required · home: table · ref: version-lineage"
67
- },
68
- "Change history date": {
69
- "type": "string",
70
- "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
71
- "description": "presence: required · home: table · ref: none"
72
- }
73
- },
74
- "required": [
75
- "# Title",
76
- "**Version**",
77
- "**Status**",
78
- "**Author**",
79
- "**Depends on**",
80
- "## Background & root cause",
81
- "## Design decisions",
82
- "## Acceptance",
83
- "## Constraints",
84
- "## Change history",
85
- "Change history row",
86
- "Version token",
87
- "Change history date"
88
- ]
89
- }