monarchic-agent-protocol 0.1.9 → 0.1.11
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.
- checksums.yaml +4 -4
- data/LICENSE +204 -0
- data/README.md +215 -26
- data/schemas/v1/artifact.json +62 -12
- data/schemas/v1/dataset_ref.json +45 -0
- data/schemas/v1/delivery_contract.json +78 -0
- data/schemas/v1/eval_result.json +39 -0
- data/schemas/v1/event.json +43 -13
- data/schemas/v1/experiment_spec.json +79 -0
- data/schemas/v1/gate_result.json +16 -13
- data/schemas/v1/monarchic_agent_protocol.proto +99 -1
- data/schemas/v1/objective_spec.json +62 -0
- data/schemas/v1/provenance.json +69 -0
- data/schemas/v1/run_context.json +23 -17
- data/schemas/v1/task.json +89 -23
- data/src/ruby/monarchic_agent_protocol_pb.rb +8 -1
- metadata +11 -3
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://monarchic.ai/schema/v1/dataset_ref.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"title": "DatasetRef",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": [
|
|
8
|
+
"dataset_id",
|
|
9
|
+
"sha256",
|
|
10
|
+
"format"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"dataset_id": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"uri": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"sha256": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"pattern": "^[a-fA-F0-9]{64}$"
|
|
22
|
+
},
|
|
23
|
+
"format": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"split": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": [
|
|
29
|
+
"train",
|
|
30
|
+
"validation",
|
|
31
|
+
"test",
|
|
32
|
+
"holdout",
|
|
33
|
+
"reference",
|
|
34
|
+
"other"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"size_bytes": {
|
|
38
|
+
"type": "integer",
|
|
39
|
+
"minimum": 0
|
|
40
|
+
},
|
|
41
|
+
"description": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://monarchic.ai/schema/v1/delivery_contract.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"title": "DeliveryContract",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": [
|
|
8
|
+
"objective",
|
|
9
|
+
"definition_of_done",
|
|
10
|
+
"required_checks",
|
|
11
|
+
"risk_tier"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"objective": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1
|
|
17
|
+
},
|
|
18
|
+
"definition_of_done": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required_checks": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"minItems": 1,
|
|
29
|
+
"items": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"risk_tier": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": [
|
|
37
|
+
"low",
|
|
38
|
+
"medium",
|
|
39
|
+
"high",
|
|
40
|
+
"critical"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"max_cycle_minutes": {
|
|
44
|
+
"type": "integer",
|
|
45
|
+
"minimum": 1
|
|
46
|
+
},
|
|
47
|
+
"max_agent_turns": {
|
|
48
|
+
"type": "integer",
|
|
49
|
+
"minimum": 1
|
|
50
|
+
},
|
|
51
|
+
"pr_strategy": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"enum": [
|
|
54
|
+
"single",
|
|
55
|
+
"stacked",
|
|
56
|
+
"incremental"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"review_policy": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"enum": [
|
|
62
|
+
"auto",
|
|
63
|
+
"human_required"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"rollback_strategy": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"enum": [
|
|
69
|
+
"revert_commit",
|
|
70
|
+
"revert_pr",
|
|
71
|
+
"manual"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"notes": {
|
|
75
|
+
"type": "string"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://monarchic.ai/schema/v1/eval_result.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"title": "EvalResult",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": [
|
|
8
|
+
"metric",
|
|
9
|
+
"value",
|
|
10
|
+
"passed"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"metric": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"value": {
|
|
17
|
+
"type": "number"
|
|
18
|
+
},
|
|
19
|
+
"lower_ci": {
|
|
20
|
+
"type": "number"
|
|
21
|
+
},
|
|
22
|
+
"upper_ci": {
|
|
23
|
+
"type": "number"
|
|
24
|
+
},
|
|
25
|
+
"variance": {
|
|
26
|
+
"type": "number",
|
|
27
|
+
"minimum": 0.0
|
|
28
|
+
},
|
|
29
|
+
"seed": {
|
|
30
|
+
"type": "integer"
|
|
31
|
+
},
|
|
32
|
+
"passed": {
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"notes": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
data/schemas/v1/event.json
CHANGED
|
@@ -1,30 +1,60 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "
|
|
2
|
+
"$id": "monarchic.agent_protocol.v1.Event.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"title": "Event",
|
|
5
|
-
"type": "object",
|
|
6
4
|
"additionalProperties": true,
|
|
7
|
-
"
|
|
5
|
+
"patternProperties": {
|
|
6
|
+
"^(evalResults)$": {
|
|
7
|
+
"items": {
|
|
8
|
+
"$ref": "monarchic.agent_protocol.v1.EvalResult.schema.json"
|
|
9
|
+
},
|
|
10
|
+
"type": "array"
|
|
11
|
+
},
|
|
12
|
+
"^(eventType)$": {
|
|
13
|
+
"default": "",
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"^(taskId)$": {
|
|
17
|
+
"default": "",
|
|
18
|
+
"type": "string"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
8
21
|
"properties": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
22
|
+
"eval_results": {
|
|
23
|
+
"items": {
|
|
24
|
+
"$ref": "monarchic.agent_protocol.v1.EvalResult.schema.json"
|
|
25
|
+
},
|
|
26
|
+
"type": "array"
|
|
12
27
|
},
|
|
13
28
|
"event_type": {
|
|
29
|
+
"default": "",
|
|
14
30
|
"type": "string"
|
|
15
31
|
},
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"format": "date-time"
|
|
32
|
+
"extensions": {
|
|
33
|
+
"$ref": "google.protobuf.Struct.schema.json"
|
|
19
34
|
},
|
|
20
|
-
"
|
|
35
|
+
"message": {
|
|
21
36
|
"type": "string"
|
|
22
37
|
},
|
|
38
|
+
"provenance": {
|
|
39
|
+
"$ref": "monarchic.agent_protocol.v1.Provenance.schema.json"
|
|
40
|
+
},
|
|
23
41
|
"status": {
|
|
42
|
+
"default": "",
|
|
24
43
|
"type": "string"
|
|
25
44
|
},
|
|
26
|
-
"
|
|
45
|
+
"task_id": {
|
|
46
|
+
"default": "",
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"timestamp": {
|
|
50
|
+
"default": "",
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"version": {
|
|
54
|
+
"default": "",
|
|
27
55
|
"type": "string"
|
|
28
56
|
}
|
|
29
|
-
}
|
|
57
|
+
},
|
|
58
|
+
"title": "Event",
|
|
59
|
+
"type": "object"
|
|
30
60
|
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://monarchic.ai/schema/v1/experiment_spec.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"title": "ExperimentSpec",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": [
|
|
8
|
+
"experiment_id",
|
|
9
|
+
"objective",
|
|
10
|
+
"dataset_refs",
|
|
11
|
+
"acceptance"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"experiment_id": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"objective": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"hypothesis": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"model_family": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"seeds": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "integer"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"dataset_refs": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"$ref": "dataset_ref.json"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"acceptance": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"additionalProperties": true,
|
|
41
|
+
"required": [
|
|
42
|
+
"metric",
|
|
43
|
+
"direction",
|
|
44
|
+
"threshold"
|
|
45
|
+
],
|
|
46
|
+
"properties": {
|
|
47
|
+
"metric": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"direction": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"enum": [
|
|
53
|
+
"maximize",
|
|
54
|
+
"minimize",
|
|
55
|
+
"target"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"threshold": {
|
|
59
|
+
"type": "number"
|
|
60
|
+
},
|
|
61
|
+
"min_effect_size": {
|
|
62
|
+
"type": "number"
|
|
63
|
+
},
|
|
64
|
+
"max_variance": {
|
|
65
|
+
"type": "number"
|
|
66
|
+
},
|
|
67
|
+
"confidence_level": {
|
|
68
|
+
"type": "number",
|
|
69
|
+
"minimum": 0.0,
|
|
70
|
+
"maximum": 1.0
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"constraints": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": true
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
data/schemas/v1/gate_result.json
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "
|
|
2
|
+
"$id": "monarchic.agent_protocol.v1.GateResult.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"title": "GateResult",
|
|
5
|
-
"type": "object",
|
|
6
4
|
"additionalProperties": true,
|
|
7
|
-
"required": ["version", "gate", "status"],
|
|
8
5
|
"properties": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
6
|
+
"evidence": {
|
|
7
|
+
"$ref": "google.protobuf.Struct.schema.json"
|
|
8
|
+
},
|
|
9
|
+
"extensions": {
|
|
10
|
+
"$ref": "google.protobuf.Struct.schema.json"
|
|
12
11
|
},
|
|
13
12
|
"gate": {
|
|
13
|
+
"default": "",
|
|
14
14
|
"type": "string"
|
|
15
15
|
},
|
|
16
|
-
"
|
|
16
|
+
"reason": {
|
|
17
17
|
"type": "string"
|
|
18
18
|
},
|
|
19
|
-
"
|
|
19
|
+
"status": {
|
|
20
|
+
"default": "",
|
|
20
21
|
"type": "string"
|
|
21
22
|
},
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
23
|
+
"version": {
|
|
24
|
+
"default": "",
|
|
25
|
+
"type": "string"
|
|
25
26
|
}
|
|
26
|
-
}
|
|
27
|
+
},
|
|
28
|
+
"title": "Gate Result",
|
|
29
|
+
"type": "object"
|
|
27
30
|
}
|
|
@@ -4,7 +4,7 @@ package monarchic.agent_protocol.v1;
|
|
|
4
4
|
|
|
5
5
|
import "google/protobuf/struct.proto";
|
|
6
6
|
|
|
7
|
-
option java_package = "monarchic.agent_protocol.v1";
|
|
7
|
+
option java_package = "ai.monarchic.agent_protocol.v1";
|
|
8
8
|
option java_outer_classname = "MonarchicAgentProtocolV1";
|
|
9
9
|
option java_multiple_files = true;
|
|
10
10
|
option csharp_namespace = "Monarchic.AgentProtocol.V1";
|
|
@@ -24,6 +24,95 @@ enum AgentRole {
|
|
|
24
24
|
OPS = 7;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
message DatasetRef {
|
|
28
|
+
string dataset_id = 1;
|
|
29
|
+
optional string uri = 2;
|
|
30
|
+
string sha256 = 3;
|
|
31
|
+
string format = 4;
|
|
32
|
+
optional string split = 5;
|
|
33
|
+
optional uint64 size_bytes = 6;
|
|
34
|
+
optional string description = 7;
|
|
35
|
+
google.protobuf.Struct extensions = 8;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message AcceptanceCriteria {
|
|
39
|
+
string metric = 1;
|
|
40
|
+
string direction = 2;
|
|
41
|
+
double threshold = 3;
|
|
42
|
+
optional double min_effect_size = 4;
|
|
43
|
+
optional double max_variance = 5;
|
|
44
|
+
optional double confidence_level = 6;
|
|
45
|
+
google.protobuf.Struct extensions = 7;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message ExperimentSpec {
|
|
49
|
+
string experiment_id = 1;
|
|
50
|
+
string objective = 2;
|
|
51
|
+
optional string hypothesis = 3;
|
|
52
|
+
optional string model_family = 4;
|
|
53
|
+
repeated int64 seeds = 5;
|
|
54
|
+
repeated DatasetRef dataset_refs = 6;
|
|
55
|
+
AcceptanceCriteria acceptance = 7;
|
|
56
|
+
google.protobuf.Struct constraints = 8;
|
|
57
|
+
google.protobuf.Struct extensions = 9;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message DeliveryContract {
|
|
61
|
+
string objective = 1;
|
|
62
|
+
repeated string definition_of_done = 2;
|
|
63
|
+
repeated string required_checks = 3;
|
|
64
|
+
string risk_tier = 4;
|
|
65
|
+
optional uint32 max_cycle_minutes = 5;
|
|
66
|
+
optional uint32 max_agent_turns = 6;
|
|
67
|
+
optional string pr_strategy = 7;
|
|
68
|
+
optional string review_policy = 8;
|
|
69
|
+
optional string rollback_strategy = 9;
|
|
70
|
+
optional string notes = 10;
|
|
71
|
+
google.protobuf.Struct extensions = 11;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message ObjectiveSpec {
|
|
75
|
+
string metric_key = 1;
|
|
76
|
+
string direction = 2;
|
|
77
|
+
optional double target = 3;
|
|
78
|
+
optional double min_delta = 4;
|
|
79
|
+
optional double tolerance = 5;
|
|
80
|
+
optional string report_file = 6;
|
|
81
|
+
optional string report_task_id = 7;
|
|
82
|
+
optional double weight = 8;
|
|
83
|
+
optional string description = 9;
|
|
84
|
+
google.protobuf.Struct extensions = 10;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
message EvalResult {
|
|
88
|
+
string metric = 1;
|
|
89
|
+
double value = 2;
|
|
90
|
+
optional double lower_ci = 3;
|
|
91
|
+
optional double upper_ci = 4;
|
|
92
|
+
optional double variance = 5;
|
|
93
|
+
optional int64 seed = 6;
|
|
94
|
+
bool passed = 7;
|
|
95
|
+
optional string notes = 8;
|
|
96
|
+
google.protobuf.Struct extensions = 9;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
message Provenance {
|
|
100
|
+
string prompt_sha256 = 1;
|
|
101
|
+
string code_sha256 = 2;
|
|
102
|
+
repeated string dataset_sha256 = 3;
|
|
103
|
+
string runtime = 4;
|
|
104
|
+
optional string model = 5;
|
|
105
|
+
string runner = 6;
|
|
106
|
+
string orchestrator = 7;
|
|
107
|
+
optional string task_spec_sha256 = 8;
|
|
108
|
+
optional string pipeline_sha256 = 9;
|
|
109
|
+
optional string command_sha256 = 10;
|
|
110
|
+
string created_at = 11;
|
|
111
|
+
optional string source_task_id = 12;
|
|
112
|
+
repeated DatasetRef dataset_refs = 13;
|
|
113
|
+
google.protobuf.Struct extensions = 14;
|
|
114
|
+
}
|
|
115
|
+
|
|
27
116
|
message Task {
|
|
28
117
|
string version = 1;
|
|
29
118
|
string task_id = 2;
|
|
@@ -34,6 +123,9 @@ message Task {
|
|
|
34
123
|
repeated string gates_required = 7;
|
|
35
124
|
RunContext run_context = 8;
|
|
36
125
|
google.protobuf.Struct extensions = 9;
|
|
126
|
+
ExperimentSpec experiment_spec = 10;
|
|
127
|
+
DeliveryContract delivery_contract = 11;
|
|
128
|
+
ObjectiveSpec objective_spec = 12;
|
|
37
129
|
}
|
|
38
130
|
|
|
39
131
|
message Artifact {
|
|
@@ -44,6 +136,10 @@ message Artifact {
|
|
|
44
136
|
string path = 5;
|
|
45
137
|
string task_id = 6;
|
|
46
138
|
google.protobuf.Struct extensions = 7;
|
|
139
|
+
Provenance provenance = 8;
|
|
140
|
+
repeated DatasetRef dataset_refs = 9;
|
|
141
|
+
repeated EvalResult eval_results = 10;
|
|
142
|
+
ExperimentSpec experiment_spec = 11;
|
|
47
143
|
}
|
|
48
144
|
|
|
49
145
|
message Event {
|
|
@@ -54,6 +150,8 @@ message Event {
|
|
|
54
150
|
string status = 5;
|
|
55
151
|
optional string message = 6;
|
|
56
152
|
google.protobuf.Struct extensions = 7;
|
|
153
|
+
Provenance provenance = 8;
|
|
154
|
+
repeated EvalResult eval_results = 9;
|
|
57
155
|
}
|
|
58
156
|
|
|
59
157
|
message GateResult {
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://monarchic.ai/schema/v1/objective_spec.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"title": "ObjectiveSpec",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": [
|
|
8
|
+
"metric_key",
|
|
9
|
+
"direction"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"metric_key": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1
|
|
15
|
+
},
|
|
16
|
+
"direction": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": [
|
|
19
|
+
"maximize",
|
|
20
|
+
"minimize",
|
|
21
|
+
"target"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"target": {
|
|
25
|
+
"type": "number"
|
|
26
|
+
},
|
|
27
|
+
"min_delta": {
|
|
28
|
+
"type": "number"
|
|
29
|
+
},
|
|
30
|
+
"tolerance": {
|
|
31
|
+
"type": "number",
|
|
32
|
+
"minimum": 0
|
|
33
|
+
},
|
|
34
|
+
"report_file": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"minLength": 1
|
|
37
|
+
},
|
|
38
|
+
"report_task_id": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"minLength": 1
|
|
41
|
+
},
|
|
42
|
+
"weight": {
|
|
43
|
+
"type": "number",
|
|
44
|
+
"minimum": 0
|
|
45
|
+
},
|
|
46
|
+
"description": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"anyOf": [
|
|
51
|
+
{
|
|
52
|
+
"required": [
|
|
53
|
+
"target"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"required": [
|
|
58
|
+
"min_delta"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://monarchic.ai/schema/v1/provenance.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"title": "Provenance",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": [
|
|
8
|
+
"prompt_sha256",
|
|
9
|
+
"code_sha256",
|
|
10
|
+
"runtime",
|
|
11
|
+
"runner",
|
|
12
|
+
"orchestrator",
|
|
13
|
+
"created_at"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"prompt_sha256": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"pattern": "^[a-fA-F0-9]{64}$"
|
|
19
|
+
},
|
|
20
|
+
"code_sha256": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"pattern": "^[a-fA-F0-9]{64}$"
|
|
23
|
+
},
|
|
24
|
+
"dataset_sha256": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"pattern": "^[a-fA-F0-9]{64}$"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"runtime": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"model": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"runner": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"orchestrator": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"task_spec_sha256": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"pattern": "^[a-fA-F0-9]{64}$"
|
|
46
|
+
},
|
|
47
|
+
"pipeline_sha256": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"pattern": "^[a-fA-F0-9]{64}$"
|
|
50
|
+
},
|
|
51
|
+
"command_sha256": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"pattern": "^[a-fA-F0-9]{64}$"
|
|
54
|
+
},
|
|
55
|
+
"created_at": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"format": "date-time"
|
|
58
|
+
},
|
|
59
|
+
"source_task_id": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"dataset_refs": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"items": {
|
|
65
|
+
"$ref": "dataset_ref.json"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
data/schemas/v1/run_context.json
CHANGED
|
@@ -1,32 +1,38 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "
|
|
2
|
+
"$id": "monarchic.agent_protocol.v1.RunContext.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"title": "RunContext",
|
|
5
|
-
"type": "object",
|
|
6
4
|
"additionalProperties": true,
|
|
7
|
-
"required": ["version", "repo", "worktree", "image", "runner"],
|
|
8
5
|
"properties": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"const": "v1"
|
|
6
|
+
"extensions": {
|
|
7
|
+
"$ref": "google.protobuf.Struct.schema.json"
|
|
12
8
|
},
|
|
13
|
-
"
|
|
9
|
+
"image": {
|
|
10
|
+
"default": "",
|
|
14
11
|
"type": "string"
|
|
15
12
|
},
|
|
16
|
-
"
|
|
17
|
-
"
|
|
13
|
+
"labels": {
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"type": "array"
|
|
18
18
|
},
|
|
19
|
-
"
|
|
19
|
+
"repo": {
|
|
20
|
+
"default": "",
|
|
20
21
|
"type": "string"
|
|
21
22
|
},
|
|
22
23
|
"runner": {
|
|
24
|
+
"default": "",
|
|
23
25
|
"type": "string"
|
|
24
26
|
},
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
"version": {
|
|
28
|
+
"default": "",
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"worktree": {
|
|
32
|
+
"default": "",
|
|
33
|
+
"type": "string"
|
|
30
34
|
}
|
|
31
|
-
}
|
|
35
|
+
},
|
|
36
|
+
"title": "Run Context",
|
|
37
|
+
"type": "object"
|
|
32
38
|
}
|