@dharma-ai-labs/agent-fabric 0.2.49 → 0.2.51

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 (198) hide show
  1. package/dist/index.d.ts +88 -2
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +840 -175
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.test.js +2 -2
  6. package/dist/repositoryCandidateSync.d.ts +55 -0
  7. package/dist/repositoryCandidateSync.d.ts.map +1 -0
  8. package/dist/repositoryCandidateSync.js +177 -0
  9. package/dist/repositoryCandidateSync.js.map +1 -0
  10. package/dist/repositoryCandidateSync.test.d.ts +2 -0
  11. package/dist/repositoryCandidateSync.test.d.ts.map +1 -0
  12. package/dist/repositoryCandidateSync.test.js +141 -0
  13. package/dist/repositoryCandidateSync.test.js.map +1 -0
  14. package/dist/repositoryInstalledKnowledge.d.ts +13 -0
  15. package/dist/repositoryInstalledKnowledge.d.ts.map +1 -0
  16. package/dist/repositoryInstalledKnowledge.js +25 -0
  17. package/dist/repositoryInstalledKnowledge.js.map +1 -0
  18. package/dist/repositoryInstallerFiles.d.ts +6 -0
  19. package/dist/repositoryInstallerFiles.d.ts.map +1 -0
  20. package/dist/repositoryInstallerFiles.js +113 -0
  21. package/dist/repositoryInstallerFiles.js.map +1 -0
  22. package/dist/repositoryKnowledge.d.ts +119 -0
  23. package/dist/repositoryKnowledge.d.ts.map +1 -0
  24. package/dist/repositoryKnowledge.js +462 -0
  25. package/dist/repositoryKnowledge.js.map +1 -0
  26. package/dist/repositoryKnowledge.test.d.ts +2 -0
  27. package/dist/repositoryKnowledge.test.d.ts.map +1 -0
  28. package/dist/repositoryKnowledge.test.js +245 -0
  29. package/dist/repositoryKnowledge.test.js.map +1 -0
  30. package/dist/repositoryKnowledgeRetention.test.d.ts +2 -0
  31. package/dist/repositoryKnowledgeRetention.test.d.ts.map +1 -0
  32. package/dist/repositoryKnowledgeRetention.test.js +386 -0
  33. package/dist/repositoryKnowledgeRetention.test.js.map +1 -0
  34. package/dist/repositoryOnboardingCaller.test.d.ts +2 -0
  35. package/dist/repositoryOnboardingCaller.test.d.ts.map +1 -0
  36. package/dist/repositoryOnboardingCaller.test.js +216 -0
  37. package/dist/repositoryOnboardingCaller.test.js.map +1 -0
  38. package/dist/repositoryOnboardingFlow.test.d.ts +2 -0
  39. package/dist/repositoryOnboardingFlow.test.d.ts.map +1 -0
  40. package/dist/repositoryOnboardingFlow.test.js +47 -0
  41. package/dist/repositoryOnboardingFlow.test.js.map +1 -0
  42. package/dist/repositoryPackage.d.ts +115 -0
  43. package/dist/repositoryPackage.d.ts.map +1 -0
  44. package/dist/repositoryPackage.js +1095 -0
  45. package/dist/repositoryPackage.js.map +1 -0
  46. package/dist/repositoryPackage.test.d.ts +2 -0
  47. package/dist/repositoryPackage.test.d.ts.map +1 -0
  48. package/dist/repositoryPackage.test.js +709 -0
  49. package/dist/repositoryPackage.test.js.map +1 -0
  50. package/dist/repositoryPackageDelivery.d.ts +29 -0
  51. package/dist/repositoryPackageDelivery.d.ts.map +1 -0
  52. package/dist/repositoryPackageDelivery.js +140 -0
  53. package/dist/repositoryPackageDelivery.js.map +1 -0
  54. package/dist/repositoryPackageDelivery.test.d.ts +2 -0
  55. package/dist/repositoryPackageDelivery.test.d.ts.map +1 -0
  56. package/dist/repositoryPackageDelivery.test.js +787 -0
  57. package/dist/repositoryPackageDelivery.test.js.map +1 -0
  58. package/dist/repositoryPackageDeliveryCaller.test.d.ts +2 -0
  59. package/dist/repositoryPackageDeliveryCaller.test.d.ts.map +1 -0
  60. package/dist/repositoryPackageDeliveryCaller.test.js +18 -0
  61. package/dist/repositoryPackageDeliveryCaller.test.js.map +1 -0
  62. package/dist/repositoryPackageDeliveryPreflight.test.d.ts +2 -0
  63. package/dist/repositoryPackageDeliveryPreflight.test.d.ts.map +1 -0
  64. package/dist/repositoryPackageDeliveryPreflight.test.js +29 -0
  65. package/dist/repositoryPackageDeliveryPreflight.test.js.map +1 -0
  66. package/dist/repositoryPackageTransfer.d.ts +85 -0
  67. package/dist/repositoryPackageTransfer.d.ts.map +1 -0
  68. package/dist/repositoryPackageTransfer.js +233 -0
  69. package/dist/repositoryPackageTransfer.js.map +1 -0
  70. package/dist/repositoryPackageTransfer.test.d.ts +2 -0
  71. package/dist/repositoryPackageTransfer.test.d.ts.map +1 -0
  72. package/dist/repositoryPackageTransfer.test.js +173 -0
  73. package/dist/repositoryPackageTransfer.test.js.map +1 -0
  74. package/dist/repositoryPackageTransferV2.test.d.ts +2 -0
  75. package/dist/repositoryPackageTransferV2.test.d.ts.map +1 -0
  76. package/dist/repositoryPackageTransferV2.test.js +549 -0
  77. package/dist/repositoryPackageTransferV2.test.js.map +1 -0
  78. package/dist/repositoryPackageTransferV2Schema.test.d.ts +2 -0
  79. package/dist/repositoryPackageTransferV2Schema.test.d.ts.map +1 -0
  80. package/dist/repositoryPackageTransferV2Schema.test.js +48 -0
  81. package/dist/repositoryPackageTransferV2Schema.test.js.map +1 -0
  82. package/dist/repositoryReleaseMetadata.d.ts +37 -0
  83. package/dist/repositoryReleaseMetadata.d.ts.map +1 -0
  84. package/dist/repositoryReleaseMetadata.js +251 -0
  85. package/dist/repositoryReleaseMetadata.js.map +1 -0
  86. package/dist/repositoryReleaseMetadata.test.d.ts +2 -0
  87. package/dist/repositoryReleaseMetadata.test.d.ts.map +1 -0
  88. package/dist/repositoryReleaseMetadata.test.js +297 -0
  89. package/dist/repositoryReleaseMetadata.test.js.map +1 -0
  90. package/dist/repositoryRoleDerivation.d.ts +11 -0
  91. package/dist/repositoryRoleDerivation.d.ts.map +1 -0
  92. package/dist/repositoryRoleDerivation.js +59 -0
  93. package/dist/repositoryRoleDerivation.js.map +1 -0
  94. package/dist/repositoryRoleDerivation.test.d.ts +2 -0
  95. package/dist/repositoryRoleDerivation.test.d.ts.map +1 -0
  96. package/dist/repositoryRoleDerivation.test.js +33 -0
  97. package/dist/repositoryRoleDerivation.test.js.map +1 -0
  98. package/dist/repositoryRoleMetadata.d.ts +63 -0
  99. package/dist/repositoryRoleMetadata.d.ts.map +1 -0
  100. package/dist/repositoryRoleMetadata.js +203 -0
  101. package/dist/repositoryRoleMetadata.js.map +1 -0
  102. package/dist/repositoryRoleMetadata.test.d.ts +2 -0
  103. package/dist/repositoryRoleMetadata.test.d.ts.map +1 -0
  104. package/dist/repositoryRoleMetadata.test.js +296 -0
  105. package/dist/repositoryRoleMetadata.test.js.map +1 -0
  106. package/dist/repositoryRoleQuestion.d.ts +36 -0
  107. package/dist/repositoryRoleQuestion.d.ts.map +1 -0
  108. package/dist/repositoryRoleQuestion.js +68 -0
  109. package/dist/repositoryRoleQuestion.js.map +1 -0
  110. package/dist/repositoryRoleQuestion.test.d.ts +2 -0
  111. package/dist/repositoryRoleQuestion.test.d.ts.map +1 -0
  112. package/dist/repositoryRoleQuestion.test.js +66 -0
  113. package/dist/repositoryRoleQuestion.test.js.map +1 -0
  114. package/dist/repositorySourceAuthorization.d.ts +43 -0
  115. package/dist/repositorySourceAuthorization.d.ts.map +1 -0
  116. package/dist/repositorySourceAuthorization.js +164 -0
  117. package/dist/repositorySourceAuthorization.js.map +1 -0
  118. package/dist/repositorySourceCapture.test.d.ts +2 -0
  119. package/dist/repositorySourceCapture.test.d.ts.map +1 -0
  120. package/dist/repositorySourceCapture.test.js +303 -0
  121. package/dist/repositorySourceCapture.test.js.map +1 -0
  122. package/dist/repositorySourceSync.d.ts +54 -0
  123. package/dist/repositorySourceSync.d.ts.map +1 -0
  124. package/dist/repositorySourceSync.js +88 -0
  125. package/dist/repositorySourceSync.js.map +1 -0
  126. package/dist/repositorySourceSync.test.d.ts +2 -0
  127. package/dist/repositorySourceSync.test.d.ts.map +1 -0
  128. package/dist/repositorySourceSync.test.js +218 -0
  129. package/dist/repositorySourceSync.test.js.map +1 -0
  130. package/dist/schemas/repository-knowledge-retention-v1.schema.json +26 -0
  131. package/dist/schemas/repository-knowledge-v2.schema.json +74 -0
  132. package/dist/schemas/repository-knowledge.schema.json +63 -0
  133. package/dist/schemas/repository-package-chunk-v2.schema.json +15 -0
  134. package/dist/schemas/repository-package-chunk.schema.json +18 -0
  135. package/dist/schemas/repository-package-delivery-v1.schema.json +51 -0
  136. package/dist/schemas/repository-package-envelope-v1.schema.json +16 -0
  137. package/dist/schemas/repository-package-transfer-v2.schema.json +36 -0
  138. package/dist/schemas/repository-package-transfer.schema.json +34 -0
  139. package/dist/schemas/repository-package-v2.schema.json +491 -0
  140. package/dist/schemas/repository-package-v3.schema.json +36 -0
  141. package/dist/schemas/repository-package.schema.json +94 -0
  142. package/dist/schemas/repository-release-manifest.schema.json +34 -0
  143. package/dist/schemas/repository-role-metadata.schema.json +82 -0
  144. package/dist/schemas/skill-preparation-pointer-v1.schema.json +28 -0
  145. package/dist/schemas/skill-preparation-v1.schema.json +32 -0
  146. package/dist/skillPollResponse.test.d.ts +2 -0
  147. package/dist/skillPollResponse.test.d.ts.map +1 -0
  148. package/dist/skillPollResponse.test.js +37 -0
  149. package/dist/skillPollResponse.test.js.map +1 -0
  150. package/dist/skillPreparation.test.d.ts +2 -0
  151. package/dist/skillPreparation.test.d.ts.map +1 -0
  152. package/dist/skillPreparation.test.js +163 -0
  153. package/dist/skillPreparation.test.js.map +1 -0
  154. package/dist/skillPreparationCache.d.ts +34 -0
  155. package/dist/skillPreparationCache.d.ts.map +1 -0
  156. package/dist/skillPreparationCache.js +371 -0
  157. package/dist/skillPreparationCache.js.map +1 -0
  158. package/dist/skillPreparationCache.test.d.ts +2 -0
  159. package/dist/skillPreparationCache.test.d.ts.map +1 -0
  160. package/dist/skillPreparationCache.test.js +316 -0
  161. package/dist/skillPreparationCache.test.js.map +1 -0
  162. package/dist/skillPreparationCaller.test.d.ts +2 -0
  163. package/dist/skillPreparationCaller.test.d.ts.map +1 -0
  164. package/dist/skillPreparationCaller.test.js +32 -0
  165. package/dist/skillPreparationCaller.test.js.map +1 -0
  166. package/dist/skillPreparationPump.d.ts +11 -0
  167. package/dist/skillPreparationPump.d.ts.map +1 -0
  168. package/dist/skillPreparationPump.js +41 -0
  169. package/dist/skillPreparationPump.js.map +1 -0
  170. package/dist/skillPreparationPump.test.d.ts +2 -0
  171. package/dist/skillPreparationPump.test.d.ts.map +1 -0
  172. package/dist/skillPreparationPump.test.js +87 -0
  173. package/dist/skillPreparationPump.test.js.map +1 -0
  174. package/dist/skillPreparationRecord.d.ts +2 -0
  175. package/dist/skillPreparationRecord.d.ts.map +1 -0
  176. package/dist/skillPreparationRecord.js +36 -0
  177. package/dist/skillPreparationRecord.js.map +1 -0
  178. package/dist/skillPreparationTransaction.d.ts +13 -0
  179. package/dist/skillPreparationTransaction.d.ts.map +1 -0
  180. package/dist/skillPreparationTransaction.js +236 -0
  181. package/dist/skillPreparationTransaction.js.map +1 -0
  182. package/dist/skillPreparationTransaction.test.d.ts +2 -0
  183. package/dist/skillPreparationTransaction.test.d.ts.map +1 -0
  184. package/dist/skillPreparationTransaction.test.js +181 -0
  185. package/dist/skillPreparationTransaction.test.js.map +1 -0
  186. package/dist/skillSyncPolicy.test.d.ts +2 -0
  187. package/dist/skillSyncPolicy.test.d.ts.map +1 -0
  188. package/dist/skillSyncPolicy.test.js +156 -0
  189. package/dist/skillSyncPolicy.test.js.map +1 -0
  190. package/dist/usage.d.ts +1 -1
  191. package/dist/usage.d.ts.map +1 -1
  192. package/dist/usage.js +1 -1
  193. package/dist/usage.js.map +1 -1
  194. package/dist/windowsProcessPortability.test.d.ts +2 -0
  195. package/dist/windowsProcessPortability.test.d.ts.map +1 -0
  196. package/dist/windowsProcessPortability.test.js +14 -0
  197. package/dist/windowsProcessPortability.test.js.map +1 -0
  198. package/package.json +7 -4
