workspai 0.49.0 → 0.51.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 (257) hide show
  1. package/README.md +123 -434
  2. package/contracts/analyze-last-run.v1.json +2 -2
  3. package/contracts/artifact-remediation-plan.v1.json +3 -9
  4. package/contracts/autopilot-release.v1.json +2 -0
  5. package/contracts/bootstrap-compliance.v1.json +2 -1
  6. package/contracts/cli-log-event.v1.json +1 -1
  7. package/contracts/cli-runtime-command-inventory.v1.snapshot.json +80 -0
  8. package/contracts/compatibility-matrix.v1.json +2 -0
  9. package/contracts/create-planner-capabilities.v1.json +153 -32
  10. package/contracts/doctor-project-evidence.v1.json +191 -11
  11. package/contracts/doctor-project-scan.v2.json +2 -0
  12. package/contracts/doctor-remediation-plan.v1.json +2 -2
  13. package/contracts/doctor-remediation-plan.v2.json +2 -2
  14. package/contracts/doctor-workspace-cache.v2.json +2 -0
  15. package/contracts/doctor-workspace-evidence.v1.json +189 -10
  16. package/contracts/extension-cli-compatibility.v1.json +10 -1
  17. package/contracts/infra-plan.v1.json +2 -0
  18. package/contracts/ingestion-plan.v1.json +85 -0
  19. package/contracts/ingestion-result.v1.json +59 -0
  20. package/contracts/mirror-ops.v1.json +2 -1
  21. package/contracts/pipeline-last-run.v1.json +2 -2
  22. package/contracts/private-product-manifest.v1.json +2 -0
  23. package/contracts/product-factory-plan.v1.json +2 -0
  24. package/contracts/project-archive.v1.json +2 -0
  25. package/contracts/project-entry-capability.v1.json +2 -3
  26. package/contracts/project-test-coverage.v1.json +189 -0
  27. package/contracts/project-workspace-link.v1.json +66 -0
  28. package/contracts/project-workspace-resolution.v1.json +28 -0
  29. package/contracts/published-contract-catalog.v1.json +45 -0
  30. package/contracts/release-readiness.v1.json +2 -2
  31. package/contracts/runtime-command-surface.v1.json +1456 -139
  32. package/contracts/transparency-evidence.v1.json +2 -1
  33. package/contracts/workspace-archive-capabilities.v1.json +11 -5
  34. package/contracts/workspace-archive-manifest.v1.json +236 -0
  35. package/contracts/workspace-archive-operation-result.v1.json +236 -0
  36. package/contracts/workspace-contract.v1.json +1 -1
  37. package/contracts/workspace-intelligence/agent-action-outcome.v1.json +2 -2
  38. package/contracts/workspace-intelligence/agent-customization-pack-report.v1.json +1 -1
  39. package/contracts/workspace-intelligence/agent-hooks.v1.json +2 -0
  40. package/contracts/workspace-intelligence/agent-reports-index.v1.json +1 -1
  41. package/contracts/workspace-intelligence/blocker-resolution.v1.json +3 -9
  42. package/contracts/workspace-intelligence/doctor-fix-result.v1.json +2 -2
  43. package/contracts/workspace-intelligence/doctor-graph-diagnosis.v1.json +208 -0
  44. package/contracts/workspace-intelligence/fact-freshness.v1.json +2 -2
  45. package/contracts/workspace-intelligence/mcp-design.v1.json +2 -0
  46. package/contracts/workspace-intelligence/model-usage-event.v1.json +1 -1
  47. package/contracts/workspace-intelligence/project-context-agent.v1.json +360 -0
  48. package/contracts/workspace-intelligence/studio-blocker-handoff.v1.json +1 -1
  49. package/contracts/workspace-intelligence/workspace-context.v1.json +1 -1
  50. package/contracts/workspace-intelligence/workspace-contract-verify.v1.json +2 -2
  51. package/contracts/workspace-intelligence/workspace-dependency-graph.v1.json +1 -1
  52. package/contracts/workspace-intelligence/workspace-explain.v1.json +1 -1
  53. package/contracts/workspace-intelligence/workspace-graph-stream.v1.json +1 -1
  54. package/contracts/workspace-intelligence/workspace-graph-token-efficiency.v1.json +1 -1
  55. package/contracts/workspace-intelligence/workspace-impact.v1.json +1 -1
  56. package/contracts/workspace-intelligence/workspace-intelligence-evaluation-comparison.v1.json +1 -1
  57. package/contracts/workspace-intelligence/workspace-intelligence-evaluation.v1.json +1 -1
  58. package/contracts/workspace-intelligence/workspace-intelligence-history.v1.json +1 -1
  59. package/contracts/workspace-intelligence/workspace-intelligence-run.v1.json +2 -2
  60. package/contracts/workspace-intelligence/workspace-knowledge-graph-change-overlay.v1.json +1 -1
  61. package/contracts/workspace-intelligence/workspace-knowledge-graph.v1.json +48 -5
  62. package/contracts/workspace-intelligence/workspace-knowledge-search.v1.json +1 -1
  63. package/contracts/workspace-intelligence/workspace-model-diff.v1.json +1 -1
  64. package/contracts/workspace-intelligence/workspace-model-snapshot.v1.json +1 -1
  65. package/contracts/workspace-intelligence/workspace-model.v1.json +97 -5
  66. package/contracts/workspace-intelligence/workspace-operational-skill.v1.json +1 -1
  67. package/contracts/workspace-intelligence/workspace-skills-index.v1.json +1 -1
  68. package/contracts/workspace-intelligence/workspace-verify.v1.json +1 -1
  69. package/contracts/workspace-intelligence-architecture.v1.json +33 -7
  70. package/contracts/workspace-intelligence-chain.v1.json +1 -1
  71. package/contracts/workspace-list.v1.json +2 -0
  72. package/contracts/workspace-model-cache.v1.json +2 -0
  73. package/contracts/workspace-registry.v1.json +1 -1
  74. package/contracts/workspace-run-last.v1.json +1 -1
  75. package/contracts/workspace-share-bundle.v1.json +2 -1
  76. package/contracts/workspace-snapshot.v1.json +2 -0
  77. package/contracts/workspace-snapshot.v2.json +2 -0
  78. package/contracts/workspace-sync.v1.json +2 -0
  79. package/contracts/workspace-watch-event.v1.json +2 -0
  80. package/dist/analyze-4H33PAUB.js +1 -0
  81. package/dist/{artifact-remediation-plan-SPOUHMK5.js → artifact-remediation-plan-TQ6KTTXD.js} +1 -1
  82. package/dist/autopilot-release-BHZYM5KX.js +1 -0
  83. package/dist/chunk-2D4UOYOJ.js +1 -0
  84. package/dist/chunk-2OIBHUVH.js +1 -0
  85. package/dist/chunk-3D2PAIRH.js +3 -0
  86. package/dist/chunk-3GRKUP5W.js +33 -0
  87. package/dist/{managed-agent-markers-AXUM75OE.js → chunk-3RBUSW7H.js} +1 -1
  88. package/dist/chunk-4WJC5QCD.js +2 -0
  89. package/dist/chunk-6HLPTJZ3.js +13 -0
  90. package/dist/{chunk-CV5HKU4P.js → chunk-7T4TSV5C.js} +1 -1
  91. package/dist/chunk-AFIFZTOY.js +2 -0
  92. package/dist/{chunk-BMWFQXGW.js → chunk-AHLMIL2T.js} +1 -1
  93. package/dist/chunk-AL237TSJ.js +7 -0
  94. package/dist/chunk-BBGNDMRU.js +2 -0
  95. package/dist/chunk-BG4FWJJ3.js +1 -0
  96. package/dist/{chunk-VU7NZHPM.js → chunk-BHYTI3RH.js} +1 -1
  97. package/dist/chunk-BYTFXQ6G.js +1 -0
  98. package/dist/chunk-CZC5P2MF.js +1 -0
  99. package/dist/chunk-DLM6C7FU.js +8 -0
  100. package/dist/{chunk-CRHYBQI3.js → chunk-DQ3PI7EP.js} +1 -1
  101. package/dist/chunk-E3CT7TYT.js +1 -0
  102. package/dist/chunk-EPVFKJF4.js +1 -0
  103. package/dist/chunk-EWZZUQBR.js +1 -0
  104. package/dist/chunk-FKWB66NQ.js +4 -0
  105. package/dist/{chunk-BGPXQQNY.js → chunk-FZ76CF2W.js} +1 -1
  106. package/dist/chunk-GBAO4GSW.js +2 -0
  107. package/dist/chunk-GQRWRHSR.js +86 -0
  108. package/dist/{chunk-ESLPI3XZ.js → chunk-HE4PUMU4.js} +1 -1
  109. package/dist/chunk-HMGPELXS.js +1 -0
  110. package/dist/chunk-HSZCINFX.js +2 -0
  111. package/dist/{chunk-3VFA7D5T.js → chunk-IND3TUVU.js} +1 -1
  112. package/dist/{chunk-NHN4QXPP.js → chunk-KVSYBHUR.js} +1 -1
  113. package/dist/chunk-L2E2Z4OE.js +5 -0
  114. package/dist/chunk-MAF3LLGK.js +691 -0
  115. package/dist/chunk-MOSXTVPU.js +1 -0
  116. package/dist/chunk-MVLIONQD.js +1 -0
  117. package/dist/chunk-PS5F4DCT.js +1 -0
  118. package/dist/{chunk-K4X3DM7R.js → chunk-Q6TKQVKQ.js} +1 -1
  119. package/dist/chunk-RJIYCDVC.js +1 -0
  120. package/dist/chunk-RVQLMTTI.js +2 -0
  121. package/dist/chunk-SHXJ2GDR.js +75 -0
  122. package/dist/chunk-TDTCMZK7.js +10 -0
  123. package/dist/chunk-TROHVI2V.js +2 -0
  124. package/dist/chunk-U2LR73E2.js +1 -0
  125. package/dist/chunk-U2QL5733.js +36 -0
  126. package/dist/{chunk-TIE2XMGH.js → chunk-VCW5HSPC.js} +12 -12
  127. package/dist/chunk-VRW6KXNK.js +6 -0
  128. package/dist/chunk-VU2BKKMB.js +1 -0
  129. package/dist/chunk-WJVB6SSD.js +16 -0
  130. package/dist/{chunk-32OJDBIG.js → chunk-XBM2P45G.js} +2 -2
  131. package/dist/chunk-Y5YAP4F3.js +2 -0
  132. package/dist/{create-S64IWHAP.js → create-SBFBFXKN.js} +1 -1
  133. package/dist/{demo-kit-DZ7TPG7K.js → demo-kit-KHH63TNA.js} +2 -2
  134. package/dist/{doctor-4NNUDNGZ.js → doctor-OPCMTBJB.js} +1 -1
  135. package/dist/{dotnet-webapi-clean-A6MVDYXX.js → dotnet-webapi-clean-VXEF4SHM.js} +5 -5
  136. package/dist/{gofiber-standard-I5YPQG5V.js → gofiber-standard-AQGSC7ON.js} +3 -3
  137. package/dist/{gogin-standard-VY2L4QT5.js → gogin-standard-7DU3OCBX.js} +3 -3
  138. package/dist/index.d.ts +38 -6
  139. package/dist/index.js +267 -355
  140. package/dist/managed-agent-markers-COE5DJ3W.js +1 -0
  141. package/dist/pipeline-7BUXAFS2.js +5 -0
  142. package/dist/platform-capabilities-PR6YL4KC.js +1 -0
  143. package/dist/project-intelligence-lens-BKKVPCLC.js +1 -0
  144. package/dist/project-test-coverage-BALEHHTT.js +1 -0
  145. package/dist/{pythonRapidkitExec-CVCIK225.js → pythonRapidkitExec-YR7P5LWG.js} +1 -1
  146. package/dist/rust-axum-4HXDICIB.js +140 -0
  147. package/dist/{springboot-standard-55XKCBIZ.js → springboot-standard-EK6GYN5T.js} +7 -7
  148. package/dist/workspace-U6ZQLELX.js +1 -0
  149. package/dist/{workspace-agent-sync-662QHXGF.js → workspace-agent-sync-L4SY7B4Q.js} +1 -1
  150. package/dist/workspace-archive-4JNT4S7N.js +1 -0
  151. package/dist/workspace-context-KOBSLZTI.js +1 -0
  152. package/dist/workspace-contract-SOD3OOVF.js +1 -0
  153. package/dist/workspace-explain-2CTMW2YW.js +1 -0
  154. package/dist/workspace-explain-contract-H7O26QJU.js +1 -0
  155. package/dist/{workspace-feedback-SUVH2LUJ.js → workspace-feedback-ZZ4HPW2T.js} +1 -1
  156. package/dist/{workspace-foundation-WPLD7OEO.js → workspace-foundation-PUIYBQUF.js} +1 -1
  157. package/dist/workspace-graph-stream-BLKIC7VN.js +1 -0
  158. package/dist/workspace-graph-token-efficiency-5FNH4JZ5.js +1 -0
  159. package/dist/{workspace-history-BANOJRQ2.js → workspace-history-SPKNRHIX.js} +1 -1
  160. package/dist/workspace-intelligence-I3ABOH2F.js +1 -0
  161. package/dist/{workspace-intelligence-evaluation-IPH7M3WV.js → workspace-intelligence-evaluation-7CABG5Y6.js} +1 -1
  162. package/dist/workspace-intelligence-runner-Q2XSR3ZL.js +1 -0
  163. package/dist/workspace-intelligence-runtime-registry-ZZ3GRAL2.js +1 -0
  164. package/dist/{workspace-knowledge-graph-ARDC6HHG.js → workspace-knowledge-graph-5MKEI4Z5.js} +1 -1
  165. package/dist/{workspace-knowledge-graph-query-VOSPPH4W.js → workspace-knowledge-graph-query-EKHIE3E2.js} +1 -1
  166. package/dist/{workspace-marker-SMBC3Z2Q.js → workspace-marker-7NHMDIRL.js} +1 -1
  167. package/dist/workspace-mcp-serve-ETNUA72W.js +3 -0
  168. package/dist/workspace-model-HHA37SNH.js +1 -0
  169. package/dist/workspace-model-hash-ZXYPIGCW.js +1 -0
  170. package/dist/workspace-onboarding-ELHZABJE.js +1 -0
  171. package/dist/{workspace-python-engine-state-2MLKJYQG.js → workspace-python-engine-state-J4QKW55K.js} +1 -1
  172. package/dist/workspace-readme-HGGZ4AZB.js +77 -0
  173. package/dist/{workspace-registry-summary-ORDK7A36.js → workspace-registry-summary-D2QM5JF6.js} +1 -1
  174. package/dist/workspace-run-DAAZBCN7.js +1 -0
  175. package/dist/{workspace-verify-EBVL7FWT.js → workspace-verify-4WJTLXRA.js} +1 -1
  176. package/dist/workspace-watch-2PIFTQ6B.js +1 -0
  177. package/docs/GLOSSARY.md +17 -16
  178. package/docs/OPEN_SOURCE_USER_SCENARIOS.md +8 -3
  179. package/docs/README.md +6 -3
  180. package/docs/README_CONTENT_CONTRACT.md +98 -115
  181. package/docs/ci-workflows.md +13 -4
  182. package/docs/commands-reference.md +43 -10
  183. package/docs/contracts/ARTIFACT_CATALOG.md +65 -26
  184. package/docs/contracts/COMMAND_OWNERSHIP_MATRIX.md +2 -0
  185. package/docs/contracts/RUNTIME_SUPPORT_MATRIX.md +3 -3
  186. package/docs/contracts/rapidkit-cli-contracts.json +2 -2
  187. package/docs/create-planner-capabilities.md +36 -5
  188. package/docs/creating-workspaces-and-projects.md +59 -3
  189. package/docs/doctor-command.md +118 -11
  190. package/docs/from-code-to-shared-understanding.md +4 -1
  191. package/docs/graph-benchmark-methodology.md +2 -2
  192. package/docs/workspace-intelligence-evaluation.md +5 -0
  193. package/docs/workspace-knowledge-graph.md +141 -7
  194. package/docs/workspace-operations.md +149 -10
  195. package/package.json +7 -4
  196. package/scripts/enterprise-package-smoke.mjs +24 -1
  197. package/templates/kits/fastapi-ddd/README.md.j2 +1 -1
  198. package/templates/kits/fastapi-standard/README.md.j2 +1 -1
  199. package/templates/kits/nestjs-standard/Dockerfile.j2 +1 -1
  200. package/templates/kits/nestjs-standard/README.md.j2 +1 -1
  201. package/templates/kits/nestjs-standard/package.json.j2 +11 -2
  202. package/dist/analyze-EEEU3MIF.js +0 -1
  203. package/dist/autopilot-release-R4XRTWEM.js +0 -1
  204. package/dist/chunk-22DT744Z.js +0 -1
  205. package/dist/chunk-37CVKXBD.js +0 -1
  206. package/dist/chunk-3NU32T4A.js +0 -2
  207. package/dist/chunk-3ZK2GU7C.js +0 -1
  208. package/dist/chunk-4HDYADHT.js +0 -13
  209. package/dist/chunk-4KUIFXHM.js +0 -5
  210. package/dist/chunk-52PBRX7F.js +0 -1
  211. package/dist/chunk-54EP5CEV.js +0 -8
  212. package/dist/chunk-5XATWNME.js +0 -1
  213. package/dist/chunk-7YHK5NM3.js +0 -2
  214. package/dist/chunk-AFL3ACCR.js +0 -2
  215. package/dist/chunk-BFLJ2R4D.js +0 -80
  216. package/dist/chunk-E2KJ5QWY.js +0 -4
  217. package/dist/chunk-EKZLUMCS.js +0 -933
  218. package/dist/chunk-EYJ2CQSK.js +0 -1
  219. package/dist/chunk-FTY7GGXJ.js +0 -33
  220. package/dist/chunk-FXQJX34Z.js +0 -1
  221. package/dist/chunk-GSWPGELT.js +0 -2
  222. package/dist/chunk-GZTYAEWX.js +0 -1
  223. package/dist/chunk-HDXNIN4N.js +0 -1
  224. package/dist/chunk-HZDXO65G.js +0 -36
  225. package/dist/chunk-J5ENLXDF.js +0 -1
  226. package/dist/chunk-KB44JP4M.js +0 -2
  227. package/dist/chunk-LHOZXC2M.js +0 -2
  228. package/dist/chunk-MER6ZBN2.js +0 -13
  229. package/dist/chunk-NAJCUQ4X.js +0 -2
  230. package/dist/chunk-OA537ZQ5.js +0 -1
  231. package/dist/chunk-OW42TZFB.js +0 -1
  232. package/dist/chunk-P3D5YQB2.js +0 -1
  233. package/dist/chunk-PHXQR6PX.js +0 -2
  234. package/dist/chunk-PRTR2DQ2.js +0 -1
  235. package/dist/chunk-RHQW3DTP.js +0 -1
  236. package/dist/chunk-T4YR4RAI.js +0 -2
  237. package/dist/chunk-WDKNMTJQ.js +0 -1
  238. package/dist/chunk-Y45WZR5N.js +0 -5
  239. package/dist/chunk-YJZOMRAS.js +0 -1
  240. package/dist/pipeline-LHTPE3DR.js +0 -5
  241. package/dist/platform-capabilities-2B4QMZXE.js +0 -1
  242. package/dist/workspace-PJPRBUMQ.js +0 -1
  243. package/dist/workspace-archive-P76EDIUG.js +0 -10
  244. package/dist/workspace-context-23YYCUCP.js +0 -1
  245. package/dist/workspace-contract-TU2I7GC2.js +0 -1
  246. package/dist/workspace-dependency-graph-BP4EXYQ5.js +0 -1
  247. package/dist/workspace-explain-MWUEN643.js +0 -1
  248. package/dist/workspace-explain-contract-ZPI3JXJU.js +0 -1
  249. package/dist/workspace-graph-stream-KAGGQPJT.js +0 -1
  250. package/dist/workspace-graph-token-efficiency-CFGFCJ5V.js +0 -1
  251. package/dist/workspace-intelligence-MFJE7W67.js +0 -1
  252. package/dist/workspace-intelligence-runner-OTYTHV6B.js +0 -1
  253. package/dist/workspace-mcp-serve-EZR6O76D.js +0 -3
  254. package/dist/workspace-model-7OU2M3LE.js +0 -1
  255. package/dist/workspace-model-hash-MHXK5MEI.js +0 -1
  256. package/dist/workspace-run-QND2SIYA.js +0 -1
  257. package/dist/workspace-watch-7HWGA5TF.js +0 -1
