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
package/README.md CHANGED
@@ -19,6 +19,40 @@ It gives developers, CI, IDEs, and AI agents the same evidence-backed source of
19
19
  truth: workspace model, agent context, impact analysis, verification evidence,
20
20
  contracts, and release gates.
21
21
 
22
+ ### What changes for the user?
23
+
24
+ Without Workspai, an agent repeatedly searches files and reconstructs a partial
25
+ picture. With Workspai, it can ask a bounded question and receive the matching
26
+ entities, nearby relations, and source proofs:
27
+
28
+ ```bash
29
+ npx workspai workspace graph search "who implements the login API?" --limit 8 --json
30
+ ```
31
+
32
+ Workspai is broader than a repository code graph. It connects projects, source,
33
+ packages, APIs, infrastructure, pipelines, documentation, decisions, tests, and
34
+ ownership inside one workspace model—then uses that same truth for impact,
35
+ verification, CI, IDEs, MCP, and agent grounding.
36
+
37
+ ### Current measured fixture
38
+
39
+ | Measure | Observed value |
40
+ | ------------------------------------ | -------------: |
41
+ | Registered projects | 16 |
42
+ | Knowledge Graph entities | 1,738 |
43
+ | Knowledge Graph relations | 2,244 |
44
+ | Portable proofs | 2,106 |
45
+ | Readable proof-source artifacts | 392 |
46
+ | Corpus size (`characters / 4`) | 134,105 tokens |
47
+ | `api endpoint --limit 8` retrieval | 2,812 tokens |
48
+ | Observed retrieval payload reduction | 97.9% |
49
+ | Observed corpus/retrieval ratio | 47.69× |
50
+
51
+ This is a reproducible observation from one 16-project development workspace on
52
+ 2026-07-21, not a universal token-cost or answer-quality claim. See
53
+ [Graph Benchmark Methodology](docs/graph-benchmark-methodology.md) for the source
54
+ hash, formulas, limitations, and publication gate.
55
+
22
56
  ## Start here
23
57
 
24
58
  ### Install
