workspai 0.50.0 → 0.52.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.
Files changed (135) hide show
  1. package/README.md +127 -497
  2. package/contracts/artifact-remediation-plan.v1.json +87 -0
  3. package/contracts/cli-runtime-command-inventory.v1.snapshot.json +24 -0
  4. package/contracts/create-planner-capabilities.v1.json +10 -1
  5. package/contracts/doctor-project-evidence.v1.json +46 -0
  6. package/contracts/doctor-remediation-plan.v1.json +82 -0
  7. package/contracts/doctor-workspace-evidence.v1.json +46 -0
  8. package/contracts/extension-cli-compatibility.v1.json +6 -2
  9. package/contracts/published-contract-catalog.v1.json +22 -1
  10. package/contracts/runtime-command-surface.v1.json +104 -0
  11. package/contracts/workspace-intelligence/doctor-dependency-repair-transaction.v1.json +66 -0
  12. package/contracts/workspace-intelligence/studio-blocker-handoff.v1.json +5 -0
  13. package/contracts/workspace-intelligence/verified-goal-status.v1.json +27 -0
  14. package/contracts/workspace-intelligence/verified-goal.v1.json +163 -0
  15. package/contracts/workspace-intelligence-chain.v1.json +6 -0
  16. package/dist/analyze-J7VNZMDH.js +1 -0
  17. package/dist/artifact-remediation-plan-2UKY4TKO.js +3 -0
  18. package/dist/autopilot-release-UG23AWVH.js +1 -0
  19. package/dist/chunk-27UR373Z.js +1 -0
  20. package/dist/chunk-2PY65U6X.js +5 -0
  21. package/dist/{chunk-DQ3PI7EP.js → chunk-3D3PFPP5.js} +1 -1
  22. package/dist/chunk-4D7DIGAB.js +1 -0
  23. package/dist/{chunk-IND3TUVU.js → chunk-4UVGTFOX.js} +1 -1
  24. package/dist/chunk-5XJRCP3D.js +36 -0
  25. package/dist/chunk-62K2H72S.js +1 -0
  26. package/dist/chunk-6AXRIAP2.js +86 -0
  27. package/dist/chunk-6HJJHEL6.js +2 -0
  28. package/dist/{chunk-BHYTI3RH.js → chunk-6PBSAAS5.js} +1 -1
  29. package/dist/{chunk-MVLIONQD.js → chunk-7MQZQ4UU.js} +1 -1
  30. package/dist/chunk-7RLGOEWV.js +1 -0
  31. package/dist/{chunk-CV5HKU4P.js → chunk-7T4TSV5C.js} +1 -1
  32. package/dist/chunk-B4CPDK6J.js +2 -0
  33. package/dist/{chunk-SHXJ2GDR.js → chunk-DZ4VKAXB.js} +1 -1
  34. package/dist/{chunk-5EXZBCAZ.js → chunk-F4KBYFZ5.js} +1 -1
  35. package/dist/{chunk-LZQUZGXB.js → chunk-FRJYAJH6.js} +1 -1
  36. package/dist/chunk-FUPHQOJB.js +1 -0
  37. package/dist/{chunk-VKTUWUS6.js → chunk-GHB6QMQH.js} +1 -1
  38. package/dist/chunk-GR6442P7.js +1 -0
  39. package/dist/chunk-HPWLSLMC.js +8 -0
  40. package/dist/{chunk-KXG6E5VK.js → chunk-ICLYL3N5.js} +1 -1
  41. package/dist/chunk-IO54DFWR.js +691 -0
  42. package/dist/{chunk-RTVRZFIJ.js → chunk-KHEJO3JU.js} +1 -1
  43. package/dist/{chunk-IPJ5URDF.js → chunk-LOCPNNSK.js} +1 -1
  44. package/dist/chunk-LPCL4U4L.js +1 -0
  45. package/dist/{chunk-C35UXTDM.js → chunk-M5ICGR55.js} +1 -1
  46. package/dist/{chunk-SS2VV3D5.js → chunk-MBRU3VWJ.js} +2 -2
  47. package/dist/{chunk-DDQ3XK3H.js → chunk-MZFSINY7.js} +3 -3
  48. package/dist/chunk-OTDGTAZJ.js +1 -0
  49. package/dist/chunk-P4OSLAVD.js +3 -0
  50. package/dist/chunk-PS5F4DCT.js +1 -0
  51. package/dist/{chunk-C3FLCDRN.js → chunk-PTTZPDLX.js} +1 -1
  52. package/dist/chunk-Q6CUJ3WF.js +10 -0
  53. package/dist/{chunk-MV7KF75Q.js → chunk-QURMI7ID.js} +1 -1
  54. package/dist/{chunk-RVQLMTTI.js → chunk-ULR66OJR.js} +1 -1
  55. package/dist/chunk-WJVB6SSD.js +16 -0
  56. package/dist/chunk-WJY7ZXVJ.js +2 -0
  57. package/dist/{chunk-6UTM5AJI.js → chunk-XHRHNVCZ.js} +1 -1
  58. package/dist/chunk-ZTKIBREF.js +1 -0
  59. package/dist/{chunk-BQGBU2Y3.js → chunk-ZVOEPWQM.js} +1 -1
  60. package/dist/{create-I23DC7SN.js → create-ESK3CQPK.js} +1 -1
  61. package/dist/{doctor-DOOMYLIH.js → doctor-DLEBZSF7.js} +1 -1
  62. package/dist/index.d.ts +26 -11
  63. package/dist/index.js +129 -129
  64. package/dist/{pipeline-U77HSINC.js → pipeline-NT6AYYWM.js} +1 -1
  65. package/dist/{project-intelligence-lens-BKKVPCLC.js → project-intelligence-lens-Q4SZDI2N.js} +1 -1
  66. package/dist/project-test-coverage-A677ZLW3.js +1 -0
  67. package/dist/verified-goal-MJNZROS5.js +1 -0
  68. package/dist/{workspace-ZEYUVR26.js → workspace-LSOZM2CG.js} +1 -1
  69. package/dist/{workspace-agent-sync-DKYJLUDP.js → workspace-agent-sync-RZBQXCNJ.js} +1 -1
  70. package/dist/{workspace-archive-4JNT4S7N.js → workspace-archive-ZOWQXWJ6.js} +1 -1
  71. package/dist/workspace-context-IYJKO5BN.js +1 -0
  72. package/dist/{workspace-contract-PVLGPBBV.js → workspace-contract-AZFISDLS.js} +1 -1
  73. package/dist/workspace-explain-26UGV7L4.js +1 -0
  74. package/dist/workspace-explain-contract-GIWPCCEF.js +1 -0
  75. package/dist/{workspace-feedback-RATRXFUC.js → workspace-feedback-LIHEWTNV.js} +1 -1
  76. package/dist/{workspace-foundation-D33LJLGT.js → workspace-foundation-H5UTAUXQ.js} +1 -1
  77. package/dist/{workspace-graph-stream-THNG2T7R.js → workspace-graph-stream-KUDOZE73.js} +1 -1
  78. package/dist/workspace-graph-token-efficiency-5FNH4JZ5.js +1 -0
  79. package/dist/{workspace-history-EWFPT74O.js → workspace-history-HULG5EFN.js} +1 -1
  80. package/dist/{workspace-intelligence-MCNSWWDV.js → workspace-intelligence-A4UE4DZK.js} +1 -1
  81. package/dist/{workspace-intelligence-evaluation-7CABG5Y6.js → workspace-intelligence-evaluation-AOLGHYHC.js} +1 -1
  82. package/dist/workspace-intelligence-runner-42QI5RYA.js +1 -0
  83. package/dist/{workspace-intelligence-runtime-registry-ZZ3GRAL2.js → workspace-intelligence-runtime-registry-YOQ5GFFJ.js} +1 -1
  84. package/dist/{workspace-knowledge-graph-2EYR7N56.js → workspace-knowledge-graph-LEM6X5CM.js} +1 -1
  85. package/dist/{workspace-knowledge-graph-query-VOSPPH4W.js → workspace-knowledge-graph-query-EKHIE3E2.js} +1 -1
  86. package/dist/{workspace-mcp-serve-FLAVKWYW.js → workspace-mcp-serve-N2QPR7VJ.js} +1 -1
  87. package/dist/{workspace-model-FMFYLHE4.js → workspace-model-FJXX3NET.js} +1 -1
  88. package/dist/{workspace-onboarding-MYROZDI2.js → workspace-onboarding-IKFISWWY.js} +1 -1
  89. package/dist/workspace-readme-E2M35RJH.js +77 -0
  90. package/dist/{workspace-registry-summary-6VXIAQLX.js → workspace-registry-summary-HOQ3OBNT.js} +1 -1
  91. package/dist/workspace-run-GOZTUGJS.js +1 -0
  92. package/dist/{workspace-verify-FKYI65UQ.js → workspace-verify-32AWCJQG.js} +1 -1
  93. package/dist/workspace-watch-4WVNB26E.js +1 -0
  94. package/docs/README.md +1 -0
  95. package/docs/README_CONTENT_CONTRACT.md +98 -124
  96. package/docs/ci-workflows.md +53 -15
  97. package/docs/commands-reference.md +16 -2
  98. package/docs/doctor-command.md +16 -0
  99. package/docs/workspace-intelligence-runner.md +48 -0
  100. package/docs/workspace-knowledge-graph.md +39 -0
  101. package/docs/workspace-operations.md +9 -6
  102. package/package.json +9 -4
  103. package/scripts/enterprise-package-smoke.mjs +11 -0
  104. package/templates/kits/fastapi-ddd/README.md.j2 +1 -1
  105. package/templates/kits/fastapi-standard/README.md.j2 +1 -1
  106. package/templates/kits/nestjs-standard/Dockerfile.j2 +1 -1
  107. package/templates/kits/nestjs-standard/README.md.j2 +1 -1
  108. package/templates/kits/nestjs-standard/package.json.j2 +11 -2
  109. package/dist/analyze-ZFQWTCJQ.js +0 -1
  110. package/dist/artifact-remediation-plan-ICN3KOFG.js +0 -3
  111. package/dist/autopilot-release-VKXQ7BS7.js +0 -1
  112. package/dist/chunk-2AXEGYPL.js +0 -1
  113. package/dist/chunk-2D4UOYOJ.js +0 -1
  114. package/dist/chunk-AHLMIL2T.js +0 -1
  115. package/dist/chunk-AL2A7Q4X.js +0 -86
  116. package/dist/chunk-GNQRYISX.js +0 -5
  117. package/dist/chunk-I42F552T.js +0 -2
  118. package/dist/chunk-IDQKVJUF.js +0 -2
  119. package/dist/chunk-JFUD73OZ.js +0 -933
  120. package/dist/chunk-KKAOTTYO.js +0 -8
  121. package/dist/chunk-KMLPHFLD.js +0 -2
  122. package/dist/chunk-L2YK5RV2.js +0 -1
  123. package/dist/chunk-LAJM2SBP.js +0 -15
  124. package/dist/chunk-TDTCMZK7.js +0 -10
  125. package/dist/chunk-UETZ7USY.js +0 -36
  126. package/dist/chunk-WDKNMTJQ.js +0 -1
  127. package/dist/chunk-YPKNQCLK.js +0 -2
  128. package/dist/project-test-coverage-4TEHZJFC.js +0 -1
  129. package/dist/workspace-context-IHUFMZT3.js +0 -1
  130. package/dist/workspace-explain-64HNKAHO.js +0 -1
  131. package/dist/workspace-explain-contract-H7O26QJU.js +0 -1
  132. package/dist/workspace-graph-token-efficiency-CFGFCJ5V.js +0 -1
  133. package/dist/workspace-intelligence-runner-TG2VLHNZ.js +0 -1
  134. package/dist/workspace-run-2ZI5UMJ2.js +0 -1
  135. package/dist/workspace-watch-RP5KMVP2.js +0 -1