@@ -0,0 +1,208 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://workspai.dev/schemas/workspace-intelligence/doctor-graph-diagnosis.v1.json",
4
+ "title": "Workspai Doctor Graph Diagnosis",
5
+ "type": "object",
6
+ "required": [
7
+ "schemaVersion",
8
+ "generatedAt",
9
+ "status",
10
+ "claimBoundary",
11
+ "graph",
12
+ "project",
13
+ "summary",
14
+ "findings",
15
+ "diagnostics"
16
+ ],
17
+ "properties": {
18
+ "schemaVersion": { "const": "doctor-graph-diagnosis.v1" },
19
+ "generatedAt": { "type": "string", "format": "date-time" },
20
+ "status": {
21
+ "enum": [
22
+ "available",
23
+ "graph-missing",
24
+ "model-missing",
25
+ "stale",
26
+ "project-unresolved",
27
+ "invalid"
28
+ ]
29
+ },
30
+ "claimBoundary": { "type": "string", "minLength": 1 },
31
+ "graph": {
32
+ "type": "object",
33
+ "required": ["artifact"],
34
+ "properties": {
35
+ "artifact": { "const": ".workspai/reports/workspace-knowledge-graph.json" },
36
+ "schemaVersion": { "type": "string" },
37
+ "sourceArtifact": { "type": "string" },
38
+ "sourceHash": { "type": "string" },
39
+ "entityCount": { "type": "integer", "minimum": 0 },
40
+ "relationCount": { "type": "integer", "minimum": 0 },
41
+ "proofCount": { "type": "integer", "minimum": 0 }
42
+ },
43
+ "additionalProperties": false
44
+ },
45
+ "project": {
46
+ "type": "object",
47
+ "required": ["name", "path"],
48
+ "properties": {
49
+ "name": { "type": "string", "minLength": 1 },
50
+ "path": { "type": "string" },
51
+ "entityId": { "type": "string", "minLength": 1 }
52
+ },
53
+ "additionalProperties": false
54
+ },
55
+ "summary": {
56
+ "type": "object",
57
+ "required": [
58
+ "findingCount",
59
+ "rootEntityCount",
60
+ "affectedEntityCount",
61
+ "verificationTargetCount",
62
+ "proofPathCount",
63
+ "subjectCount",
64
+ "unresolvedSubjectCount",
65
+ "unknownCount"
66
+ ],
67
+ "properties": {
68
+ "findingCount": { "type": "integer", "minimum": 0 },
69
+ "rootEntityCount": { "type": "integer", "minimum": 0 },
70
+ "affectedEntityCount": { "type": "integer", "minimum": 0 },
71
+ "verificationTargetCount": { "type": "integer", "minimum": 0 },
72
+ "proofPathCount": { "type": "integer", "minimum": 0 },
73
+ "subjectCount": { "type": "integer", "minimum": 0 },
74
+ "unresolvedSubjectCount": { "type": "integer", "minimum": 0 },
75
+ "unknownCount": { "type": "integer", "minimum": 0 }
76
+ },
77
+ "additionalProperties": false
78
+ },
79
+ "findings": {
80
+ "type": "array",
81
+ "items": { "$ref": "#/$defs/finding" }
82
+ },
83
+ "diagnostics": { "type": "array", "items": { "type": "string" } }
84
+ },
85
+ "$defs": {
86
+ "entityRef": {
87
+ "type": "object",
88
+ "required": ["id", "kind", "label"],
89
+ "properties": {
90
+ "id": { "type": "string", "minLength": 1 },
91
+ "kind": {
92
+ "enum": [
93
+ "workspace",
94
+ "project",
95
+ "service",
96
+ "api",
97
+ "endpoint",
98
+ "schema",
99
+ "package",
100
+ "module",
101
+ "file",
102
+ "symbol",
103
+ "database",
104
+ "queue",
105
+ "container",
106
+ "deployment",
107
+ "pipeline",
108
+ "environment",
109
+ "document",
110
+ "decision",
111
+ "test-suite",
112
+ "owner"
113
+ ]
114
+ },
115
+ "label": { "type": "string", "minLength": 1 },
116
+ "projectId": { "type": "string" }
117
+ },
118
+ "additionalProperties": false
119
+ },
120
+ "hop": {
121
+ "type": "object",
122
+ "required": ["from", "to", "relationId", "kind", "direction", "proofIds"],
123
+ "properties": {
124
+ "from": { "type": "string", "minLength": 1 },
125
+ "to": { "type": "string", "minLength": 1 },
126
+ "relationId": { "type": "string", "minLength": 1 },
127
+ "kind": {
128
+ "enum": [
129
+ "contains",
130
+ "defines",
131
+ "imports",
132
+ "depends-on",
133
+ "exposes",
134
+ "implements",
135
+ "calls",
136
+ "reads-from",
137
+ "writes-to",
138
+ "publishes",
139
+ "consumes",
140
+ "deploys",
141
+ "runs-on",
142
+ "routes-to",
143
+ "documents",
144
+ "decided-by",
145
+ "tests",
146
+ "owns",
147
+ "generated-by",
148
+ "configured-by",
149
+ "references"
150
+ ]
151
+ },
152
+ "direction": { "enum": ["forward", "reverse"] },
153
+ "proofIds": { "type": "array", "items": { "type": "string" } }
154
+ },
155
+ "additionalProperties": false
156
+ },
157
+ "proofPath": {
158
+ "type": "object",
159
+ "required": ["from", "to", "entityPath", "hops", "proofIds"],
160
+ "properties": {
161
+ "from": { "type": "string", "minLength": 1 },
162
+ "to": { "type": "string", "minLength": 1 },
163
+ "entityPath": { "type": "array", "items": { "type": "string" } },
164
+ "hops": { "type": "array", "items": { "$ref": "#/$defs/hop" } },
165
+ "proofIds": { "type": "array", "items": { "type": "string" } }
166
+ },
167
+ "additionalProperties": false
168
+ },
169
+ "finding": {
170
+ "type": "object",
171
+ "required": [
172
+ "issueId",
173
+ "issueClass",
174
+ "status",
175
+ "reason",
176
+ "scope",
177
+ "subjects",
178
+ "unresolvedSubjects",
179
+ "rootEntities",
180
+ "affectedEntities",
181
+ "verificationTargets",
182
+ "proofPaths",
183
+ "sourceArtifacts",
184
+ "unknowns"
185
+ ],
186
+ "properties": {
187
+ "issueId": { "type": "string", "minLength": 1 },
188
+ "issueClass": { "type": "string", "minLength": 1 },
189
+ "status": { "enum": ["warn", "fail"] },
190
+ "reason": { "type": "string", "minLength": 1 },
191
+ "scope": { "const": "structural-impact-candidates" },
192
+ "subjects": { "type": "array", "items": { "type": "string", "minLength": 1 } },
193
+ "unresolvedSubjects": {
194
+ "type": "array",
195
+ "items": { "type": "string", "minLength": 1 }
196
+ },
197
+ "rootEntities": { "type": "array", "items": { "$ref": "#/$defs/entityRef" } },
198
+ "affectedEntities": { "type": "array", "items": { "$ref": "#/$defs/entityRef" } },
199
+ "verificationTargets": { "type": "array", "items": { "$ref": "#/$defs/entityRef" } },
200
+ "proofPaths": { "type": "array", "items": { "$ref": "#/$defs/proofPath" } },
201
+ "sourceArtifacts": { "type": "array", "items": { "type": "string" } },
202
+ "unknowns": { "type": "array", "items": { "type": "string" } }
203
+ },
204
+ "additionalProperties": false
205
+ }
206
+ },
207
+ "additionalProperties": false
208
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://getrapidkit.com/schemas/fact-freshness.v1.json",
4
- "title": "RapidKit Fact Freshness Contract",
3
+ "$id": "https://workspai.dev/schemas/workspace-intelligence/fact-freshness.v1.json",
4
+ "title": "Workspai Fact Freshness Contract",
5
5
  "type": "object",