@@ -153,6 +187,12 @@ the broader governance/release orchestrator (`sync → doctor → analyze → re
153
187
  | Verify affected projects and evidence | `npx workspai workspace verify --from-impact <impact-report> --json --strict` |
154
188
  | Explain a blocker | `npx workspai workspace explain release-blocked --json --write` |
155
189
  | Inspect a project in the dependency graph | `npx workspai workspace graph explain <project> --json` |
190
+ | Query proof-backed workspace entities | `npx workspai workspace graph entities endpoint --json` |
191
+ | Retrieve bounded context for an agent | `npx workspai workspace graph search "authentication endpoint" --limit 12 --json` |
192
+ | Measure retrieval payload reduction | `npx workspai workspace graph benchmark "authentication endpoint" --limit 12 --json` |
193
+ | Trace a relationship and its evidence | `npx workspai workspace graph path <from> <to> --json` |
194
+ | Compare two knowledge-graph revisions | `npx workspai workspace graph overlay --from <graph.json> --json` |
195
+ | Persist model + agent/MCP graph artifact | `npx workspai workspace model --write --json` |
156
196
  | Run affected project tests | `npx workspai workspace run test --affected --blast-radius --json` |
157
197
  | Run the release/governance gate | `npx workspai pipeline --json --strict` |
158
198
  | Run the canonical intelligence chain | `npx workspai workspace intelligence run --for-agent codex --strict --json` |
@@ -211,6 +251,11 @@ including `AGENTS.md`, report indexes, skills, and supported Copilot, Cursor,
211
251
  Claude, and Codex surfaces. AI tools begin with the same scope, commands,
212
252
  contracts, blockers, and verification evidence used by humans and CI.
213
253
 
254
+ For a user-focused graph quickstart, AI output paths, performance boundaries,
255
+ and reproducible token-efficiency methodology, see the
256
+ [Workspace Knowledge Graph guide](docs/workspace-knowledge-graph.md) and
257
+ [Graph Benchmark Methodology](docs/graph-benchmark-methodology.md).
258
+
214
259
  ## Outputs and Consumers
215
260
 
216
261
  Workspai separates human output, machine output, and durable cross-tool state:
@@ -230,6 +275,7 @@ Important durable outputs:
230
275
  | Artifact | Producer | Used for |
231
276
  | ------------------------------------------------------- | ------------------------------ | ------------------------------------- |
232
277
  | `.workspai/reports/workspace-model.json` | `workspace model --write` | Canonical system structure |
278
+ | `.workspai/reports/workspace-knowledge-graph.json` | `workspace model --write` | Proof-backed retrieval and MCP |
233
279
  | `.workspai/reports/workspace-model-diff-last-run.json` | `workspace diff` | Structural change evidence |
234
280
  | `.workspai/reports/workspace-impact-last-run.json` | `workspace impact` | Blast radius and affected scope |
235
281
  | `.workspai/reports/workspace-verify-last-run.json` | `workspace verify` | Structured verification gate |
@@ -293,18 +339,21 @@ generators, frontend generators, or workspaces created with
293
339
 
294
340
  ## Documentation
295
341
 
296
- | Documentation | Purpose |
297
- | ---------------------------------------------------------------------------- | -------------------------------------------------------- |
298
- | [Documentation index](docs/README.md) | All user, operator, contract, and contributor docs |
299
- | [Command reference](docs/commands-reference.md) | Complete command syntax and flags |
300
- | [Creating workspaces and projects](docs/creating-workspaces-and-projects.md) | Interactive, automated, location, and linking behavior |
301
- | [Workspace operations](docs/workspace-operations.md) | Adopt, import, snapshots, archives, contracts, and infra |
302
- | [Workspace run](docs/workspace-run.md) | Polyglot and affected-project execution |
303
- | [Doctor command](docs/doctor-command.md) | Health checks, evidence, fixes, and exit codes |
304
- | [CI workflows](docs/ci-workflows.md) | CI examples and repository validation |
305
- | [Configuration](docs/config-file-guide.md) | User configuration and precedence |
306
- | [Open-source scenarios](docs/OPEN_SOURCE_USER_SCENARIOS.md) | Role-oriented examples |
307
- | [Artifact Catalog](docs/contracts/ARTIFACT_CATALOG.md) | Canonical files, writers, schemas, and readers |
342
+ | Documentation | Purpose |
343
+ | ---------------------------------------------------------------------------- | ------------------------------------------------------------- |
344
+ | [Documentation index](docs/README.md) | All user, operator, contract, and contributor docs |
345
+ | [Command reference](docs/commands-reference.md) | Complete command syntax and flags |
346
+ | [Creating workspaces and projects](docs/creating-workspaces-and-projects.md) | Interactive, automated, location, and linking behavior |
347
+ | [Workspace operations](docs/workspace-operations.md) | Adopt, import, snapshots, archives, contracts, and infra |
348
+ | [Workspace run](docs/workspace-run.md) | Polyglot and affected-project execution |
349
+ | [Workspace Knowledge Graph](docs/workspace-knowledge-graph.md) | Proof-backed queries, AI/MCP retrieval, and graph outputs |
350
+ | [Graph benchmark methodology](docs/graph-benchmark-methodology.md) | Reproducible payload-reduction measurements and claim limits |
351
+ | [Glossary](docs/GLOSSARY.md) | Plain-language meanings for model, graph, evidence, and gates |
352
+ | [Doctor command](docs/doctor-command.md) | Health checks, evidence, fixes, and exit codes |
353
+ | [CI workflows](docs/ci-workflows.md) | CI examples and repository validation |
354
+ | [Configuration](docs/config-file-guide.md) | User configuration and precedence |
355
+ | [Open-source scenarios](docs/OPEN_SOURCE_USER_SCENARIOS.md) | Role-oriented examples |
356
+ | [Artifact Catalog](docs/contracts/ARTIFACT_CATALOG.md) | Canonical files, writers, schemas, and readers |
308
357
 
309
358
  Repository workflows include
310
359
  [`.github/workflows/ci.yml`](../../.github/workflows/ci.yml),
@@ -107,7 +107,12 @@
107
107
  },
108
108
  {
109
109
  "path": ".workspai/reports/workspace-model.json",
110
- "label": "Workspace model graph",
110
+ "label": "Workspace model",
111
+ "required": false
112
+ },
113
+ {
114
+ "path": ".workspai/reports/workspace-knowledge-graph.json",
115
+ "label": "Workspace knowledge graph",
111
116
  "required": false
112
117
  },
113
118
  {
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/bootstrap-compliance.v1.json",
4
+ "type": "object",
5
+ "required": ["schemaVersion", "command", "timestamp", "result", "checks"],
6
+ "properties": {
7
+ "schemaVersion": { "const": "bootstrap-compliance.v1" },
8
+ "command": { "const": "bootstrap" },
9
+ "timestamp": { "type": "string", "format": "date-time" },
10
+ "result": { "enum": ["ok", "ok_with_warnings", "blocked", "failed"] },
11
+ "checks": { "type": "array", "items": { "type": "object" } }
12
+ },
13
+ "additionalProperties": true
14
+ }
@@ -1200,6 +1200,10 @@
1200
1200
  "flags": "--scan-depth <count>",
1201
1201
  "attributeName": "scanDepth"
1202
1202
  },
1203
+ {
1204
+ "flags": "--limit <count>",
1205
+ "attributeName": "limit"
1206
+ },
1203
1207
  {
1204
1208
  "flags": "--cache",
1205
1209
  "attributeName": "cache"
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "schemaVersion": "rapidkit-extension-cli-compatibility.v1",
3
3
  "cli": "workspai",
4
- "minimumVerifiedCliVersion": "0.46.0",
4
+ "minimumVerifiedCliVersion": "0.47.0",
5
5
  "publishedContractSchemas": {
6
+ "workspaceContract": 1,
6
7
  "runtimeCommandSurface": "rapidkit-runtime-command-surface-v1",
7
8
  "cliRuntimeCommandInventory": "workspai-cli-runtime-command-inventory-v1",
8
9
  "cliOperationResult": "workspai-cli-operation-result-v1",
@@ -15,6 +16,7 @@
15
16
  "workspaceIntelligenceChain": "workspai-workspace-intelligence-chain-v1",
16
17
  "workspaceIntelligenceArtifacts": {
17
18
  "model": "workspace-model.v1",
19
+ "knowledgeGraph": "workspace-knowledge-graph.v1",
18
20
  "snapshot": "workspace-model-snapshot.v1",
19
21
  "diff": "workspace-model-diff.v1",
20
22
  "impact": "workspace-impact.v1",
@@ -41,6 +43,10 @@
41
43
  "workspaceVerify": "workspace-verify.v1",
42
44
  "workspaceContext": "workspace-context.v1",
43
45
  "workspaceDependencyGraph": "workspace-dependency-graph.v1",
46
+ "workspaceKnowledgeGraph": "workspace-knowledge-graph.v1",
47
+ "workspaceKnowledgeGraphChangeOverlay": "workspace-knowledge-graph-change-overlay.v1",
48
+ "workspaceKnowledgeSearch": "workspace-knowledge-search.v1",
49
+ "workspaceGraphTokenEfficiency": "workspace-graph-token-efficiency.v1",
44
50
  "workspaceIntelligenceHistory": "workspace-intelligence-history.v1",
45
51
  "agentCustomizationPackCapabilities": "workspai-agent-customization-pack-capabilities.v1",
46
52
  "agentCustomizationPackReport": "rapidkit-agent-customization-pack.v1",
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/mirror-ops.v1.json",
4
+ "type": "object",
5
+ "required": ["schemaVersion", "command", "action", "result", "timestamp", "workspacePath", "mirror"],
6
+ "properties": {
7
+ "schemaVersion": { "const": "mirror-ops.v1" },
8
+ "command": { "const": "mirror" },
9
+ "action": { "enum": ["status", "sync", "verify", "rotate"] },
10
+ "result": { "enum": ["ok", "failed"] },
11
+ "timestamp": { "type": "string", "format": "date-time" },
12
+ "workspacePath": { "type": "string", "minLength": 1 },
13
+ "mirror": { "type": "object" }
14
+ },
15
+ "additionalProperties": true
16
+ }
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "schemaVersion": "workspai-published-contract-catalog-v1",
3
3
  "contracts": {
4
+ "workspaceContract": {
5
+ "schemaVersion": 1,
6
+ "contractPath": "contracts/workspace-contract.v1.json",
7
+ "publication": "json-schema"
8
+ },
4
9
  "runtimeCommandSurface": {
5
10
  "schemaVersion": "rapidkit-runtime-command-surface-v1",
6
11
  "contractPath": "contracts/runtime-command-surface.v1.json",
@@ -54,6 +59,7 @@
54
59
  "workspaceIntelligenceArtifacts": {
55
60
  "schemaVersion": {
56
61
  "model": "workspace-model.v1",
62
+ "knowledgeGraph": "workspace-knowledge-graph.v1",
57
63
  "snapshot": "workspace-model-snapshot.v1",
58
64
  "diff": "workspace-model-diff.v1",
59
65
  "impact": "workspace-impact.v1",
@@ -79,6 +85,11 @@
79
85
  "schemaVersion": "workspace-model.v1",
80
86
  "contractPath": "contracts/workspace-intelligence/workspace-model.v1.json"
81
87
  },
88
+ "knowledgeGraph": {
89
+ "path": ".workspai/reports/workspace-knowledge-graph.json",
90
+ "schemaVersion": "workspace-knowledge-graph.v1",
91
+ "contractPath": "contracts/workspace-intelligence/workspace-knowledge-graph.v1.json"
92
+ },
82
93
  "snapshot": {
83
94
  "path": ".workspai/reports/workspace-model-snapshot.json",
84
95
  "schemaVersion": "workspace-model-snapshot.v1",
@@ -206,6 +217,26 @@
206
217
  "contractPath": "contracts/workspace-intelligence/workspace-dependency-graph.v1.json",
207
218
  "publication": "json-schema"
208
219
  },
220
+ "workspaceKnowledgeGraph": {
221
+ "schemaVersion": "workspace-knowledge-graph.v1",
222
+ "contractPath": "contracts/workspace-intelligence/workspace-knowledge-graph.v1.json",
223
+ "publication": "json-schema"
224
+ },
225
+ "workspaceKnowledgeGraphChangeOverlay": {
226
+ "schemaVersion": "workspace-knowledge-graph-change-overlay.v1",
227
+ "contractPath": "contracts/workspace-intelligence/workspace-knowledge-graph-change-overlay.v1.json",
228
+ "publication": "json-schema"
229
+ },
230
+ "workspaceKnowledgeSearch": {
231
+ "schemaVersion": "workspace-knowledge-search.v1",
232
+ "contractPath": "contracts/workspace-intelligence/workspace-knowledge-search.v1.json",
233
+ "publication": "json-schema"
234
+ },
235
+ "workspaceGraphTokenEfficiency": {
236
+ "schemaVersion": "workspace-graph-token-efficiency.v1",
237
+ "contractPath": "contracts/workspace-intelligence/workspace-graph-token-efficiency.v1.json",
238
+ "publication": "json-schema"
239
+ },
209
240
  "workspaceIntelligenceHistory": {
210
241
  "schemaVersion": "workspace-intelligence-history.v1",
211
242
  "contractPath": "contracts/workspace-intelligence/workspace-intelligence-history.v1.json",
@@ -495,6 +495,22 @@
495
495
  "mirror"
496
496
  ]
497
497
  },
498
+ {
499
+ "invocation": "mirror status",
500
+ "summary": "Inspect mirror configuration, lock state, and cached artifact inventory.",
501
+ "canonicalArgv": [
502
+ "mirror",
503
+ "status"
504
+ ]
505
+ },
506
+ {
507
+ "invocation": "mirror sync",
508
+ "summary": "Synchronize governed mirror artifacts and publish integrity evidence.",
509
+ "canonicalArgv": [
510
+ "mirror",
511
+ "sync"
512
+ ]
513
+ },
498
514
  {
499
515
  "invocation": "modules",
500
516
  "summary": "List supported project modules and their runtime-specific capability state.",
@@ -744,6 +760,15 @@
744
760
  "agent-sync"
745
761
  ]
746
762
  },
763
+ {
764
+ "invocation": "workspace agent-sync --write",
765
+ "summary": "Publish the governed agent surface generation as a recoverable workspace transaction.",
766
+ "canonicalArgv": [
767
+ "workspace",
768
+ "agent-sync",
769
+ "--write"
770
+ ]
771
+ },
747
772
  {
748
773
  "invocation": "workspace agent-sync --write --json --preset enterprise",
749
774
  "summary": "Generate the enterprise agent-grounding pack, persist every governed artifact, and emit a structured result.",
@@ -792,6 +817,15 @@
792
817
  "contract"
793
818
  ]
794
819
  },
820
+ {
821
+ "invocation": "workspace contract sync",
822
+ "summary": "Reconcile discovered projects into the canonical workspace contract and registry summary.",
823
+ "canonicalArgv": [
824
+ "workspace",
825
+ "contract",
826
+ "sync"
827
+ ]
828
+ },
795
829
  {
796
830
  "invocation": "workspace contract verify --strict --json",
797
831
  "summary": "Strictly validate workspace contracts and emit a structured evidence artifact that blocks on violations.",
@@ -906,6 +940,16 @@
906
940
  "output": {
907
941
  "defaultFormat": "human-or-json",
908
942
  "modes": [
943
+ {
944
+ "selector": "search <query> --limit <count> --json",
945
+ "format": "json",
946
+ "mediaType": "application/json"
947
+ },
948
+ {
949
+ "selector": "benchmark <query> --limit <count> --json",
950
+ "format": "json",
951
+ "mediaType": "application/json"
952
+ },
909
953
  {
910
954
  "selector": "emit --json",
911
955
  "format": "json",
@@ -1137,6 +1181,19 @@
1137
1181
  ]
1138
1182
  ]
1139
1183
  },
1184
+ {
1185
+ "artifactPath": ".workspai/reports/workspace-knowledge-graph.json",
1186
+ "schemaVersion": "workspace-knowledge-graph.v1",
1187
+ "contractPath": "contracts/workspace-intelligence/workspace-knowledge-graph.v1.json",
1188
+ "producerCommands": [
1189
+ [
1190
+ "workspace",
1191
+ "model",
1192
+ "--json",
1193
+ "--write"
1194
+ ]
1195
+ ]
1196
+ },
1140
1197
  {
1141
1198
  "artifactPath": ".workspai/reports/workspace-model-snapshot.json",
1142
1199
  "schemaVersion": "workspace-model-snapshot.v1",
@@ -1345,6 +1402,22 @@
1345
1402
  ]
1346
1403
  ]
1347
1404
  },
1405
+ {
1406
+ "artifactPath": ".workspai/workspace.contract.json",
1407
+ "schemaVersion": 1,
1408
+ "contractPath": "contracts/workspace-contract.v1.json",
1409
+ "producerCommands": [
1410
+ [
1411
+ "workspace",
1412
+ "sync"
1413
+ ],
1414
+ [
1415
+ "workspace",
1416
+ "contract",
1417
+ "sync"
1418
+ ]
1419
+ ]
1420
+ },
1348
1421
  {
1349
1422
  "artifactPath": ".workspai/cache/workspace-model.v1.json",
1350
1423
  "schemaVersion": "workspace-model-cache.v1",
@@ -1367,6 +1440,70 @@
1367
1440
  ]
1368
1441
  ]
1369
1442
  },
1443
+ {
1444
+ "artifactPath": ".workspai/compatibility-matrix.json",
1445
+ "schemaVersion": "rapidkit.compatibility-matrix.v1",
1446
+ "contractPath": "contracts/compatibility-matrix.v1.json",
1447
+ "producerCommands": [
1448
+ [
1449
+ "bootstrap"
1450
+ ]
1451
+ ]
1452
+ },
1453
+ {
1454
+ "artifactPath": ".workspai/reports/doctor-workspace-cache.json",
1455
+ "schemaVersion": "doctor-workspace-cache-v2",
1456
+ "contractPath": "contracts/doctor-workspace-cache.v2.json",
1457
+ "producerCommands": [
1458
+ [
1459
+ "doctor",
1460
+ "workspace"
1461
+ ]
1462
+ ]
1463
+ },
1464
+ {
1465
+ "artifactPath": ".workspai/reports/bootstrap-compliance.latest.json",
1466
+ "schemaVersion": "bootstrap-compliance.v1",
1467
+ "contractPath": "contracts/bootstrap-compliance.v1.json",
1468
+ "producerCommands": [
1469
+ [
1470
+ "bootstrap"
1471
+ ]
1472
+ ]
1473
+ },
1474
+ {
1475
+ "artifactPath": ".workspai/reports/mirror-ops.latest.json",
1476
+ "schemaVersion": "mirror-ops.v1",
1477
+ "contractPath": "contracts/mirror-ops.v1.json",
1478
+ "producerCommands": [
1479
+ [
1480
+ "mirror",
1481
+ "status"
1482
+ ]
1483
+ ]
1484
+ },
1485
+ {
1486
+ "artifactPath": ".workspai/reports/transparency-evidence.latest.json",
1487
+ "schemaVersion": "transparency-evidence.v1",
1488
+ "contractPath": "contracts/transparency-evidence.v1.json",
1489
+ "producerCommands": [
1490
+ [
1491
+ "mirror",
1492
+ "sync"
1493
+ ]
1494
+ ]
1495
+ },
1496
+ {
1497
+ "artifactPath": ".workspai/reports/share-bundle.json",
1498
+ "schemaVersion": "1.1",
1499
+ "contractPath": "contracts/workspace-share-bundle.v1.json",
1500
+ "producerCommands": [
1501
+ [
1502
+ "workspace",
1503
+ "share"
1504
+ ]
1505
+ ]
1506
+ },
1370
1507
  {
1371
1508
  "artifactPath": ".workspai/reports/doctor-project-last-run.json",
1372
1509
  "schemaVersion": "doctor-project-evidence-v1",
@@ -1458,7 +1595,13 @@
1458
1595
  "artifactPath": ".workspai/reports/workspai-mcp-design.json",
1459
1596
  "schemaVersion": "workspai-mcp-design.v1",
1460
1597
  "contractPath": "contracts/workspace-intelligence/mcp-design.v1.json",
1461
- "producerCommands": []
1598
+ "producerCommands": [
1599
+ [
1600
+ "workspace",
1601
+ "agent-sync",
1602
+ "--write"
1603
+ ]
1604
+ ]
1462
1605
  },
1463
1606
  {
1464
1607
  "artifactPath": ".workspai/reports/workspace-why-last-run.json",
@@ -1575,6 +1718,11 @@
1575
1718
  "path": ".workspai/reports/workspace-model.json",
1576
1719
  "schemaVersion": "workspace-model.v1",
1577
1720
  "contractPath": "contracts/workspace-intelligence/workspace-model.v1.json"
1721
+ },
1722
+ {
1723
+ "path": ".workspai/reports/workspace-knowledge-graph.json",
1724
+ "schemaVersion": "workspace-knowledge-graph.v1",
1725
+ "contractPath": "contracts/workspace-intelligence/workspace-knowledge-graph.v1.json"
1578
1726
  }
1579
1727
  ]
1580
1728
  },
@@ -0,0 +1,13 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/transparency-evidence.v1.json",
4
+ "type": "object",
5
+ "required": ["schemaVersion", "generatedAt", "records"],
6
+ "properties": {
7
+ "schemaVersion": { "const": "transparency-evidence.v1" },
8
+ "generatedAt": { "type": "string", "format": "date-time" },
9
+ "environment": { "type": ["string", "null"] },
10
+ "records": { "type": "array", "items": { "type": "object" } }
11
+ },
12
+ "additionalProperties": true
13
+ }
@@ -0,0 +1,78 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/workspace-contract.v1.json",
4
+ "title": "Workspai Workspace Contract",
5
+ "type": "object",
6
+ "required": ["schemaVersion", "kind", "generatedAt", "workspace", "projects"],
7
+ "properties": {
8
+ "schemaVersion": { "const": 1 },
9
+ "kind": { "const": "rapidkit.workspace.contract" },
10
+ "generatedAt": { "type": "string", "format": "date-time" },
11
+ "workspace": {
12
+ "type": "object",
13
+ "required": ["name"],
14
+ "properties": {
15
+ "name": { "type": "string", "minLength": 1 },
16
+ "profile": { "type": "string", "minLength": 1 }
17
+ },
18
+ "additionalProperties": false
19
+ },
20
+ "projects": {
21
+ "type": "array",
22
+ "items": {
23
+ "type": "object",
24
+ "required": ["slug", "relativePath", "modules", "ports", "contracts"],
25
+ "properties": {
26
+ "slug": { "type": "string", "minLength": 1 },
27
+ "relativePath": { "type": "string", "minLength": 1 },
28
+ "source": { "enum": ["workspace", "local-folder", "git-url", "adopted-local"] },
29
+ "relationship": { "enum": ["imported", "adopted"] },
30
+ "externalPath": { "type": "string", "minLength": 1 },
31
+ "runtime": { "type": "string", "minLength": 1 },
32
+ "framework": { "type": "string", "minLength": 1 },
33
+ "kit": { "type": "string", "minLength": 1 },
34
+ "modules": { "type": "array", "items": { "type": "string", "minLength": 1 }, "uniqueItems": true },
35
+ "ports": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "object",
39
+ "required": ["name", "port", "protocol"],
40
+ "properties": {
41
+ "name": { "type": "string", "minLength": 1 },
42
+ "port": { "type": "integer", "minimum": 1, "maximum": 65535 },
43
+ "protocol": { "enum": ["http", "https", "grpc", "tcp", "udp"] }
44
+ },
45
+ "additionalProperties": false
46
+ }
47
+ },
48
+ "contracts": {
49
+ "type": "object",
50
+ "required": ["owns", "apis", "publishes", "consumes", "dependsOn", "env"],
51
+ "properties": {
52
+ "owns": { "type": "array", "items": { "type": "string", "minLength": 1 }, "uniqueItems": true },
53
+ "apis": {
54
+ "type": "array",
55
+ "items": {
56
+ "type": "object",
57
+ "required": ["name", "basePath"],
58
+ "properties": {
59
+ "name": { "type": "string", "minLength": 1 },
60
+ "basePath": { "type": "string", "pattern": "^/" }
61
+ },
62
+ "additionalProperties": false
63
+ }
64
+ },
65
+ "publishes": { "type": "array", "items": { "type": "string", "minLength": 1 }, "uniqueItems": true },
66
+ "consumes": { "type": "array", "items": { "type": "string", "minLength": 1 }, "uniqueItems": true },
67
+ "dependsOn": { "type": "array", "items": { "type": "string", "minLength": 1 }, "uniqueItems": true },
68
+ "env": { "type": "array", "items": { "type": "string", "pattern": "^[A-Z_][A-Z0-9_]*$" }, "uniqueItems": true }
69
+ },
70
+ "additionalProperties": false
71
+ }
72
+ },
73
+ "additionalProperties": false
74
+ }
75
+ }
76
+ },
77
+ "additionalProperties": false
78
+ }
@@ -9,6 +9,7 @@
9
9
  "agent",
10
10
  "workspaceSummary",
11
11
  "modelRef",
12
+ "knowledgeGraph",
12
13
  "intelligenceChain",
13
14
  "workspace",
14
15
  "scope",
@@ -29,6 +30,25 @@
29
30
  },
30
31
  "workspaceSummary": { "type": "string" },
31
32
  "modelRef": { "type": "string" },
33
+ "knowledgeGraph": {
34
+ "type": "object",
35
+ "required": ["artifact", "schemaVersion", "available", "queryCommands"],
36
+ "properties": {
37
+ "artifact": { "const": ".workspai/reports/workspace-knowledge-graph.json" },
38
+ "schemaVersion": { "const": "workspace-knowledge-graph.v1" },
39
+ "available": { "type": "boolean" },
40
+ "entityCount": { "type": "integer", "minimum": 0 },
41
+ "relationCount": { "type": "integer", "minimum": 0 },
42
+ "proofCount": { "type": "integer", "minimum": 0 },
43
+ "queryCommands": {
44
+ "type": "array",
45
+ "items": { "type": "string", "minLength": 1 },
46
+ "minItems": 3,
47
+ "uniqueItems": true
48
+ }
49
+ },
50
+ "additionalProperties": false
51
+ },
32
52
  "intelligenceChain": {
33
53
  "type": "object",
34
54
  "required": ["schemaVersion", "contractPath", "currentStep", "canonicalReadOrder"],