workspai 0.46.0 → 0.47.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 (130) hide show
  1. package/README.md +61 -12
  2. package/contracts/agent-customization-pack.v1.json +6 -1
  3. package/contracts/bootstrap-compliance.v1.json +14 -0
  4. package/contracts/cli-runtime-command-inventory.v1.snapshot.json +4 -0
  5. package/contracts/extension-cli-compatibility.v1.json +7 -1
  6. package/contracts/mirror-ops.v1.json +16 -0
  7. package/contracts/published-contract-catalog.v1.json +31 -0
  8. package/contracts/runtime-command-surface.v1.json +149 -1
  9. package/contracts/transparency-evidence.v1.json +13 -0
  10. package/contracts/workspace-contract.v1.json +78 -0
  11. package/contracts/workspace-intelligence/workspace-context.v1.json +20 -0
  12. package/contracts/workspace-intelligence/workspace-graph-token-efficiency.v1.json +72 -0
  13. package/contracts/workspace-intelligence/workspace-intelligence-run.v1.json +6 -1
  14. package/contracts/workspace-intelligence/workspace-knowledge-graph-change-overlay.v1.json +200 -0
  15. package/contracts/workspace-intelligence/workspace-knowledge-graph.v1.json +260 -0
  16. package/contracts/workspace-intelligence/workspace-knowledge-search.v1.json +60 -0
  17. package/contracts/workspace-intelligence-architecture.v1.json +6 -3
  18. package/contracts/workspace-intelligence-chain.v1.json +14 -3
  19. package/contracts/workspace-share-bundle.v1.json +16 -0
  20. package/dist/analyze-UVXPRGYZ.js +1 -0
  21. package/dist/artifact-remediation-plan-EPALZ2LC.js +3 -0
  22. package/dist/autopilot-release-5BQ6F5L2.js +1 -0
  23. package/dist/chunk-22NJ2ZMG.js +2 -0
  24. package/dist/{chunk-UQWOVV6V.js → chunk-2GHUZDYA.js} +1 -1
  25. package/dist/chunk-2TEDAKP6.js +2 -0
  26. package/dist/chunk-6SWRNA47.js +4 -0
  27. package/dist/chunk-76YOPAOT.js +1 -0
  28. package/dist/chunk-7VLCK5JW.js +1 -0
  29. package/dist/{chunk-J5PIZCAU.js → chunk-BSRVO52Y.js} +1 -1
  30. package/dist/chunk-COARSXRC.js +1 -0
  31. package/dist/chunk-CV5HKU4P.js +1 -0
  32. package/dist/chunk-CW7PGBIQ.js +13 -0
  33. package/dist/{chunk-WPEEC5BX.js → chunk-DV6GJD4K.js} +1 -1
  34. package/dist/chunk-FB7SCXAZ.js +1 -0
  35. package/dist/{chunk-4LGXSBCN.js → chunk-HSGFUKCN.js} +1 -1
  36. package/dist/{chunk-ZKAI3PJE.js → chunk-ITCAMC2E.js} +1 -1
  37. package/dist/chunk-KB44JP4M.js +2 -0
  38. package/dist/{chunk-QA5BGEQW.js → chunk-KZZ36CK5.js} +1 -1
  39. package/dist/chunk-LNRAB7UY.js +1 -0
  40. package/dist/{chunk-VFDM65IE.js → chunk-MEMHNE7Y.js} +22 -22
  41. package/dist/chunk-NOFM7MNA.js +2 -0
  42. package/dist/chunk-NRYS4CLR.js +2 -0
  43. package/dist/chunk-OA537ZQ5.js +1 -0
  44. package/dist/chunk-PBHP6JNY.js +8 -0
  45. package/dist/chunk-QDWYIRHR.js +8 -0
  46. package/dist/chunk-RWRLFSKW.js +2 -0
  47. package/dist/chunk-SK6XRKGG.js +1 -0
  48. package/dist/chunk-THIOE2PB.js +2 -0
  49. package/dist/chunk-TNQI5VCW.js +36 -0
  50. package/dist/chunk-TWNFECMN.js +2 -0
  51. package/dist/{chunk-6IIZJQLV.js → chunk-U5EZHZBX.js} +1 -1
  52. package/dist/{chunk-YUATNVOT.js → chunk-VBSQ7MF6.js} +19 -19
  53. package/dist/chunk-WDKNMTJQ.js +1 -0
  54. package/dist/chunk-YCL3I2JO.js +2 -0
  55. package/dist/chunk-ZDN7RHXJ.js +1 -0
  56. package/dist/chunk-ZM5NQ5Z2.js +1 -0
  57. package/dist/{create-WCV3L6XH.js → create-7JKJDAQV.js} +1 -1
  58. package/dist/{doctor-5BWM2EMJ.js → doctor-PGPNIS76.js} +1 -1
  59. package/dist/index.d.ts +33 -12
  60. package/dist/index.js +317 -317
  61. package/dist/pipeline-IB6ILJSV.js +5 -0
  62. package/dist/{workspace-7OXW5YTJ.js → workspace-H3QXBFGB.js} +1 -1
  63. package/dist/{workspace-agent-sync-O4IA6VOA.js → workspace-agent-sync-C7SG2Z5W.js} +1 -1
  64. package/dist/{workspace-archive-H74NBBNW.js → workspace-archive-P76EDIUG.js} +1 -1
  65. package/dist/{workspace-context-R7IPUBPG.js → workspace-context-BKQBKA4C.js} +1 -1
  66. package/dist/workspace-contract-RPQQBQXR.js +1 -0
  67. package/dist/workspace-dependency-graph-23BI2HG7.js +1 -0
  68. package/dist/workspace-explain-WVN7JH3U.js +1 -0
  69. package/dist/{workspace-explain-contract-SVFJAAEI.js → workspace-explain-contract-SEFTVF6J.js} +1 -1
  70. package/dist/{workspace-feedback-REOS36ZZ.js → workspace-feedback-WAID3IOE.js} +1 -1
  71. package/dist/{workspace-foundation-KXT4QI5O.js → workspace-foundation-5OOJEO2D.js} +1 -1
  72. package/dist/workspace-graph-token-efficiency-CFGFCJ5V.js +1 -0
  73. package/dist/{workspace-history-OGOVSKZG.js → workspace-history-C6OP3IAQ.js} +1 -1
  74. package/dist/workspace-intelligence-VKDL3H2J.js +1 -0
  75. package/dist/workspace-intelligence-runner-LVALAZY7.js +1 -0
  76. package/dist/workspace-knowledge-graph-FE2NTZKV.js +1 -0
  77. package/dist/workspace-knowledge-graph-change-overlay-XG6FC4IX.js +1 -0
  78. package/dist/workspace-knowledge-graph-query-VOSPPH4W.js +1 -0
  79. package/dist/workspace-mcp-serve-KT2I676Z.js +3 -0
  80. package/dist/workspace-model-S33CIB2R.js +1 -0
  81. package/dist/workspace-model-hash-MHXK5MEI.js +1 -0
  82. package/dist/{workspace-registry-summary-SZ46R5PD.js → workspace-registry-summary-A3YDL63D.js} +1 -1
  83. package/dist/workspace-run-M4LNJILC.js +1 -0
  84. package/dist/{workspace-verify-MFQ7IXGD.js → workspace-verify-ZGH3NXAH.js} +1 -1
  85. package/dist/workspace-watch-EVBJTMV7.js +1 -0
  86. package/docs/AI_DYNAMIC_INTEGRATION.md +73 -428
  87. package/docs/AI_EXAMPLES.md +37 -395
  88. package/docs/AI_FEATURES.md +76 -456
  89. package/docs/AI_QUICKSTART.md +49 -212
  90. package/docs/GLOSSARY.md +60 -0
  91. package/docs/OPEN_SOURCE_USER_SCENARIOS.md +68 -7
  92. package/docs/README.md +63 -41
  93. package/docs/commands-reference.md +51 -4
  94. package/docs/config-file-guide.md +6 -2
  95. package/docs/contracts/ARTIFACT_CATALOG.md +67 -37
  96. package/docs/contracts/README.md +44 -8
  97. package/docs/graph-benchmark-methodology.md +121 -0
  98. package/docs/workspace-knowledge-graph.md +295 -0
  99. package/docs/workspace-operations.md +49 -0
  100. package/package.json +2 -1
  101. package/dist/analyze-BEBEZSZK.js +0 -1
  102. package/dist/artifact-remediation-plan-FFQSESAM.js +0 -3
  103. package/dist/autopilot-release-WUR4CQIT.js +0 -1
  104. package/dist/chunk-2G7FASAO.js +0 -2
  105. package/dist/chunk-4EPHWD27.js +0 -8
  106. package/dist/chunk-CVHMUSRX.js +0 -1
  107. package/dist/chunk-DIPD72H4.js +0 -2
  108. package/dist/chunk-EFYHGCGX.js +0 -2
  109. package/dist/chunk-FWRXA435.js +0 -2
  110. package/dist/chunk-HDURFXW5.js +0 -2
  111. package/dist/chunk-HMUKBW2S.js +0 -4
  112. package/dist/chunk-K4WNYXKK.js +0 -33
  113. package/dist/chunk-LG6RFLPZ.js +0 -1
  114. package/dist/chunk-N7DV5L7C.js +0 -1
  115. package/dist/chunk-PRBVYW3T.js +0 -1
  116. package/dist/chunk-QZLIURER.js +0 -13
  117. package/dist/chunk-RIEF2DDX.js +0 -8
  118. package/dist/chunk-SXMTSV5M.js +0 -1
  119. package/dist/chunk-SXPY523X.js +0 -1
  120. package/dist/chunk-V3LRQZ36.js +0 -1
  121. package/dist/chunk-WYFPXTTS.js +0 -2
  122. package/dist/pipeline-ORIWVVYM.js +0 -5
  123. package/dist/workspace-contract-HKCMOMFE.js +0 -1
  124. package/dist/workspace-explain-GOPQYTPQ.js +0 -1
  125. package/dist/workspace-intelligence-7IESQSXY.js +0 -1
  126. package/dist/workspace-intelligence-runner-6GJ5M4HB.js +0 -1
  127. package/dist/workspace-mcp-serve-FRVWBO36.js +0 -3
  128. package/dist/workspace-model-PPYX7B4S.js +0 -1
  129. package/dist/workspace-run-V3KKHTVF.js +0 -1
  130. package/dist/workspace-watch-SOPZHRWA.js +0 -1
