@dharma-ai-labs/agent-fabric 0.1.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.
@@ -0,0 +1,98 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/judge-result/v1",
4
+ "title": "Semantic Judge Result",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema",
9
+ "judgeResultId",
10
+ "judgeRequestId",
11
+ "status",
12
+ "output",
13
+ "confidence",
14
+ "usage",
15
+ "actualCostCents",
16
+ "createdAt",
17
+ "resultHash"
18
+ ],
19
+ "properties": {
20
+ "schema": {
21
+ "const": "dharma.judge-result/v1"
22
+ },
23
+ "judgeResultId": {
24
+ "type": "string",
25
+ "format": "uuid"
26
+ },
27
+ "judgeRequestId": {
28
+ "type": "string",
29
+ "format": "uuid"
30
+ },
31
+ "status": {
32
+ "type": "string",
33
+ "enum": [
34
+ "completed",
35
+ "failed",
36
+ "blocked"
37
+ ]
38
+ },
39
+ "output": {
40
+ "type": "object"
41
+ },
42
+ "confidence": {
43
+ "type": "string",
44
+ "enum": [
45
+ "low",
46
+ "medium",
47
+ "high",
48
+ "not_available"
49
+ ]
50
+ },
51
+ "usage": {
52
+ "type": "object",
53
+ "additionalProperties": false,
54
+ "properties": {
55
+ "inputTokens": {
56
+ "type": [
57
+ "integer",
58
+ "null"
59
+ ],
60
+ "minimum": 0
61
+ },
62
+ "outputTokens": {
63
+ "type": [
64
+ "integer",
65
+ "null"
66
+ ],
67
+ "minimum": 0
68
+ },
69
+ "cachedTokens": {
70
+ "type": [
71
+ "integer",
72
+ "null"
73
+ ],
74
+ "minimum": 0
75
+ },
76
+ "reasoningTokens": {
77
+ "type": [
78
+ "integer",
79
+ "null"
80
+ ],
81
+ "minimum": 0
82
+ }
83
+ }
84
+ },
85
+ "actualCostCents": {
86
+ "type": "integer",
87
+ "minimum": 0
88
+ },
89
+ "createdAt": {
90
+ "type": "string",
91
+ "format": "date-time"
92
+ },
93
+ "resultHash": {
94
+ "type": "string",
95
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
96
+ }
97
+ }
98
+ }
@@ -0,0 +1,158 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/organization-policy/v1",
4
+ "title": "Agent Fabric Organization Policy",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema",
9
+ "organizationId",
10
+ "revision",
11
+ "evidence",
12
+ "tasks",
13
+ "skills",
14
+ "retention",
15
+ "budgets"
16
+ ],
17
+ "properties": {
18
+ "schema": {
19
+ "const": "dharma.organization-policy/v1"
20
+ },
21
+ "organizationId": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "revision": {
26
+ "type": "string"
27
+ },
28
+ "evidence": {
29
+ "type": "object",
30
+ "additionalProperties": false,
31
+ "required": [
32
+ "defaultMode",
33
+ "registeredWorkspaceOnly",
34
+ "excludePaths",
35
+ "maximumCapsuleBytes",
36
+ "maximumDailyUploadBytes",
37
+ "maximumExpansionBytes"
38
+ ],
39
+ "properties": {
40
+ "defaultMode": {
41
+ "type": "string",
42
+ "enum": [
43
+ "structured",
44
+ "deep",
45
+ "reduced_full_session",
46
+ "incident_capture"
47
+ ]
48
+ },
49
+ "registeredWorkspaceOnly": {
50
+ "const": true
51
+ },
52
+ "excludePaths": {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "string"
56
+ }
57
+ },
58
+ "maximumCapsuleBytes": {
59
+ "type": "integer",
60
+ "minimum": 1,
61
+ "maximum": 1048576
62
+ },
63
+ "maximumDailyUploadBytes": {
64
+ "type": "integer",
65
+ "minimum": 1
66
+ },
67
+ "maximumExpansionBytes": {
68
+ "type": "integer",
69
+ "minimum": 1
70
+ },
71
+ "pseudonymizeIdentity": {
72
+ "type": "boolean"
73
+ }
74
+ }
75
+ },
76
+ "tasks": {
77
+ "type": "object",
78
+ "additionalProperties": false,
79
+ "required": [
80
+ "defaultNetwork",
81
+ "defaultGit",
82
+ "allowedCommands",
83
+ "writePaths",
84
+ "requireLocalConfirmationFor"
85
+ ],
86
+ "properties": {
87
+ "defaultNetwork": {
88
+ "type": "string",
89
+ "enum": [
90
+ "deny",
91
+ "package_registry_only",
92
+ "allowlisted_domains",
93
+ "inherit_local_provider"
94
+ ]
95
+ },
96
+ "defaultGit": {
97
+ "type": "string",
98
+ "enum": [
99
+ "read_only",
100
+ "task_branch",
101
+ "merge_allowed",
102
+ "deploy_allowed"
103
+ ]
104
+ },
105
+ "allowedCommands": {
106
+ "type": "object"
107
+ },
108
+ "writePaths": {
109
+ "type": "array",
110
+ "items": {
111
+ "type": "string"
112
+ }
113
+ },
114
+ "requireLocalConfirmationFor": {
115
+ "type": "array",
116
+ "items": {
117
+ "type": "string"
118
+ }
119
+ }
120
+ }
121
+ },
122
+ "skills": {
123
+ "type": "object",
124
+ "additionalProperties": false,
125
+ "required": [
126
+ "automaticInstall",
127
+ "automaticPromotionMaxRisk",
128
+ "canaryPercent"
129
+ ],
130
+ "properties": {
131
+ "automaticInstall": {
132
+ "type": "boolean"
133
+ },
134
+ "automaticPromotionMaxRisk": {
135
+ "type": "string",
136
+ "enum": [
137
+ "R0",
138
+ "R1",
139
+ "R2",
140
+ "R3",
141
+ "R4"
142
+ ]
143
+ },
144
+ "canaryPercent": {
145
+ "type": "integer",
146
+ "minimum": 1,
147
+ "maximum": 100
148
+ }
149
+ }
150
+ },
151
+ "retention": {
152
+ "type": "object"
153
+ },
154
+ "budgets": {
155
+ "type": "object"
156
+ }
157
+ }
158
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/protocol-envelope/v1",
4
+ "title": "Relay Protocol Envelope",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema",
9
+ "messageId",
10
+ "organizationId",
11
+ "deviceId",
12
+ "sessionId",
13
+ "sentAt",
14
+ "expiresAt",
15
+ "sequence",
16
+ "nonce",
17
+ "type",
18
+ "payload",
19
+ "signature"
20
+ ],
21
+ "properties": {
22
+ "schema": {
23
+ "const": "dharma.protocol-envelope/v1"
24
+ },
25
+ "messageId": {
26
+ "type": "string",
27
+ "format": "uuid"
28
+ },
29
+ "organizationId": {
30
+ "type": "string",
31
+ "minLength": 1
32
+ },
33
+ "deviceId": {
34
+ "type": "string",
35
+ "minLength": 1
36
+ },
37
+ "sessionId": {
38
+ "type": "string",
39
+ "minLength": 1
40
+ },
41
+ "sentAt": {
42
+ "type": "string",
43
+ "format": "date-time"
44
+ },
45
+ "expiresAt": {
46
+ "type": "string",
47
+ "format": "date-time"
48
+ },
49
+ "sequence": {
50
+ "type": "integer",
51
+ "minimum": 0
52
+ },
53
+ "nonce": {
54
+ "type": "string",
55
+ "minLength": 1
56
+ },
57
+ "type": {
58
+ "type": "string"
59
+ },
60
+ "payload": {
61
+ "type": "object"
62
+ },
63
+ "signature": {
64
+ "type": "string",
65
+ "minLength": 1
66
+ }
67
+ }
68
+ }
@@ -0,0 +1,108 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/remediation-package/v1",
4
+ "title": "Dharma Remediation Package Manifest",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema",
9
+ "packageId",
10
+ "organizationId",
11
+ "failureFamilyId",
12
+ "remediationId",
13
+ "artifacts",
14
+ "evidenceBoundary",
15
+ "createdAt",
16
+ "packageHash"
17
+ ],
18
+ "properties": {
19
+ "schema": {
20
+ "const": "dharma.remediation-package/v1"
21
+ },
22
+ "packageId": {
23
+ "type": "string",
24
+ "format": "uuid"
25
+ },
26
+ "organizationId": {
27
+ "type": "string",
28
+ "minLength": 1
29
+ },
30
+ "failureFamilyId": {
31
+ "type": "string",
32
+ "minLength": 1
33
+ },
34
+ "remediationId": {
35
+ "type": "string",
36
+ "minLength": 1
37
+ },
38
+ "artifacts": {
39
+ "type": "array",
40
+ "minItems": 1,
41
+ "items": {
42
+ "type": "object",
43
+ "additionalProperties": false,
44
+ "required": [
45
+ "name",
46
+ "kind",
47
+ "contentHash",
48
+ "path"
49
+ ],
50
+ "properties": {
51
+ "name": {
52
+ "type": "string"
53
+ },
54
+ "kind": {
55
+ "type": "string"
56
+ },
57
+ "contentHash": {
58
+ "type": "string",
59
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
60
+ },
61
+ "path": {
62
+ "type": "string"
63
+ }
64
+ }
65
+ }
66
+ },
67
+ "evidenceBoundary": {
68
+ "type": "object",
69
+ "additionalProperties": false,
70
+ "required": [
71
+ "productionStatus",
72
+ "limitations"
73
+ ],
74
+ "properties": {
75
+ "productionStatus": {
76
+ "type": "string",
77
+ "enum": [
78
+ "synthetic",
79
+ "staged",
80
+ "production_path",
81
+ "customer_observed",
82
+ "production_verified"
83
+ ]
84
+ },
85
+ "limitations": {
86
+ "type": "array",
87
+ "items": {
88
+ "type": "string"
89
+ }
90
+ }
91
+ }
92
+ },
93
+ "createdAt": {
94
+ "type": "string",
95
+ "format": "date-time"
96
+ },
97
+ "packageHash": {
98
+ "type": "string",
99
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
100
+ },
101
+ "signature": {
102
+ "type": [
103
+ "string",
104
+ "null"
105
+ ]
106
+ }
107
+ }
108
+ }
@@ -0,0 +1,163 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/skill-bundle/v1",
4
+ "title": "Signed Organization Skill Bundle",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema",
9
+ "bundleId",
10
+ "organizationId",
11
+ "version",
12
+ "operation",
13
+ "skills",
14
+ "riskClass",
15
+ "targetSelectors",
16
+ "activationPolicy",
17
+ "rollbackBundleId",
18
+ "evaluationReceiptId",
19
+ "bundleHash",
20
+ "createdAt",
21
+ "signature"
22
+ ],
23
+ "properties": {
24
+ "schema": {
25
+ "const": "dharma.skill-bundle/v1"
26
+ },
27
+ "bundleId": {
28
+ "type": "string",
29
+ "format": "uuid"
30
+ },
31
+ "organizationId": {
32
+ "type": "string",
33
+ "minLength": 1
34
+ },
35
+ "version": {
36
+ "type": "string"
37
+ },
38
+ "operation": {
39
+ "type": "string",
40
+ "enum": [
41
+ "install",
42
+ "clear"
43
+ ]
44
+ },
45
+ "skills": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "object",
49
+ "additionalProperties": false,
50
+ "required": [
51
+ "skillId",
52
+ "version",
53
+ "repository",
54
+ "commit",
55
+ "contentHash",
56
+ "path"
57
+ ],
58
+ "properties": {
59
+ "skillId": {
60
+ "type": "string",
61
+ "minLength": 1
62
+ },
63
+ "version": {
64
+ "type": "string"
65
+ },
66
+ "repository": {
67
+ "type": "string",
68
+ "pattern": "^https://github\\.com/[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+(?:\\.git)?$"
69
+ },
70
+ "commit": {
71
+ "type": "string"
72
+ },
73
+ "contentHash": {
74
+ "type": "string",
75
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
76
+ },
77
+ "path": {
78
+ "type": "string"
79
+ }
80
+ }
81
+ }
82
+ },
83
+ "riskClass": {
84
+ "type": "string",
85
+ "enum": [
86
+ "R0",
87
+ "R1",
88
+ "R2",
89
+ "R3",
90
+ "R4"
91
+ ]
92
+ },
93
+ "targetSelectors": {
94
+ "type": "object"
95
+ },
96
+ "activationPolicy": {
97
+ "type": "string",
98
+ "enum": [
99
+ "next_task",
100
+ "next_session",
101
+ "host_restart",
102
+ "immediate_safe_reload"
103
+ ]
104
+ },
105
+ "rollbackBundleId": {
106
+ "type": [
107
+ "string",
108
+ "null"
109
+ ],
110
+ "format": "uuid"
111
+ },
112
+ "evaluationReceiptId": {
113
+ "type": "string",
114
+ "minLength": 1
115
+ },
116
+ "bundleHash": {
117
+ "type": "string",
118
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
119
+ },
120
+ "createdAt": {
121
+ "type": "string",
122
+ "format": "date-time"
123
+ },
124
+ "expiresAt": {
125
+ "type": [
126
+ "string",
127
+ "null"
128
+ ],
129
+ "format": "date-time"
130
+ },
131
+ "signature": {
132
+ "type": "string",
133
+ "minLength": 1
134
+ }
135
+ },
136
+ "allOf": [
137
+ {
138
+ "if": {
139
+ "properties": {
140
+ "operation": {
141
+ "const": "clear"
142
+ }
143
+ }
144
+ },
145
+ "then": {
146
+ "properties": {
147
+ "skills": {
148
+ "type": "array",
149
+ "maxItems": 0
150
+ }
151
+ }
152
+ },
153
+ "else": {
154
+ "properties": {
155
+ "skills": {
156
+ "type": "array",
157
+ "minItems": 1
158
+ }
159
+ }
160
+ }
161
+ }
162
+ ]
163
+ }
@@ -0,0 +1,112 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/skill-manifest/v1",
4
+ "title": "Organization Skill Manifest",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema",
9
+ "skillId",
10
+ "organizationId",
11
+ "name",
12
+ "version",
13
+ "sourceCommit",
14
+ "contentHash",
15
+ "riskClass",
16
+ "providers",
17
+ "operatingSystems",
18
+ "installTargets",
19
+ "activationMode",
20
+ "permissions",
21
+ "evaluationSuite",
22
+ "rollbackVersion"
23
+ ],
24
+ "properties": {
25
+ "schema": {
26
+ "const": "dharma.skill-manifest/v1"
27
+ },
28
+ "skillId": {
29
+ "type": "string",
30
+ "minLength": 1
31
+ },
32
+ "organizationId": {
33
+ "type": "string",
34
+ "minLength": 1
35
+ },
36
+ "name": {
37
+ "type": "string",
38
+ "minLength": 1
39
+ },
40
+ "version": {
41
+ "type": "string",
42
+ "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"
43
+ },
44
+ "sourceCommit": {
45
+ "type": "string",
46
+ "pattern": "^[A-Fa-f0-9]{7,64}$"
47
+ },
48
+ "contentHash": {
49
+ "type": "string",
50
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
51
+ },
52
+ "riskClass": {
53
+ "type": "string",
54
+ "enum": [
55
+ "R0",
56
+ "R1",
57
+ "R2",
58
+ "R3",
59
+ "R4"
60
+ ]
61
+ },
62
+ "providers": {
63
+ "type": "array",
64
+ "items": {
65
+ "type": "string"
66
+ },
67
+ "minItems": 1
68
+ },
69
+ "operatingSystems": {
70
+ "type": "array",
71
+ "items": {
72
+ "type": "string",
73
+ "enum": [
74
+ "windows",
75
+ "wsl",
76
+ "macos",
77
+ "linux"
78
+ ]
79
+ }
80
+ },
81
+ "installTargets": {
82
+ "type": "array",
83
+ "items": {
84
+ "type": "object"
85
+ }
86
+ },
87
+ "activationMode": {
88
+ "type": "string",
89
+ "enum": [
90
+ "next_task",
91
+ "next_session",
92
+ "host_restart",
93
+ "immediate_safe_reload"
94
+ ]
95
+ },
96
+ "permissions": {
97
+ "type": "object"
98
+ },
99
+ "evaluationSuite": {
100
+ "type": "string"
101
+ },
102
+ "rollbackVersion": {
103
+ "type": [
104
+ "string",
105
+ "null"
106
+ ]
107
+ },
108
+ "provenance": {
109
+ "type": "object"
110
+ }
111
+ }
112
+ }