@devtrack-solution/codesdd 1.2.4-rc3 → 1.2.4

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 (128) hide show
  1. package/.sdd/skills/curated/devtrack-api/SKILL.md +91 -12
  2. package/.sdd/skills/curated/devtrack-api/agents/claude-code.yaml +2 -0
  3. package/.sdd/skills/curated/devtrack-api/agents/codex.yaml +2 -0
  4. package/.sdd/skills/curated/devtrack-api/agents/cursor.yaml +2 -0
  5. package/.sdd/skills/curated/devtrack-api/agents/gemini.yaml +2 -0
  6. package/.sdd/skills/curated/devtrack-api/agents/kimi.yaml +2 -0
  7. package/.sdd/skills/curated/devtrack-api/agents/openai.yaml +3 -3
  8. package/.sdd/skills/curated/devtrack-api/agents/opencode.yaml +2 -0
  9. package/.sdd/skills/curated/devtrack-api/references/application-presentation.md +59 -3
  10. package/.sdd/skills/curated/devtrack-api/references/consumer-sync-policy.md +15 -3
  11. package/.sdd/skills/curated/devtrack-api/references/contract-pack.yaml +1898 -2
  12. package/.sdd/skills/curated/devtrack-api/references/domain-modeling.md +3 -1
  13. package/.sdd/skills/curated/devtrack-api/references/field-validation-protocol.md +40 -0
  14. package/.sdd/skills/curated/devtrack-api/references/foundation-layout.md +20 -2
  15. package/.sdd/skills/curated/devtrack-api/references/generated-artifact-invalidation.md +97 -0
  16. package/.sdd/skills/curated/devtrack-api/references/implementation-checklist.md +30 -1
  17. package/.sdd/skills/curated/devtrack-api/references/portable-agent-contract.md +4 -3
  18. package/.sdd/skills/curated/devtrack-api/references/testing-validation.md +22 -1
  19. package/.sdd/skills/curated/devtrack-api/references/typeorm-infrastructure.md +9 -5
  20. package/README.md +122 -25
  21. package/dist/cli/program.js +180 -11
  22. package/dist/commands/config.js +27 -1
  23. package/dist/commands/sdd/execution.js +64 -2
  24. package/dist/commands/sdd.js +119 -4
  25. package/dist/core/cli/command-matrix.d.ts +18 -0
  26. package/dist/core/cli/command-matrix.js +148 -0
  27. package/dist/core/cli-command-quality.js +2 -0
  28. package/dist/core/config-schema.d.ts +14 -1
  29. package/dist/core/config-schema.js +32 -1
  30. package/dist/core/config.d.ts +1 -0
  31. package/dist/core/config.js +11 -0
  32. package/dist/core/global-config.d.ts +13 -0
  33. package/dist/core/init.d.ts +2 -2
  34. package/dist/core/init.js +13 -14
  35. package/dist/core/sdd/agent-binding.d.ts +9 -9
  36. package/dist/core/sdd/agent-runtime-contract.d.ts +4 -4
  37. package/dist/core/sdd/allocator-recovery.d.ts +14 -0
  38. package/dist/core/sdd/allocator-recovery.js +30 -0
  39. package/dist/core/sdd/allocator-security.d.ts +18 -0
  40. package/dist/core/sdd/allocator-security.js +36 -0
  41. package/dist/core/sdd/api-foundation-baseline.d.ts +111 -0
  42. package/dist/core/sdd/api-foundation-baseline.js +151 -0
  43. package/dist/core/sdd/api-foundation-parity.d.ts +114 -0
  44. package/dist/core/sdd/api-foundation-parity.js +131 -0
  45. package/dist/core/sdd/api-profile-catalog.d.ts +36 -0
  46. package/dist/core/sdd/api-profile-catalog.js +132 -0
  47. package/dist/core/sdd/api-profile-dry-run-projection.d.ts +93 -0
  48. package/dist/core/sdd/api-profile-dry-run-projection.js +370 -0
  49. package/dist/core/sdd/api-profile-recipes.d.ts +82 -0
  50. package/dist/core/sdd/api-profile-recipes.js +484 -0
  51. package/dist/core/sdd/artifact-id-allocator.d.ts +368 -0
  52. package/dist/core/sdd/artifact-id-allocator.js +510 -0
  53. package/dist/core/sdd/check.d.ts +50 -1
  54. package/dist/core/sdd/check.js +286 -9
  55. package/dist/core/sdd/deepagent-contracts.d.ts +4 -4
  56. package/dist/core/sdd/deepagents/reversa-subagents.d.ts +3 -3
  57. package/dist/core/sdd/default-bootstrap-files.d.ts +1 -1
  58. package/dist/core/sdd/default-bootstrap-files.js +0 -2
  59. package/dist/core/sdd/default-skills.js +7 -5
  60. package/dist/core/sdd/devtrack-api-appliance.d.ts +34 -0
  61. package/dist/core/sdd/devtrack-api-appliance.js +138 -34
  62. package/dist/core/sdd/devtrack-api-architecture.d.ts +16 -0
  63. package/dist/core/sdd/devtrack-api-architecture.js +86 -0
  64. package/dist/core/sdd/docs-sync.js +3 -3
  65. package/dist/core/sdd/enterprise-mutating-command-gate.d.ts +27 -0
  66. package/dist/core/sdd/enterprise-mutating-command-gate.js +104 -0
  67. package/dist/core/sdd/enterprise-provenance-gates.d.ts +20 -0
  68. package/dist/core/sdd/enterprise-provenance-gates.js +63 -0
  69. package/dist/core/sdd/enterprise-provisioning-policy.d.ts +26 -0
  70. package/dist/core/sdd/enterprise-provisioning-policy.js +104 -0
  71. package/dist/core/sdd/governance-schemas.d.ts +2 -2
  72. package/dist/core/sdd/governance-schemas.js +11 -2
  73. package/dist/core/sdd/json-schema.js +4 -0
  74. package/dist/core/sdd/legacy-operations.js +93 -4
  75. package/dist/core/sdd/package-security-gates.js +2 -0
  76. package/dist/core/sdd/package-structure-gate.d.ts +85 -3
  77. package/dist/core/sdd/package-structure-gate.js +386 -8
  78. package/dist/core/sdd/parallel-feat-automation.d.ts +6 -6
  79. package/dist/core/sdd/plugin-policy.js +6 -1
  80. package/dist/core/sdd/plugin-registry.d.ts +3 -3
  81. package/dist/core/sdd/quality-validation.d.ts +5 -5
  82. package/dist/core/sdd/release-readiness.d.ts +49 -0
  83. package/dist/core/sdd/release-readiness.js +303 -8
  84. package/dist/core/sdd/reversa-architecture-extractor.d.ts +13 -0
  85. package/dist/core/sdd/reversa-architecture-extractor.js +89 -0
  86. package/dist/core/sdd/reversa-artifact-writer.d.ts +18 -0
  87. package/dist/core/sdd/reversa-artifact-writer.js +40 -0
  88. package/dist/core/sdd/reversa-command-policy.d.ts +136 -0
  89. package/dist/core/sdd/reversa-command-policy.js +361 -0
  90. package/dist/core/sdd/reversa-data-extractor.d.ts +11 -0
  91. package/dist/core/sdd/reversa-data-extractor.js +73 -0
  92. package/dist/core/sdd/reversa-equivalence.d.ts +20 -0
  93. package/dist/core/sdd/reversa-equivalence.js +34 -0
  94. package/dist/core/sdd/reversa-evidence.d.ts +298 -0
  95. package/dist/core/sdd/reversa-evidence.js +118 -0
  96. package/dist/core/sdd/reversa-reconstruction.d.ts +29 -0
  97. package/dist/core/sdd/reversa-reconstruction.js +32 -0
  98. package/dist/core/sdd/reversa-rules-extractor.d.ts +12 -0
  99. package/dist/core/sdd/reversa-rules-extractor.js +86 -0
  100. package/dist/core/sdd/reversa-source-safety.d.ts +19 -0
  101. package/dist/core/sdd/reversa-source-safety.js +105 -0
  102. package/dist/core/sdd/reversa-surface-scout.d.ts +13 -0
  103. package/dist/core/sdd/reversa-surface-scout.js +85 -0
  104. package/dist/core/sdd/reversa-ux-mapper.d.ts +11 -0
  105. package/dist/core/sdd/reversa-ux-mapper.js +73 -0
  106. package/dist/core/sdd/sdk-agent-plugin-quality-gates.d.ts +1 -1
  107. package/dist/core/sdd/services/archive-quality-coherence.service.d.ts +17 -0
  108. package/dist/core/sdd/services/archive-quality-coherence.service.js +141 -0
  109. package/dist/core/sdd/services/decide.service.js +1 -1
  110. package/dist/core/sdd/services/finalize.service.d.ts +2 -0
  111. package/dist/core/sdd/services/finalize.service.js +48 -2
  112. package/dist/core/sdd/services/historical-quality-regression.service.d.ts +35 -0
  113. package/dist/core/sdd/services/historical-quality-regression.service.js +228 -0
  114. package/dist/core/sdd/services/ingest-deposito.service.js +1 -1
  115. package/dist/core/sdd/services/planning-execution-coherence.service.d.ts +45 -0
  116. package/dist/core/sdd/services/planning-execution-coherence.service.js +225 -0
  117. package/dist/core/sdd/state.js +15 -5
  118. package/dist/core/sdd/types.d.ts +3 -3
  119. package/dist/core/sdd/workspace-schemas.d.ts +45 -4
  120. package/dist/core/sdd/workspace-schemas.js +27 -6
  121. package/dist/core/shared/skill-generation.d.ts +2 -0
  122. package/dist/core/shared/skill-generation.js +19 -2
  123. package/dist/core/shared/tool-detection.d.ts +19 -0
  124. package/dist/core/shared/tool-detection.js +89 -0
  125. package/package.json +6 -5
  126. package/schemas/sdd/5-quality.schema.json +43 -0
  127. package/schemas/sdd/reversa-evidence-bundle.schema.json +466 -0
  128. package/schemas/sdd/workspace-catalog.schema.json +511 -0