6
6
  "required": [
7
7
  "schemaVersion",
@@ -1,5 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://workspai.dev/schemas/workspace-intelligence/mcp-design.v1.json",
4
+ "title": "Workspai MCP Design",
3
5
  "type": "object",
4
6
  "required": [
5
7
  "schemaVersion",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://getrapidkit.com/schemas/model-usage-event.v1.json",
3
+ "$id": "https://workspai.dev/schemas/workspace-intelligence/model-usage-event.v1.json",
4
4
  "title": "Workspai Model and Agent Usage Event",
5
5
  "description": "A privacy-bounded usage observation. Prompt and response bodies are deliberately excluded; consumers may provide hashes instead.",
6
6
  "type": "object",
@@ -0,0 +1,360 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://workspai.dev/schemas/workspace-intelligence/project-context-agent.v1.json",
4
+ "title": "Workspai Project Context for Agents",
5
+ "description": "Portable, bounded project lens derived from the canonical Workspace Model and evidence-backed Knowledge Graph.",
6
+ "type": "object",
7
+ "required": [
8
+ "schemaVersion",
9
+ "generatedAt",
10
+ "workspace",
11
+ "project",
12
+ "intelligence",
13
+ "evidence",
14
+ "blockers",
15
+ "commands",
16
+ "integrity"
17
+ ],
18
+ "properties": {
19
+ "schemaVersion": { "const": "project-context-agent.v1" },
20
+ "generatedAt": { "type": "string", "format": "date-time" },
21
+ "workspace": {
22
+ "type": "object",
23
+ "required": ["name", "relationship", "contract", "model", "knowledgeGraph", "access"],
24
+ "properties": {
25
+ "name": { "type": "string", "minLength": 1 },
26
+ "profile": { "type": "string" },
27
+ "relationship": {
28
+ "enum": ["managed", "adopted", "imported", "linked", "restored"]
29
+ },
30
+ "contract": { "const": ".workspai/workspace.contract.json" },
31
+ "model": { "const": ".workspai/reports/workspace-model.json" },
32
+ "knowledgeGraph": {
33
+ "const": ".workspai/reports/workspace-knowledge-graph.json"
34
+ },
35
+ "access": {
36
+ "type": "object",
37
+ "required": ["localBinding", "canonicalEvidenceAvailableAtGeneration"],
38
+ "properties": {
39
+ "localBinding": { "const": ".workspai/workspace-link.local.json" },
40
+ "canonicalEvidenceAvailableAtGeneration": { "type": "boolean" }
41
+ },
42
+ "additionalProperties": false
43
+ }
44
+ },
45
+ "additionalProperties": false
46
+ },
47
+ "project": {
48
+ "type": "object",
49
+ "required": ["name", "relativePath", "commands", "importantFiles"],
50
+ "properties": {
51
+ "name": { "type": "string", "minLength": 1 },
52
+ "relativePath": {
53
+ "type": "string",
54
+ "minLength": 1,
55
+ "not": { "pattern": "^(?:/|[A-Za-z]:[\\\\/])" }
56
+ },
57
+ "kind": { "type": "string" },
58
+ "runtime": { "type": "string" },
59
+ "framework": { "type": "string" },
60
+ "kit": { "type": "string" },
61
+ "supportTier": { "type": "string" },
62
+ "commands": {
63
+ "type": "object",
64
+ "required": ["supported", "unsupported", "fleetStages"],
65
+ "properties": {
66
+ "supported": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
67
+ "unsupported": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
68
+ "fleetStages": { "type": "array", "items": { "type": "string" }, "uniqueItems": true }
69
+ },
70
+ "additionalProperties": false
71
+ },
72
+ "importantFiles": {
73
+ "type": "array",
74
+ "items": {
75
+ "type": "string",
76
+ "not": { "pattern": "^(?:/|[A-Za-z]:[\\\\/])" }
77
+ },
78
+ "uniqueItems": true
79
+ }
80
+ },
81
+ "additionalProperties": false
82
+ },
83
+ "intelligence": {
84
+ "type": "object",
85
+ "required": [
86
+ "entityCount",
87
+ "relationCount",
88
+ "proofCount",
89
+ "entitiesByKind",
90
+ "relationsByKind",
91
+ "relatedProjects",
92
+ "freshness",
93
+ "topology",
94
+ "surfaces",
95
+ "diagnostics"
96
+ ],
97
+ "properties": {
98
+ "modelGeneratedAt": { "type": "string", "format": "date-time" },
99
+ "graphGeneratedAt": { "type": "string", "format": "date-time" },
100
+ "graphModelHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
101
+ "entityCount": { "type": "integer", "minimum": 0 },
102
+ "relationCount": { "type": "integer", "minimum": 0 },
103
+ "proofCount": { "type": "integer", "minimum": 0 },
104
+ "entitiesByKind": {
105
+ "type": "object",
106
+ "additionalProperties": { "type": "integer", "minimum": 0 }
107
+ },
108
+ "relationsByKind": {
109
+ "type": "object",
110
+ "additionalProperties": { "type": "integer", "minimum": 0 }
111
+ },
112
+ "relatedProjects": {
113
+ "type": "array",
114
+ "items": { "type": "string" },
115
+ "uniqueItems": true
116
+ },
117
+ "freshness": {
118
+ "type": "object",
119
+ "required": ["model", "graph", "graphMatchesModel"],
120
+ "properties": {
121
+ "model": { "enum": ["fresh", "stale", "unknown", "missing"] },
122
+ "graph": { "enum": ["fresh", "stale", "unknown", "missing"] },
123
+ "graphMatchesModel": { "type": "boolean" }
124
+ },
125
+ "additionalProperties": false
126
+ },
127
+ "topology": {
128
+ "type": "object",
129
+ "required": ["status", "dependencies", "dependents"],
130
+ "properties": {
131
+ "status": { "enum": ["proven", "unproven", "unavailable"] },
132
+ "dependencies": {
133
+ "type": "array",
134
+ "items": { "$ref": "#/$defs/topologyRelation" },
135
+ "maxItems": 128
136
+ },
137
+ "dependents": {
138
+ "type": "array",
139
+ "items": { "$ref": "#/$defs/topologyRelation" },
140
+ "maxItems": 128
141
+ }
142
+ },
143
+ "additionalProperties": false
144
+ },
145
+ "surfaces": {
146
+ "type": "object",
147
+ "required": [
148
+ "services",
149
+ "apis",
150
+ "endpoints",
151
+ "dataStores",
152
+ "deployments",
153
+ "pipelines",
154
+ "tests",
155
+ "owners",
156
+ "decisions",
157
+ "ports"
158
+ ],
159
+ "properties": {
160
+ "services": { "$ref": "#/$defs/entityList" },
161
+ "apis": { "$ref": "#/$defs/entityList" },
162
+ "endpoints": { "$ref": "#/$defs/entityList" },
163
+ "dataStores": { "$ref": "#/$defs/entityList" },
164
+ "deployments": { "$ref": "#/$defs/entityList" },
165
+ "pipelines": { "$ref": "#/$defs/entityList" },
166
+ "tests": { "$ref": "#/$defs/entityList" },
167
+ "owners": { "$ref": "#/$defs/entityList" },
168
+ "decisions": { "$ref": "#/$defs/entityList" },
169
+ "ports": {
170
+ "type": "array",
171
+ "maxItems": 32,
172
+ "items": { "$ref": "#/$defs/port" }
173
+ }
174
+ },
175
+ "additionalProperties": false
176
+ },
177
+ "diagnostics": {
178
+ "type": "array",
179
+ "items": {
180
+ "type": "object",
181
+ "required": ["code", "severity", "message"],
182
+ "properties": {
183
+ "code": { "type": "string" },
184
+ "severity": { "type": "string" },
185
+ "message": { "type": "string" },
186
+ "recommendation": { "type": "string" }
187
+ },
188
+ "additionalProperties": false
189
+ }
190
+ }
191
+ },
192
+ "additionalProperties": false
193
+ },
194
+ "evidence": {
195
+ "type": "object",
196
+ "required": ["readOrder", "projectProofArtifacts", "relations", "proofs"],
197
+ "properties": {
198
+ "readOrder": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
199
+ "projectProofArtifacts": {
200
+ "type": "array",
201
+ "items": {
202
+ "type": "string",
203
+ "not": { "pattern": "^(?:/|[A-Za-z]:[\\\\/])" }
204
+ },
205
+ "uniqueItems": true
206
+ },
207
+ "relations": {
208
+ "type": "array",
209
+ "maxItems": 128,
210
+ "items": { "$ref": "#/$defs/relation" }
211
+ },
212
+ "proofs": {
213
+ "type": "array",
214
+ "maxItems": 128,
215
+ "items": { "$ref": "#/$defs/proof" }
216
+ }
217
+ },
218
+ "additionalProperties": false
219
+ },
220
+ "blockers": {
221
+ "type": "array",
222
+ "maxItems": 32,
223
+ "items": { "$ref": "#/$defs/blocker" }
224
+ },
225
+ "commands": {
226
+ "type": "object",
227
+ "required": ["refresh", "verify", "graphSearch", "doctor", "workspaceStatus"],
228
+ "properties": {
229
+ "refresh": { "type": "string", "minLength": 1 },
230
+ "verify": { "type": "string", "minLength": 1 },
231
+ "graphSearch": { "type": "string", "minLength": 1 },
232
+ "doctor": { "type": "string", "minLength": 1 },
233
+ "workspaceStatus": { "type": "string", "minLength": 1 }
234
+ },
235
+ "additionalProperties": false
236
+ },
237
+ "integrity": {
238
+ "type": "object",
239
+ "required": ["algorithm", "payloadHash", "portable", "absolutePathsEmitted"],
240
+ "properties": {
241
+ "algorithm": { "const": "sha256" },
242
+ "modelHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
243
+ "payloadHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
244
+ "portable": { "const": true },
245
+ "absolutePathsEmitted": { "const": false }
246
+ },
247
+ "additionalProperties": false
248
+ }
249
+ },
250
+ "$defs": {
251
+ "portableString": {
252
+ "type": "string",
253
+ "not": { "pattern": "^(?:/|[A-Za-z]:[\\\\/])" }
254
+ },
255
+ "topologyRelation": {
256
+ "type": "object",
257
+ "required": ["project", "kind", "source", "confidence", "evidence"],
258
+ "properties": {
259
+ "project": { "type": "string", "minLength": 1 },
260
+ "kind": { "type": "string", "minLength": 1 },
261
+ "source": { "type": "string", "minLength": 1 },
262
+ "confidence": { "type": "string", "minLength": 1 },
263
+ "evidence": {
264
+ "type": "array",
265
+ "items": { "$ref": "#/$defs/portableString" },
266
+ "uniqueItems": true
267
+ }
268
+ },
269
+ "additionalProperties": false
270
+ },
271
+ "entityList": {
272
+ "type": "array",
273
+ "maxItems": 32,
274
+ "items": { "$ref": "#/$defs/entity" }
275
+ },
276
+ "entity": {
277
+ "type": "object",
278
+ "required": ["id", "kind", "label", "attributes", "proofIds"],
279
+ "properties": {
280
+ "id": { "type": "string" },
281
+ "kind": { "type": "string" },
282
+ "label": { "type": "string" },
283
+ "attributes": { "type": "object", "additionalProperties": true },
284
+ "proofIds": { "type": "array", "items": { "type": "string" }, "uniqueItems": true }
285
+ },
286
+ "additionalProperties": false
287
+ },
288
+ "port": {
289
+ "type": "object",
290
+ "required": ["entityId", "label", "attribute", "value"],
291
+ "properties": {
292
+ "entityId": { "type": "string" },
293
+ "label": { "type": "string" },
294
+ "attribute": { "type": "string" },
295
+ "value": true
296
+ },
297
+ "additionalProperties": false
298
+ },
299
+ "relation": {
300
+ "type": "object",
301
+ "required": [
302
+ "id",
303
+ "from",
304
+ "to",
305
+ "kind",
306
+ "derivation",
307
+ "trust",
308
+ "confidence",
309
+ "proofIds"
310
+ ],
311
+ "properties": {
312
+ "id": { "type": "string" },
313
+ "from": { "type": "string" },
314
+ "to": { "type": "string" },
315
+ "kind": { "type": "string" },
316
+ "derivation": { "type": "string" },
317
+ "trust": { "type": "string" },
318
+ "confidence": { "type": "string" },
319
+ "proofIds": { "type": "array", "items": { "type": "string" }, "uniqueItems": true }
320
+ },
321
+ "additionalProperties": false
322
+ },
323
+ "proof": {
324
+ "type": "object",
325
+ "required": [
326
+ "id",
327
+ "provider",
328
+ "artifact",
329
+ "derivation",
330
+ "trust",
331
+ "confidence",
332
+ "freshness"
333
+ ],
334
+ "properties": {
335
+ "id": { "type": "string" },
336
+ "provider": { "type": "string" },
337
+ "artifact": { "$ref": "#/$defs/portableString" },
338
+ "pointer": { "type": "string" },
339
+ "line": { "type": "integer", "minimum": 1 },
340
+ "derivation": { "type": "string" },
341
+ "trust": { "type": "string" },
342
+ "confidence": { "type": "string" },
343
+ "freshness": { "type": "string" }
344
+ },
345
+ "additionalProperties": false
346
+ },
347
+ "blocker": {
348
+ "type": "object",
349
+ "required": ["source", "severity", "message"],
350
+ "properties": {
351
+ "source": { "type": "string" },
352
+ "severity": { "enum": ["warning", "error"] },
353
+ "message": { "type": "string" },
354
+ "code": { "type": "string" }
355
+ },
356
+ "additionalProperties": false
357
+ }
358
+ },
359
+ "additionalProperties": false
360
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://getrapidkit.com/schemas/studio-blocker-handoff.v1.json",
3
+ "$id": "https://workspai.dev/schemas/workspace-intelligence/studio-blocker-handoff.v1.json",
4
4
  "title": "Workspai Studio Blocker Handoff",
5
5
  "type": "object",
6
6
  "required": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://getrapidkit.com/schemas/workspace-context.v1.json",
3
+ "$id": "https://workspai.dev/schemas/workspace-intelligence/workspace-context.v1.json",
4
4
  "title": "Workspai Workspace Agent Context",
5
5
  "type": "object",
6
6
  "required": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "workspace-contract-verify.v1",
4
- "title": "Workspace contract verify evidence",
3
+ "$id": "https://workspai.dev/schemas/workspace-intelligence/workspace-contract-verify.v1.json",
4
+ "title": "Workspai Workspace Contract Verify Evidence",
5
5
  "type": "object",
6
6
  "additionalProperties": true,
7
7
  "required": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://getrapidkit.com/schemas/workspace-dependency-graph.v1.json",
3
+ "$id": "https://workspai.dev/schemas/workspace-intelligence/workspace-dependency-graph.v1.json",
4
4
  "title": "Workspai Workspace Dependency Graph",
5
5
  "description": "First-class, versioned dependency graph of inter-project relationships consumed by impact, verify, run --blast-radius, and risk weighting.",
6
6
  "type": "object",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://getrapidkit.com/schemas/workspace-explain.v1.json",
3
+ "$id": "https://workspai.dev/schemas/workspace-intelligence/workspace-explain.v1.json",
4
4
  "title": "Workspai Workspace Explain Report",
5
5
  "type": "object",
6
6
  "required": ["schemaVersion", "generatedAt", "workspacePath", "target", "summary", "sections"],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://getrapidkit.com/schemas/workspace-graph-stream.v1.json",
3
+ "$id": "https://workspai.dev/schemas/workspace-intelligence/workspace-graph-stream.v1.json",
4
4
  "title": "Workspai Workspace Graph Stream",
5
5
  "description": "Transport-neutral, revision-safe events for hydrating and incrementally updating a Workspace Knowledge Graph consumer.",
6
6
  "type": "object",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://getrapidkit.com/schemas/workspace-graph-token-efficiency.v1.json",
3
+ "$id": "https://workspai.dev/schemas/workspace-intelligence/workspace-graph-token-efficiency.v1.json",
4
4
  "title": "Workspai Graph Retrieval Token-Efficiency Report",
5
5
  "description": "A reproducible character-based estimate comparing readable proof-source text with one bounded graph retrieval payload. It is not an answer-quality or billing claim.",
6
6
  "type": "object",