codex-chatgpt-control 0.5.1-alpha.2 → 0.5.1-alpha.3
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 +15 -0
- package/README.md +27 -0
- package/contracts/v1/fixtures/backend-capabilities.json +40 -1
- package/contracts/v1/fixtures/backend-compatibility.json +21 -0
- package/contracts/v1/fixtures/backend-version.json +6 -1
- package/contracts/v1/fixtures/operation-action-prepared-event.json +42 -0
- package/contracts/v1/fixtures/operation-action.json +13 -0
- package/contracts/v1/fixtures/operation-artifact-receipt.json +14 -0
- package/contracts/v1/fixtures/operation-artifact-transfer-intent-event.json +24 -0
- package/contracts/v1/fixtures/operation-artifact-transfer-receipt-event.json +26 -0
- package/contracts/v1/fixtures/operation-artifact-transfer-state.json +178 -0
- package/contracts/v1/fixtures/operation-blocker.json +10 -0
- package/contracts/v1/fixtures/operation-collect-request.json +17 -0
- package/contracts/v1/fixtures/operation-collect-result.json +42 -0
- package/contracts/v1/fixtures/operation-control-receipt.json +13 -0
- package/contracts/v1/fixtures/operation-control-request.json +18 -0
- package/contracts/v1/fixtures/operation-control-result.json +31 -0
- package/contracts/v1/fixtures/operation-event.json +18 -0
- package/contracts/v1/fixtures/operation-handle.json +10 -0
- package/contracts/v1/fixtures/operation-inspect-request.json +13 -0
- package/contracts/v1/fixtures/operation-inspect-result.json +205 -0
- package/contracts/v1/fixtures/operation-ownership-baseline-event.json +34 -0
- package/contracts/v1/fixtures/operation-receipt.json +32 -0
- package/contracts/v1/fixtures/operation-recovery-decision.json +7 -0
- package/contracts/v1/fixtures/operation-recovery-observation.json +12 -0
- package/contracts/v1/fixtures/operation-request.json +33 -0
- package/contracts/v1/fixtures/operation-state.json +144 -0
- package/contracts/v1/fixtures/operation-submission-witness-event.json +20 -0
- package/contracts/v1/fixtures/operation-submission-witness.json +11 -0
- package/contracts/v1/fixtures/operation-submit-result.json +16 -0
- package/contracts/v1/fixtures/operation-target-established-event.json +21 -0
- package/contracts/v1/manifest.json +155 -1
- package/contracts/v1/parity-suite.json +96 -1
- package/contracts/v1/schemas/backend-compatibility.schema.json +65 -0
- package/contracts/v1/schemas/backend-request.schema.json +8 -2
- package/contracts/v1/schemas/capabilities.schema.json +81 -1
- package/contracts/v1/schemas/manifest.schema.json +57 -0
- package/contracts/v1/schemas/operation-action.schema.json +155 -0
- package/contracts/v1/schemas/operation-artifact-receipt.schema.json +89 -0
- package/contracts/v1/schemas/operation-blocker.schema.json +70 -0
- package/contracts/v1/schemas/operation-collect-request.schema.json +46 -0
- package/contracts/v1/schemas/operation-collect-result.schema.json +74 -0
- package/contracts/v1/schemas/operation-control-receipt.schema.json +108 -0
- package/contracts/v1/schemas/operation-control-request.schema.json +111 -0
- package/contracts/v1/schemas/operation-control-result.schema.json +112 -0
- package/contracts/v1/schemas/operation-event.schema.json +756 -0
- package/contracts/v1/schemas/operation-handle.schema.json +55 -0
- package/contracts/v1/schemas/operation-inspect-request.schema.json +42 -0
- package/contracts/v1/schemas/operation-inspect-result.schema.json +1662 -0
- package/contracts/v1/schemas/operation-receipt.schema.json +153 -0
- package/contracts/v1/schemas/operation-recovery.schema.json +314 -0
- package/contracts/v1/schemas/operation-request.schema.json +158 -0
- package/contracts/v1/schemas/operation-state.schema.json +691 -0
- package/contracts/v1/schemas/operation-submission-witness.schema.json +48 -0
- package/contracts/v1/schemas/operation-submit-result.schema.json +94 -0
- package/contracts/v1/surface-drift-policy.json +50 -0
- package/contracts/v1/vectors/operation-request-digest-v1.json +43 -0
- package/dist/codex-chatgpt-control-backend.mjs +43897 -9094
- package/dist/codex-chatgpt-control.bundle.mjs +46360 -10262
- package/dist/src/backend/client.d.ts +103 -2
- package/dist/src/backend/client.js +1436 -97
- package/dist/src/backend/compatibility.d.ts +12 -0
- package/dist/src/backend/compatibility.js +208 -0
- package/dist/src/backend/protocol.d.ts +84 -1
- package/dist/src/backend/protocol.js +31 -5
- package/dist/src/backend/runtime-identity.d.ts +10 -0
- package/dist/src/backend/runtime-identity.js +141 -0
- package/dist/src/backend/session.d.ts +10 -2
- package/dist/src/backend/session.js +478 -7
- package/dist/src/backend/stdio-server.d.ts +4 -1
- package/dist/src/backend/stdio-server.js +240 -28
- package/dist/src/browser/active-composer-file-input.d.ts +9 -0
- package/dist/src/browser/active-composer-file-input.js +33 -0
- package/dist/src/browser/attach.d.ts +4 -1
- package/dist/src/browser/attach.js +136 -28
- package/dist/src/browser/downloads.d.ts +2 -0
- package/dist/src/client.d.ts +38 -0
- package/dist/src/client.js +1222 -59
- package/dist/src/commands/configuration.js +13 -7
- package/dist/src/commands/doctor.d.ts +1 -1
- package/dist/src/commands/doctor.js +26 -3
- package/dist/src/commands/experience.js +35 -0
- package/dist/src/commands/files.js +4 -27
- package/dist/src/commands/modes.js +49 -17
- package/dist/src/commands/power-discovery.d.ts +130 -0
- package/dist/src/commands/power-discovery.js +627 -0
- package/dist/src/commands/project-sources.js +325 -31
- package/dist/src/commands/sequence.js +59 -32
- package/dist/src/commands/session.js +7 -2
- package/dist/src/commands/work.js +31 -0
- package/dist/src/errors.d.ts +9 -0
- package/dist/src/errors.js +22 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/index.js +9 -0
- package/dist/src/operations/artifact-output.d.ts +69 -0
- package/dist/src/operations/artifact-output.js +1748 -0
- package/dist/src/operations/artifact-stream.d.ts +19 -0
- package/dist/src/operations/artifact-stream.js +35 -0
- package/dist/src/operations/artifact-transfer.d.ts +149 -0
- package/dist/src/operations/artifact-transfer.js +1312 -0
- package/dist/src/operations/browser-adapter.d.ts +161 -0
- package/dist/src/operations/browser-adapter.js +2023 -0
- package/dist/src/operations/browser-observation.d.ts +110 -0
- package/dist/src/operations/browser-observation.js +1208 -0
- package/dist/src/operations/browser-target.d.ts +103 -0
- package/dist/src/operations/browser-target.js +489 -0
- package/dist/src/operations/canonical.d.ts +4 -0
- package/dist/src/operations/canonical.js +412 -0
- package/dist/src/operations/chatgpt-runtime.d.ts +72 -0
- package/dist/src/operations/chatgpt-runtime.js +1150 -0
- package/dist/src/operations/client.d.ts +138 -0
- package/dist/src/operations/client.js +1143 -0
- package/dist/src/operations/collector.d.ts +195 -0
- package/dist/src/operations/collector.js +1039 -0
- package/dist/src/operations/control.d.ts +372 -0
- package/dist/src/operations/control.js +1498 -0
- package/dist/src/operations/file-identity.d.ts +33 -0
- package/dist/src/operations/file-identity.js +153 -0
- package/dist/src/operations/handle.d.ts +19 -0
- package/dist/src/operations/handle.js +727 -0
- package/dist/src/operations/index.d.ts +22 -0
- package/dist/src/operations/index.js +22 -0
- package/dist/src/operations/journal.d.ts +142 -0
- package/dist/src/operations/journal.js +1931 -0
- package/dist/src/operations/production-attachments.d.ts +116 -0
- package/dist/src/operations/production-attachments.js +1018 -0
- package/dist/src/operations/production-chatgpt-artifacts.d.ts +74 -0
- package/dist/src/operations/production-chatgpt-artifacts.js +1146 -0
- package/dist/src/operations/production-chatgpt-attachments.d.ts +71 -0
- package/dist/src/operations/production-chatgpt-attachments.js +1563 -0
- package/dist/src/operations/production-configuration.d.ts +42 -0
- package/dist/src/operations/production-configuration.js +1363 -0
- package/dist/src/operations/production-primitives.d.ts +53 -0
- package/dist/src/operations/production-primitives.js +1073 -0
- package/dist/src/operations/production-work-steer.d.ts +203 -0
- package/dist/src/operations/production-work-steer.js +1218 -0
- package/dist/src/operations/recovery.d.ts +80 -0
- package/dist/src/operations/recovery.js +174 -0
- package/dist/src/operations/runtime-adapter.d.ts +118 -0
- package/dist/src/operations/runtime-adapter.js +786 -0
- package/dist/src/operations/send-once.d.ts +224 -0
- package/dist/src/operations/send-once.js +1081 -0
- package/dist/src/operations/service.d.ts +281 -0
- package/dist/src/operations/service.js +2810 -0
- package/dist/src/operations/staging.d.ts +136 -0
- package/dist/src/operations/staging.js +630 -0
- package/dist/src/operations/state-machine.d.ts +29 -0
- package/dist/src/operations/state-machine.js +2047 -0
- package/dist/src/operations/submission.d.ts +423 -0
- package/dist/src/operations/submission.js +1676 -0
- package/dist/src/operations/turn-ownership.d.ts +202 -0
- package/dist/src/operations/turn-ownership.js +700 -0
- package/dist/src/operations/types.d.ts +454 -0
- package/dist/src/operations/types.js +20 -0
- package/dist/src/operations/wire-requests.d.ts +21 -0
- package/dist/src/operations/wire-requests.js +396 -0
- package/dist/src/operations/wire-results.d.ts +97 -0
- package/dist/src/operations/wire-results.js +818 -0
- package/dist/src/runner/responses.d.ts +3 -1
- package/dist/src/runner/responses.js +19 -1
- package/dist/src/runner/result.js +227 -55
- package/dist/src/runner/types.d.ts +12 -0
- package/dist/src/runtime/command-routing.d.ts +149 -0
- package/dist/src/runtime/command-routing.js +431 -0
- package/dist/src/runtime/coordinated-browser.d.ts +24 -0
- package/dist/src/runtime/coordinated-browser.js +315 -0
- package/dist/src/runtime/coordinated-page.d.ts +39 -0
- package/dist/src/runtime/coordinated-page.js +634 -0
- package/dist/src/runtime/operation-context.d.ts +142 -0
- package/dist/src/runtime/operation-context.js +410 -0
- package/dist/src/runtime/runtime-session.d.ts +95 -0
- package/dist/src/runtime/runtime-session.js +314 -0
- package/dist/src/runtime/tab-coordinator.d.ts +200 -0
- package/dist/src/runtime/tab-coordinator.js +1200 -0
- package/dist/src/runtime/value-boundaries.d.ts +18 -0
- package/dist/src/runtime/value-boundaries.js +49 -0
- package/dist/src/safety/untrusted-output.js +2 -1
- package/dist/src/scripts/backend-server.js +4 -1
- package/dist/src/scripts/live-smoke/harness.js +79 -7
- package/dist/src/scripts/live-smoke/scenarios.d.ts +28 -0
- package/dist/src/scripts/live-smoke/scenarios.js +110 -18
- package/dist/src/scripts/live-smoke/types.d.ts +3 -0
- package/dist/src/scripts/release-canary-module.js +17 -4
- package/dist/src/types.d.ts +38 -1
- package/package.json +1 -1
- package/references/2026-08-16-transactional-operations.md +459 -0
- package/references/agents-runner.md +34 -0
- package/references/backend-protocol.md +73 -0
- package/references/python-parity.md +72 -0
- package/references/responses-adapter.md +19 -0
- package/references/streaming.md +6 -0
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "0.
|
|
2
|
+
"contractVersion": "0.2.0",
|
|
3
3
|
"fixtures": [
|
|
4
4
|
{
|
|
5
5
|
"case": "backend_capabilities",
|
|
6
6
|
"file": "backend-capabilities.json",
|
|
7
7
|
"schema": "capabilities"
|
|
8
8
|
},
|
|
9
|
+
{
|
|
10
|
+
"case": "backend_compatibility",
|
|
11
|
+
"file": "backend-compatibility.json",
|
|
12
|
+
"schema": "backendCompatibility"
|
|
13
|
+
},
|
|
9
14
|
{
|
|
10
15
|
"case": "backend_error_event_missing_stream_input",
|
|
11
16
|
"file": "backend-error-event-missing-stream-input.json",
|
|
@@ -96,6 +101,136 @@
|
|
|
96
101
|
"file": "named-plan-two-turn.json",
|
|
97
102
|
"schema": "sequencePlan"
|
|
98
103
|
},
|
|
104
|
+
{
|
|
105
|
+
"case": "operation_action_prepared_event",
|
|
106
|
+
"file": "operation-action-prepared-event.json",
|
|
107
|
+
"schema": "operationEvent"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"case": "operation_action",
|
|
111
|
+
"file": "operation-action.json",
|
|
112
|
+
"schema": "operationAction"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"case": "operation_artifact_receipt",
|
|
116
|
+
"file": "operation-artifact-receipt.json",
|
|
117
|
+
"schema": "operationArtifactReceipt"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"case": "operation_artifact_transfer_intent_event",
|
|
121
|
+
"file": "operation-artifact-transfer-intent-event.json",
|
|
122
|
+
"schema": "operationEvent"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"case": "operation_artifact_transfer_receipt_event",
|
|
126
|
+
"file": "operation-artifact-transfer-receipt-event.json",
|
|
127
|
+
"schema": "operationEvent"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"case": "operation_artifact_transfer_state",
|
|
131
|
+
"file": "operation-artifact-transfer-state.json",
|
|
132
|
+
"schema": "operationState"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"case": "operation_blocker",
|
|
136
|
+
"file": "operation-blocker.json",
|
|
137
|
+
"schema": "operationBlocker"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"case": "operation_collect_request",
|
|
141
|
+
"file": "operation-collect-request.json",
|
|
142
|
+
"schema": "operationCollectRequest"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"case": "operation_collect_result",
|
|
146
|
+
"file": "operation-collect-result.json",
|
|
147
|
+
"schema": "operationCollectResult"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"case": "operation_control_receipt",
|
|
151
|
+
"file": "operation-control-receipt.json",
|
|
152
|
+
"schema": "operationControlReceipt"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"case": "operation_control_request",
|
|
156
|
+
"file": "operation-control-request.json",
|
|
157
|
+
"schema": "operationControlRequest"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"case": "operation_control_result",
|
|
161
|
+
"file": "operation-control-result.json",
|
|
162
|
+
"schema": "operationControlResult"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"case": "operation_event",
|
|
166
|
+
"file": "operation-event.json",
|
|
167
|
+
"schema": "operationEvent"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"case": "operation_handle",
|
|
171
|
+
"file": "operation-handle.json",
|
|
172
|
+
"schema": "operationHandle"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"case": "operation_inspect_request",
|
|
176
|
+
"file": "operation-inspect-request.json",
|
|
177
|
+
"schema": "operationInspectRequest"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"case": "operation_inspect_result",
|
|
181
|
+
"file": "operation-inspect-result.json",
|
|
182
|
+
"schema": "operationInspectResult"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"case": "operation_ownership_baseline_event",
|
|
186
|
+
"file": "operation-ownership-baseline-event.json",
|
|
187
|
+
"schema": "operationEvent"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"case": "operation_receipt",
|
|
191
|
+
"file": "operation-receipt.json",
|
|
192
|
+
"schema": "operationReceipt"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"case": "operation_recovery_decision",
|
|
196
|
+
"file": "operation-recovery-decision.json",
|
|
197
|
+
"schema": "operationRecovery"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"case": "operation_recovery_observation",
|
|
201
|
+
"file": "operation-recovery-observation.json",
|
|
202
|
+
"schema": "operationRecovery"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"case": "operation_request",
|
|
206
|
+
"file": "operation-request.json",
|
|
207
|
+
"schema": "operationRequest"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"case": "operation_state",
|
|
211
|
+
"file": "operation-state.json",
|
|
212
|
+
"schema": "operationState"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"case": "operation_submission_witness_event",
|
|
216
|
+
"file": "operation-submission-witness-event.json",
|
|
217
|
+
"schema": "operationEvent"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"case": "operation_submission_witness",
|
|
221
|
+
"file": "operation-submission-witness.json",
|
|
222
|
+
"schema": "operationSubmissionWitness"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"case": "operation_submit_result",
|
|
226
|
+
"file": "operation-submit-result.json",
|
|
227
|
+
"schema": "operationSubmitResult"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"case": "operation_target_established_event",
|
|
231
|
+
"file": "operation-target-established-event.json",
|
|
232
|
+
"schema": "operationEvent"
|
|
233
|
+
},
|
|
99
234
|
{
|
|
100
235
|
"case": "output_json_parse_success",
|
|
101
236
|
"file": "output-json-parse-success.json",
|
|
@@ -279,12 +414,31 @@
|
|
|
279
414
|
],
|
|
280
415
|
"schemas": {
|
|
281
416
|
"agent": "schemas/agent.schema.json",
|
|
417
|
+
"backendCompatibility": "schemas/backend-compatibility.schema.json",
|
|
282
418
|
"backendEvent": "schemas/backend-event.schema.json",
|
|
283
419
|
"backendRequest": "schemas/backend-request.schema.json",
|
|
284
420
|
"backendResponse": "schemas/backend-response.schema.json",
|
|
285
421
|
"capabilities": "schemas/capabilities.schema.json",
|
|
286
422
|
"commandDescriptor": "schemas/command-descriptor.schema.json",
|
|
287
423
|
"commandResult": "schemas/command-result.schema.json",
|
|
424
|
+
"operationAction": "schemas/operation-action.schema.json",
|
|
425
|
+
"operationArtifactReceipt": "schemas/operation-artifact-receipt.schema.json",
|
|
426
|
+
"operationBlocker": "schemas/operation-blocker.schema.json",
|
|
427
|
+
"operationCollectRequest": "schemas/operation-collect-request.schema.json",
|
|
428
|
+
"operationCollectResult": "schemas/operation-collect-result.schema.json",
|
|
429
|
+
"operationControlReceipt": "schemas/operation-control-receipt.schema.json",
|
|
430
|
+
"operationControlRequest": "schemas/operation-control-request.schema.json",
|
|
431
|
+
"operationControlResult": "schemas/operation-control-result.schema.json",
|
|
432
|
+
"operationEvent": "schemas/operation-event.schema.json",
|
|
433
|
+
"operationHandle": "schemas/operation-handle.schema.json",
|
|
434
|
+
"operationInspectRequest": "schemas/operation-inspect-request.schema.json",
|
|
435
|
+
"operationInspectResult": "schemas/operation-inspect-result.schema.json",
|
|
436
|
+
"operationReceipt": "schemas/operation-receipt.schema.json",
|
|
437
|
+
"operationRecovery": "schemas/operation-recovery.schema.json",
|
|
438
|
+
"operationRequest": "schemas/operation-request.schema.json",
|
|
439
|
+
"operationState": "schemas/operation-state.schema.json",
|
|
440
|
+
"operationSubmissionWitness": "schemas/operation-submission-witness.schema.json",
|
|
441
|
+
"operationSubmitResult": "schemas/operation-submit-result.schema.json",
|
|
288
442
|
"response": "schemas/response.schema.json",
|
|
289
443
|
"runResult": "schemas/run-result.schema.json",
|
|
290
444
|
"sequencePlan": "schemas/sequence-plan.schema.json",
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "chatgpt.browser_control.parity_suite.v1",
|
|
3
|
-
"contractVersion": "0.
|
|
3
|
+
"contractVersion": "0.2.0",
|
|
4
4
|
"surfaces": [
|
|
5
5
|
{
|
|
6
6
|
"id": "backend-protocol",
|
|
7
7
|
"summary": "Backend request, response, event, capability, and protocol-error envelopes.",
|
|
8
8
|
"fixtures": [
|
|
9
9
|
"backend-capabilities.json",
|
|
10
|
+
"backend-compatibility.json",
|
|
10
11
|
"backend-error-event-missing-stream-input.json",
|
|
11
12
|
"backend-error-missing-run-input.json",
|
|
12
13
|
"backend-runner-plan-request.json",
|
|
@@ -309,6 +310,66 @@
|
|
|
309
310
|
"references/2026-07-16-chat-work-surfaces.md",
|
|
310
311
|
"../../README.md"
|
|
311
312
|
]
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"id": "transactional-operations-contract",
|
|
316
|
+
"summary": "Versioned transactional operation requests, handles, state, action intent, recovery, blockers, terminal ownership, artifact receipts, and strict result envelopes.",
|
|
317
|
+
"fixtures": [
|
|
318
|
+
"operation-action.json",
|
|
319
|
+
"operation-artifact-receipt.json",
|
|
320
|
+
"operation-artifact-transfer-intent-event.json",
|
|
321
|
+
"operation-artifact-transfer-receipt-event.json",
|
|
322
|
+
"operation-artifact-transfer-state.json",
|
|
323
|
+
"operation-blocker.json",
|
|
324
|
+
"operation-collect-request.json",
|
|
325
|
+
"operation-control-receipt.json",
|
|
326
|
+
"operation-control-request.json",
|
|
327
|
+
"operation-collect-result.json",
|
|
328
|
+
"operation-control-result.json",
|
|
329
|
+
"operation-action-prepared-event.json",
|
|
330
|
+
"operation-event.json",
|
|
331
|
+
"operation-ownership-baseline-event.json",
|
|
332
|
+
"operation-handle.json",
|
|
333
|
+
"operation-inspect-request.json",
|
|
334
|
+
"operation-inspect-result.json",
|
|
335
|
+
"operation-receipt.json",
|
|
336
|
+
"operation-recovery-decision.json",
|
|
337
|
+
"operation-recovery-observation.json",
|
|
338
|
+
"operation-request.json",
|
|
339
|
+
"operation-state.json",
|
|
340
|
+
"operation-submission-witness.json",
|
|
341
|
+
"operation-submission-witness-event.json",
|
|
342
|
+
"operation-target-established-event.json",
|
|
343
|
+
"operation-submit-result.json"
|
|
344
|
+
],
|
|
345
|
+
"sourceFiles": [
|
|
346
|
+
"src/operations/types.ts",
|
|
347
|
+
"src/operations/state-machine.ts",
|
|
348
|
+
"src/operations/artifact-transfer.ts",
|
|
349
|
+
"src/operations/turn-ownership.ts",
|
|
350
|
+
"src/operations/submission.ts",
|
|
351
|
+
"src/operations/journal.ts",
|
|
352
|
+
"src/operations/handle.ts",
|
|
353
|
+
"src/operations/recovery.ts",
|
|
354
|
+
"src/operations/wire-results.ts"
|
|
355
|
+
],
|
|
356
|
+
"nodeTests": [
|
|
357
|
+
"tests/unit/operations-state-machine.test.ts",
|
|
358
|
+
"tests/unit/operations-artifact-transfer.test.ts",
|
|
359
|
+
"tests/unit/operations-turn-ownership.test.ts",
|
|
360
|
+
"tests/unit/operations-durable-baseline.test.ts",
|
|
361
|
+
"tests/unit/operations-submission.test.ts",
|
|
362
|
+
"tests/unit/operations-handle.test.ts",
|
|
363
|
+
"tests/unit/operations-recovery.test.ts",
|
|
364
|
+
"tests/unit/operations-wire-results.test.ts"
|
|
365
|
+
],
|
|
366
|
+
"pythonTests": [
|
|
367
|
+
"tests/test_operation_models.py"
|
|
368
|
+
],
|
|
369
|
+
"docs": [
|
|
370
|
+
"references/2026-08-16-transactional-operations.md",
|
|
371
|
+
"references/backend-protocol.md"
|
|
372
|
+
]
|
|
312
373
|
}
|
|
313
374
|
],
|
|
314
375
|
"backendCommands": {
|
|
@@ -333,6 +394,12 @@
|
|
|
333
394
|
"pythonTests": ["tests/test_cross_language_conformance.py", "tests/test_backend_client.py"],
|
|
334
395
|
"docs": ["references/backend-protocol.md", "references/python-parity.md"]
|
|
335
396
|
},
|
|
397
|
+
"backend.hello": {
|
|
398
|
+
"surface": "backend-protocol",
|
|
399
|
+
"nodeTests": ["tests/unit/backend-dispatch.test.ts", "tests/unit/backend-protocol.test.ts", "tests/unit/backend-client.test.ts"],
|
|
400
|
+
"pythonTests": ["tests/test_cross_language_conformance.py", "tests/test_backend_client.py"],
|
|
401
|
+
"docs": ["references/backend-protocol.md", "references/python-parity.md"]
|
|
402
|
+
},
|
|
336
403
|
"runner.run": {
|
|
337
404
|
"surface": "runner-results-streams",
|
|
338
405
|
"fixtures": ["run-basic-success.json", "runner-budget-blocker.json", "run-browser-bridge-blocker.json"],
|
|
@@ -627,6 +694,34 @@
|
|
|
627
694
|
"pythonTests": ["tests/test_primitives.py", "tests/test_async_client.py"],
|
|
628
695
|
"docs": ["references/backend-protocol.md", "references/troubleshooting.md", "references/python-parity.md"]
|
|
629
696
|
},
|
|
697
|
+
"operations.submit": {
|
|
698
|
+
"surface": "transactional-operations-contract",
|
|
699
|
+
"fixtures": ["operation-request.json", "operation-submit-result.json"],
|
|
700
|
+
"nodeTests": ["tests/unit/backend-client.test.ts", "tests/unit/backend-dispatch.test.ts", "tests/unit/operations-wire-results.test.ts"],
|
|
701
|
+
"pythonTests": ["tests/test_operations_client.py", "tests/test_backend_client.py"],
|
|
702
|
+
"docs": ["references/backend-protocol.md", "references/python-parity.md", "references/2026-08-16-transactional-operations.md"]
|
|
703
|
+
},
|
|
704
|
+
"operations.collect": {
|
|
705
|
+
"surface": "transactional-operations-contract",
|
|
706
|
+
"fixtures": ["operation-collect-request.json", "operation-collect-result.json"],
|
|
707
|
+
"nodeTests": ["tests/unit/backend-client.test.ts", "tests/unit/backend-dispatch.test.ts", "tests/unit/operations-wire-requests.test.ts", "tests/unit/operations-wire-results.test.ts"],
|
|
708
|
+
"pythonTests": ["tests/test_operations_client.py", "tests/test_operation_models.py", "tests/test_backend_client.py"],
|
|
709
|
+
"docs": ["references/backend-protocol.md", "references/python-parity.md", "references/2026-08-16-transactional-operations.md"]
|
|
710
|
+
},
|
|
711
|
+
"operations.inspect": {
|
|
712
|
+
"surface": "transactional-operations-contract",
|
|
713
|
+
"fixtures": ["operation-inspect-request.json", "operation-inspect-result.json"],
|
|
714
|
+
"nodeTests": ["tests/unit/backend-client.test.ts", "tests/unit/backend-dispatch.test.ts", "tests/unit/operations-wire-results.test.ts"],
|
|
715
|
+
"pythonTests": ["tests/test_operations_client.py", "tests/test_backend_client.py"],
|
|
716
|
+
"docs": ["references/backend-protocol.md", "references/python-parity.md", "references/2026-08-16-transactional-operations.md"]
|
|
717
|
+
},
|
|
718
|
+
"operations.control": {
|
|
719
|
+
"surface": "transactional-operations-contract",
|
|
720
|
+
"fixtures": ["operation-control-request.json", "operation-control-result.json"],
|
|
721
|
+
"nodeTests": ["tests/unit/backend-client.test.ts", "tests/unit/backend-dispatch.test.ts", "tests/unit/operations-wire-results.test.ts"],
|
|
722
|
+
"pythonTests": ["tests/test_operations_client.py", "tests/test_backend_client.py"],
|
|
723
|
+
"docs": ["references/backend-protocol.md", "references/python-parity.md", "references/2026-08-16-transactional-operations.md"]
|
|
724
|
+
},
|
|
630
725
|
"messages.waitAndRead": {
|
|
631
726
|
"surface": "workflows-primitives-diagnostics",
|
|
632
727
|
"fixtures": ["command-descriptors.json", "workflow-ask-success.json"],
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://local.codex-chatgpt-control/contracts/v1/schemas/backend-compatibility.schema.json",
|
|
4
|
+
"title": "Negotiated backend compatibility report",
|
|
5
|
+
"description": "A bounded, redacted report retained by the lifecycle-owned backend transport.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["schemaVersion", "status", "mode", "warnings"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schemaVersion": {
|
|
11
|
+
"const": "chatgpt.browser_control.backend_compatibility.v1"
|
|
12
|
+
},
|
|
13
|
+
"status": {
|
|
14
|
+
"enum": ["compatible", "warning", "unknown", "blocked"]
|
|
15
|
+
},
|
|
16
|
+
"mode": {
|
|
17
|
+
"enum": ["multiplexed", "single-flight", "legacy", "unknown"]
|
|
18
|
+
},
|
|
19
|
+
"protocolVersion": { "$ref": "#/$defs/text" },
|
|
20
|
+
"backendSessionId": { "$ref": "#/$defs/text" },
|
|
21
|
+
"packageName": { "$ref": "#/$defs/text" },
|
|
22
|
+
"packageVersion": { "$ref": "#/$defs/text" },
|
|
23
|
+
"runtime": { "$ref": "#/$defs/text" },
|
|
24
|
+
"runtimeVersion": { "$ref": "#/$defs/text" },
|
|
25
|
+
"buildDigest": { "$ref": "#/$defs/text" },
|
|
26
|
+
"warnings": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"maxItems": 16,
|
|
29
|
+
"items": { "$ref": "#/$defs/warning" }
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"$defs": {
|
|
33
|
+
"text": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"minLength": 1,
|
|
36
|
+
"maxLength": 512,
|
|
37
|
+
"pattern": "^(?=.*\\S)[^\\u0000-\\u001f\\u007f]{1,512}$"
|
|
38
|
+
},
|
|
39
|
+
"warning": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"required": ["code", "message"],
|
|
43
|
+
"properties": {
|
|
44
|
+
"code": {
|
|
45
|
+
"enum": [
|
|
46
|
+
"package_name_mismatch",
|
|
47
|
+
"package_version_mismatch",
|
|
48
|
+
"runtime_mismatch",
|
|
49
|
+
"runtime_version_mismatch",
|
|
50
|
+
"build_digest_mismatch",
|
|
51
|
+
"provenance_unknown",
|
|
52
|
+
"legacy_backend",
|
|
53
|
+
"negotiation_rejected"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"field": {
|
|
57
|
+
"enum": ["packageName", "packageVersion", "runtime", "runtimeVersion", "buildDigest"]
|
|
58
|
+
},
|
|
59
|
+
"expected": { "$ref": "#/$defs/text" },
|
|
60
|
+
"received": { "$ref": "#/$defs/text" },
|
|
61
|
+
"message": { "$ref": "#/$defs/text" }
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -6,12 +6,13 @@
|
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"properties": {
|
|
8
8
|
"schemaVersion": { "const": "chatgpt.browser_control.backend_request.v1" },
|
|
9
|
-
"requestId": { "type": "string", "minLength": 1 },
|
|
9
|
+
"requestId": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
10
10
|
"command": {
|
|
11
11
|
"enum": [
|
|
12
12
|
"backend.version",
|
|
13
13
|
"backend.health",
|
|
14
14
|
"backend.capabilities",
|
|
15
|
+
"backend.hello",
|
|
15
16
|
"runner.run",
|
|
16
17
|
"runner.plan",
|
|
17
18
|
"runner.stream",
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
"messages.wait",
|
|
54
55
|
"messages.readLatest",
|
|
55
56
|
"messages.status",
|
|
57
|
+
"messages.stop",
|
|
56
58
|
"messages.waitAndRead",
|
|
57
59
|
"artifacts.listLatest",
|
|
58
60
|
"artifacts.wait",
|
|
@@ -66,7 +68,11 @@
|
|
|
66
68
|
"modes.set",
|
|
67
69
|
"modes.get",
|
|
68
70
|
"tools.select",
|
|
69
|
-
"response.copy"
|
|
71
|
+
"response.copy",
|
|
72
|
+
"operations.submit",
|
|
73
|
+
"operations.collect",
|
|
74
|
+
"operations.inspect",
|
|
75
|
+
"operations.control"
|
|
70
76
|
]
|
|
71
77
|
},
|
|
72
78
|
"payload": {
|
|
@@ -2,10 +2,37 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://local.codex-chatgpt-control/contracts/v1/capabilities.schema.json",
|
|
4
4
|
"type": "object",
|
|
5
|
-
"required": [
|
|
5
|
+
"required": [
|
|
6
|
+
"protocolVersion",
|
|
7
|
+
"backendSessionId",
|
|
8
|
+
"packageName",
|
|
9
|
+
"packageVersion",
|
|
10
|
+
"runtime",
|
|
11
|
+
"runtimeVersion",
|
|
12
|
+
"buildDigest",
|
|
13
|
+
"supportedProtocolVersions",
|
|
14
|
+
"commands",
|
|
15
|
+
"transports",
|
|
16
|
+
"streaming",
|
|
17
|
+
"requestIds",
|
|
18
|
+
"multiplexing",
|
|
19
|
+
"cancellation",
|
|
20
|
+
"tabs"
|
|
21
|
+
],
|
|
6
22
|
"additionalProperties": false,
|
|
7
23
|
"properties": {
|
|
8
24
|
"protocolVersion": { "const": "chatgpt.browser_control.backend_request.v1" },
|
|
25
|
+
"backendSessionId": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
26
|
+
"packageName": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
27
|
+
"packageVersion": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
28
|
+
"runtime": { "const": "node" },
|
|
29
|
+
"runtimeVersion": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
30
|
+
"buildDigest": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
31
|
+
"supportedProtocolVersions": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"minItems": 1,
|
|
34
|
+
"items": { "type": "string", "minLength": 1 }
|
|
35
|
+
},
|
|
9
36
|
"commands": {
|
|
10
37
|
"type": "array",
|
|
11
38
|
"minItems": 1,
|
|
@@ -28,6 +55,59 @@
|
|
|
28
55
|
},
|
|
29
56
|
"tokenDeltas": { "const": false }
|
|
30
57
|
}
|
|
58
|
+
},
|
|
59
|
+
"requestIds": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"additionalProperties": false,
|
|
62
|
+
"required": ["required", "scope"],
|
|
63
|
+
"properties": {
|
|
64
|
+
"required": { "type": "boolean" },
|
|
65
|
+
"scope": { "enum": ["connection", "process", "none"] }
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"multiplexing": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"additionalProperties": false,
|
|
71
|
+
"required": ["unary", "streams"],
|
|
72
|
+
"properties": {
|
|
73
|
+
"unary": { "type": "boolean" },
|
|
74
|
+
"streams": { "type": "boolean" }
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"cancellation": {
|
|
78
|
+
"type": "object",
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"required": ["supported", "requests", "streams"],
|
|
81
|
+
"properties": {
|
|
82
|
+
"supported": { "type": "boolean" },
|
|
83
|
+
"requests": { "type": "boolean" },
|
|
84
|
+
"streams": { "type": "boolean" }
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"tabs": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"additionalProperties": false,
|
|
90
|
+
"required": [
|
|
91
|
+
"stableProviderIdentity",
|
|
92
|
+
"stableBrowserIdentity",
|
|
93
|
+
"stableTabIdentity",
|
|
94
|
+
"coordinationScope",
|
|
95
|
+
"authoritativeClaim",
|
|
96
|
+
"fencing",
|
|
97
|
+
"concurrentTabs"
|
|
98
|
+
],
|
|
99
|
+
"properties": {
|
|
100
|
+
"stableProviderIdentity": { "type": "boolean" },
|
|
101
|
+
"stableBrowserIdentity": { "type": "boolean" },
|
|
102
|
+
"stableTabIdentity": { "type": "boolean" },
|
|
103
|
+
"coordinationScope": { "enum": ["none", "process", "provider"] },
|
|
104
|
+
"authoritativeClaim": { "type": "boolean" },
|
|
105
|
+
"fencing": { "type": "boolean" },
|
|
106
|
+
"concurrentTabs": { "type": "boolean" },
|
|
107
|
+
"stableIdentity": { "type": "boolean" },
|
|
108
|
+
"coordination": { "type": "boolean" },
|
|
109
|
+
"concurrent": { "type": "boolean" }
|
|
110
|
+
}
|
|
31
111
|
}
|
|
32
112
|
}
|
|
33
113
|
}
|
|
@@ -21,7 +21,26 @@
|
|
|
21
21
|
"backendRequest",
|
|
22
22
|
"backendResponse",
|
|
23
23
|
"backendEvent",
|
|
24
|
+
"backendCompatibility",
|
|
24
25
|
"capabilities",
|
|
26
|
+
"operationAction",
|
|
27
|
+
"operationArtifactReceipt",
|
|
28
|
+
"operationBlocker",
|
|
29
|
+
"operationCollectRequest",
|
|
30
|
+
"operationControlReceipt",
|
|
31
|
+
"operationControlRequest",
|
|
32
|
+
"operationEvent",
|
|
33
|
+
"operationHandle",
|
|
34
|
+
"operationInspectRequest",
|
|
35
|
+
"operationReceipt",
|
|
36
|
+
"operationRecovery",
|
|
37
|
+
"operationRequest",
|
|
38
|
+
"operationState",
|
|
39
|
+
"operationSubmissionWitness",
|
|
40
|
+
"operationSubmitResult",
|
|
41
|
+
"operationCollectResult",
|
|
42
|
+
"operationInspectResult",
|
|
43
|
+
"operationControlResult",
|
|
25
44
|
"surfaceProfile"
|
|
26
45
|
],
|
|
27
46
|
"additionalProperties": false,
|
|
@@ -36,7 +55,26 @@
|
|
|
36
55
|
"backendRequest": { "type": "string", "minLength": 1 },
|
|
37
56
|
"backendResponse": { "type": "string", "minLength": 1 },
|
|
38
57
|
"backendEvent": { "type": "string", "minLength": 1 },
|
|
58
|
+
"backendCompatibility": { "type": "string", "minLength": 1 },
|
|
39
59
|
"capabilities": { "type": "string", "minLength": 1 },
|
|
60
|
+
"operationAction": { "type": "string", "minLength": 1 },
|
|
61
|
+
"operationArtifactReceipt": { "type": "string", "minLength": 1 },
|
|
62
|
+
"operationBlocker": { "type": "string", "minLength": 1 },
|
|
63
|
+
"operationCollectRequest": { "type": "string", "minLength": 1 },
|
|
64
|
+
"operationControlReceipt": { "type": "string", "minLength": 1 },
|
|
65
|
+
"operationControlRequest": { "type": "string", "minLength": 1 },
|
|
66
|
+
"operationEvent": { "type": "string", "minLength": 1 },
|
|
67
|
+
"operationHandle": { "type": "string", "minLength": 1 },
|
|
68
|
+
"operationInspectRequest": { "type": "string", "minLength": 1 },
|
|
69
|
+
"operationReceipt": { "type": "string", "minLength": 1 },
|
|
70
|
+
"operationRecovery": { "type": "string", "minLength": 1 },
|
|
71
|
+
"operationRequest": { "type": "string", "minLength": 1 },
|
|
72
|
+
"operationState": { "type": "string", "minLength": 1 },
|
|
73
|
+
"operationSubmissionWitness": { "type": "string", "minLength": 1 },
|
|
74
|
+
"operationSubmitResult": { "type": "string", "minLength": 1 },
|
|
75
|
+
"operationCollectResult": { "type": "string", "minLength": 1 },
|
|
76
|
+
"operationInspectResult": { "type": "string", "minLength": 1 },
|
|
77
|
+
"operationControlResult": { "type": "string", "minLength": 1 },
|
|
40
78
|
"surfaceProfile": { "type": "string", "minLength": 1 }
|
|
41
79
|
}
|
|
42
80
|
},
|
|
@@ -60,7 +98,26 @@
|
|
|
60
98
|
"backendRequest",
|
|
61
99
|
"backendResponse",
|
|
62
100
|
"backendEvent",
|
|
101
|
+
"backendCompatibility",
|
|
63
102
|
"capabilities",
|
|
103
|
+
"operationAction",
|
|
104
|
+
"operationArtifactReceipt",
|
|
105
|
+
"operationBlocker",
|
|
106
|
+
"operationCollectRequest",
|
|
107
|
+
"operationControlReceipt",
|
|
108
|
+
"operationControlRequest",
|
|
109
|
+
"operationEvent",
|
|
110
|
+
"operationHandle",
|
|
111
|
+
"operationInspectRequest",
|
|
112
|
+
"operationReceipt",
|
|
113
|
+
"operationRecovery",
|
|
114
|
+
"operationRequest",
|
|
115
|
+
"operationState",
|
|
116
|
+
"operationSubmissionWitness",
|
|
117
|
+
"operationSubmitResult",
|
|
118
|
+
"operationCollectResult",
|
|
119
|
+
"operationInspectResult",
|
|
120
|
+
"operationControlResult",
|
|
64
121
|
"surfaceProfile"
|
|
65
122
|
]
|
|
66
123
|
},
|