open-research-protocol 0.4.25 → 0.4.27

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,223 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openresearchprotocol.com/spec/v1/project-context.schema.json",
4
+ "title": "ORP Project Context",
5
+ "description": "Machine-readable ORP process artifact describing a local directory's authority surfaces, directory signals, research timing policy, and evolution policy.",
6
+ "type": "object",
7
+ "additionalProperties": true,
8
+ "required": [
9
+ "schema_version",
10
+ "kind",
11
+ "project",
12
+ "initialized_at_utc",
13
+ "refreshed_at_utc",
14
+ "refresh_source",
15
+ "authority_surfaces",
16
+ "directory_signals",
17
+ "research_policy",
18
+ "evolution_policy",
19
+ "next_actions",
20
+ "notes"
21
+ ],
22
+ "properties": {
23
+ "schema_version": {
24
+ "const": "1.0.0"
25
+ },
26
+ "kind": {
27
+ "const": "orp_project_context"
28
+ },
29
+ "project": {
30
+ "type": "object",
31
+ "required": [
32
+ "name",
33
+ "root"
34
+ ],
35
+ "properties": {
36
+ "name": {
37
+ "type": "string",
38
+ "minLength": 1
39
+ },
40
+ "root": {
41
+ "type": "string",
42
+ "minLength": 1
43
+ }
44
+ }
45
+ },
46
+ "initialized_at_utc": {
47
+ "type": "string",
48
+ "minLength": 1
49
+ },
50
+ "refreshed_at_utc": {
51
+ "type": "string",
52
+ "minLength": 1
53
+ },
54
+ "refresh_source": {
55
+ "type": "string",
56
+ "minLength": 1
57
+ },
58
+ "authority_surfaces": {
59
+ "type": "array",
60
+ "items": {
61
+ "type": "object",
62
+ "required": [
63
+ "path",
64
+ "kind",
65
+ "role",
66
+ "exists",
67
+ "size_bytes"
68
+ ],
69
+ "properties": {
70
+ "path": {
71
+ "type": "string",
72
+ "minLength": 1
73
+ },
74
+ "kind": {
75
+ "type": "string",
76
+ "minLength": 1
77
+ },
78
+ "role": {
79
+ "type": "string",
80
+ "minLength": 1
81
+ },
82
+ "exists": {
83
+ "type": "boolean"
84
+ },
85
+ "size_bytes": {
86
+ "type": "integer",
87
+ "minimum": 0
88
+ }
89
+ }
90
+ }
91
+ },
92
+ "directory_signals": {
93
+ "type": "object",
94
+ "required": [
95
+ "source_dirs",
96
+ "languages_or_stacks",
97
+ "has_tests",
98
+ "has_docs",
99
+ "has_orp_config",
100
+ "authority_surface_count"
101
+ ],
102
+ "properties": {
103
+ "source_dirs": {
104
+ "type": "array",
105
+ "items": {
106
+ "type": "string"
107
+ }
108
+ },
109
+ "languages_or_stacks": {
110
+ "type": "array",
111
+ "items": {
112
+ "type": "string"
113
+ }
114
+ },
115
+ "has_tests": {
116
+ "type": "boolean"
117
+ },
118
+ "has_docs": {
119
+ "type": "boolean"
120
+ },
121
+ "has_orp_config": {
122
+ "type": "boolean"
123
+ },
124
+ "authority_surface_count": {
125
+ "type": "integer",
126
+ "minimum": 0
127
+ }
128
+ }
129
+ },
130
+ "research_policy": {
131
+ "type": "object",
132
+ "required": [
133
+ "default_timing",
134
+ "provider_calls_are_explicit",
135
+ "live_calls_require_execute",
136
+ "call_moments"
137
+ ],
138
+ "properties": {
139
+ "default_timing": {
140
+ "type": "string",
141
+ "minLength": 1
142
+ },
143
+ "provider_calls_are_explicit": {
144
+ "type": "boolean"
145
+ },
146
+ "live_calls_require_execute": {
147
+ "type": "boolean"
148
+ },
149
+ "secret_alias": {
150
+ "type": "string"
151
+ },
152
+ "env_var": {
153
+ "type": "string"
154
+ },
155
+ "call_moments": {
156
+ "type": "array",
157
+ "items": {
158
+ "type": "object",
159
+ "required": [
160
+ "moment_id",
161
+ "calls_api",
162
+ "when"
163
+ ],
164
+ "properties": {
165
+ "moment_id": {
166
+ "type": "string",
167
+ "minLength": 1
168
+ },
169
+ "calls_api": {
170
+ "type": "boolean"
171
+ },
172
+ "lane": {
173
+ "type": "string"
174
+ },
175
+ "model": {
176
+ "type": "string"
177
+ },
178
+ "when": {
179
+ "type": "string",
180
+ "minLength": 1
181
+ },
182
+ "capability_note": {
183
+ "type": "string"
184
+ }
185
+ }
186
+ }
187
+ },
188
+ "skip_research_when": {
189
+ "type": "array",
190
+ "items": {
191
+ "type": "string"
192
+ }
193
+ },
194
+ "escalate_to_deep_research_when": {
195
+ "type": "array",
196
+ "items": {
197
+ "type": "string"
198
+ }
199
+ }
200
+ }
201
+ },
202
+ "evolution_policy": {
203
+ "type": "object",
204
+ "required": [
205
+ "refresh_surfaces",
206
+ "evolution_loop",
207
+ "boundary"
208
+ ]
209
+ },
210
+ "next_actions": {
211
+ "type": "array",
212
+ "items": {
213
+ "type": "string"
214
+ }
215
+ },
216
+ "notes": {
217
+ "type": "array",
218
+ "items": {
219
+ "type": "string"
220
+ }
221
+ }
222
+ }
223
+ }
@@ -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
+ }