@arcfoundry/schemas 0.1.2

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 (86) hide show
  1. package/README.md +3 -0
  2. package/dist/artifact-content-registry.d.ts +165 -0
  3. package/dist/artifact-content-registry.js +11 -0
  4. package/dist/artifact-content-registry.js.map +1 -0
  5. package/dist/base/command-evidence.d.ts +30 -0
  6. package/dist/base/command-evidence.js +21 -0
  7. package/dist/base/command-evidence.js.map +1 -0
  8. package/dist/base.d.ts +150 -0
  9. package/dist/base.js +41 -0
  10. package/dist/base.js.map +1 -0
  11. package/dist/catalog/agent-roles.d.ts +1 -0
  12. package/dist/catalog/agent-roles.js +18 -0
  13. package/dist/catalog/agent-roles.js.map +1 -0
  14. package/dist/catalog/artifact-types.d.ts +1 -0
  15. package/dist/catalog/artifact-types.js +27 -0
  16. package/dist/catalog/artifact-types.js.map +1 -0
  17. package/dist/catalog/workflow-stages.d.ts +1 -0
  18. package/dist/catalog/workflow-stages.js +21 -0
  19. package/dist/catalog/workflow-stages.js.map +1 -0
  20. package/dist/catalog.d.ts +9 -0
  21. package/dist/catalog.js +4 -0
  22. package/dist/catalog.js.map +1 -0
  23. package/dist/content/browser-validation.d.ts +54 -0
  24. package/dist/content/browser-validation.js +23 -0
  25. package/dist/content/browser-validation.js.map +1 -0
  26. package/dist/content/build-reports.d.ts +34 -0
  27. package/dist/content/build-reports.js +19 -0
  28. package/dist/content/build-reports.js.map +1 -0
  29. package/dist/content/conflict-report.d.ts +20 -0
  30. package/dist/content/conflict-report.js +12 -0
  31. package/dist/content/conflict-report.js.map +1 -0
  32. package/dist/content/delivery.d.ts +27 -0
  33. package/dist/content/delivery.js +19 -0
  34. package/dist/content/delivery.js.map +1 -0
  35. package/dist/content/failure-report.d.ts +48 -0
  36. package/dist/content/failure-report.js +26 -0
  37. package/dist/content/failure-report.js.map +1 -0
  38. package/dist/content/memory.d.ts +16 -0
  39. package/dist/content/memory.js +15 -0
  40. package/dist/content/memory.js.map +1 -0
  41. package/dist/content/planning.d.ts +113 -0
  42. package/dist/content/planning.js +31 -0
  43. package/dist/content/planning.js.map +1 -0
  44. package/dist/content/registry.d.ts +325 -0
  45. package/dist/content/registry.js +33 -0
  46. package/dist/content/registry.js.map +1 -0
  47. package/dist/content/review.d.ts +40 -0
  48. package/dist/content/review.js +24 -0
  49. package/dist/content/review.js.map +1 -0
  50. package/dist/content/system-verification.d.ts +58 -0
  51. package/dist/content/system-verification.js +33 -0
  52. package/dist/content/system-verification.js.map +1 -0
  53. package/dist/content.d.ts +9 -0
  54. package/dist/content.js +10 -0
  55. package/dist/content.js.map +1 -0
  56. package/dist/dispatch.d.ts +17 -0
  57. package/dist/dispatch.js +24 -0
  58. package/dist/dispatch.js.map +1 -0
  59. package/dist/index.d.ts +7 -0
  60. package/dist/index.js +6 -0
  61. package/dist/index.js.map +1 -0
  62. package/package.json +27 -0
  63. package/schemas/accessibility-review.schema.json +175 -0
  64. package/schemas/adr-record.schema.json +175 -0
  65. package/schemas/browser-validation-report.schema.json +273 -0
  66. package/schemas/client-brief.schema.json +175 -0
  67. package/schemas/client-summary.schema.json +175 -0
  68. package/schemas/conflict-report.schema.json +211 -0
  69. package/schemas/delivery-plan.schema.json +175 -0
  70. package/schemas/deployment-checklist.schema.json +175 -0
  71. package/schemas/discovery-report.schema.json +175 -0
  72. package/schemas/engineering-review.schema.json +175 -0
  73. package/schemas/failure-report.schema.json +252 -0
  74. package/schemas/implementation-report.schema.json +175 -0
  75. package/schemas/memory-candidate-report.schema.json +175 -0
  76. package/schemas/memory-promotion-report.schema.json +175 -0
  77. package/schemas/performance-review.schema.json +175 -0
  78. package/schemas/product-spec.schema.json +175 -0
  79. package/schemas/pull-request-package.schema.json +175 -0
  80. package/schemas/release-package.schema.json +175 -0
  81. package/schemas/security-review.schema.json +175 -0
  82. package/schemas/system-verification-report.schema.json +351 -0
  83. package/schemas/task-breakdown.schema.json +175 -0
  84. package/schemas/technical-design.schema.json +175 -0
  85. package/schemas/test-plan.schema.json +175 -0
  86. package/schemas/test-report.schema.json +175 -0