@@ -0,0 +1,72 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/workspace-graph-token-efficiency.v1.json",
4
+ "title": "Workspai Graph Retrieval Token-Efficiency Report",
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
+ "type": "object",
7
+ "required": ["schemaVersion", "generatedAt", "workspacePath", "query", "graph", "methodology", "corpus", "retrieval", "savings"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "workspace-graph-token-efficiency.v1" },
10
+ "generatedAt": { "type": "string", "format": "date-time" },
11
+ "workspacePath": { "type": "string", "minLength": 1 },
12
+ "query": { "type": "string", "minLength": 1 },
13
+ "graph": {
14
+ "type": "object",
15
+ "required": ["schemaVersion", "sourceArtifact", "sourceHash", "entityCount", "relationCount", "proofCount"],
16
+ "properties": {
17
+ "schemaVersion": { "const": "workspace-knowledge-graph.v1" },
18
+ "sourceArtifact": { "type": "string", "minLength": 1 },
19
+ "sourceHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
20
+ "entityCount": { "type": "integer", "minimum": 0 },
21
+ "relationCount": { "type": "integer", "minimum": 0 },
22
+ "proofCount": { "type": "integer", "minimum": 0 }
23
+ },
24
+ "additionalProperties": false
25
+ },
26
+ "methodology": {
27
+ "type": "object",
28
+ "required": ["id", "estimated", "charsPerToken", "claimBoundary"],
29
+ "properties": {
30
+ "id": { "const": "indexed-corpus-vs-bounded-retrieval.v1" },
31
+ "estimated": { "const": true },
32
+ "charsPerToken": { "const": 4 },
33
+ "claimBoundary": { "type": "string", "minLength": 1 }
34
+ },
35
+ "additionalProperties": false
36
+ },
37
+ "corpus": {
38
+ "type": "object",
39
+ "required": ["artifactCount", "characterCount", "estimatedTokens", "unreadableArtifacts"],
40
+ "properties": {
41
+ "artifactCount": { "type": "integer", "minimum": 0 },
42
+ "characterCount": { "type": "integer", "minimum": 0 },
43
+ "estimatedTokens": { "type": "integer", "minimum": 0 },
44
+ "unreadableArtifacts": { "type": "array", "items": { "type": "string" }, "uniqueItems": true }
45
+ },
46
+ "additionalProperties": false
47
+ },
48
+ "retrieval": {
49
+ "type": "object",
50
+ "required": ["matchCount", "characterCount", "estimatedTokens", "truncated", "payload"],
51
+ "properties": {
52
+ "matchCount": { "type": "integer", "minimum": 0, "maximum": 100 },
53
+ "characterCount": { "type": "integer", "minimum": 0 },
54
+ "estimatedTokens": { "type": "integer", "minimum": 0 },
55
+ "truncated": { "type": "boolean" },
56
+ "payload": { "$ref": "workspace-knowledge-search.v1.json" }
57
+ },
58
+ "additionalProperties": false
59
+ },
60
+ "savings": {
61
+ "type": "object",
62
+ "required": ["estimatedTokensAvoided", "reductionRatio", "reductionPercent"],
63
+ "properties": {
64
+ "estimatedTokensAvoided": { "type": "integer", "minimum": 0 },
65
+ "reductionRatio": { "type": "number", "minimum": 0 },
66
+ "reductionPercent": { "type": "number", "minimum": 0, "maximum": 100 }
67
+ },
68
+ "additionalProperties": false
69
+ }
70
+ },
71
+ "additionalProperties": false
72
+ }
@@ -69,7 +69,12 @@
69
69
  "type": "object",