@@ -85,6 +85,81 @@
85
85
  }
86
86
  ]
87
87
  },
88
+ "commandInvocation": {
89
+ "type": "object",
90
+ "additionalProperties": false,
91
+ "required": ["cwd", "executable", "args"],
92
+ "properties": {
93
+ "cwd": { "type": "string", "minLength": 1 },
94
+ "executable": { "type": "string", "minLength": 1 },
95
+ "args": {
96
+ "type": "array",
97
+ "items": { "type": "string" }
98
+ }
99
+ }
100
+ },
101
+ "repairStrategyStage": {
102
+ "type": "object",
103
+ "additionalProperties": false,
104
+ "required": ["id", "kind", "description", "risk", "continueWhen"],
105
+ "properties": {
106
+ "id": { "type": "string", "minLength": 1 },
107
+ "kind": {
108
+ "enum": ["diagnose", "safe-fix", "targeted-upgrade", "verify", "exception-review"]
109
+ },
110
+ "description": { "type": "string", "minLength": 1 },
111
+ "risk": { "enum": ["safe", "guarded", "invasive"] },
112
+ "invocation": { "$ref": "#/$defs/commandInvocation" },
113
+ "continueWhen": {
114
+ "enum": ["always", "previous-passed", "blocker-remains", "manual-decision"]
115
+ }
116
+ }
117
+ },
118
+ "dependencyRepairTransaction": {
119
+ "type": "object",
120
+ "additionalProperties": false,
121
+ "required": [
122
+ "schemaVersion",
123
+ "kind",
124
+ "state",
125
+ "projectPath",
126
+ "ecosystem",
127
+ "requiredStages",
128
+ "completion"
129
+ ],
130
+ "properties": {
131
+ "schemaVersion": {
132
+ "const": "workspai.doctor-dependency-repair-transaction.v1"
133
+ },
134
+ "kind": { "const": "dependency-security" },
135
+ "state": { "const": "planned" },
136
+ "projectPath": { "type": "string", "minLength": 1 },
137
+ "ecosystem": { "type": "string", "minLength": 1 },
138
+ "requiredStages": {
139
+ "type": "array",
140
+ "items": { "enum": ["reconcile", "audit", "test", "build"] },
141
+ "uniqueItems": true
142
+ },
143
+ "completion": {
144
+ "type": "object",
145
+ "additionalProperties": false,
146
+ "required": [
147
+ "manifestLockConsistent",
148
+ "auditClean",
149
+ "declaredTestsPass",
150
+ "declaredBuildPass",
151
+ "canonicalVerificationRequired"
152
+ ],
153
+ "properties": {
154
+ "manifestLockConsistent": { "const": true },
155
+ "auditClean": { "const": true },
156
+ "declaredTestsPass": { "const": true },
157
+ "declaredBuildPass": { "const": true },
158
+ "canonicalVerificationRequired": { "const": true }
159
+ }
160
+ }
161
+ }
162
+ },
88
163
  "action": {
89
164
  "type": "object",
90
165
  "additionalProperties": false,
@@ -116,6 +191,18 @@
116
191
  "order": { "type": "integer", "minimum": 0 },
117
192
  "phase": { "type": "string" },
118
193
  "scope": { "enum": ["workspace", "project"] },
194
+ "projectName": { "type": "string", "minLength": 1 },
195
+ "projectPath": { "type": "string", "minLength": 1 },
196
+ "sourceStepId": { "type": "string", "minLength": 1 },
197
+ "dependsOn": {
198
+ "type": "array",
199
+ "items": { "type": "string", "minLength": 1 }
200
+ },
201
+ "strategy": {
202
+ "type": "array",
203
+ "items": { "$ref": "#/$defs/repairStrategyStage" }
204
+ },
205
+ "transaction": { "$ref": "#/$defs/dependencyRepairTransaction" },
119
206
  "status": { "enum": ["ready", "review-required", "blocked", "guidance-only"] },
120
207
  "mode": {
121
208
  "enum": [
@@ -1423,6 +1423,30 @@
1423
1423
  {
1424
1424
  "flags": "--no-gates",
1425
1425
  "attributeName": "gates"
1426
+ },
1427
+ {
1428
+ "flags": "--allow-breaking",
1429
+ "attributeName": "allowBreaking"
1430
+ },
1431
+ {
1432
+ "flags": "--allow-force",
1433
+ "attributeName": "allowForce"
1434
+ },
1435
+ {
1436
+ "flags": "--no-build",
1437
+ "attributeName": "build"
1438
+ },
1439
+ {
1440
+ "flags": "--no-tests",
1441
+ "attributeName": "tests"
1442
+ },
1443
+ {
1444
+ "flags": "--no-run",
1445
+ "attributeName": "run"
1446
+ },
1447
+ {
1448
+ "flags": "--reuse-intelligence",
1449
+ "attributeName": "reuseIntelligence"
1426
1450
  }
1427
1451
  ]
1428
1452
  }
@@ -131,6 +131,9 @@
131
131
  "npx create-react-router@latest <name>"
132
132
  ],
