@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,145 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/device-capabilities/v1",
4
+ "title": "Device Capabilities",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema",
9
+ "deviceId",
10
+ "organizationId",
11
+ "platform",
12
+ "environmentKind",
13
+ "relayVersion",
14
+ "providers",
15
+ "workspaces",
16
+ "observedAt"
17
+ ],
18
+ "properties": {
19
+ "schema": {
20
+ "const": "dharma.device-capabilities/v1"
21
+ },
22
+ "deviceId": {
23
+ "type": "string",
24
+ "minLength": 1
25
+ },
26
+ "organizationId": {
27
+ "type": "string",
28
+ "minLength": 1
29
+ },
30
+ "platform": {
31
+ "type": "string",
32
+ "enum": [
33
+ "windows",
34
+ "wsl",
35
+ "macos",
36
+ "linux"
37
+ ]
38
+ },
39
+ "environmentKind": {
40
+ "type": "string"
41
+ },
42
+ "relayVersion": {
43
+ "type": "string"
44
+ },
45
+ "providers": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "object",
49
+ "additionalProperties": false,
50
+ "required": [
51
+ "provider",
52
+ "version",
53
+ "evidence",
54
+ "configuredAssets",
55
+ "taskExecution",
56
+ "sessionContinuation",
57
+ "skillInstall",
58
+ "activation",
59
+ "usageEvidence"
60
+ ],
61
+ "properties": {
62
+ "provider": {
63
+ "type": "string"
64
+ },
65
+ "version": {
66
+ "type": [
67
+ "string",
68
+ "null"
69
+ ]
70
+ },
71
+ "evidence": {
72
+ "type": "string",
73
+ "enum": [
74
+ "available",
75
+ "partial",
76
+ "unavailable"
77
+ ]
78
+ },
79
+ "configuredAssets": {
80
+ "type": "string",
81
+ "enum": [
82
+ "available",
83
+ "partial",
84
+ "unavailable"
85
+ ]
86
+ },
87
+ "taskExecution": {
88
+ "type": "string",
89
+ "enum": [
90
+ "available",
91
+ "partial",
92
+ "unavailable"
93
+ ]
94
+ },
95
+ "sessionContinuation": {
96
+ "type": "string",
97
+ "enum": [
98
+ "available",
99
+ "partial",
100
+ "unavailable"
101
+ ]
102
+ },
103
+ "skillInstall": {
104
+ "type": "string",
105
+ "enum": [
106
+ "available",
107
+ "partial",
108
+ "unavailable"
109
+ ]
110
+ },
111
+ "activation": {
112
+ "type": "string",
113
+ "enum": [
114
+ "next_task",
115
+ "next_session",
116
+ "host_restart",
117
+ "immediate_safe_reload",
118
+ "unavailable"
119
+ ]
120
+ },
121
+ "usageEvidence": {
122
+ "type": "string",
123
+ "enum": [
124
+ "available",
125
+ "partial",
126
+ "unavailable"
127
+ ]
128
+ }
129
+ }
130
+ }
131
+ },
132
+ "workspaces": {
133
+ "type": "array",
134
+ "items": {
135
+ "type": "string",
136
+ "minLength": 1
137
+ },
138
+ "uniqueItems": true
139
+ },
140
+ "observedAt": {
141
+ "type": "string",
142
+ "format": "date-time"
143
+ }
144
+ }
145
+ }
@@ -0,0 +1,129 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/evidence-request/v1",
4
+ "title": "Evidence Request",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema",
9
+ "requestId",
10
+ "organizationId",
11
+ "deviceId",
12
+ "workspaceId",
13
+ "trajectoryId",
14
+ "purpose",
15
+ "selectors",
16
+ "maximumBytes",
17
+ "retentionClass",
18
+ "requestedBy",
19
+ "authorityDecisionId",
20
+ "createdAt",
21
+ "expiresAt",
22
+ "nonce"
23
+ ],
24
+ "properties": {
25
+ "schema": {
26
+ "const": "dharma.evidence-request/v1"
27
+ },
28
+ "requestId": {
29
+ "type": "string",
30
+ "format": "uuid"
31
+ },
32
+ "organizationId": {
33
+ "type": "string",
34
+ "minLength": 1
35
+ },
36
+ "deviceId": {
37
+ "type": "string",
38
+ "minLength": 1
39
+ },
40
+ "workspaceId": {
41
+ "type": "string",
42
+ "minLength": 1
43
+ },
44
+ "trajectoryId": {
45
+ "type": "string",
46
+ "format": "uuid"
47
+ },
48
+ "purpose": {
49
+ "type": "string",
50
+ "enum": [
51
+ "evaluation",
52
+ "remediation_validation",
53
+ "incident_response",
54
+ "customer_review",
55
+ "support"
56
+ ]
57
+ },
58
+ "selectors": {
59
+ "type": "array",
60
+ "minItems": 1,
61
+ "items": {
62
+ "type": "object",
63
+ "additionalProperties": false,
64
+ "required": [
65
+ "contentId"
66
+ ],
67
+ "properties": {
68
+ "contentId": {
69
+ "type": "string",
70
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
71
+ },
72
+ "range": {
73
+ "type": [
74
+ "object",
75
+ "null"
76
+ ],
77
+ "additionalProperties": false,
78
+ "properties": {
79
+ "start": {
80
+ "type": "integer",
81
+ "minimum": 0
82
+ },
83
+ "end": {
84
+ "type": "integer",
85
+ "minimum": 0
86
+ }
87
+ }
88
+ },
89
+ "reason": {
90
+ "type": "string"
91
+ }
92
+ }
93
+ }
94
+ },
95
+ "maximumBytes": {
96
+ "type": "integer",
97
+ "minimum": 1
98
+ },
99
+ "retentionClass": {
100
+ "type": "string"
101
+ },
102
+ "requestedBy": {
103
+ "type": "string",
104
+ "minLength": 1
105
+ },
106
+ "authorityDecisionId": {
107
+ "type": "string",
108
+ "minLength": 1
109
+ },
110
+ "createdAt": {
111
+ "type": "string",
112
+ "format": "date-time"
113
+ },
114
+ "expiresAt": {
115
+ "type": "string",
116
+ "format": "date-time"
117
+ },
118
+ "nonce": {
119
+ "type": "string",
120
+ "minLength": 1
121
+ },
122
+ "signature": {
123
+ "type": [
124
+ "string",
125
+ "null"
126
+ ]
127
+ }
128
+ }
129
+ }
@@ -0,0 +1,124 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/evidence-response/v1",
4
+ "title": "Evidence Response",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema",
9
+ "responseId",
10
+ "requestId",
11
+ "organizationId",
12
+ "deviceId",
13
+ "workspaceId",
14
+ "trajectoryId",
15
+ "approved",
16
+ "excluded",
17
+ "redactionReceipt",
18
+ "bytesPrepared",
19
+ "createdAt",
20
+ "responseHash"
21
+ ],
22
+ "properties": {
23
+ "schema": {
24
+ "const": "dharma.evidence-response/v1"
25
+ },
26
+ "responseId": {
27
+ "type": "string",
28
+ "format": "uuid"
29
+ },
30
+ "requestId": {
31
+ "type": "string",
32
+ "format": "uuid"
33
+ },
34
+ "organizationId": {
35
+ "type": "string",
36
+ "minLength": 1
37
+ },
38
+ "deviceId": {
39
+ "type": "string",
40
+ "minLength": 1
41
+ },
42
+ "workspaceId": {
43
+ "type": "string",
44
+ "minLength": 1
45
+ },
46
+ "trajectoryId": {
47
+ "type": "string",
48
+ "format": "uuid"
49
+ },
50
+ "approved": {
51
+ "type": "array",
52
+ "items": {
53
+ "type": "object",
54
+ "additionalProperties": false,
55
+ "required": [
56
+ "contentId",
57
+ "bytes",
58
+ "chunkHash",
59
+ "contentBase64"
60
+ ],
61
+ "properties": {
62
+ "contentId": {
63
+ "type": "string",
64
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
65
+ },
66
+ "bytes": {
67
+ "type": "integer",
68
+ "minimum": 1
69
+ },
70
+ "chunkHash": {
71
+ "type": "string",
72
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
73
+ },
74
+ "contentBase64": {
75
+ "type": "string",
76
+ "minLength": 4,
77
+ "contentEncoding": "base64"
78
+ }
79
+ }
80
+ }
81
+ },
82
+ "excluded": {
83
+ "type": "array",
84
+ "items": {
85
+ "type": "object",
86
+ "additionalProperties": false,
87
+ "required": [
88
+ "contentId",
89
+ "reasonCode"
90
+ ],
91
+ "properties": {
92
+ "contentId": {
93
+ "type": "string",
94
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
95
+ },
96
+ "reasonCode": {
97
+ "type": "string"
98
+ }
99
+ }
100
+ }
101
+ },
102
+ "redactionReceipt": {
103
+ "type": "object"
104
+ },
105
+ "bytesPrepared": {
106
+ "type": "integer",
107
+ "minimum": 0
108
+ },
109
+ "createdAt": {
110
+ "type": "string",
111
+ "format": "date-time"
112
+ },
113
+ "responseHash": {
114
+ "type": "string",
115
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
116
+ },
117
+ "signature": {
118
+ "type": [
119
+ "string",
120
+ "null"
121
+ ]
122
+ }
123
+ }
124
+ }
@@ -0,0 +1,122 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/install-receipt/v1",
4
+ "title": "Skill Installation Receipt",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema",
9
+ "installationId",
10
+ "organizationId",
11
+ "deviceId",
12
+ "workspaceId",
13
+ "provider",
14
+ "bundleId",
15
+ "previousBundleId",
16
+ "status",
17
+ "activationMode",
18
+ "checks",
19
+ "startedAt",
20
+ "completedAt",
21
+ "receiptHash",
22
+ "signature"
23
+ ],
24
+ "properties": {
25
+ "schema": {
26
+ "const": "dharma.install-receipt/v1"
27
+ },
28
+ "installationId": {
29
+ "type": "string",
30
+ "format": "uuid"
31
+ },
32
+ "organizationId": {
33
+ "type": "string",
34
+ "minLength": 1
35
+ },
36
+ "deviceId": {
37
+ "type": "string",
38
+ "format": "uuid"
39
+ },
40
+ "workspaceId": {
41
+ "type": "string",
42
+ "format": "uuid"
43
+ },
44
+ "provider": {
45
+ "type": "string"
46
+ },
47
+ "bundleId": {
48
+ "type": "string",
49
+ "format": "uuid"
50
+ },
51
+ "previousBundleId": {
52
+ "type": [
53
+ "string",
54
+ "null"
55
+ ],
56
+ "format": "uuid"
57
+ },
58
+ "status": {
59
+ "type": "string",
60
+ "enum": [
61
+ "staged",
62
+ "active",
63
+ "failed",
64
+ "rolled_back"
65
+ ]
66
+ },
67
+ "activationMode": {
68
+ "type": "string"
69
+ },
70
+ "checks": {
71
+ "type": "array",
72
+ "items": {
73
+ "type": "object",
74
+ "additionalProperties": false,
75
+ "required": [
76
+ "name",
77
+ "status"
78
+ ],
79
+ "properties": {
80
+ "name": {
81
+ "type": "string"
82
+ },
83
+ "status": {
84
+ "type": "string",
85
+ "enum": [
86
+ "pass",
87
+ "fail",
88
+ "unavailable"
89
+ ]
90
+ },
91
+ "details": {
92
+ "type": [
93
+ "string",
94
+ "null"
95
+ ]
96
+ }
97
+ }
98
+ }
99
+ },
100
+ "startedAt": {
101
+ "type": "string",
102
+ "format": "date-time"
103
+ },
104
+ "completedAt": {
105
+ "type": "string",
106
+ "format": "date-time"
107
+ },
108
+ "rollbackReceiptId": {
109
+ "type": [
110
+ "string",
111
+ "null"
112
+ ]
113
+ },
114
+ "receiptHash": {
115
+ "type": "string",
116
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
117
+ },
118
+ "signature": {
119
+ "type": "string"
120
+ }
121
+ }
122
+ }
@@ -0,0 +1,99 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/judge-request/v1",
4
+ "title": "Semantic Judge Request",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema",
9
+ "judgeRequestId",
10
+ "organizationId",
11
+ "purpose",
12
+ "model",
13
+ "promptVersion",
14
+ "inputRefs",
15
+ "maximumCostCents",
16
+ "hiddenTruthIsolated",
17
+ "createdAt"
18
+ ],
19
+ "properties": {
20
+ "schema": {
21
+ "const": "dharma.judge-request/v1"
22
+ },
23
+ "judgeRequestId": {
24
+ "type": "string",
25
+ "format": "uuid"
26
+ },
27
+ "organizationId": {
28
+ "type": "string",
29
+ "minLength": 1
30
+ },
31
+ "workspaceId": {
32
+ "type": [
33
+ "string",
34
+ "null"
35
+ ]
36
+ },
37
+ "taskId": {
38
+ "type": [
39
+ "string",
40
+ "null"
41
+ ]
42
+ },
43
+ "evaluationRunId": {
44
+ "type": [
45
+ "string",
46
+ "null"
47
+ ]
48
+ },
49
+ "purpose": {
50
+ "type": "string",
51
+ "enum": [
52
+ "trajectory_judgment",
53
+ "rubric_proposal",
54
+ "failure_clustering",
55
+ "remediation_synthesis",
56
+ "held_out_judgment",
57
+ "scenario_generation",
58
+ "report_generation"
59
+ ]
60
+ },
61
+ "model": {
62
+ "type": "object",
63
+ "additionalProperties": false,
64
+ "required": [
65
+ "provider",
66
+ "id"
67
+ ],
68
+ "properties": {
69
+ "provider": {
70
+ "type": "string"
71
+ },
72
+ "id": {
73
+ "type": "string"
74
+ }
75
+ }
76
+ },
77
+ "promptVersion": {
78
+ "type": "string"
79
+ },
80
+ "inputRefs": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "string",
84
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
85
+ }
86
+ },
87
+ "maximumCostCents": {
88
+ "type": "integer",
89
+ "minimum": 0
90
+ },
91
+ "hiddenTruthIsolated": {
92
+ "const": true
93
+ },
94
+ "createdAt": {
95
+ "type": "string",
96
+ "format": "date-time"
97
+ }
98
+ }
99
+ }