@@ -0,0 +1,175 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "artifactType": {
10
+ "type": "string",
11
+ "const": "release-package"
12
+ },
13
+ "artifactId": {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ "projectId": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "requestId": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "createdAt": {
26
+ "type": "string",
27
+ "format": "date-time",
28
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
29
+ "description": "ISO-8601 timestamp with timezone offset"
30
+ },
31
+ "createdBy": {
32
+ "type": "object",
33
+ "properties": {
34
+ "agent": {
35
+ "type": "string",
36
+ "minLength": 1
37
+ },
38
+ "model": {
39
+ "anyOf": [
40
+ {
41
+ "type": "string"
42
+ },
43
+ {
44
+ "type": "null"
45
+ }
46
+ ]
47
+ },
48
+ "runtime": {
49
+ "type": "string",
50
+ "enum": ["opencode", "codex", "other"]
51
+ }
52
+ },
53
+ "required": ["agent", "model", "runtime"],
54
+ "additionalProperties": false
55
+ },
56
+ "status": {
57
+ "type": "string",
58
+ "enum": ["draft", "candidate", "approved", "rejected", "superseded"]
59
+ },
60
+ "provenance": {
61
+ "type": "object",
62
+ "properties": {
63
+ "sourceRequest": {
64
+ "anyOf": [
65
+ {
66
+ "type": "string"
67
+ },
68
+ {
69
+ "type": "null"
70
+ }
71
+ ]
72
+ },
73
+ "sourceArtifacts": {
74
+ "type": "array",
75
+ "items": {
76
+ "type": "string"
77
+ }
78
+ },
79
+ "sourceMemoryIds": {
80
+ "type": "array",
81
+ "items": {
82
+ "type": "string"
83
+ }
84
+ },
85
+ "sourceAdrIds": {
86
+ "type": "array",
87
+ "items": {
88
+ "type": "string"
89
+ }
90
+ },
91
+ "gitSha": {
92
+ "anyOf": [
93
+ {
94
+ "type": "string"
95
+ },
96
+ {
97
+ "type": "null"
98
+ }
99
+ ]
100
+ },
101
+ "branch": {
102
+ "anyOf": [
103
+ {
104
+ "type": "string"
105
+ },
106
+ {
107
+ "type": "null"
108
+ }
109
+ ]
110
+ },
111
+ "worktreeId": {
112
+ "anyOf": [
113
+ {
114
+ "type": "string"
115
+ },
116
+ {
117
+ "type": "null"
118
+ }
119
+ ]
120
+ }
121
+ },
122
+ "required": [
123
+ "sourceRequest",
124
+ "sourceArtifacts",
125
+ "sourceMemoryIds",
126
+ "sourceAdrIds",
127
+ "gitSha",
128
+ "branch",
129
+ "worktreeId"
130
+ ],
131
+ "additionalProperties": false
132
+ },
133
+ "assumptions": {
134
+ "type": "array",
135
+ "items": {
136
+ "type": "string"
137
+ }
138
+ },
139
+ "risks": {
140
+ "type": "array",
141
+ "items": {
142
+ "type": "string"
143
+ }
144
+ },
145
+ "openQuestions": {
146
+ "type": "array",
147
+ "items": {
148
+ "type": "string"
149
+ }
150
+ },
151
+ "content": {
152
+ "type": "object",
153
+ "propertyNames": {
154
+ "type": "string"
155
+ },
156
+ "additionalProperties": {}
157
+ }
158
+ },
159
+ "required": [
160
+ "schemaVersion",
161
+ "artifactType",
162
+ "artifactId",
163
+ "projectId",
164
+ "requestId",
165
+ "createdAt",
166
+ "createdBy",
167
+ "status",
168
+ "provenance",
169
+ "assumptions",
170
+ "risks",
171
+ "openQuestions",
172
+ "content"
173
+ ],
174
+ "additionalProperties": false
175
+ }
@@ -0,0 +1,175 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "artifactType": {
10
+ "type": "string",
11
+ "const": "security-review"
12
+ },
13
+ "artifactId": {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ "projectId": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "requestId": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "createdAt": {
26
+ "type": "string",
27
+ "format": "date-time",
28
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
29
+ "description": "ISO-8601 timestamp with timezone offset"
30
+ },
31
+ "createdBy": {
32
+ "type": "object",
33
+ "properties": {
34
+ "agent": {
35
+ "type": "string",
36
+ "minLength": 1
37
+ },
38
+ "model": {
39
+ "anyOf": [
40
+ {
41
+ "type": "string"
42
+ },
43
+ {
44
+ "type": "null"
45
+ }
46
+ ]
47
+ },
48
+ "runtime": {
49
+ "type": "string",
50
+ "enum": ["opencode", "codex", "other"]
51
+ }
52
+ },
53
+ "required": ["agent", "model", "runtime"],
54
+ "additionalProperties": false
55
+ },
56
+ "status": {
57
+ "type": "string",
58
+ "enum": ["draft", "candidate", "approved", "rejected", "superseded"]
59
+ },
60
+ "provenance": {
61
+ "type": "object",
62
+ "properties": {
63
+ "sourceRequest": {
64
+ "anyOf": [
65
+ {
66
+ "type": "string"
67
+ },
68
+ {
69
+ "type": "null"
70
+ }
71
+ ]
72
+ },
73
+ "sourceArtifacts": {
74
+ "type": "array",
75
+ "items": {
76
+ "type": "string"
77
+ }
78
+ },
79
+ "sourceMemoryIds": {
80
+ "type": "array",
81
+ "items": {
82
+ "type": "string"
83
+ }
84
+ },
85
+ "sourceAdrIds": {
86
+ "type": "array",
87
+ "items": {
88
+ "type": "string"
89
+ }
90
+ },
91
+ "gitSha": {
92
+ "anyOf": [
93
+ {
94
+ "type": "string"
95
+ },
96
+ {
97
+ "type": "null"
98
+ }
99
+ ]
100
+ },
101
+ "branch": {
102
+ "anyOf": [
103
+ {
104
+ "type": "string"
105
+ },
106
+ {
107
+ "type": "null"
108
+ }
109
+ ]
110
+ },
111
+ "worktreeId": {
112
+ "anyOf": [
113
+ {
114
+ "type": "string"
115
+ },
116
+ {
117
+ "type": "null"
118
+ }
119
+ ]
120
+ }
121
+ },
122
+ "required": [
123
+ "sourceRequest",
124
+ "sourceArtifacts",
125
+ "sourceMemoryIds",
126
+ "sourceAdrIds",
127
+ "gitSha",
128
+ "branch",
129
+ "worktreeId"
130
+ ],
131
+ "additionalProperties": false
132
+ },
133
+ "assumptions": {
134
+ "type": "array",
135
+ "items": {
136
+ "type": "string"
137
+ }
138
+ },
139
+ "risks": {
140
+ "type": "array",
141
+ "items": {
142
+ "type": "string"
143
+ }
144
+ },
145
+ "openQuestions": {
146
+ "type": "array",
147
+ "items": {
148
+ "type": "string"
149
+ }
150
+ },
151
+ "content": {
152
+ "type": "object",
153
+ "propertyNames": {
154
+ "type": "string"
155
+ },
156
+ "additionalProperties": {}
157
+ }
158
+ },
159
+ "required": [
160
+ "schemaVersion",
161
+ "artifactType",
162
+ "artifactId",
163
+ "projectId",
164
+ "requestId",
165
+ "createdAt",
166
+ "createdBy",
167
+ "status",
168
+ "provenance",
169
+ "assumptions",
170
+ "risks",
171
+ "openQuestions",
172
+ "content"
173
+ ],
174
+ "additionalProperties": false
175
+ }
@@ -0,0 +1,351 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "artifactType": {
10
+ "type": "string",
11
+ "const": "system-verification-report"
12
+ },
13
+ "artifactId": {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ "projectId": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "requestId": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "createdAt": {
26
+ "type": "string",
27
+ "format": "date-time",
28
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
29
+ "description": "ISO-8601 timestamp with timezone offset"
30
+ },
31
+ "createdBy": {
32
+ "type": "object",
33
+ "properties": {
34
+ "agent": {
35
+ "type": "string",
36
+ "minLength": 1
37
+ },
38
+ "model": {
39
+ "anyOf": [
40
+ {
41
+ "type": "string"
42
+ },
43
+ {
44
+ "type": "null"
45
+ }
46
+ ]
47
+ },
48
+ "runtime": {
49
+ "type": "string",
50
+ "enum": ["opencode", "codex", "other"]
51
+ }
52
+ },
53
+ "required": ["agent", "model", "runtime"],
54
+ "additionalProperties": false
55
+ },
56
+ "status": {
57
+ "type": "string",
58
+ "enum": ["draft", "candidate", "approved", "rejected", "superseded"]
59
+ },
60
+ "provenance": {
61
+ "type": "object",
62
+ "properties": {
63
+ "sourceRequest": {
64
+ "anyOf": [
65
+ {
66
+ "type": "string"
67
+ },
68
+ {
69
+ "type": "null"
70
+ }
71
+ ]
72
+ },
73
+ "sourceArtifacts": {
74
+ "type": "array",
75
+ "items": {
76
+ "type": "string"
77
+ }
78
+ },
79
+ "sourceMemoryIds": {
80
+ "type": "array",
81
+ "items": {
82
+ "type": "string"
83
+ }
84
+ },
85
+ "sourceAdrIds": {
86
+ "type": "array",
87
+ "items": {
88
+ "type": "string"
89
+ }
90
+ },
91
+ "gitSha": {
92
+ "anyOf": [
93
+ {
94
+ "type": "string"
95
+ },
96
+ {
97
+ "type": "null"
98
+ }
99
+ ]
100
+ },
101
+ "branch": {
102
+ "anyOf": [
103
+ {
104
+ "type": "string"
105
+ },
106
+ {
107
+ "type": "null"
108
+ }
109
+ ]
110
+ },
111
+ "worktreeId": {
112
+ "anyOf": [
113
+ {
114
+ "type": "string"
115
+ },
116
+ {
117
+ "type": "null"
118
+ }
119
+ ]
120
+ }
121
+ },
122
+ "required": [
123
+ "sourceRequest",
124
+ "sourceArtifacts",
125
+ "sourceMemoryIds",
126
+ "sourceAdrIds",
127
+ "gitSha",
128
+ "branch",
129
+ "worktreeId"
130
+ ],
131
+ "additionalProperties": false
132
+ },
133
+ "assumptions": {
134
+ "type": "array",
135
+ "items": {
136
+ "type": "string"
137
+ }
138
+ },
139
+ "risks": {
140
+ "type": "array",
141
+ "items": {
142
+ "type": "string"
143
+ }
144
+ },
145
+ "openQuestions": {
146
+ "type": "array",
147
+ "items": {
148
+ "type": "string"
149
+ }
150
+ },
151
+ "content": {
152
+ "type": "object",
153
+ "properties": {
154
+ "verificationRunId": {
155
+ "type": "string"
156
+ },
157
+ "projectType": {
158
+ "type": "string",
159
+ "enum": [
160
+ "simple-ui",
161
+ "interactive-ui",
162
+ "data-driven",
163
+ "auth-sensitive",
164
+ "existing-project",
165
+ "request-driven"
166
+ ]
167
+ },
168
+ "clientRequest": {
169
+ "type": "string"
170
+ },
171
+ "repository": {
172
+ "type": "object",
173
+ "properties": {
174
+ "path": {
175
+ "type": "string"
176
+ },
177
+ "gitShaBefore": {
178
+ "anyOf": [
179
+ {
180
+ "type": "string"
181
+ },
182
+ {
183
+ "type": "null"
184
+ }
185
+ ]
186
+ },
187
+ "gitShaAfter": {
188
+ "anyOf": [
189
+ {
190
+ "type": "string"
191
+ },
192
+ {
193
+ "type": "null"
194
+ }
195
+ ]
196
+ },
197
+ "branch": {
198
+ "anyOf": [
199
+ {
200
+ "type": "string"
201
+ },
202
+ {
203
+ "type": "null"
204
+ }
205
+ ]
206
+ }
207
+ },
208
+ "required": ["path", "gitShaBefore", "gitShaAfter", "branch"],
209
+ "additionalProperties": false
210
+ },
211
+ "commandsExecuted": {
212
+ "type": "array",
213
+ "items": {
214
+ "type": "object",
215
+ "properties": {
216
+ "purpose": {
217
+ "type": "string",
218
+ "enum": [
219
+ "install",
220
+ "test",
221
+ "build",
222
+ "browser-validation",
223
+ "agent-stage",
224
+ "lint",
225
+ "format",
226
+ "architecture-check",
227
+ "other"
228
+ ]
229
+ },
230
+ "command": {
231
+ "type": "string",
232
+ "minLength": 1
233
+ },
234
+ "exitCode": {
235
+ "type": "integer",
236
+ "minimum": -9007199254740991,
237
+ "maximum": 9007199254740991
238
+ },
239
+ "durationMs": {
240
+ "type": "integer",
241
+ "minimum": 0,
242
+ "maximum": 9007199254740991
243
+ },
244
+ "stdoutRef": {
245
+ "anyOf": [
246
+ {
247
+ "type": "string"
248
+ },
249
+ {
250
+ "type": "null"
251
+ }
252
+ ]
253
+ },
254
+ "stderrRef": {
255
+ "anyOf": [
256
+ {
257
+ "type": "string"
258
+ },
259
+ {
260
+ "type": "null"
261
+ }
262
+ ]
263
+ }
264
+ },
265
+ "required": ["purpose", "command", "exitCode", "durationMs", "stdoutRef", "stderrRef"],
266
+ "additionalProperties": false
267
+ }
268
+ },
269
+ "browserValidation": {
270
+ "type": "object",
271
+ "properties": {
272
+ "used": {
273
+ "type": "boolean"
274
+ },
275
+ "tool": {
276
+ "type": "string",
277
+ "enum": ["playwright-cli", "playwright-mcp", "playwright-test-runner", "other"]
278
+ },
279
+ "reportRef": {
280
+ "type": "string"
281
+ }
282
+ },
283
+ "required": ["used", "tool", "reportRef"],
284
+ "additionalProperties": false
285
+ },
286
+ "artifactsProduced": {
287
+ "type": "array",
288
+ "items": {
289
+ "type": "string"
290
+ }
291
+ },
292
+ "testsPassed": {
293
+ "type": "boolean"
294
+ },
295
+ "blockingIssues": {
296
+ "type": "array",
297
+ "items": {
298
+ "type": "string"
299
+ }
300
+ },
301
+ "systemWeaknessesDiscovered": {
302
+ "type": "array",
303
+ "items": {
304
+ "type": "string"
305
+ }
306
+ },
307
+ "improvementsRequired": {
308
+ "type": "array",
309
+ "items": {
310
+ "type": "string"
311
+ }
312
+ },
313
+ "recommendation": {
314
+ "type": "string",
315
+ "enum": ["pass", "fail", "needs-improvement"]
316
+ }
317
+ },
318
+ "required": [
319
+ "verificationRunId",
320
+ "projectType",
321
+ "clientRequest",
322
+ "repository",
323
+ "commandsExecuted",
324
+ "browserValidation",
325
+ "artifactsProduced",
326
+ "testsPassed",
327
+ "blockingIssues",
328
+ "systemWeaknessesDiscovered",
329
+ "improvementsRequired",
330
+ "recommendation"
331
+ ],
332
+ "additionalProperties": false
333
+ }
334
+ },
335
+ "required": [
336
+ "schemaVersion",
337
+ "artifactType",
338
+ "artifactId",
339
+ "projectId",
340
+ "requestId",
341
+ "createdAt",
342
+ "createdBy",
343
+ "status",
344
+ "provenance",
345
+ "assumptions",
346
+ "risks",
347
+ "openQuestions",
348
+ "content"
349
+ ],
350
+ "additionalProperties": false
351
+ }