133
133
  "adoptAfterCreate": true,
134
+ "runtimeRequirements": {
135
+ "node": ">=22.22.0"
136
+ },
134
137
  "category": "frontend"
135
138
  },
136
139
  {
@@ -257,6 +260,9 @@
257
260
  "npx @angular/cli@latest new <name>"
258
261
  ],
259
262
  "adoptAfterCreate": true,
263
+ "runtimeRequirements": {
264
+ "node": ">=20"
265
+ },
260
266
  "category": "frontend"
261
267
  },
262
268
  {
@@ -304,7 +310,7 @@
304
310
  "canExecuteCreate": true,
305
311
  "versionPolicy": "latest-stable",
306
312
  "officialCommands": [
307
- "npm create tauri-app@latest <name> -- --template vanilla-ts"
313
+ "npm create tauri-app@latest <name> -- --manager npm --template vanilla-ts --yes"
308
314
  ],
309
315
  "adoptAfterCreate": true,
310
316
  "category": "desktop"
@@ -342,6 +348,9 @@
342
348
  "npx --package yo@latest --package generator-code@latest -- yo code <name> --quick --extensionType ts --pkgManager npm --bundle esbuild"
343
349
  ],
344
350
  "adoptAfterCreate": true,
351
+ "runtimeRequirements": {
352
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
353
+ },
345
354
  "category": "extension"