70
70
  "properties": {
71
71
  "id": { "const": "model" },
72
- "artifacts": { "const": [".workspai/reports/workspace-model.json"] }
72
+ "artifacts": {
73
+ "const": [
74
+ ".workspai/reports/workspace-model.json",
75
+ ".workspai/reports/workspace-knowledge-graph.json"
76
+ ]
77
+ }
73
78
  }
74
79
  },
75
80
  {
@@ -0,0 +1,200 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/workspace-knowledge-graph-change-overlay.v1.json",
4
+ "title": "Workspai Workspace Knowledge Graph Change Overlay",
5
+ "description": "Portable graph-to-graph entity and relation changes with bounded impact and proof artifact projection.",
6
+ "type": "object",
7
+ "required": [
8
+ "schemaVersion",
9
+ "generatedAt",
10
+ "workspace",
11
+ "base",
12
+ "head",
13
+ "entities",
14
+ "relations",
15
+ "proofs",
16
+ "impactedEntityIds",
17
+ "changedArtifacts",
18
+ "summary"
19
+ ],
20
+ "properties": {
21
+ "schemaVersion": { "const": "workspace-knowledge-graph-change-overlay.v1" },
22
+ "generatedAt": { "type": "string", "format": "date-time" },
23
+ "workspace": {
24
+ "type": "object",
25
+ "required": ["name"],
26
+ "properties": {
27
+ "name": { "type": "string", "minLength": 1 },
28
+ "profile": { "type": "string" }
29
+ },
30
+ "additionalProperties": false
31
+ },
32
+ "base": { "$ref": "#/$defs/graphRevision" },
33
+ "head": { "$ref": "#/$defs/graphRevision" },
34
+ "entities": {
35
+ "allOf": [
36
+ { "$ref": "#/$defs/changeSet" },
37
+ {
38
+ "properties": {
39
+ "added": {
40
+ "type": "array",
41
+ "items": { "$ref": "workspace-knowledge-graph.v1.json#/properties/entities/items" }
42
+ },
43
+ "removed": {
44
+ "type": "array",
45
+ "items": { "$ref": "workspace-knowledge-graph.v1.json#/properties/entities/items" }
46
+ },
47
+ "changed": { "type": "array", "items": { "$ref": "#/$defs/entityChange" } }
48
+ }
49
+ }
50
+ ]
51
+ },
52
+ "relations": {
53
+ "allOf": [
54
+ { "$ref": "#/$defs/changeSet" },
55
+ {
56
+ "properties": {
57
+ "added": {
58
+ "type": "array",
59
+ "items": { "$ref": "workspace-knowledge-graph.v1.json#/properties/relations/items" }
60
+ },
61
+ "removed": {
62
+ "type": "array",
63
+ "items": { "$ref": "workspace-knowledge-graph.v1.json#/properties/relations/items" }
64
+ },
65
+ "changed": { "type": "array", "items": { "$ref": "#/$defs/relationChange" } }
66
+ }
67
+ }
68
+ ]
69
+ },
70
+ "proofs": {
71
+ "allOf": [
72
+ { "$ref": "#/$defs/changeSet" },
73
+ {
74
+ "properties": {
75
+ "added": {
76
+ "type": "array",
77
+ "items": { "$ref": "workspace-knowledge-graph.v1.json#/properties/proofs/items" }
78
+ },
79
+ "removed": {
80
+ "type": "array",
81
+ "items": { "$ref": "workspace-knowledge-graph.v1.json#/properties/proofs/items" }
82
+ },
83
+ "changed": { "type": "array", "items": { "$ref": "#/$defs/proofChange" } }
84
+ }
85
+ }
86
+ ]
87
+ },
88
+ "impactedEntityIds": {
89
+ "type": "array",
90
+ "items": { "type": "string", "minLength": 1 },
91
+ "uniqueItems": true
92
+ },
93
+ "changedArtifacts": {
94
+ "type": "array",
95
+ "items": {
96
+ "type": "string",
97
+ "minLength": 1,
98
+ "not": { "pattern": "^(?:/|[A-Za-z]:[\\\\/])" }
99
+ },
100
+ "uniqueItems": true
101
+ },
102
+ "summary": {
103
+ "type": "object",
104
+ "required": [
105
+ "entityAdds",
106
+ "entityRemovals",
107
+ "entityChanges",
108
+ "relationAdds",
109
+ "relationRemovals",
110
+ "relationChanges",
111
+ "proofAdds",
112
+ "proofRemovals",
113
+ "proofChanges",
114
+ "impactedEntities",
115
+ "changedArtifacts",
116
+ "risk"
117
+ ],
118
+ "properties": {
119
+ "entityAdds": { "type": "integer", "minimum": 0 },
120
+ "entityRemovals": { "type": "integer", "minimum": 0 },
121
+ "entityChanges": { "type": "integer", "minimum": 0 },
122
+ "relationAdds": { "type": "integer", "minimum": 0 },
123
+ "relationRemovals": { "type": "integer", "minimum": 0 },
124
+ "relationChanges": { "type": "integer", "minimum": 0 },
125
+ "proofAdds": { "type": "integer", "minimum": 0 },
126
+ "proofRemovals": { "type": "integer", "minimum": 0 },
127
+ "proofChanges": { "type": "integer", "minimum": 0 },
128
+ "impactedEntities": { "type": "integer", "minimum": 0 },
129
+ "changedArtifacts": { "type": "integer", "minimum": 0 },
130
+ "risk": { "enum": ["none", "low", "medium", "high"] }
131
+ },
132
+ "additionalProperties": false
133
+ }
134
+ },
135
+ "$defs": {
136
+ "graphRevision": {
137
+ "type": "object",
138
+ "required": ["schemaVersion", "generatedAt", "fingerprint"],
139
+ "properties": {
140
+ "schemaVersion": { "const": "workspace-knowledge-graph.v1" },
141
+ "generatedAt": { "type": "string", "format": "date-time" },
142
+ "fingerprint": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
143
+ },
144
+ "additionalProperties": false
145
+ },
146
+ "changeSet": {
147
+ "type": "object",
148
+ "required": ["added", "removed", "changed"]
149
+ },
150
+ "entityChange": {
151
+ "type": "object",
152
+ "required": ["id", "before", "after", "changedFields"],
153
+ "properties": {
154
+ "id": { "type": "string", "minLength": 1 },
155
+ "before": { "$ref": "workspace-knowledge-graph.v1.json#/properties/entities/items" },
156
+ "after": { "$ref": "workspace-knowledge-graph.v1.json#/properties/entities/items" },
157
+ "changedFields": {
158
+ "type": "array",
159
+ "items": { "type": "string" },
160
+ "minItems": 1,
161
+ "uniqueItems": true
162
+ }
163
+ },
164
+ "additionalProperties": false
165
+ },
166
+ "relationChange": {
167
+ "type": "object",
168
+ "required": ["id", "before", "after", "changedFields"],
169
+ "properties": {
170
+ "id": { "type": "string", "minLength": 1 },
171
+ "before": { "$ref": "workspace-knowledge-graph.v1.json#/properties/relations/items" },
172
+ "after": { "$ref": "workspace-knowledge-graph.v1.json#/properties/relations/items" },
173
+ "changedFields": {
174
+ "type": "array",
175
+ "items": { "type": "string" },
176
+ "minItems": 1,
177
+ "uniqueItems": true
178
+ }
179
+ },
180
+ "additionalProperties": false
181
+ },
182
+ "proofChange": {
183
+ "type": "object",
184
+ "required": ["id", "before", "after", "changedFields"],
185
+ "properties": {
186
+ "id": { "type": "string", "minLength": 1 },
187
+ "before": { "$ref": "workspace-knowledge-graph.v1.json#/properties/proofs/items" },
188
+ "after": { "$ref": "workspace-knowledge-graph.v1.json#/properties/proofs/items" },
189
+ "changedFields": {
190
+ "type": "array",
191
+ "items": { "type": "string" },
192
+ "minItems": 1,
193
+ "uniqueItems": true
194
+ }
195
+ },
196
+ "additionalProperties": false
197
+ }
198
+ },
199
+ "additionalProperties": false
200
+ }
@@ -0,0 +1,260 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/workspace-knowledge-graph.v1.json",
4
+ "title": "Workspai Evidence-backed Workspace Knowledge Graph",
5
+ "description": "Portable, provider-neutral workspace entities, relations and proof paths with the canonical project dependency topology embedded as a projection.",
6
+ "type": "object",
7
+ "required": [
8
+ "schemaVersion",
9
+ "generatedAt",
10
+ "source",
11
+ "workspace",
12
+ "projectTopology",
13
+ "entities",
14
+ "relations",
15
+ "proofs",
16
+ "providers",
17
+ "quality",
18
+ "diagnostics"
19
+ ],
20
+ "properties": {
21
+ "schemaVersion": { "const": "workspace-knowledge-graph.v1" },
22
+ "generatedAt": { "type": "string", "format": "date-time" },
23
+ "source": {
24
+ "type": "object",
25
+ "required": ["kind", "artifact", "hashAlgorithm", "hash"],
26
+ "properties": {
27
+ "kind": { "enum": ["workspace-model", "workspace-contract", "workspace-sources"] },
28
+ "artifact": { "type": "string", "minLength": 1 },
29
+ "hashAlgorithm": { "const": "sha256" },
30
+ "hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
31
+ },
32
+ "additionalProperties": false
33
+ },
34
+ "workspace": {
35
+ "type": "object",
36
+ "required": ["name"],
37
+ "properties": {
38
+ "name": { "type": "string", "minLength": 1 },
39
+ "profile": { "type": "string" }
40
+ },
41
+ "additionalProperties": false
42
+ },
43
+ "projectTopology": { "$ref": "workspace-dependency-graph.v1.json" },
44
+ "entities": {
45
+ "type": "array",
46
+ "items": {
47
+ "type": "object",
48
+ "required": ["id", "kind", "label", "identity", "attributes", "proofIds"],
49
+ "properties": {
50
+ "id": { "type": "string", "minLength": 1 },
51
+ "kind": {
52
+ "enum": [
53
+ "workspace",
54
+ "project",
55
+ "service",
56
+ "api",
57
+ "endpoint",
58
+ "schema",
59
+ "package",
60
+ "module",
61
+ "file",
62
+ "symbol",
63
+ "database",
64
+ "queue",
65
+ "container",
66
+ "deployment",
67
+ "pipeline",
68
+ "environment",
69
+ "document",
70
+ "decision",
71
+ "test-suite",
72
+ "owner"
73
+ ]
74
+ },
75
+ "label": { "type": "string", "minLength": 1 },
76
+ "projectId": { "type": "string", "minLength": 1 },
77
+ "identity": {
78
+ "type": "object",
79
+ "required": ["key", "scope", "aliases", "fingerprint"],
80
+ "properties": {
81
+ "key": { "type": "string", "minLength": 1 },
82
+ "scope": { "enum": ["workspace", "project"] },
83
+ "aliases": { "type": "array", "items": { "type": "string" } },
84
+ "fingerprint": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
85
+ },
86
+ "additionalProperties": false
87
+ },
88
+ "attributes": {
89
+ "type": "object",
90
+ "additionalProperties": {
91
+ "type": ["string", "number", "boolean", "null", "array"],
92
+ "items": { "type": ["string", "number", "boolean", "null"] }
93
+ }
94
+ },
95
+ "proofIds": {
96
+ "type": "array",
97
+ "items": { "type": "string", "minLength": 1 },
98
+ "uniqueItems": true
99
+ }
100
+ },
101
+ "additionalProperties": false
102
+ }
103
+ },
104
+ "relations": {
105
+ "type": "array",
106
+ "items": {
107
+ "type": "object",
108
+ "required": ["id", "from", "to", "kind", "derivation", "trust", "confidence", "proofIds"],
109
+ "properties": {
110
+ "id": { "type": "string", "minLength": 1 },
111
+ "from": { "type": "string", "minLength": 1 },
112
+ "to": { "type": "string", "minLength": 1 },
113
+ "kind": {
114
+ "enum": [
115
+ "contains",
116
+ "defines",
117
+ "imports",
118
+ "depends-on",
119
+ "exposes",
120
+ "implements",
121
+ "calls",
122
+ "reads-from",
123
+ "writes-to",
124
+ "publishes",
125
+ "consumes",
126
+ "deploys",
127
+ "runs-on",
128
+ "routes-to",
129
+ "documents",
130
+ "decided-by",
131
+ "tests",
132
+ "owns",
133
+ "generated-by",
134
+ "configured-by",
135
+ "references"
136
+ ]
137
+ },
138
+ "derivation": { "enum": ["extracted", "inferred", "authored"] },
139
+ "trust": { "enum": ["authoritative", "corroborated", "observed", "ambiguous"] },
140
+ "confidence": { "enum": ["high", "medium", "low"] },
141
+ "proofIds": {
142
+ "type": "array",
143
+ "items": { "type": "string", "minLength": 1 },
144
+ "minItems": 1,
145
+ "uniqueItems": true
146
+ }
147
+ },
148
+ "additionalProperties": false
149
+ }
150
+ },
151
+ "proofs": {
152
+ "type": "array",
153
+ "items": {
154
+ "type": "object",
155
+ "required": [
156
+ "id",
157
+ "provider",
158
+ "artifact",
159
+ "observedAt",
160
+ "derivation",
161
+ "trust",
162
+ "confidence",
163
+ "freshness"
164
+ ],
165
+ "properties": {
166
+ "id": { "type": "string", "minLength": 1 },
167
+ "provider": { "type": "string", "minLength": 1 },
168
+ "artifact": {
169
+ "type": "string",
170
+ "minLength": 1,
171
+ "not": { "pattern": "^(?:/|[A-Za-z]:[\\\\/])" }
172
+ },
173
+ "pointer": { "type": "string" },
174
+ "line": { "type": "integer", "minimum": 1 },
175
+ "column": { "type": "integer", "minimum": 1 },
176
+ "contentHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
177
+ "observedAt": { "type": "string", "format": "date-time" },
178
+ "derivation": { "enum": ["extracted", "inferred", "authored"] },
179
+ "trust": { "enum": ["authoritative", "corroborated", "observed", "ambiguous"] },
180
+ "confidence": { "enum": ["high", "medium", "low"] },
181
+ "freshness": { "enum": ["fresh", "stale", "unknown"] },
182
+ "detail": { "type": "string" }
183
+ },
184
+ "additionalProperties": false
185
+ }
186
+ },
187
+ "providers": {
188
+ "type": "array",
189
+ "items": {
190
+ "type": "object",
191
+ "required": [
192
+ "id",
193
+ "version",
194
+ "status",
195
+ "permission",
196
+ "discoveredEntities",
197
+ "discoveredRelations",
198
+ "proofCount",
199
+ "diagnostics"
200
+ ],
201
+ "properties": {
202
+ "id": { "type": "string", "minLength": 1 },
203
+ "version": { "type": "string", "minLength": 1 },
204
+ "status": { "enum": ["passed", "partial", "skipped", "failed"] },
205
+ "permission": { "enum": ["filesystem-read", "git-read", "runtime-probe", "network"] },
206
+ "discoveredEntities": { "type": "integer", "minimum": 0 },
207
+ "discoveredRelations": { "type": "integer", "minimum": 0 },
208
+ "proofCount": { "type": "integer", "minimum": 0 },
209
+ "diagnostics": { "type": "array", "items": { "type": "string" } }
210
+ },
211
+ "additionalProperties": false
212
+ }
213
+ },
214
+ "quality": {
215
+ "type": "object",
216
+ "required": [
217
+ "entityCount",
218
+ "relationCount",
219
+ "proofCount",
220
+ "entityProofCoverageRatio",
221
+ "relationProofCoverageRatio",
222
+ "providerSuccessRatio",
223
+ "conflictCount",
224
+ "unknownCount",
225
+ "portable",
226
+ "secretValuesEmitted"
227
+ ],
228
+ "properties": {
229
+ "entityCount": { "type": "integer", "minimum": 0 },
230
+ "relationCount": { "type": "integer", "minimum": 0 },
231
+ "proofCount": { "type": "integer", "minimum": 0 },
232
+ "entityProofCoverageRatio": { "type": "number", "minimum": 0, "maximum": 1 },
233
+ "relationProofCoverageRatio": { "type": "number", "minimum": 0, "maximum": 1 },
234
+ "providerSuccessRatio": { "type": "number", "minimum": 0, "maximum": 1 },
235
+ "conflictCount": { "type": "integer", "minimum": 0 },
236
+ "unknownCount": { "type": "integer", "minimum": 0 },
237
+ "portable": { "const": true },
238
+ "secretValuesEmitted": { "const": false }
239
+ },
240
+ "additionalProperties": false
241
+ },
242
+ "diagnostics": {
243
+ "type": "array",
244
+ "items": {
245
+ "type": "object",
246
+ "required": ["code", "severity", "message"],
247
+ "properties": {
248
+ "code": { "type": "string", "minLength": 1 },
249
+ "severity": { "enum": ["info", "warning", "error"] },
250
+ "message": { "type": "string", "minLength": 1 },
251
+ "entityIds": { "type": "array", "items": { "type": "string" } },
252
+ "relationIds": { "type": "array", "items": { "type": "string" } },
253
+ "recommendation": { "type": "string" }
254
+ },
255
+ "additionalProperties": false
256
+ }
257
+ }
258
+ },
259
+ "additionalProperties": false
260
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/workspace-knowledge-search.v1.json",
4
+ "title": "Workspai Bounded Knowledge Graph Search",
5
+ "description": "A deterministic, bounded, proof-carrying retrieval projection intended for agents, MCP clients, IDEs, and CI consumers.",
6
+ "type": "object",
7
+ "required": [
8
+ "schemaVersion",
9
+ "query",
10
+ "kind",
11
+ "limit",
12
+ "totalMatches",
13
+ "truncated",
14
+ "entities",
15
+ "relatedEntities",
16
+ "relations",
17
+ "proofs"
18
+ ],
19
+ "properties": {
20
+ "schemaVersion": { "const": "workspace-knowledge-search.v1" },
21
+ "query": { "type": "string", "minLength": 1 },
22
+ "kind": {
23
+ "oneOf": [
24
+ { "type": "null" },
25
+ { "$ref": "workspace-knowledge-graph.v1.json#/properties/entities/items/properties/kind" }
26
+ ]
27
+ },
28
+ "limit": { "type": "integer", "minimum": 1, "maximum": 100 },
29
+ "totalMatches": { "type": "integer", "minimum": 0 },
30
+ "truncated": { "type": "boolean" },
31
+ "entities": {
32
+ "type": "array",
33
+ "maxItems": 100,
34
+ "items": { "$ref": "workspace-knowledge-graph.v1.json#/properties/entities/items" }
35
+ },
36
+ "relatedEntities": {
37
+ "type": "array",
38
+ "items": {
39
+ "type": "object",
40
+ "required": ["id", "kind", "label"],
41
+ "properties": {
42
+ "id": { "type": "string", "minLength": 1 },
43
+ "kind": { "$ref": "workspace-knowledge-graph.v1.json#/properties/entities/items/properties/kind" },
44
+ "label": { "type": "string", "minLength": 1 },
45
+ "projectId": { "type": "string", "minLength": 1 }
46
+ },
47
+ "additionalProperties": false
48
+ }
49
+ },
50
+ "relations": {
51
+ "type": "array",
52
+ "items": { "$ref": "workspace-knowledge-graph.v1.json#/properties/relations/items" }
53
+ },
54
+ "proofs": {
55
+ "type": "array",
56
+ "items": { "$ref": "workspace-knowledge-graph.v1.json#/properties/proofs/items" }
57
+ }
58
+ },
59
+ "additionalProperties": false
60
+ }
@@ -159,6 +159,7 @@
159
159
  "label": "System understanding",
160
160
  "artifacts": [
161
161
  ".workspai/reports/workspace-model.json",
162
+ ".workspai/reports/workspace-knowledge-graph.json",
162
163
  ".workspai/reports/workspace-model-diff-last-run.json",
163
164
  ".workspai/reports/workspace-impact-last-run.json"
164
165
  ],
@@ -302,9 +303,10 @@
302
303
  "workspace graph mermaid"
303
304
  ],
304
305
  "reads": [
305
- ".workspai/reports/workspace-model.json#graph"
306
+ ".workspai/reports/workspace-model.json",
307
+ ".workspai/reports/workspace-knowledge-graph.json"
306
308
  ],
307
- "role": "Inspect or render the graph already embedded in the workspace model.",
309
+ "role": "Query the proof-backed graph derived from the canonical workspace model.",
308
310
  "chainStep": false
309
311
  },
310
312
  {
@@ -345,7 +347,8 @@
345
347
  "workspace model --json --write"
346
348
  ],
347
349
  "artifacts": [
348
- ".workspai/reports/workspace-model.json"
350
+ ".workspai/reports/workspace-model.json",
351
+ ".workspai/reports/workspace-knowledge-graph.json"
349
352
  ]
350
353
  },
351
354
  {