@@ -0,0 +1,491 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/repository-package/v2",
4
+ "title": "Governed Local Repository Package Manifest",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema",
9
+ "organizationId",
10
+ "workspaceId",
11
+ "snapshotId",
12
+ "snapshotHash",
13
+ "authority",
14
+ "roots",
15
+ "files",
16
+ "skills",
17
+ "exclusions",
18
+ "sourceAuthorization",
19
+ "sourceFingerprint",
20
+ "knowledge"
21
+ ],
22
+ "properties": {
23
+ "schema": {
24
+ "const": "dharma.repository-package/v2"
25
+ },
26
+ "organizationId": {
27
+ "$ref": "#/$defs/identity"
28
+ },
29
+ "workspaceId": {
30
+ "$ref": "#/$defs/identity"
31
+ },
32
+ "snapshotId": {
33
+ "type": "string",
34
+ "pattern": "^repository-package-[a-f0-9]{64}$"
35
+ },
36
+ "snapshotHash": {
37
+ "$ref": "#/$defs/hash"
38
+ },
39
+ "authority": {
40
+ "const": "local_inventory_not_signed"
41
+ },
42
+ "roots": {
43
+ "const": [
44
+ ".agents/skills",
45
+ ".claude/skills",
46
+ ".codex/skills",
47
+ "skills"
48
+ ]
49
+ },
50
+ "files": {
51
+ "type": "array",
52
+ "maxItems": 512,
53
+ "items": {
54
+ "type": "object",
55
+ "additionalProperties": false,
56
+ "required": [
57
+ "path",
58
+ "sha256",
59
+ "sizeBytes",
60
+ "role"
61
+ ],
62
+ "properties": {
63
+ "path": {
64
+ "$ref": "#/$defs/path"
65
+ },
66
+ "sha256": {
67
+ "$ref": "#/$defs/hash"
68
+ },
69
+ "managedPath": {
70
+ "$ref": "#/$defs/managedPath"
71
+ },
72
+ "sizeBytes": {
73
+ "type": "integer",
74
+ "minimum": 0,
75
+ "maximum": 262144
76
+ },
77
+ "role": {
78
+ "enum": [
79
+ "skill",
80
+ "dependency",
81
+ "approved_output",
82
+ "knowledge",
83
+ "repository_content"
84
+ ]
85
+ }
86
+ }
87
+ }
88
+ },
89
+ "skills": {
90
+ "type": "array",
91
+ "maxItems": 512,
92
+ "items": {
93
+ "type": "object",
94
+ "additionalProperties": false,
95
+ "required": [
96
+ "path",
97
+ "providerRoot",
98
+ "entryPath",
99
+ "contentHash",
100
+ "availability",
101
+ "filePaths",
102
+ "observation"
103
+ ],
104
+ "properties": {
105
+ "path": {
106
+ "$ref": "#/$defs/path"
107
+ },
108
+ "entryPath": {
109
+ "$ref": "#/$defs/path"
110
+ },
111
+ "managedPath": {
112
+ "$ref": "#/$defs/managedPath"
113
+ },
114
+ "providerRoot": {
115
+ "enum": [
116
+ ".agents/skills",
117
+ ".claude/skills",
118
+ ".codex/skills",
119
+ "skills"
120
+ ]
121
+ },
122
+ "contentHash": {
123
+ "$ref": "#/$defs/hash"
124
+ },
125
+ "availability": {
126
+ "enum": [
127
+ "available",
128
+ "partial",
129
+ "unavailable"
130
+ ]
131
+ },
132
+ "filePaths": {
133
+ "type": "array",
134
+ "maxItems": 512,
135
+ "uniqueItems": true,
136
+ "items": {
137
+ "$ref": "#/$defs/path"
138
+ }
139
+ },
140
+ "observation": {
141
+ "type": "object",
142
+ "additionalProperties": false,
143
+ "required": [
144
+ "state",
145
+ "authority",
146
+ "references"
147
+ ],
148
+ "properties": {
149
+ "state": {
150
+ "enum": [
151
+ "not_observed",
152
+ "reported_observed"
153
+ ]
154
+ },
155
+ "authority": {
156
+ "const": "caller_supplied_not_runtime_verified"
157
+ },
158
+ "references": {
159
+ "type": "array",
160
+ "maxItems": 256,
161
+ "uniqueItems": true,
162
+ "items": {
163
+ "$ref": "#/$defs/observation"
164
+ }
165
+ }
166
+ },
167
+ "allOf": [
168
+ {
169
+ "if": {
170
+ "properties": {
171
+ "state": {
172
+ "const": "not_observed"
173
+ }
174
+ }
175
+ },
176
+ "then": {
177
+ "properties": {
178
+ "references": {
179
+ "type": "array",
180
+ "maxItems": 0
181
+ }
182
+ }
183
+ }
184
+ },
185
+ {
186
+ "if": {
187
+ "properties": {
188
+ "state": {
189
+ "const": "reported_observed"
190
+ }
191
+ }
192
+ },
193
+ "then": {
194
+ "properties": {
195
+ "references": {
196
+ "type": "array",
197
+ "minItems": 1
198
+ }
199
+ }
200
+ }
201
+ }
202
+ ]
203
+ }
204
+ }
205
+ }
206
+ },
207
+ "knowledge": {
208
+ "type": "object",
209
+ "additionalProperties": false,
210
+ "required": [
211
+ "repositoryAgentId",
212
+ "knowledgeBaseId",
213
+ "catalogPath",
214
+ "catalogHash",
215
+ "authority",
216
+ "atlasAssociation"
217
+ ],
218
+ "properties": {
219
+ "repositoryAgentId": {
220
+ "$ref": "#/$defs/identity"
221
+ },
222
+ "knowledgeBaseId": {
223
+ "type": "string",
224
+ "pattern": "^repository-kb:sha256:[a-f0-9]{64}$"
225
+ },
226
+ "catalogPath": {
227
+ "const": ".agents/skills/dharma-agent-fabric/knowledge/CATALOG.json"
228
+ },
229
+ "catalogHash": {
230
+ "$ref": "#/$defs/hash"
231
+ },
232
+ "authority": {
233
+ "const": "locally_initialized_unsigned"
234
+ },
235
+ "atlasAssociation": {
236
+ "const": "local_scope_only"
237
+ }
238
+ }
239
+ },
240
+ "exclusions": {
241
+ "type": "array",
242
+ "maxItems": 4096,
243
+ "items": {
244
+ "type": "object",
245
+ "additionalProperties": false,
246
+ "required": [
247
+ "path",
248
+ "reason"
249
+ ],
250
+ "properties": {
251
+ "path": {
252
+ "$ref": "#/$defs/path"
253
+ },
254
+ "reason": {
255
+ "enum": [
256
+ "unsupported_path",
257
+ "excluded_path",
258
+ "symlink",
259
+ "not_regular_file",
260
+ "unavailable",
261
+ "missing_dependency",
262
+ "binary_content",
263
+ "secret_content",
264
+ "local_path_content",
265
+ "invalid_dependency",
266
+ "generated_dependency",
267
+ "unsupported_content_type",
268
+ "unauthorized_dependency"
269
+ ]
270
+ }
271
+ }
272
+ }
273
+ },
274
+ "sourceFingerprint": {
275
+ "$ref": "#/$defs/hash"
276
+ },
277
+ "sourceAuthorization": {
278
+ "type": "object",
279
+ "additionalProperties": false,
280
+ "required": [
281
+ "schema",
282
+ "organizationId",
283
+ "workspaceId",
284
+ "repositoryBindingId",
285
+ "repositoryAgentId",
286
+ "revision",
287
+ "generationId",
288
+ "receiptId",
289
+ "policyRevision",
290
+ "policyHash",
291
+ "confirmedAt",
292
+ "policy"
293
+ ],
294
+ "properties": {
295
+ "schema": {
296
+ "const": "dharma.repository-source-authorization/v1"
297
+ },
298
+ "organizationId": {
299
+ "$ref": "#/$defs/identity"
300
+ },
301
+ "workspaceId": {
302
+ "type": "string",
303
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
304
+ },
305
+ "repositoryBindingId": {
306
+ "type": "string",
307
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
308
+ },
309
+ "repositoryAgentId": {
310
+ "type": "string",
311
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
312
+ },
313
+ "revision": {
314
+ "type": "integer",
315
+ "minimum": 1,
316
+ "maximum": 2147483646
317
+ },
318
+ "generationId": {
319
+ "type": "string",
320
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
321
+ },
322
+ "receiptId": {
323
+ "type": "string",
324
+ "pattern": "^repo_consent_[0-9a-f-]{36}$"
325
+ },
326
+ "policyRevision": {
327
+ "type": "string",
328
+ "pattern": "^repository-source-[0-9a-f-]{36}$"
329
+ },
330
+ "policyHash": {
331
+ "$ref": "#/$defs/hash"
332
+ },
333
+ "confirmedAt": {
334
+ "type": "string",
335
+ "format": "date-time",
336
+ "maxLength": 40
337
+ },
338
+ "policy": {
339
+ "type": "object",
340
+ "additionalProperties": false,
341
+ "required": [
342
+ "action",
343
+ "confirmed",
344
+ "requestId",
345
+ "repositoryBindingId",
346
+ "expectedRevision",
347
+ "allowedContentClasses",
348
+ "approvedRepositoryPaths",
349
+ "approvedOutputFolders",
350
+ "automaticValidatedPublication",
351
+ "retentionDays",
352
+ "maximumFileBytes",
353
+ "maximumSnapshotBytes",
354
+ "maximumDailyUploadBytes",
355
+ "expiresAt"
356
+ ],
357
+ "properties": {
358
+ "action": {
359
+ "const": "authorize"
360
+ },
361
+ "confirmed": {
362
+ "const": true
363
+ },
364
+ "requestId": {
365
+ "type": "string",
366
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
367
+ },
368
+ "repositoryBindingId": {
369
+ "type": "string",
370
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
371
+ },
372
+ "expectedRevision": {
373
+ "type": "integer",
374
+ "minimum": 0,
375
+ "maximum": 2147483645
376
+ },
377
+ "allowedContentClasses": {
378
+ "const": [
379
+ "approved_outputs",
380
+ "repository_content",
381
+ "repository_skills"
382
+ ]
383
+ },
384
+ "approvedRepositoryPaths": {
385
+ "type": "array",
386
+ "minItems": 1,
387
+ "maxItems": 64,
388
+ "uniqueItems": true,
389
+ "items": {
390
+ "type": "string",
391
+ "minLength": 1,
392
+ "maxLength": 250
393
+ }
394
+ },
395
+ "approvedOutputFolders": {
396
+ "type": "array",
397
+ "maxItems": 32,
398
+ "uniqueItems": true,
399
+ "items": {
400
+ "type": "string",
401
+ "minLength": 1,
402
+ "maxLength": 250
403
+ }
404
+ },
405
+ "automaticValidatedPublication": {
406
+ "const": true
407
+ },
408
+ "retentionDays": {
409
+ "type": "integer",
410
+ "minimum": 1,
411
+ "maximum": 365
412
+ },
413
+ "maximumFileBytes": {
414
+ "type": "integer",
415
+ "minimum": 1,
416
+ "maximum": 262144
417
+ },
418
+ "maximumSnapshotBytes": {
419
+ "type": "integer",
420
+ "minimum": 1,
421
+ "maximum": 4194304
422
+ },
423
+ "maximumDailyUploadBytes": {
424
+ "type": "integer",
425
+ "minimum": 1,
426
+ "maximum": 1073741824
427
+ },
428
+ "expiresAt": {
429
+ "anyOf": [
430
+ {
431
+ "type": "null"
432
+ },
433
+ {
434
+ "type": "string",
435
+ "format": "date-time",
436
+ "maxLength": 40
437
+ }
438
+ ]
439
+ }
440
+ }
441
+ }
442
+ }
443
+ }
444
+ },
445
+ "$defs": {
446
+ "identity": {
447
+ "type": "string",
448
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$"
449
+ },
450
+ "hash": {
451
+ "type": "string",
452
+ "pattern": "^sha256:[a-f0-9]{64}$"
453
+ },
454
+ "managedPath": {
455
+ "type": "string",
456
+ "minLength": 15,
457
+ "maxLength": 500,
458
+ "pattern": "^skills/source/(?!.*(?:^|/)[.]{1,2}(?:/|$))[A-Za-z0-9._ -]+(?:/[A-Za-z0-9._ -]+)*$"
459
+ },
460
+ "path": {
461
+ "type": "string",
462
+ "minLength": 1,
463
+ "maxLength": 500,
464
+ "pattern": "^(?!.*(?:^|/)[.]{1,2}(?:/|$))[A-Za-z0-9._ -]+(?:/[A-Za-z0-9._ -]+)*$"
465
+ },
466
+ "observation": {
467
+ "type": "object",
468
+ "additionalProperties": false,
469
+ "required": [
470
+ "skillPath",
471
+ "skillHash",
472
+ "sourcePath",
473
+ "sourceHash"
474
+ ],
475
+ "properties": {
476
+ "skillPath": {
477
+ "$ref": "#/$defs/path"
478
+ },
479
+ "skillHash": {
480
+ "$ref": "#/$defs/hash"
481
+ },
482
+ "sourcePath": {
483
+ "$ref": "#/$defs/path"
484
+ },
485
+ "sourceHash": {
486
+ "$ref": "#/$defs/hash"
487
+ }
488
+ }
489
+ }
490
+ }
491
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/repository-package/v3",
4
+ "title": "Governed source inventory with unverified prior-release retention",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schema", "organizationId", "workspaceId", "snapshotId", "snapshotHash", "authority", "roots", "files", "skills", "exclusions", "sourceAuthorization", "sourceFingerprint", "knowledge"],
8
+ "properties": {
9
+ "schema": { "const": "dharma.repository-package/v3" },
10
+ "organizationId": { "$ref": "https://schemas.dharma-ai.io/repository-package/v2#/properties/organizationId" },
11
+ "workspaceId": { "$ref": "https://schemas.dharma-ai.io/repository-package/v2#/properties/workspaceId" },
12
+ "snapshotId": { "$ref": "https://schemas.dharma-ai.io/repository-package/v2#/properties/snapshotId" },
13
+ "snapshotHash": { "$ref": "https://schemas.dharma-ai.io/repository-package/v2#/properties/snapshotHash" },
14
+ "authority": { "const": "local_inventory_not_signed" },
15
+ "roots": { "$ref": "https://schemas.dharma-ai.io/repository-package/v2#/properties/roots" },
16
+ "files": { "$ref": "https://schemas.dharma-ai.io/repository-package/v2#/properties/files" },
17
+ "skills": { "$ref": "https://schemas.dharma-ai.io/repository-package/v2#/properties/skills" },
18
+ "exclusions": { "$ref": "https://schemas.dharma-ai.io/repository-package/v2#/properties/exclusions" },
19
+ "sourceAuthorization": { "$ref": "https://schemas.dharma-ai.io/repository-package/v2#/properties/sourceAuthorization" },
20
+ "sourceFingerprint": { "$ref": "https://schemas.dharma-ai.io/repository-package/v2#/properties/sourceFingerprint" },
21
+ "knowledge": {
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "required": ["repositoryAgentId", "knowledgeBaseId", "catalogPath", "catalogHash", "authority", "atlasAssociation", "priorRelease"],
25
+ "properties": {
26
+ "repositoryAgentId": { "$ref": "https://schemas.dharma-ai.io/repository-knowledge-retention/v1#/properties/repositoryAgentId" },
27
+ "knowledgeBaseId": { "$ref": "https://schemas.dharma-ai.io/repository-package/v2#/properties/knowledge/properties/knowledgeBaseId" },
28
+ "catalogPath": { "const": ".agents/skills/dharma-agent-fabric/knowledge/CATALOG.json" },
29
+ "catalogHash": { "$ref": "https://schemas.dharma-ai.io/repository-knowledge-retention/v1#/properties/catalogHash" },
30
+ "authority": { "const": "unverified_prior_release_reference" },
31
+ "atlasAssociation": { "const": "requires_verified_release" },
32
+ "priorRelease": { "$ref": "https://schemas.dharma-ai.io/repository-knowledge-retention/v1" }
33
+ }
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,94 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/repository-package/v1",
4
+ "title": "Local Repository Package Manifest",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schema", "organizationId", "workspaceId", "snapshotId", "snapshotHash", "authority", "roots", "files", "skills", "exclusions"],
8
+ "properties": {
9
+ "schema": { "const": "dharma.repository-package/v1" },
10
+ "organizationId": { "$ref": "#/$defs/identity" },
11
+ "workspaceId": { "$ref": "#/$defs/identity" },
12
+ "snapshotId": { "type": "string", "pattern": "^repository-package-[a-f0-9]{64}$" },
13
+ "snapshotHash": { "$ref": "#/$defs/hash" },
14
+ "authority": { "const": "local_inventory_not_signed" },
15
+ "roots": { "const": [".agents/skills", ".claude/skills", ".codex/skills", "skills"] },
16
+ "files": {
17
+ "type": "array", "maxItems": 512,
18
+ "items": {
19
+ "type": "object", "additionalProperties": false,
20
+ "required": ["path", "sha256", "sizeBytes", "role"],
21
+ "properties": {
22
+ "path": { "$ref": "#/$defs/path" }, "sha256": { "$ref": "#/$defs/hash" },
23
+ "managedPath": { "$ref": "#/$defs/managedPath" },
24
+ "sizeBytes": { "type": "integer", "minimum": 0, "maximum": 262144 },
25
+ "role": { "enum": ["skill", "dependency", "approved_output", "knowledge"] }
26
+ }
27
+ }
28
+ },
29
+ "skills": {
30
+ "type": "array", "maxItems": 512,
31
+ "items": {
32
+ "type": "object", "additionalProperties": false,
33
+ "required": ["path", "providerRoot", "entryPath", "contentHash", "availability", "filePaths", "observation"],
34
+ "properties": {
35
+ "path": { "$ref": "#/$defs/path" }, "entryPath": { "$ref": "#/$defs/path" },
36
+ "managedPath": { "$ref": "#/$defs/managedPath" },
37
+ "providerRoot": { "enum": [".agents/skills", ".claude/skills", ".codex/skills", "skills"] },
38
+ "contentHash": { "$ref": "#/$defs/hash" },
39
+ "availability": { "enum": ["available", "partial", "unavailable"] },
40
+ "filePaths": { "type": "array", "maxItems": 512, "uniqueItems": true, "items": { "$ref": "#/$defs/path" } },
41
+ "observation": {
42
+ "type": "object", "additionalProperties": false,
43
+ "required": ["state", "authority", "references"],
44
+ "properties": {
45
+ "state": { "enum": ["not_observed", "reported_observed"] },
46
+ "authority": { "const": "caller_supplied_not_runtime_verified" },
47
+ "references": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "$ref": "#/$defs/observation" } }
48
+ },
49
+ "allOf": [
50
+ { "if": { "properties": { "state": { "const": "not_observed" } } }, "then": { "properties": { "references": { "type": "array", "maxItems": 0 } } } },
51
+ { "if": { "properties": { "state": { "const": "reported_observed" } } }, "then": { "properties": { "references": { "type": "array", "minItems": 1 } } } }
52
+ ]
53
+ }
54
+ }
55
+ }
56
+ },
57
+ "knowledge": {
58
+ "type": "object", "additionalProperties": false,
59
+ "required": ["repositoryAgentId", "knowledgeBaseId", "catalogPath", "catalogHash", "authority", "atlasAssociation"],
60
+ "properties": {
61
+ "repositoryAgentId": { "$ref": "#/$defs/identity" },
62
+ "knowledgeBaseId": { "type": "string", "pattern": "^repository-kb:sha256:[a-f0-9]{64}$" },
63
+ "catalogPath": { "const": ".agents/skills/dharma-agent-fabric/knowledge/CATALOG.json" },
64
+ "catalogHash": { "$ref": "#/$defs/hash" },
65
+ "authority": { "const": "locally_initialized_unsigned" },
66
+ "atlasAssociation": { "const": "local_scope_only" }
67
+ }
68
+ },
69
+ "exclusions": {
70
+ "type": "array", "maxItems": 4096,
71
+ "items": {
72
+ "type": "object", "additionalProperties": false, "required": ["path", "reason"],
73
+ "properties": {
74
+ "path": { "$ref": "#/$defs/path" },
75
+ "reason": { "enum": ["unsupported_path", "excluded_path", "symlink", "not_regular_file", "unavailable", "missing_dependency", "binary_content", "secret_content", "local_path_content", "invalid_dependency", "generated_dependency"] }
76
+ }
77
+ }
78
+ }
79
+ },
80
+ "$defs": {
81
+ "identity": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$" },
82
+ "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
83
+ "managedPath": { "type": "string", "minLength": 15, "maxLength": 500, "pattern": "^skills/source/(?!.*(?:^|/)[.]{1,2}(?:/|$))[A-Za-z0-9._ -]+(?:/[A-Za-z0-9._ -]+)*$" },
84
+ "path": { "type": "string", "minLength": 1, "maxLength": 500, "pattern": "^(?!.*(?:^|/)[.]{1,2}(?:/|$))[A-Za-z0-9._ -]+(?:/[A-Za-z0-9._ -]+)*$" },
85
+ "observation": {
86
+ "type": "object", "additionalProperties": false,
87
+ "required": ["skillPath", "skillHash", "sourcePath", "sourceHash"],
88
+ "properties": {
89
+ "skillPath": { "$ref": "#/$defs/path" }, "skillHash": { "$ref": "#/$defs/hash" },
90
+ "sourcePath": { "$ref": "#/$defs/path" }, "sourceHash": { "$ref": "#/$defs/hash" }
91
+ }
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/repository-release-manifest/v1",
4
+ "title": "Complete repository release inventory requiring verification",
5
+ "type": "object", "additionalProperties": false,
6
+ "required": ["schema", "organizationId", "repositoryAgentId", "generation", "authority", "sourceManifestHash", "sourceSnapshotHash", "policyHash", "knowledgeBaseId", "atlasAssociationId", "sourceSkills", "files"],
7
+ "properties": {
8
+ "schema": { "const": "dharma.repository-release-manifest/v1" },
9
+ "organizationId": { "type": "string", "pattern": "^org_[A-Za-z0-9_]{1,156}$(?![\\s\\S])" },
10
+ "repositoryAgentId": { "type": "string", "format": "uuid" },
11
+ "generation": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 },
12
+ "authority": { "const": "requires_verified_release" },
13
+ "sourceManifestHash": { "$ref": "#/$defs/hash" },
14
+ "sourceSnapshotHash": { "$ref": "#/$defs/hash" },
15
+ "policyHash": { "$ref": "#/$defs/hash" },
16
+ "knowledgeBaseId": { "type": "string", "pattern": "^repository-kb:sha256:[a-f0-9]{64}$(?![\\s\\S])" },
17
+ "atlasAssociationId": { "type": "string", "format": "uuid" },
18
+ "sourceSkills": { "type": "array", "maxItems": 256, "description": "Preserved source inventory JSON, not proof of observed native-agent use.", "items": {} },
19
+ "files": {
20
+ "type": "array", "minItems": 3, "maxItems": 515,
21
+ "items": {
22
+ "type": "object", "additionalProperties": false,
23
+ "required": ["path", "sha256", "sizeBytes", "role"],
24
+ "properties": {
25
+ "path": { "type": "string", "minLength": 1, "maxLength": 500 },
26
+ "sha256": { "$ref": "#/$defs/hash" },
27
+ "sizeBytes": { "type": "integer", "minimum": 0, "maximum": 262144 },
28
+ "role": { "enum": ["skill", "dependency", "onboarding_prompt", "knowledge"] }
29
+ }
30
+ }
31
+ }
32
+ },
33
+ "$defs": { "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$(?![\\s\\S])" } }
34
+ }