346
355
  },
347
356
  {
@@ -390,6 +390,7 @@
390
390
  "type": "array",
391
391
  "items": { "$ref": "#/$defs/repairStrategyStage" }
392
392
  },
393
+ "transaction": { "$ref": "#/$defs/dependencyRepairTransaction" },
393
394
  "operation": { "$ref": "#/$defs/repairOperation" },
394
395
  "verifyCommand": { "type": "string" },
395
396
  "refreshCommands": { "type": "array", "items": { "type": "string" } },
@@ -398,6 +399,51 @@
398
399
  },
399
400
  "additionalProperties": true
400
401
  },
402
+ "dependencyRepairTransaction": {
403
+ "type": "object",
404
+ "required": [
405
+ "schemaVersion",
406
+ "kind",
407
+ "state",
408
+ "projectPath",
409
+ "ecosystem",
410
+ "requiredStages",
411
+ "completion"
412
+ ],
413
+ "properties": {
414
+ "schemaVersion": {
415
+ "const": "workspai.doctor-dependency-repair-transaction.v1"
416
+ },
417
+ "kind": { "const": "dependency-security" },
418
+ "state": { "const": "planned" },
419
+ "projectPath": { "type": "string", "minLength": 1 },
420
+ "ecosystem": { "type": "string", "minLength": 1 },
421
+ "requiredStages": {
422
+ "type": "array",
423
+ "items": { "enum": ["reconcile", "audit", "test", "build"] },
424
+ "uniqueItems": true
425
+ },
426
+ "completion": {
427
+ "type": "object",
428
+ "required": [
429
+ "manifestLockConsistent",
430
+ "auditClean",
431
+ "declaredTestsPass",
432
+ "declaredBuildPass",
433
+ "canonicalVerificationRequired"
434
+ ],
435
+ "properties": {
436
+ "manifestLockConsistent": { "const": true },
437
+ "auditClean": { "const": true },
438
+ "declaredTestsPass": { "const": true },
439
+ "declaredBuildPass": { "const": true },
440
+ "canonicalVerificationRequired": { "const": true }
441
+ },
442
+ "additionalProperties": false
443
+ }
444
+ },
445
+ "additionalProperties": false
446
+ },
401
447
  "commandInvocation": {
402
448
  "type": "object",
403
449
  "required": ["cwd", "executable", "args"],
@@ -140,6 +140,81 @@
140
140
  }
