workspai 0.45.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.
- package/README.md +307 -532
- package/contracts/agent-customization-pack.v1.json +6 -1
- package/contracts/bootstrap-compliance.v1.json +14 -0
- package/contracts/cli-runtime-command-inventory.v1.snapshot.json +8 -0
- package/contracts/extension-cli-compatibility.v1.json +9 -2
- package/contracts/mirror-ops.v1.json +16 -0
- package/contracts/published-contract-catalog.v1.json +38 -1
- package/contracts/runtime-command-surface.v1.json +190 -7
- package/contracts/transparency-evidence.v1.json +13 -0
- package/contracts/workspace-archive-capabilities.v1.json +17 -6
- package/contracts/workspace-contract.v1.json +78 -0
- package/contracts/workspace-intelligence/studio-blocker-handoff.v1.json +4 -0
- package/contracts/workspace-intelligence/workspace-context.v1.json +20 -0
- package/contracts/workspace-intelligence/workspace-graph-token-efficiency.v1.json +72 -0
- package/contracts/workspace-intelligence/workspace-intelligence-run.v1.json +212 -0
- package/contracts/workspace-intelligence/workspace-knowledge-graph-change-overlay.v1.json +200 -0
- package/contracts/workspace-intelligence/workspace-knowledge-graph.v1.json +260 -0
- package/contracts/workspace-intelligence/workspace-knowledge-search.v1.json +60 -0
- package/contracts/workspace-intelligence-architecture.v1.json +7 -4
- package/contracts/workspace-intelligence-chain.v1.json +51 -4
- package/contracts/workspace-share-bundle.v1.json +16 -0
- package/dist/analyze-UVXPRGYZ.js +1 -0
- package/dist/artifact-remediation-plan-EPALZ2LC.js +3 -0
- package/dist/autopilot-release-5BQ6F5L2.js +1 -0
- package/dist/chunk-22NJ2ZMG.js +2 -0
- package/dist/{chunk-XIVFLY6G.js → chunk-2GHUZDYA.js} +1 -1
- package/dist/chunk-2TEDAKP6.js +2 -0
- package/dist/chunk-52PBRX7F.js +1 -0
- package/dist/chunk-6SWRNA47.js +4 -0
- package/dist/chunk-76YOPAOT.js +1 -0
- package/dist/chunk-7VLCK5JW.js +1 -0
- package/dist/{chunk-DXPU4DDV.js → chunk-BSRVO52Y.js} +92 -78
- package/dist/chunk-COARSXRC.js +1 -0
- package/dist/chunk-CV5HKU4P.js +1 -0
- package/dist/chunk-CW7PGBIQ.js +13 -0
- package/dist/{chunk-KU4S7RCM.js → chunk-DV6GJD4K.js} +1 -1
- package/dist/chunk-EYJ2CQSK.js +1 -0
- package/dist/chunk-FB7SCXAZ.js +1 -0
- package/dist/chunk-FPJNWPKU.js +1 -0
- package/dist/{chunk-JP25YL3J.js → chunk-FTY7GGXJ.js} +2 -2
- package/dist/chunk-FXQJX34Z.js +1 -0
- package/dist/{chunk-J4AICQFB.js → chunk-HSGFUKCN.js} +1 -1
- package/dist/{chunk-OOOPYUL2.js → chunk-ITCAMC2E.js} +1 -1
- package/dist/chunk-KB44JP4M.js +2 -0
- package/dist/{chunk-WANW4QA4.js → chunk-KZZ36CK5.js} +1 -1
- package/dist/chunk-LNRAB7UY.js +1 -0
- package/dist/chunk-MEMHNE7Y.js +80 -0
- package/dist/chunk-MER6ZBN2.js +13 -0
- package/dist/chunk-NOFM7MNA.js +2 -0
- package/dist/chunk-NRYS4CLR.js +2 -0
- package/dist/chunk-OA537ZQ5.js +1 -0
- package/dist/chunk-PBHP6JNY.js +8 -0
- package/dist/chunk-QDWYIRHR.js +8 -0
- package/dist/chunk-RWRLFSKW.js +2 -0
- package/dist/chunk-SK6XRKGG.js +1 -0
- package/dist/chunk-THIOE2PB.js +2 -0
- package/dist/chunk-TNQI5VCW.js +36 -0
- package/dist/chunk-TWNFECMN.js +2 -0
- package/dist/{chunk-2QOWRBQD.js → chunk-U5EZHZBX.js} +1 -1
- package/dist/{chunk-K63BSU56.js → chunk-VBSQ7MF6.js} +62 -51
- package/dist/chunk-WDKNMTJQ.js +1 -0
- package/dist/chunk-YCL3I2JO.js +2 -0
- package/dist/chunk-ZDN7RHXJ.js +1 -0
- package/dist/chunk-ZM5NQ5Z2.js +1 -0
- package/dist/{create-KFR6FLRT.js → create-7JKJDAQV.js} +1 -1
- package/dist/doctor-PGPNIS76.js +1 -0
- package/dist/{dotnet-webapi-clean-BYUUHX5Y.js → dotnet-webapi-clean-6TVFBTVI.js} +20 -20
- package/dist/{gofiber-standard-B6UK5GR7.js → gofiber-standard-2BL7GWZB.js} +1 -1
- package/dist/{gogin-standard-BXU44VEM.js → gogin-standard-XGP3KBXA.js} +1 -1
- package/dist/index.d.ts +112 -16
- package/dist/index.js +198 -195
- package/dist/pipeline-IB6ILJSV.js +5 -0
- package/dist/{platform-capabilities-YICBF4FA.js → platform-capabilities-2B4QMZXE.js} +1 -1
- package/dist/{pythonRapidkitExec-UJYIB6FL.js → pythonRapidkitExec-CVCIK225.js} +1 -1
- package/dist/{springboot-standard-PEHDKH2L.js → springboot-standard-JJNUID6M.js} +6 -6
- package/dist/workspace-H3QXBFGB.js +1 -0
- package/dist/{workspace-agent-sync-G5YVI3BJ.js → workspace-agent-sync-C7SG2Z5W.js} +1 -1
- package/dist/workspace-archive-P76EDIUG.js +10 -0
- package/dist/{workspace-context-E3UFWL5X.js → workspace-context-BKQBKA4C.js} +1 -1
- package/dist/workspace-contract-RPQQBQXR.js +1 -0
- package/dist/workspace-dependency-graph-23BI2HG7.js +1 -0
- package/dist/workspace-explain-WVN7JH3U.js +1 -0
- package/dist/workspace-explain-contract-SEFTVF6J.js +1 -0
- package/dist/{workspace-feedback-YY6WQPWQ.js → workspace-feedback-WAID3IOE.js} +1 -1
- package/dist/{workspace-foundation-3C2DLCVI.js → workspace-foundation-5OOJEO2D.js} +1 -1
- package/dist/workspace-graph-token-efficiency-CFGFCJ5V.js +1 -0
- package/dist/{workspace-history-VF3CHDYQ.js → workspace-history-C6OP3IAQ.js} +1 -1
- package/dist/workspace-intelligence-VKDL3H2J.js +1 -0
- package/dist/workspace-intelligence-runner-LVALAZY7.js +1 -0
- package/dist/workspace-knowledge-graph-FE2NTZKV.js +1 -0
- package/dist/workspace-knowledge-graph-change-overlay-XG6FC4IX.js +1 -0
- package/dist/workspace-knowledge-graph-query-VOSPPH4W.js +1 -0
- package/dist/workspace-mcp-serve-KT2I676Z.js +3 -0
- package/dist/workspace-model-S33CIB2R.js +1 -0
- package/dist/workspace-model-hash-MHXK5MEI.js +1 -0
- package/dist/workspace-python-engine-state-2MLKJYQG.js +2 -0
- package/dist/workspace-registry-summary-A3YDL63D.js +1 -0
- package/dist/workspace-run-M4LNJILC.js +1 -0
- package/dist/{workspace-verify-ZNT6JX7D.js → workspace-verify-ZGH3NXAH.js} +1 -1
- package/dist/workspace-watch-EVBJTMV7.js +1 -0
- package/docs/AI_DYNAMIC_INTEGRATION.md +73 -432
- package/docs/AI_EXAMPLES.md +37 -395
- package/docs/AI_FEATURES.md +76 -465
- package/docs/AI_QUICKSTART.md +49 -209
- package/docs/DEVELOPMENT.md +5 -5
- package/docs/From Code to Shared Understanding.png +0 -0
- package/docs/GLOSSARY.md +60 -0
- package/docs/OPEN_SOURCE_USER_SCENARIOS.md +91 -9
- package/docs/OPTIMIZATION_GUIDE.md +19 -51
- package/docs/PACKAGE_MANAGER_POLICY.md +4 -1
- package/docs/README.md +91 -42
- package/docs/SECURITY.md +13 -6
- package/docs/SETUP.md +6 -3
- package/docs/UTILITIES.md +8 -20
- package/docs/WORKSPACE_MARKER_SPEC.md +27 -20
- package/docs/ci-workflows.md +19 -5
- package/docs/commands-reference.md +88 -13
- package/docs/config-file-guide.md +67 -246
- package/docs/contracts/ARTIFACT_CATALOG.md +78 -36
- package/docs/contracts/CLI_LOG_EVENT_STREAM.md +1 -1
- package/docs/contracts/README.md +48 -9
- package/docs/contracts/RUNTIME_ACCEPTANCE_MATRIX.md +4 -4
- package/docs/contracts/RUNTIME_SUPPORT_MATRIX.md +14 -10
- package/docs/creating-workspaces-and-projects.md +649 -0
- package/docs/doctor-command.md +5 -4
- package/docs/examples/ci-agent-grounding.yml +16 -10
- package/docs/from-code-to-shared-understanding.md +69 -38
- package/docs/graph-benchmark-methodology.md +121 -0
- package/docs/workspace-intelligence-runner.md +186 -0
- package/docs/workspace-knowledge-graph.md +295 -0
- package/docs/workspace-operations.md +78 -11
- package/docs/workspace-run.md +4 -1
- package/package.json +10 -8
- package/rapidkit.config.example.cjs +5 -5
- package/scripts/enforce-package-manager.cjs +1 -1
- package/scripts/prepack-enterprise.mjs +4 -0
- package/workspai.config.example.cjs +12 -47
- package/dist/analyze-YLV7NVLF.js +0 -1
- package/dist/artifact-remediation-plan-WLZGROUU.js +0 -3
- package/dist/autopilot-release-YBN3SWAA.js +0 -1
- package/dist/chunk-2K3GYCPS.js +0 -1
- package/dist/chunk-42G2OK64.js +0 -1
- package/dist/chunk-5AKYMAIL.js +0 -1
- package/dist/chunk-5GNT4RJI.js +0 -8
- package/dist/chunk-5PVEQ6CZ.js +0 -13
- package/dist/chunk-6AA3WWQZ.js +0 -2
- package/dist/chunk-6ZENXBMG.js +0 -33
- package/dist/chunk-7RIWU5TZ.js +0 -1
- package/dist/chunk-7UZVOYF5.js +0 -2
- package/dist/chunk-BJLE5CH7.js +0 -4
- package/dist/chunk-G3H5R3RR.js +0 -1
- package/dist/chunk-HYJK7W3B.js +0 -1
- package/dist/chunk-IMUU5Q2V.js +0 -13
- package/dist/chunk-KPPGZCUW.js +0 -78
- package/dist/chunk-LCRROMRR.js +0 -2
- package/dist/chunk-LG6RFLPZ.js +0 -1
- package/dist/chunk-P424XYHP.js +0 -1
- package/dist/chunk-P7SCWJFG.js +0 -8
- package/dist/chunk-QWU2CZBG.js +0 -2
- package/dist/chunk-V2H2KRMZ.js +0 -1
- package/dist/chunk-XZGVNGRB.js +0 -1
- package/dist/chunk-ZWO6K24C.js +0 -2
- package/dist/doctor-YJDM5XBH.js +0 -1
- package/dist/imported-projects-registry-FOIE27WT.js +0 -1
- package/dist/pipeline-FEDYO3IA.js +0 -5
- package/dist/workspace-PLXOO6ST.js +0 -1
- package/dist/workspace-archive-EEGLHZDW.js +0 -10
- package/dist/workspace-contract-LQJDZV36.js +0 -1
- package/dist/workspace-explain-G74ZIF23.js +0 -1
- package/dist/workspace-explain-contract-KT757JGQ.js +0 -1
- package/dist/workspace-intelligence-3GG7GEDQ.js +0 -1
- package/dist/workspace-mcp-serve-MJMUV4RY.js +0 -3
- package/dist/workspace-model-NG45SRM5.js +0 -1
- package/dist/workspace-python-engine-state-MTWIIZPY.js +0 -2
- package/dist/workspace-registry-summary-JM2XY52C.js +0 -1
- package/dist/workspace-run-WEQYIERE.js +0 -1
- package/dist/workspace-watch-W47T4RX2.js +0 -1
|
@@ -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"],
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://rapidkit.dev/contracts/workspace-intelligence/workspace-intelligence-run.v1.json",
|
|
4
|
+
"title": "Workspace Intelligence Run",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"chainSchemaVersion",
|
|
10
|
+
"generatedAt",
|
|
11
|
+
"workspacePath",
|
|
12
|
+
"baselineCreated",
|
|
13
|
+
"preflight",
|
|
14
|
+
"status",
|
|
15
|
+
"exitCode",
|
|
16
|
+
"stages",
|
|
17
|
+
"artifactPath"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"schemaVersion": { "const": "workspace-intelligence-run.v1" },
|
|
21
|
+
"chainSchemaVersion": { "const": "workspai-workspace-intelligence-chain-v1" },
|
|
22
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
23
|
+
"workspacePath": { "type": "string", "minLength": 1 },
|
|
24
|
+
"baselineCreated": { "type": "boolean" },
|
|
25
|
+
"preflight": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"minItems": 2,
|
|
28
|
+
"maxItems": 2,
|
|
29
|
+
"prefixItems": [
|
|
30
|
+
{
|
|
31
|
+
"$ref": "#/$defs/preflight",
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"id": { "const": "sync" },
|
|
35
|
+
"status": { "enum": ["passed", "failed"] },
|
|
36
|
+
"result": { "enum": ["synchronized", "failed"] },
|
|
37
|
+
"artifacts": {
|
|
38
|
+
"const": [".workspai/workspace.contract.json", ".workspai/workspace-registry.v1.json"]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"$ref": "#/$defs/preflight",
|
|
44
|
+
"type": "object",
|
|
45
|
+
"properties": {
|
|
46
|
+
"id": { "const": "baseline" },
|
|
47
|
+
"status": { "enum": ["passed", "failed", "skipped"] },
|
|
48
|
+
"result": { "enum": ["created", "reused", "failed", "skipped"] },
|
|
49
|
+
"artifacts": {
|
|
50
|
+
"const": [".workspai/reports/workspace-model-snapshot.json"]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"items": false
|
|
56
|
+
},
|
|
57
|
+
"status": { "enum": ["passed", "blocked", "failed"] },
|
|
58
|
+
"exitCode": { "enum": [0, 1, 2] },
|
|
59
|
+
"artifactPath": {
|
|
60
|
+
"const": ".workspai/reports/workspace-intelligence-run-last-run.json"
|
|
61
|
+
},
|
|
62
|
+
"stages": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"minItems": 11,
|
|
65
|
+
"maxItems": 11,
|
|
66
|
+
"prefixItems": [
|
|
67
|
+
{
|
|
68
|
+
"$ref": "#/$defs/stage",
|
|
69
|
+
"type": "object",
|
|
70
|
+
"properties": {
|
|
71
|
+
"id": { "const": "model" },
|
|
72
|
+
"artifacts": {
|
|
73
|
+
"const": [
|
|
74
|
+
".workspai/reports/workspace-model.json",
|
|
75
|
+
".workspai/reports/workspace-knowledge-graph.json"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"$ref": "#/$defs/stage",
|
|
82
|
+
"type": "object",
|
|
83
|
+
"properties": {
|
|
84
|
+
"id": { "const": "diff" },
|
|
85
|
+
"artifacts": { "const": [".workspai/reports/workspace-model-diff-last-run.json"] }
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"$ref": "#/$defs/stage",
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {
|
|
92
|
+
"id": { "const": "impact" },
|
|
93
|
+
"artifacts": { "const": [".workspai/reports/workspace-impact-last-run.json"] }
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"$ref": "#/$defs/stage",
|
|
98
|
+
"type": "object",
|
|
99
|
+
"properties": {
|
|
100
|
+
"id": { "const": "doctor-evidence" },
|
|
101
|
+
"artifacts": { "const": [".workspai/reports/doctor-last-run.json"] }
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"$ref": "#/$defs/stage",
|
|
106
|
+
"type": "object",
|
|
107
|
+
"properties": {
|
|
108
|
+
"id": { "const": "contract-evidence" },
|
|
109
|
+
"artifacts": { "const": [".workspai/reports/workspace-contract-verify-last-run.json"] }
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"$ref": "#/$defs/stage",
|
|
114
|
+
"type": "object",
|
|
115
|
+
"properties": {
|
|
116
|
+
"id": { "const": "analyze-evidence" },
|
|
117
|
+
"artifacts": { "const": [".workspai/reports/analyze-last-run.json"] }
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"$ref": "#/$defs/stage",
|
|
122
|
+
"type": "object",
|
|
123
|
+
"properties": {
|
|
124
|
+
"id": { "const": "readiness-evidence" },
|
|
125
|
+
"artifacts": { "const": [".workspai/reports/release-readiness-last-run.json"] }
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"$ref": "#/$defs/stage",
|
|
130
|
+
"type": "object",
|
|
131
|
+
"properties": {
|
|
132
|
+
"id": { "const": "verify" },
|
|
133
|
+
"artifacts": {
|
|
134
|
+
"const": [
|
|
135
|
+
".workspai/reports/workspace-verify-last-run.json",
|
|
136
|
+
".workspai/reports/workspace-intelligence-history.json"
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"$ref": "#/$defs/stage",
|
|
143
|
+
"type": "object",
|
|
144
|
+
"properties": {
|
|
145
|
+
"id": { "const": "context" },
|
|
146
|
+
"artifacts": { "const": [".workspai/reports/workspace-context-agent.json"] }
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"$ref": "#/$defs/stage",
|
|
151
|
+
"type": "object",
|
|
152
|
+
"properties": {
|
|
153
|
+
"id": { "const": "agent-sync" },
|
|
154
|
+
"artifacts": {
|
|
155
|
+
"const": [
|
|
156
|
+
".workspai/reports/INDEX.json",
|
|
157
|
+
".workspai/reports/agent-customization-pack.json",
|
|
158
|
+
".workspai/reports/workspace-skills-index.json",
|
|
159
|
+
"AGENTS.md"
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"$ref": "#/$defs/stage",
|
|
166
|
+
"type": "object",
|
|
167
|
+
"properties": {
|
|
168
|
+
"id": { "const": "explain" },
|
|
169
|
+
"artifacts": { "const": [".workspai/reports/workspace-explain-last-run.json"] }
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"items": false
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"$defs": {
|
|
177
|
+
"preflight": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"additionalProperties": false,
|
|
180
|
+
"required": ["id", "status", "result", "durationMs", "artifacts", "message"],
|
|
181
|
+
"properties": {
|
|
182
|
+
"id": { "type": "string", "minLength": 1 },
|
|
183
|
+
"status": { "enum": ["passed", "failed", "skipped"] },
|
|
184
|
+
"result": { "enum": ["synchronized", "created", "reused", "failed", "skipped"] },
|
|
185
|
+
"durationMs": { "type": "integer", "minimum": 0 },
|
|
186
|
+
"artifacts": {
|
|
187
|
+
"type": "array",
|
|
188
|
+
"items": { "type": "string", "minLength": 1 },
|
|
189
|
+
"uniqueItems": true
|
|
190
|
+
},
|
|
191
|
+
"message": { "type": "string", "minLength": 1 }
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"stage": {
|
|
195
|
+
"type": "object",
|
|
196
|
+
"additionalProperties": false,
|
|
197
|
+
"required": ["id", "status", "durationMs", "artifacts", "exitCode", "message"],
|
|
198
|
+
"properties": {
|
|
199
|
+
"id": { "type": "string", "minLength": 1 },
|
|
200
|
+
"status": { "enum": ["passed", "blocked", "failed", "skipped"] },
|
|
201
|
+
"durationMs": { "type": "integer", "minimum": 0 },
|
|
202
|
+
"artifacts": {
|
|
203
|
+
"type": "array",
|
|
204
|
+
"items": { "type": "string", "minLength": 1 },
|
|
205
|
+
"uniqueItems": true
|
|
206
|
+
},
|
|
207
|
+
"exitCode": { "type": "integer", "minimum": 0 },
|
|
208
|
+
"message": { "type": "string", "minLength": 1 }
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
@@ -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
|
+
}
|