open-research-protocol 0.4.25 → 0.4.26
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/CHANGELOG.md +30 -0
- package/README.md +30 -13
- package/cli/orp.py +2150 -120
- package/docs/RESEARCH_COUNCIL.md +123 -0
- package/docs/START_HERE.md +4 -0
- package/package.json +1 -1
- package/scripts/orp-mcp +205 -0
- package/spec/v1/project-context.schema.json +223 -0
- package/spec/v1/research-run.schema.json +245 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openresearchprotocol.com/spec/v1/research-run.schema.json",
|
|
4
|
+
"title": "ORP Research Run",
|
|
5
|
+
"description": "Machine-readable ORP artifact for a durable multi-lane research council run.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": [
|
|
9
|
+
"schema_version",
|
|
10
|
+
"kind",
|
|
11
|
+
"run_id",
|
|
12
|
+
"status",
|
|
13
|
+
"question",
|
|
14
|
+
"execute",
|
|
15
|
+
"generated_at_utc",
|
|
16
|
+
"profile",
|
|
17
|
+
"breakdown",
|
|
18
|
+
"lanes",
|
|
19
|
+
"synthesis",
|
|
20
|
+
"artifacts",
|
|
21
|
+
"notes"
|
|
22
|
+
],
|
|
23
|
+
"properties": {
|
|
24
|
+
"schema_version": {
|
|
25
|
+
"const": "1.0.0"
|
|
26
|
+
},
|
|
27
|
+
"kind": {
|
|
28
|
+
"const": "research_run"
|
|
29
|
+
},
|
|
30
|
+
"run_id": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"minLength": 1
|
|
33
|
+
},
|
|
34
|
+
"status": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": [
|
|
37
|
+
"planned",
|
|
38
|
+
"in_progress",
|
|
39
|
+
"partial",
|
|
40
|
+
"complete"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"question": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"minLength": 1
|
|
46
|
+
},
|
|
47
|
+
"execute": {
|
|
48
|
+
"type": "boolean"
|
|
49
|
+
},
|
|
50
|
+
"generated_at_utc": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"minLength": 1
|
|
53
|
+
},
|
|
54
|
+
"profile": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"required": [
|
|
57
|
+
"profile_id",
|
|
58
|
+
"lane_count"
|
|
59
|
+
],
|
|
60
|
+
"properties": {
|
|
61
|
+
"profile_id": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"minLength": 1
|
|
64
|
+
},
|
|
65
|
+
"label": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"lane_count": {
|
|
69
|
+
"type": "integer",
|
|
70
|
+
"minimum": 0
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"call_moments": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"items": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"required": [
|
|
79
|
+
"moment_id",
|
|
80
|
+
"calls_api"
|
|
81
|
+
],
|
|
82
|
+
"properties": {
|
|
83
|
+
"moment_id": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"minLength": 1
|
|
86
|
+
},
|
|
87
|
+
"label": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
"calls_api": {
|
|
91
|
+
"type": "boolean"
|
|
92
|
+
},
|
|
93
|
+
"secret_alias": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"env_var": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"description": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"breakdown": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"required": [
|
|
108
|
+
"question",
|
|
109
|
+
"sequence",
|
|
110
|
+
"output_contract",
|
|
111
|
+
"lanes"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"lanes": {
|
|
115
|
+
"type": "array",
|
|
116
|
+
"items": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"required": [
|
|
119
|
+
"lane_id",
|
|
120
|
+
"provider",
|
|
121
|
+
"model",
|
|
122
|
+
"adapter",
|
|
123
|
+
"status",
|
|
124
|
+
"started_at_utc",
|
|
125
|
+
"finished_at_utc",
|
|
126
|
+
"text"
|
|
127
|
+
],
|
|
128
|
+
"properties": {
|
|
129
|
+
"lane_id": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"minLength": 1
|
|
132
|
+
},
|
|
133
|
+
"label": {
|
|
134
|
+
"type": "string"
|
|
135
|
+
},
|
|
136
|
+
"provider": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"model": {
|
|
140
|
+
"type": "string"
|
|
141
|
+
},
|
|
142
|
+
"adapter": {
|
|
143
|
+
"type": "string"
|
|
144
|
+
},
|
|
145
|
+
"call_moment": {
|
|
146
|
+
"type": "string"
|
|
147
|
+
},
|
|
148
|
+
"api_call": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"properties": {
|
|
151
|
+
"call_moment": {
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
"called": {
|
|
155
|
+
"type": "boolean"
|
|
156
|
+
},
|
|
157
|
+
"secret_alias": {
|
|
158
|
+
"type": "string"
|
|
159
|
+
},
|
|
160
|
+
"env_var": {
|
|
161
|
+
"type": "string"
|
|
162
|
+
},
|
|
163
|
+
"secret_source": {
|
|
164
|
+
"type": "string"
|
|
165
|
+
},
|
|
166
|
+
"secret_value_persisted": {
|
|
167
|
+
"type": "boolean"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"status": {
|
|
172
|
+
"type": "string"
|
|
173
|
+
},
|
|
174
|
+
"text": {
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
"citations": {
|
|
178
|
+
"type": "array"
|
|
179
|
+
},
|
|
180
|
+
"notes": {
|
|
181
|
+
"type": "array",
|
|
182
|
+
"items": {
|
|
183
|
+
"type": "string"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"synthesis": {
|
|
190
|
+
"type": "object",
|
|
191
|
+
"required": [
|
|
192
|
+
"answer",
|
|
193
|
+
"completed_lane_count",
|
|
194
|
+
"confidence",
|
|
195
|
+
"next_actions"
|
|
196
|
+
],
|
|
197
|
+
"properties": {
|
|
198
|
+
"answer": {
|
|
199
|
+
"type": "string"
|
|
200
|
+
},
|
|
201
|
+
"completed_lane_count": {
|
|
202
|
+
"type": "integer",
|
|
203
|
+
"minimum": 0
|
|
204
|
+
},
|
|
205
|
+
"planned_or_skipped_lane_count": {
|
|
206
|
+
"type": "integer",
|
|
207
|
+
"minimum": 0
|
|
208
|
+
},
|
|
209
|
+
"failed_lane_count": {
|
|
210
|
+
"type": "integer",
|
|
211
|
+
"minimum": 0
|
|
212
|
+
},
|
|
213
|
+
"confidence": {
|
|
214
|
+
"type": "string"
|
|
215
|
+
},
|
|
216
|
+
"citations": {
|
|
217
|
+
"type": "array"
|
|
218
|
+
},
|
|
219
|
+
"next_actions": {
|
|
220
|
+
"type": "array",
|
|
221
|
+
"items": {
|
|
222
|
+
"type": "string"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"artifacts": {
|
|
228
|
+
"type": "object",
|
|
229
|
+
"required": [
|
|
230
|
+
"request_json",
|
|
231
|
+
"breakdown_json",
|
|
232
|
+
"profile_json",
|
|
233
|
+
"answer_json",
|
|
234
|
+
"summary_md",
|
|
235
|
+
"lanes_root"
|
|
236
|
+
]
|
|
237
|
+
},
|
|
238
|
+
"notes": {
|
|
239
|
+
"type": "array",
|
|
240
|
+
"items": {
|
|
241
|
+
"type": "string"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|