141
141
  }
142
142
  },
143
+ "commandInvocation": {
144
+ "type": "object",
145
+ "additionalProperties": false,
146
+ "required": ["cwd", "executable", "args"],
147
+ "properties": {
148
+ "cwd": { "type": "string", "minLength": 1 },
149
+ "executable": { "type": "string", "minLength": 1 },
150
+ "args": {
151
+ "type": "array",
152
+ "items": { "type": "string" }
153
+ }
154
+ }
155
+ },
156
+ "repairStrategyStage": {
157
+ "type": "object",
158
+ "additionalProperties": false,
159
+ "required": ["id", "kind", "description", "risk", "continueWhen"],
160
+ "properties": {
161
+ "id": { "type": "string", "minLength": 1 },
162
+ "kind": {
163
+ "enum": ["diagnose", "safe-fix", "targeted-upgrade", "verify", "exception-review"]
164
+ },
165
+ "description": { "type": "string", "minLength": 1 },
166
+ "risk": { "enum": ["safe", "guarded", "invasive"] },
167
+ "invocation": { "$ref": "#/$defs/commandInvocation" },
168
+ "continueWhen": {
169
+ "enum": ["always", "previous-passed", "blocker-remains", "manual-decision"]
170
+ }
171
+ }
172
+ },
173
+ "dependencyRepairTransaction": {
174
+ "type": "object",
175
+ "additionalProperties": false,
176
+ "required": [
177
+ "schemaVersion",
178
+ "kind",
179
+ "state",
180
+ "projectPath",
181
+ "ecosystem",
182
+ "requiredStages",
183
+ "completion"
184
+ ],
185
+ "properties": {
186
+ "schemaVersion": {
187
+ "const": "workspai.doctor-dependency-repair-transaction.v1"
188
+ },
189
+ "kind": { "const": "dependency-security" },
190
+ "state": { "const": "planned" },
191
+ "projectPath": { "type": "string", "minLength": 1 },
192
+ "ecosystem": { "type": "string", "minLength": 1 },
193
+ "requiredStages": {
194
+ "type": "array",
195
+ "items": { "enum": ["reconcile", "audit", "test", "build"] },
196
+ "uniqueItems": true
197
+ },
198
+ "completion": {
199
+ "type": "object",
200
+ "additionalProperties": false,
201
+ "required": [
202
+ "manifestLockConsistent",
203
+ "auditClean",
204
+ "declaredTestsPass",
205
+ "declaredBuildPass",
206
+ "canonicalVerificationRequired"
207
+ ],
208
+ "properties": {
209
+ "manifestLockConsistent": { "const": true },
210
+ "auditClean": { "const": true },
211
+ "declaredTestsPass": { "const": true },
212
+ "declaredBuildPass": { "const": true },
213
+ "canonicalVerificationRequired": { "const": true }
214
+ }
215
+ }
216
+ }
217
+ },
143
218
  "repairIntent": {
144
219
  "type": "object",
145
220
  "additionalProperties": false,
@@ -478,6 +553,13 @@
478
553
  "operation": {
479
554
  "$ref": "#/$defs/repairOperation"
480
555
  },
556
+ "strategy": {
557
+ "type": "array",
558
+ "items": { "$ref": "#/$defs/repairStrategyStage" }
559
+ },
560
+ "transaction": {
561
+ "$ref": "#/$defs/dependencyRepairTransaction"
562
+ },
481
563
  "preview": {
482
564
  "$ref": "#/$defs/preview"
483
565
  },
@@ -400,6 +400,7 @@
400
400
  "type": "array",
401
401
  "items": { "$ref": "#/$defs/repairStrategyStage" }
402
402
  },