@@ -0,0 +1,466 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schema_version": {
6
+ "type": "number",
7
+ "const": 1
8
+ },
9
+ "contract": {
10
+ "type": "string",
11
+ "const": "reversa-evidence-bundle/v1"
12
+ },
13
+ "operation_id": {
14
+ "type": "string",
15
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
16
+ },
17
+ "generated_at": {
18
+ "type": "string",
19
+ "format": "date-time",
20
+ "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))$"
21
+ },
22
+ "feature_ref": {
23
+ "type": "string",
24
+ "pattern": "^FEAT-\\d{4}$"
25
+ },
26
+ "mode": {
27
+ "type": "string",
28
+ "enum": [
29
+ "read-only",
30
+ "plan",
31
+ "validate",
32
+ "apply-sandbox",
33
+ "apply-approved"
34
+ ]
35
+ },
36
+ "source_attestations": {
37
+ "minItems": 1,
38
+ "type": "array",
39
+ "items": {
40
+ "type": "object",
41
+ "properties": {
42
+ "source_ref": {
43
+ "type": "string",
44
+ "minLength": 1
45
+ },
46
+ "source_type": {
47
+ "type": "string",
48
+ "enum": [
49
+ "repository",
50
+ "document",
51
+ "config",
52
+ "runtime_log",
53
+ "database_schema",
54
+ "manual_note"
55
+ ]
56
+ },
57
+ "trust_level": {
58
+ "type": "string",
59
+ "enum": [
60
+ "trusted",
61
+ "untrusted",
62
+ "hostile"
63
+ ]
64
+ },
65
+ "sha256": {
66
+ "type": "string",
67
+ "minLength": 1
68
+ },
69
+ "redaction_status": {
70
+ "type": "string",
71
+ "enum": [
72
+ "not_required",
73
+ "redacted",
74
+ "blocked"
75
+ ]
76
+ },
77
+ "notes": {
78
+ "type": "string",
79
+ "minLength": 1
80
+ }
81
+ },
82
+ "required": [
83
+ "source_ref",
84
+ "source_type",
85
+ "trust_level",
86
+ "redaction_status"
87
+ ],
88
+ "additionalProperties": false
89
+ }
90
+ },
91
+ "findings": {
92
+ "default": [],
93
+ "type": "array",
94
+ "items": {
95
+ "type": "object",
96
+ "properties": {
97
+ "id": {
98
+ "type": "string",
99
+ "pattern": "^REV-FIND-[A-Z0-9-]+$"
100
+ },
101
+ "phase": {
102
+ "type": "string",
103
+ "enum": [
104
+ "intake",
105
+ "surface",
106
+ "architecture",
107
+ "rules",
108
+ "data",
109
+ "ux",
110
+ "artifact_generation",
111
+ "migration",
112
+ "reconstruction",
113
+ "equivalence"
114
+ ]
115
+ },
116
+ "title": {
117
+ "type": "string",
118
+ "minLength": 1
119
+ },
120
+ "summary": {
121
+ "type": "string",
122
+ "minLength": 1
123
+ },
124
+ "confidence": {
125
+ "type": "string",
126
+ "enum": [
127
+ "high",
128
+ "medium",
129
+ "low",
130
+ "unknown"
131
+ ]
132
+ },
133
+ "source_refs": {
134
+ "minItems": 1,
135
+ "type": "array",
136
+ "items": {
137
+ "type": "string",
138
+ "minLength": 1
139
+ }
140
+ },
141
+ "contradiction_refs": {
142
+ "default": [],
143
+ "type": "array",
144
+ "items": {
145
+ "type": "string",
146
+ "minLength": 1
147
+ }
148
+ },
149
+ "promoted_refs": {
150
+ "default": [],
151
+ "type": "array",
152
+ "items": {
153
+ "type": "string",
154
+ "minLength": 1
155
+ }
156
+ },
157
+ "metadata": {
158
+ "default": {},
159
+ "type": "object",
160
+ "propertyNames": {
161
+ "type": "string"
162
+ },
163
+ "additionalProperties": {}
164
+ }
165
+ },
166
+ "required": [
167
+ "id",
168
+ "phase",
169
+ "title",
170
+ "summary",
171
+ "confidence",
172
+ "source_refs",
173
+ "contradiction_refs",
174
+ "promoted_refs",
175
+ "metadata"
176
+ ],
177
+ "additionalProperties": false
178
+ }
179
+ },
180
+ "artifacts": {
181
+ "default": [],
182
+ "type": "array",
183
+ "items": {
184
+ "type": "object",
185
+ "properties": {
186
+ "path": {
187
+ "type": "string",
188
+ "minLength": 1
189
+ },
190
+ "artifact_type": {
191
+ "type": "string",
192
+ "enum": [
193
+ "inventory",
194
+ "architecture_map",
195
+ "business_rules",
196
+ "data_model",
197
+ "ux_map",
198
+ "generated_sdd_artifact",
199
+ "migration_plan",
200
+ "reconstruction_diff",
201
+ "equivalence_report",
202
+ "question_set"
203
+ ]
204
+ },
205
+ "phase": {
206
+ "type": "string",
207
+ "enum": [
208
+ "intake",
209
+ "surface",
210
+ "architecture",
211
+ "rules",
212
+ "data",
213
+ "ux",
214
+ "artifact_generation",
215
+ "migration",
216
+ "reconstruction",
217
+ "equivalence"
218
+ ]
219
+ },
220
+ "checksum_sha256": {
221
+ "type": "string",
222
+ "minLength": 1
223
+ },
224
+ "produced_by": {
225
+ "type": "string",
226
+ "minLength": 1
227
+ },
228
+ "write_scope": {
229
+ "type": "string",
230
+ "enum": [
231
+ "read_only",
232
+ "dry_run",
233
+ "sandbox",
234
+ "approved_apply"
235
+ ]
236
+ }
237
+ },
238
+ "required": [
239
+ "path",
240
+ "artifact_type",
241
+ "phase",
242
+ "produced_by",
243
+ "write_scope"
244
+ ],
245
+ "additionalProperties": false
246
+ }
247
+ },
248
+ "validations": {
249
+ "default": [],
250
+ "type": "array",
251
+ "items": {
252
+ "type": "object",
253
+ "properties": {
254
+ "id": {
255
+ "type": "string",
256
+ "pattern": "^REV-VAL-[A-Z0-9-]+$"
257
+ },
258
+ "phase": {
259
+ "type": "string",
260
+ "enum": [
261
+ "intake",
262
+ "surface",
263
+ "architecture",
264
+ "rules",
265
+ "data",
266
+ "ux",
267
+ "artifact_generation",
268
+ "migration",
269
+ "reconstruction",
270
+ "equivalence"
271
+ ]
272
+ },
273
+ "command": {
274
+ "type": "string",
275
+ "minLength": 1
276
+ },
277
+ "status": {
278
+ "type": "string",
279
+ "enum": [
280
+ "passed",
281
+ "warning",
282
+ "failed",
283
+ "blocked",
284
+ "skipped"
285
+ ]
286
+ },
287
+ "evidence_ref": {
288
+ "type": "string",
289
+ "minLength": 1
290
+ },
291
+ "issue_codes": {
292
+ "default": [],
293
+ "type": "array",
294
+ "items": {
295
+ "type": "string",
296
+ "pattern": "^[A-Z][A-Z0-9_]*$"
297
+ }
298
+ }
299
+ },
300
+ "required": [
301
+ "id",
302
+ "phase",
303
+ "command",
304
+ "status",
305
+ "issue_codes"
306
+ ],
307
+ "additionalProperties": false
308
+ }
309
+ },
310
+ "contradictions": {
311
+ "default": [],
312
+ "type": "array",
313
+ "items": {
314
+ "type": "object",
315
+ "properties": {
316
+ "id": {
317
+ "type": "string",
318
+ "pattern": "^REV-CONTRA-[A-Z0-9-]+$"
319
+ },
320
+ "finding_refs": {
321
+ "minItems": 2,
322
+ "type": "array",
323
+ "items": {
324
+ "type": "string",
325
+ "minLength": 1
326
+ }
327
+ },
328
+ "summary": {
329
+ "type": "string",
330
+ "minLength": 1
331
+ },
332
+ "resolution_status": {
333
+ "type": "string",
334
+ "enum": [
335
+ "open",
336
+ "resolved",
337
+ "accepted_risk"
338
+ ]
339
+ }
340
+ },
341
+ "required": [
342
+ "id",
343
+ "finding_refs",
344
+ "summary",
345
+ "resolution_status"
346
+ ],
347
+ "additionalProperties": false
348
+ }
349
+ },
350
+ "human_questions": {
351
+ "default": [],
352
+ "type": "array",
353
+ "items": {
354
+ "type": "object",
355
+ "properties": {
356
+ "id": {
357
+ "type": "string",
358
+ "pattern": "^REV-Q-[A-Z0-9-]+$"
359
+ },
360
+ "question": {
361
+ "type": "string",
362
+ "minLength": 1
363
+ },
364
+ "blocks_phase": {
365
+ "type": "string",
366
+ "enum": [
367
+ "intake",
368
+ "surface",
369
+ "architecture",
370
+ "rules",
371
+ "data",
372
+ "ux",
373
+ "artifact_generation",
374
+ "migration",
375
+ "reconstruction",
376
+ "equivalence"
377
+ ]
378
+ },
379
+ "required_before_apply": {
380
+ "default": false,
381
+ "type": "boolean"
382
+ }
383
+ },
384
+ "required": [
385
+ "id",
386
+ "question",
387
+ "required_before_apply"
388
+ ],
389
+ "additionalProperties": false
390
+ }
391
+ },
392
+ "quality_refs": {
393
+ "default": [],
394
+ "type": "array",
395
+ "items": {
396
+ "type": "string",
397
+ "minLength": 1
398
+ }
399
+ },
400
+ "residual_risks": {
401
+ "default": [],
402
+ "type": "array",
403
+ "items": {
404
+ "type": "object",
405
+ "properties": {
406
+ "code": {
407
+ "type": "string",
408
+ "pattern": "^[A-Z][A-Z0-9_]*$"
409
+ },
410
+ "severity": {
411
+ "type": "string",
412
+ "enum": [
413
+ "low",
414
+ "medium",
415
+ "high",
416
+ "critical"
417
+ ]
418
+ },
419
+ "description": {
420
+ "type": "string",
421
+ "minLength": 1
422
+ },
423
+ "mitigation": {
424
+ "type": "string",
425
+ "minLength": 1
426
+ }
427
+ },
428
+ "required": [
429
+ "code",
430
+ "severity",
431
+ "description",
432
+ "mitigation"
433
+ ],
434
+ "additionalProperties": false
435
+ }
436
+ },
437
+ "metadata": {
438
+ "default": {},
439
+ "type": "object",
440
+ "propertyNames": {
441
+ "type": "string"
442
+ },
443
+ "additionalProperties": {}
444
+ }
445
+ },
446
+ "required": [
447
+ "schema_version",
448
+ "contract",
449
+ "operation_id",
450
+ "generated_at",
451
+ "feature_ref",
452
+ "mode",
453
+ "source_attestations",
454
+ "findings",
455
+ "artifacts",
456
+ "validations",
457
+ "contradictions",
458
+ "human_questions",
459
+ "quality_refs",
460
+ "residual_risks",
461
+ "metadata"
462
+ ],
463
+ "additionalProperties": false,
464
+ "title": "CodeSDD Reversa Evidence Bundle",
465
+ "description": "Machine-readable evidence bundle contract for Reversa intake, extraction, generation, migration, reconstruction, and equivalence phases."
466
+ }