workspai 0.46.0 → 0.48.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 +225 -81
- package/contracts/agent-customization-pack.v1.json +11 -1
- package/contracts/bootstrap-compliance.v1.json +14 -0
- package/contracts/cli-runtime-command-inventory.v1.snapshot.json +4 -0
- package/contracts/extension-cli-compatibility.v1.json +13 -2
- package/contracts/mirror-ops.v1.json +16 -0
- package/contracts/published-contract-catalog.v1.json +59 -1
- package/contracts/runtime-command-surface.v1.json +294 -2
- package/contracts/transparency-evidence.v1.json +13 -0
- package/contracts/workspace-contract.v1.json +78 -0
- package/contracts/workspace-intelligence/model-usage-event.v1.json +82 -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-evaluation-comparison.v1.json +53 -0
- package/contracts/workspace-intelligence/workspace-intelligence-evaluation.v1.json +120 -0
- package/contracts/workspace-intelligence/workspace-intelligence-run.v1.json +6 -1
- 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 +37 -5
- package/contracts/workspace-intelligence-chain.v1.json +58 -6
- package/contracts/workspace-share-bundle.v1.json +16 -0
- package/dist/analyze-EEEU3MIF.js +1 -0
- package/dist/artifact-remediation-plan-SPOUHMK5.js +3 -0
- package/dist/autopilot-release-XGVXPOZI.js +1 -0
- package/dist/chunk-32OJDBIG.js +2 -0
- package/dist/chunk-37CVKXBD.js +1 -0
- package/dist/chunk-3NU32T4A.js +2 -0
- package/dist/chunk-3VFA7D5T.js +1 -0
- package/dist/chunk-4HDYADHT.js +13 -0
- package/dist/chunk-54EP5CEV.js +8 -0
- package/dist/chunk-5S3DJQEP.js +8 -0
- package/dist/chunk-AFL3ACCR.js +2 -0
- package/dist/{chunk-VFDM65IE.js → chunk-BFLJ2R4D.js} +22 -22
- package/dist/chunk-BGPXQQNY.js +4 -0
- package/dist/chunk-BMWFQXGW.js +1 -0
- package/dist/{chunk-UQWOVV6V.js → chunk-CRHYBQI3.js} +1 -1
- package/dist/chunk-CV5HKU4P.js +1 -0
- package/dist/chunk-ESLPI3XZ.js +1 -0
- package/dist/chunk-FB7SCXAZ.js +1 -0
- package/dist/{chunk-WPEEC5BX.js → chunk-HDXNIN4N.js} +1 -1
- package/dist/chunk-HZDXO65G.js +36 -0
- package/dist/{chunk-J5PIZCAU.js → chunk-I46XEIPL.js} +1 -1
- package/dist/chunk-J5ENLXDF.js +1 -0
- package/dist/chunk-KB44JP4M.js +2 -0
- package/dist/chunk-LHOZXC2M.js +2 -0
- package/dist/chunk-NAJCUQ4X.js +2 -0
- package/dist/chunk-OA537ZQ5.js +1 -0
- package/dist/chunk-OW42TZFB.js +1 -0
- package/dist/chunk-P3D5YQB2.js +1 -0
- package/dist/chunk-PHXQR6PX.js +2 -0
- package/dist/{chunk-ZKAI3PJE.js → chunk-PRTR2DQ2.js} +1 -1
- package/dist/{chunk-QA5BGEQW.js → chunk-QNONOO4F.js} +1 -1
- package/dist/chunk-RHQW3DTP.js +1 -0
- package/dist/chunk-T4YR4RAI.js +2 -0
- package/dist/chunk-THIOE2PB.js +2 -0
- package/dist/{chunk-4LGXSBCN.js → chunk-VU7NZHPM.js} +1 -1
- package/dist/chunk-WDKNMTJQ.js +1 -0
- package/dist/{chunk-YUATNVOT.js → chunk-Y5UJLPS4.js} +16 -16
- package/dist/{chunk-6IIZJQLV.js → chunk-YJZOMRAS.js} +1 -1
- package/dist/{create-WCV3L6XH.js → create-DBQNAMKP.js} +1 -1
- package/dist/{doctor-5BWM2EMJ.js → doctor-4NNUDNGZ.js} +1 -1
- package/dist/{dotnet-webapi-clean-6TVFBTVI.js → dotnet-webapi-clean-A6MVDYXX.js} +4 -4
- package/dist/{gofiber-standard-2BL7GWZB.js → gofiber-standard-I5YPQG5V.js} +1 -1
- package/dist/{gogin-standard-XGP3KBXA.js → gogin-standard-VY2L4QT5.js} +1 -1
- package/dist/index.d.ts +56 -14
- package/dist/index.js +322 -320
- package/dist/pipeline-TQM43A3K.js +5 -0
- package/dist/{springboot-standard-JJNUID6M.js → springboot-standard-55XKCBIZ.js} +4 -4
- package/dist/{workspace-7OXW5YTJ.js → workspace-NCWRINEF.js} +1 -1
- package/dist/{workspace-agent-sync-O4IA6VOA.js → workspace-agent-sync-662QHXGF.js} +1 -1
- package/dist/{workspace-archive-H74NBBNW.js → workspace-archive-P76EDIUG.js} +1 -1
- package/dist/{workspace-context-R7IPUBPG.js → workspace-context-23YYCUCP.js} +1 -1
- package/dist/workspace-contract-TU2I7GC2.js +1 -0
- package/dist/workspace-dependency-graph-BP4EXYQ5.js +1 -0
- package/dist/workspace-explain-MWUEN643.js +1 -0
- package/dist/workspace-explain-contract-ZPI3JXJU.js +1 -0
- package/dist/{workspace-feedback-REOS36ZZ.js → workspace-feedback-SUVH2LUJ.js} +1 -1
- package/dist/{workspace-foundation-KXT4QI5O.js → workspace-foundation-WXJ6I7ES.js} +1 -1
- package/dist/workspace-graph-token-efficiency-CFGFCJ5V.js +1 -0
- package/dist/{workspace-history-OGOVSKZG.js → workspace-history-BANOJRQ2.js} +1 -1
- package/dist/workspace-intelligence-MFJE7W67.js +1 -0
- package/dist/workspace-intelligence-evaluation-IPH7M3WV.js +1 -0
- package/dist/workspace-intelligence-runner-THYLHHMF.js +1 -0
- package/dist/workspace-knowledge-graph-ARDC6HHG.js +1 -0
- package/dist/workspace-knowledge-graph-change-overlay-XG6FC4IX.js +1 -0
- package/dist/workspace-knowledge-graph-export-UYAYFTWX.js +10 -0
- package/dist/workspace-knowledge-graph-query-VOSPPH4W.js +1 -0
- package/dist/workspace-mcp-serve-EZR6O76D.js +3 -0
- package/dist/workspace-model-7OU2M3LE.js +1 -0
- package/dist/workspace-model-hash-MHXK5MEI.js +1 -0
- package/dist/{workspace-registry-summary-SZ46R5PD.js → workspace-registry-summary-ORDK7A36.js} +1 -1
- package/dist/workspace-run-RLIYSOTN.js +1 -0
- package/dist/{workspace-verify-MFQ7IXGD.js → workspace-verify-EBVL7FWT.js} +1 -1
- package/dist/workspace-watch-3BPGLFLB.js +1 -0
- package/docs/AI_DYNAMIC_INTEGRATION.md +73 -428
- package/docs/AI_EXAMPLES.md +37 -395
- package/docs/AI_FEATURES.md +76 -456
- package/docs/AI_QUICKSTART.md +49 -212
- package/docs/GLOSSARY.md +64 -0
- package/docs/OPEN_SOURCE_USER_SCENARIOS.md +68 -7
- package/docs/README.md +70 -41
- package/docs/README_CONTENT_CONTRACT.md +154 -0
- package/docs/commands-reference.md +64 -4
- package/docs/config-file-guide.md +6 -2
- package/docs/contracts/ARTIFACT_CATALOG.md +76 -37
- package/docs/contracts/README.md +47 -8
- package/docs/graph-benchmark-methodology.md +121 -0
- package/docs/workspace-intelligence-evaluation.md +147 -0
- package/docs/workspace-knowledge-graph.md +316 -0
- package/docs/workspace-operations.md +49 -0
- package/package.json +2 -1
- package/dist/analyze-BEBEZSZK.js +0 -1
- package/dist/artifact-remediation-plan-FFQSESAM.js +0 -3
- package/dist/autopilot-release-WUR4CQIT.js +0 -1
- package/dist/chunk-2G7FASAO.js +0 -2
- package/dist/chunk-4EPHWD27.js +0 -8
- package/dist/chunk-CVHMUSRX.js +0 -1
- package/dist/chunk-DIPD72H4.js +0 -2
- package/dist/chunk-EFYHGCGX.js +0 -2
- package/dist/chunk-FWRXA435.js +0 -2
- package/dist/chunk-HDURFXW5.js +0 -2
- package/dist/chunk-HMUKBW2S.js +0 -4
- package/dist/chunk-K4WNYXKK.js +0 -33
- package/dist/chunk-LG6RFLPZ.js +0 -1
- package/dist/chunk-N7DV5L7C.js +0 -1
- package/dist/chunk-PRBVYW3T.js +0 -1
- package/dist/chunk-QZLIURER.js +0 -13
- package/dist/chunk-RIEF2DDX.js +0 -8
- package/dist/chunk-SXMTSV5M.js +0 -1
- package/dist/chunk-SXPY523X.js +0 -1
- package/dist/chunk-V3LRQZ36.js +0 -1
- package/dist/chunk-WYFPXTTS.js +0 -2
- package/dist/pipeline-ORIWVVYM.js +0 -5
- package/dist/workspace-contract-HKCMOMFE.js +0 -1
- package/dist/workspace-explain-GOPQYTPQ.js +0 -1
- package/dist/workspace-explain-contract-SVFJAAEI.js +0 -1
- package/dist/workspace-intelligence-7IESQSXY.js +0 -1
- package/dist/workspace-intelligence-runner-6GJ5M4HB.js +0 -1
- package/dist/workspace-mcp-serve-FRVWBO36.js +0 -3
- package/dist/workspace-model-PPYX7B4S.js +0 -1
- package/dist/workspace-run-V3KKHTVF.js +0 -1
- 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
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://getrapidkit.com/schemas/workspace-intelligence-evaluation-comparison.v1.json",
|
|
4
|
+
"title": "Workspai Workspace Intelligence Evaluation Comparison",
|
|
5
|
+
"description": "A task-aligned comparison between two provenance-aware Workspace Intelligence evaluation runs.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"generatedAt",
|
|
10
|
+
"taskAligned",
|
|
11
|
+
"current",
|
|
12
|
+
"baseline",
|
|
13
|
+
"delta",
|
|
14
|
+
"comparableOutcome"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"schemaVersion": { "const": "workspace-intelligence-evaluation-comparison.v1" },
|
|
18
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
19
|
+
"taskAligned": { "type": "boolean" },
|
|
20
|
+
"current": { "$ref": "#/$defs/run" },
|
|
21
|
+
"baseline": { "$ref": "#/$defs/run" },
|
|
22
|
+
"delta": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"required": ["tokens", "reductionPercent", "modelCalls", "toolCalls", "latencyMs"],
|
|
25
|
+
"properties": {
|
|
26
|
+
"tokens": { "type": "number" },
|
|
27
|
+
"reductionPercent": { "type": ["number", "null"] },
|
|
28
|
+
"modelCalls": { "type": "number" },
|
|
29
|
+
"toolCalls": { "type": "number" },
|
|
30
|
+
"latencyMs": { "type": "number" }
|
|
31
|
+
},
|
|
32
|
+
"additionalProperties": false
|
|
33
|
+
},
|
|
34
|
+
"comparableOutcome": { "type": "boolean" }
|
|
35
|
+
},
|
|
36
|
+
"$defs": {
|
|
37
|
+
"run": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"required": ["runId", "strategy", "tokens", "verified", "status"],
|
|
40
|
+
"properties": {
|
|
41
|
+
"runId": { "type": "string", "minLength": 1 },
|
|
42
|
+
"strategy": {
|
|
43
|
+
"enum": ["full-corpus", "grep", "vector", "graph", "workspace-intelligence", "custom"]
|
|
44
|
+
},
|
|
45
|
+
"tokens": { "type": "integer", "minimum": 0 },
|
|
46
|
+
"verified": { "type": "boolean" },
|
|
47
|
+
"status": { "enum": ["passed", "failed", "blocked", "unknown"] }
|
|
48
|
+
},
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"additionalProperties": false
|
|
53
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://getrapidkit.com/schemas/workspace-intelligence-evaluation.v1.json",
|
|
4
|
+
"title": "Workspai Workspace Intelligence Evaluation",
|
|
5
|
+
"description": "A live or finalized, provenance-aware measurement of model usage, agent activity, and verified task outcome.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["schemaVersion", "runId", "sessionId", "status", "startedAt", "updatedAt", "workspace", "configuration", "methodology", "events", "summary"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": "workspace-intelligence-evaluation.v1" },
|
|
10
|
+
"runId": { "type": "string", "minLength": 1 },
|
|
11
|
+
"sessionId": { "type": "string", "minLength": 1 },
|
|
12
|
+
"status": { "enum": ["live", "completed", "aborted"] },
|
|
13
|
+
"startedAt": { "type": "string", "format": "date-time" },
|
|
14
|
+
"updatedAt": { "type": "string", "format": "date-time" },
|
|
15
|
+
"completedAt": { "type": "string", "format": "date-time" },
|
|
16
|
+
"workspace": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": ["name", "path"],
|
|
19
|
+
"properties": {
|
|
20
|
+
"name": { "type": "string", "minLength": 1 },
|
|
21
|
+
"path": { "type": "string", "minLength": 1 }
|
|
22
|
+
},
|
|
23
|
+
"additionalProperties": false
|
|
24
|
+
},
|
|
25
|
+
"configuration": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"required": ["taskId", "strategy"],
|
|
28
|
+
"properties": {
|
|
29
|
+
"taskId": { "type": "string", "minLength": 1 },
|
|
30
|
+
"strategy": { "enum": ["full-corpus", "grep", "vector", "graph", "workspace-intelligence", "custom"] },
|
|
31
|
+
"provider": { "type": "string", "minLength": 1 },
|
|
32
|
+
"model": { "type": "string", "minLength": 1 },
|
|
33
|
+
"temperature": { "type": "number" },
|
|
34
|
+
"baselineRunId": { "type": "string", "minLength": 1 }
|
|
35
|
+
},
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
},
|
|
38
|
+
"methodology": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"required": ["id", "claimBoundary"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"id": { "const": "provider-usage-and-verified-outcome.v1" },
|
|
43
|
+
"claimBoundary": { "type": "string", "minLength": 1 }
|
|
44
|
+
},
|
|
45
|
+
"additionalProperties": false
|
|
46
|
+
},
|
|
47
|
+
"events": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": { "$ref": "model-usage-event.v1.json" }
|
|
50
|
+
},
|
|
51
|
+
"summary": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"required": ["modelCalls", "toolCalls", "tokenSources", "tokens", "latencyMs", "costs", "outcome", "efficiency"],
|
|
54
|
+
"properties": {
|
|
55
|
+
"modelCalls": { "type": "integer", "minimum": 0 },
|
|
56
|
+
"toolCalls": { "type": "integer", "minimum": 0 },
|
|
57
|
+
"tokenSources": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"required": ["providerReported", "tokenizerCounted", "estimated", "unavailable"],
|
|
60
|
+
"properties": {
|
|
61
|
+
"providerReported": { "type": "integer", "minimum": 0 },
|
|
62
|
+
"tokenizerCounted": { "type": "integer", "minimum": 0 },
|
|
63
|
+
"estimated": { "type": "integer", "minimum": 0 },
|
|
64
|
+
"unavailable": { "type": "integer", "minimum": 0 }
|
|
65
|
+
},
|
|
66
|
+
"additionalProperties": false
|
|
67
|
+
},
|
|
68
|
+
"tokens": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"required": ["input", "output", "cachedInput", "reasoning", "observedTotal"],
|
|
71
|
+
"properties": {
|
|
72
|
+
"input": { "type": "integer", "minimum": 0 },
|
|
73
|
+
"output": { "type": "integer", "minimum": 0 },
|
|
74
|
+
"cachedInput": { "type": "integer", "minimum": 0 },
|
|
75
|
+
"reasoning": { "type": "integer", "minimum": 0 },
|
|
76
|
+
"observedTotal": { "type": "integer", "minimum": 0 }
|
|
77
|
+
},
|
|
78
|
+
"additionalProperties": false
|
|
79
|
+
},
|
|
80
|
+
"latencyMs": { "type": "number", "minimum": 0 },
|
|
81
|
+
"costs": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"items": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"required": ["currency", "amount", "providerReported", "estimated"],
|
|
86
|
+
"properties": {
|
|
87
|
+
"currency": { "type": "string", "pattern": "^[A-Z]{3}$" },
|
|
88
|
+
"amount": { "type": "number", "minimum": 0 },
|
|
89
|
+
"providerReported": { "type": "number", "minimum": 0 },
|
|
90
|
+
"estimated": { "type": "number", "minimum": 0 }
|
|
91
|
+
},
|
|
92
|
+
"additionalProperties": false
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"outcome": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"required": ["status", "verified", "blockersResolved"],
|
|
98
|
+
"properties": {
|
|
99
|
+
"status": { "enum": ["passed", "failed", "blocked", "unknown"] },
|
|
100
|
+
"verified": { "type": "boolean" },
|
|
101
|
+
"blockersResolved": { "type": "integer", "minimum": 0 }
|
|
102
|
+
},
|
|
103
|
+
"additionalProperties": false
|
|
104
|
+
},
|
|
105
|
+
"efficiency": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"required": ["tokensPerVerifiedOutcome", "noProgressDecisions", "repeatedArtifactReads"],
|
|
108
|
+
"properties": {
|
|
109
|
+
"tokensPerVerifiedOutcome": { "type": ["number", "null"], "minimum": 0 },
|
|
110
|
+
"noProgressDecisions": { "type": "integer", "minimum": 0 },
|
|
111
|
+
"repeatedArtifactReads": { "type": "integer", "minimum": 0 }
|
|
112
|
+
},
|
|
113
|
+
"additionalProperties": false
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"additionalProperties": false
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"additionalProperties": false
|
|
120
|
+
}
|
|
@@ -69,7 +69,12 @@
|
|
|
69
69
|
"type": "object",
|
|
70
70
|
"properties": {
|
|
71
71
|
"id": { "const": "model" },
|
|
72
|
-
"artifacts": {
|
|
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
|
+
}
|