403
+ "transaction": { "$ref": "#/$defs/dependencyRepairTransaction" },
403
404
  "operation": { "$ref": "#/$defs/repairOperation" },
404
405
  "verifyCommand": { "type": "string" },
405
406
  "refreshCommands": { "type": "array", "items": { "type": "string" } },
@@ -408,6 +409,51 @@
408
409
  },
409
410
  "additionalProperties": true
410
411
  },
412
+ "dependencyRepairTransaction": {
413
+ "type": "object",
414
+ "required": [
415
+ "schemaVersion",
416
+ "kind",
417
+ "state",
418
+ "projectPath",
419
+ "ecosystem",
420
+ "requiredStages",
421
+ "completion"
422
+ ],
423
+ "properties": {
424
+ "schemaVersion": {
425
+ "const": "workspai.doctor-dependency-repair-transaction.v1"
426
+ },
427
+ "kind": { "const": "dependency-security" },
428
+ "state": { "const": "planned" },
429
+ "projectPath": { "type": "string", "minLength": 1 },
430
+ "ecosystem": { "type": "string", "minLength": 1 },
431
+ "requiredStages": {
432
+ "type": "array",
433
+ "items": { "enum": ["reconcile", "audit", "test", "build"] },
434
+ "uniqueItems": true
435
+ },
436
+ "completion": {
437
+ "type": "object",
438
+ "required": [
439
+ "manifestLockConsistent",
440
+ "auditClean",
441
+ "declaredTestsPass",
442
+ "declaredBuildPass",
443
+ "canonicalVerificationRequired"
444
+ ],
445
+ "properties": {
446
+ "manifestLockConsistent": { "const": true },
447
+ "auditClean": { "const": true },
448
+ "declaredTestsPass": { "const": true },
449
+ "declaredBuildPass": { "const": true },
450
+ "canonicalVerificationRequired": { "const": true }
451
+ },
452
+ "additionalProperties": false
453
+ }
454
+ },
455
+ "additionalProperties": false
456
+ },
411
457
  "commandInvocation": {
412
458
  "type": "object",
413
459
  "required": ["cwd", "executable", "args"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "rapidkit-extension-cli-compatibility.v1",
3
3
  "cli": "workspai",
4
- "minimumVerifiedCliVersion": "0.50.0",
4
+ "minimumVerifiedCliVersion": "0.52.0",
5
5
  "publishedContractSchemas": {
6
6
  "workspaceContract": 1,
7
7
  "runtimeCommandSurface": "rapidkit-runtime-command-surface-v1",
@@ -21,6 +21,8 @@
21
21
  "doctorWorkspaceEvidence": "doctor-workspace-evidence-v1",
22
22
  "doctorGraphDiagnosis": "doctor-graph-diagnosis.v1",
23
23
  "projectTestCoverage": "workspai.project-test-coverage.v1",
24
+ "verifiedGoal": "workspai.verified-goal.v1",
25
+ "verifiedGoalStatus": "workspai.verified-goal-status.v1",
24
26
  "workspaceIntelligenceArchitecture": "workspai-workspace-intelligence-architecture-v1",
25
27
  "workspaceIntelligenceChain": "workspai-workspace-intelligence-chain-v1",
26
28
  "workspaceIntelligenceArtifacts": {
@@ -43,7 +45,8 @@
43
45
  "explain": "workspace-explain.v1",
44
46
  "intelligenceRun": "workspace-intelligence-run.v1",
45
47
  "evaluationLive": "workspace-intelligence-evaluation.v1",
46
- "evaluationLastRun": "workspace-intelligence-evaluation.v1"
48
+ "evaluationLastRun": "workspace-intelligence-evaluation.v1",
49
+ "verifiedGoalStatus": "workspai.verified-goal-status.v1"
47
50
  },
48
51
  "cliLogEvent": "cli-log-event-v1",
49
52
  "freshnessMetadata": "rapidkit-freshness-metadata-v1",
@@ -71,6 +74,7 @@
71
74
  "workspaceExplain": "workspace-explain.v1",
72
75
  "agentActionOutcome": "agent-action-outcome.v1",
73
76
  "doctorRemediationPlan": "doctor-remediation-plan-v2",
77
+ "doctorDependencyRepairTransaction": "workspai.doctor-dependency-repair-transaction.v1",
74
78
  "artifactRemediationPlan": "artifact-remediation-plan-v1",
75
79
  "doctorFixResult": "rapidkit-doctor-fix-result-v1",
76
80
  "autopilotRelease": "autopilot-release-v1",
@@ -91,6 +91,16 @@
91
91
  "contractPath": "contracts/project-test-coverage.v1.json",
92
92
  "publication": "json-schema"
93
93
  },
94
+ "verifiedGoal": {
95
+ "schemaVersion": "workspai.verified-goal.v1",
96
+ "contractPath": "contracts/workspace-intelligence/verified-goal.v1.json",
97
+ "publication": "json-schema"
98
+ },
99
+ "verifiedGoalStatus": {
100
+ "schemaVersion": "workspai.verified-goal-status.v1",
101
+ "contractPath": "contracts/workspace-intelligence/verified-goal-status.v1.json",
102
+ "publication": "json-schema"
103
+ },
94
104
  "workspaceIntelligenceArchitecture": {
95
105
  "schemaVersion": "workspai-workspace-intelligence-architecture-v1",
96
106
  "contractPath": "contracts/workspace-intelligence-architecture.v1.json",
@@ -122,7 +132,8 @@
122
132
  "explain": "workspace-explain.v1",
123
133
  "intelligenceRun": "workspace-intelligence-run.v1",
124
134
  "evaluationLive": "workspace-intelligence-evaluation.v1",
125
- "evaluationLastRun": "workspace-intelligence-evaluation.v1"
135
+ "evaluationLastRun": "workspace-intelligence-evaluation.v1",
136
+ "verifiedGoalStatus": "workspai.verified-goal-status.v1"
126
137
  },
127
138
  "contractPath": null,
128
139
  "publication": "embedded-type",
@@ -226,6 +237,11 @@
226
237
  "path": ".workspai/reports/workspace-intelligence-evaluation-last-run.json",
227
238
  "schemaVersion": "workspace-intelligence-evaluation.v1",
228
239
  "contractPath": "contracts/workspace-intelligence/workspace-intelligence-evaluation.v1.json"
240
+ },
241
+ "verifiedGoalStatus": {
242
+ "path": ".workspai/reports/verified-goal-last-run.json",
243
+ "schemaVersion": "workspai.verified-goal-status.v1",
244
+ "contractPath": "contracts/workspace-intelligence/verified-goal-status.v1.json"
229
245
  }
230
246
  }
231
247
  },
@@ -359,6 +375,11 @@
359
375
  "contractPath": "contracts/doctor-remediation-plan.v2.json",
360
376
  "publication": "json-schema"
361
377
  },
378
+ "doctorDependencyRepairTransaction": {
379
+ "schemaVersion": "workspai.doctor-dependency-repair-transaction.v1",
380
+ "contractPath": "contracts/workspace-intelligence/doctor-dependency-repair-transaction.v1.json",
381
+ "publication": "json-schema"
382
+ },
362
383
  "artifactRemediationPlan": {
363
384
  "schemaVersion": "artifact-remediation-plan-v1",
364
385
  "contractPath": "contracts/artifact-remediation-plan.v1.json",
@@ -1045,6 +1045,32 @@
1045
1045
  "foundation"
1046
1046
  ]
1047
1047
  },
1048
+ {
1049
+ "invocation": "workspace goal",
1050
+ "summary": "Plan, resume, and evidence-verify a durable engineering goal with explicit scope, constraints, and success criteria.",
1051
+ "canonicalArgv": [
1052
+ "workspace",
1053
+ "goal"
1054
+ ]
1055
+ },
1056
+ {
1057
+ "invocation": "workspace goal plan",
1058
+ "summary": "Create or deterministically resume a goal contract and capture its current baseline.",
1059
+ "canonicalArgv": [
1060
+ "workspace",
1061
+ "goal",
1062
+ "plan"
1063
+ ]
1064
+ },
1065
+ {
1066
+ "invocation": "workspace goal verify",
1067
+ "summary": "Run the goal-specific checks and publish an evidence-derived verified, blocked, or failed state.",
1068
+ "canonicalArgv": [
1069
+ "workspace",
1070
+ "goal",
1071
+ "verify"
1072
+ ]
1073
+ },
1048
1074
  {
1049
1075
  "invocation": "workspace graph",
1050
1076
  "summary": "Query or export the evidence-backed workspace graph derived from the canonical model.",
@@ -1601,6 +1627,23 @@
1601
1627
  ]
1602
1628
  ]
1603
1629
  },
1630
+ {
1631
+ "artifactPath": ".workspai/reports/verified-goal-last-run.json",
1632
+ "schemaVersion": "workspai.verified-goal-status.v1",
1633
+ "contractPath": "contracts/workspace-intelligence/verified-goal-status.v1.json",
1634
+ "producerCommands": [
1635
+ [
1636
+ "workspace",
1637
+ "goal",
1638
+ "plan"
1639
+ ],
1640
+ [
1641
+ "workspace",
1642
+ "goal",
1643
+ "verify"
1644
+ ]
1645
+ ]
1646
+ },
1604
1647
  {
1605
1648
  "artifactPath": ".workspai/workspace-link.local.json",
1606
1649
  "schemaVersion": "project-workspace-link.v1",
@@ -1925,6 +1968,7 @@
1925
1968
  "diff",
1926
1969
  "impact",
1927
1970
  "verify",
1971
+ "goal",
1928
1972
  "graph",
1929
1973
  "watch",
1930
1974
  "context",
@@ -2280,6 +2324,65 @@
2280
2324
  "workspai workspace verify --from-impact .workspai/reports/workspace-impact-last-run.json --json"
2281
2325
  ]
2282
2326
  },
2327
+ {
2328
+ "id": "goal",
2329
+ "usage": "workspai workspace goal <plan|status|verify> <kind|goal-id> [--scope <scope>] [--target <percent>] [--json]",
2330
+ "summary": "Plan, resume, and evidence-verify a durable engineering goal for people and agents.",
2331
+ "options": [
2332
+ {
2333
+ "flag": "--workspace",
2334
+ "description": "Use an explicit workspace root instead of the nearest workspace."
2335
+ },
2336
+ {
2337
+ "flag": "--json",
2338
+ "description": "Emit machine-readable JSON."
2339
+ },
2340
+ {
2341
+ "flag": "--scope",
2342
+ "description": "Limit the operation to a bounded scope such as project:<name>."
2343
+ },
2344
+ {
2345
+ "flag": "--target",
2346
+ "description": "Set the required test coverage percentage (0–100)."
2347
+ },
2348
+ {
2349
+ "flag": "--allow-breaking",
2350
+ "description": "Allow a verified goal to use breaking dependency changes."
2351
+ },
2352
+ {
2353
+ "flag": "--allow-force",
2354
+ "description": "Allow a verified goal to use force-based repair commands."
2355
+ },
2356
+ {
2357
+ "flag": "--no-build",
2358
+ "description": "Do not require build validation for the selected verified goal."
2359
+ },
2360
+ {
2361
+ "flag": "--no-tests",
2362
+ "description": "Do not require test validation for the selected verified goal."
2363
+ },
2364
+ {
2365
+ "flag": "--no-run",
2366
+ "description": "Read current goal evidence without executing verification commands."
2367
+ },
2368
+ {
2369
+ "flag": "--reuse-intelligence",
2370
+ "description": "Reuse a just-completed canonical intelligence run while executing goal-specific checks."
2371
+ }
2372
+ ],
2373
+ "subactions": [
2374
+ "plan",
2375
+ "status",
2376
+ "verify"
2377
+ ],
2378
+ "artifact": ".workspai/reports/verified-goal-last-run.json",
2379
+ "examples": [
2380
+ "workspai workspace goal plan release-readiness --json",
2381
+ "workspai workspace goal plan dependency-security --scope project:api --json",
2382
+ "workspai workspace goal plan test-coverage --scope project:web --target 75 --json",
2383
+ "workspai workspace goal verify <goal-id> --json"
2384
+ ]
2385
+ },
2283
2386
  {
2284
2387
  "id": "graph",
2285
2388
  "usage": "workspai workspace graph [mode] [query|from] [to] [--json]",
@@ -3124,6 +3227,7 @@
3124
3227
  "impact",
3125
3228
  "contract",
3126
3229
  "verify",
3230
+ "goal",
3127
3231
  "graph",
3128
3232
  "watch",
3129
3233
  "context",
@@ -0,0 +1,66 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://workspai.dev/contracts/workspace-intelligence/doctor-dependency-repair-transaction.v1.json",
4
+ "title": "Workspai Doctor Dependency Repair Transaction v1",
5
+ "description": "The portable closure contract a consumer must satisfy after changing a dependency manifest or lockfile.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "schemaVersion",
10
+ "kind",
11
+ "state",
12
+ "projectPath",
13
+ "ecosystem",
14
+ "requiredStages",
15
+ "completion"
16
+ ],
17
+ "properties": {
18
+ "schemaVersion": {
19
+ "const": "workspai.doctor-dependency-repair-transaction.v1"
20
+ },
21
+ "kind": {
22
+ "const": "dependency-security"
23
+ },
24
+ "state": {
25
+ "const": "planned"
26
+ },
27
+ "projectPath": {
28
+ "type": "string",
29
+ "minLength": 1
30
+ },
31
+ "ecosystem": {
32
+ "type": "string",
33
+ "minLength": 1
34
+ },
35
+ "requiredStages": {
36
+ "type": "array",
37
+ "prefixItems": [
38
+ { "const": "reconcile" },
39
+ { "const": "audit" },
40
+ { "const": "test" },
41
+ { "const": "build" }
42
+ ],
43
+ "items": false,
44
+ "minItems": 4,
45
+ "maxItems": 4
46
+ },
47
+ "completion": {
48
+ "type": "object",
49
+ "additionalProperties": false,
50
+ "required": [
51
+ "manifestLockConsistent",
52
+ "auditClean",
53
+ "declaredTestsPass",
54
+ "declaredBuildPass",
55
+ "canonicalVerificationRequired"
56
+ ],
57
+ "properties": {
58
+ "manifestLockConsistent": { "const": true },
59
+ "auditClean": { "const": true },
60
+ "declaredTestsPass": { "const": true },
61
+ "declaredBuildPass": { "const": true },
62
+ "canonicalVerificationRequired": { "const": true }
63
+ }
64
+ }
65
+ }
66
+ }