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
|
@@ -0,0 +1,756 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://local.codex-chatgpt-control/contracts/v1/schemas/operation-event.schema.json",
|
|
4
|
+
"title": "Transactional browser operation event envelope",
|
|
5
|
+
"description": "A checksummed append-only journal envelope. Event payloads contain only redacted identifiers, digests, counts, state transitions, and receipts.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["schemaVersion", "revision", "previousEventDigest", "eventDigest", "event"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schemaVersion": { "const": "chatgpt.browser_control.operation_event.v1" },
|
|
11
|
+
"revision": { "$ref": "#/$defs/revision" },
|
|
12
|
+
"previousEventDigest": { "$ref": "#/$defs/digest" },
|
|
13
|
+
"eventDigest": { "$ref": "#/$defs/digest" },
|
|
14
|
+
"event": { "$ref": "#/$defs/event" }
|
|
15
|
+
},
|
|
16
|
+
"$defs": {
|
|
17
|
+
"capturePolicy": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"required": ["responseContent", "responseFormat", "artifacts"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"responseContent": { "enum": ["include", "metadata"] },
|
|
23
|
+
"responseFormat": { "enum": ["markdown", "text"] },
|
|
24
|
+
"artifacts": { "enum": ["receipt_only", "transfer"] }
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"uuid": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
30
|
+
},
|
|
31
|
+
"digest": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"pattern": "^hmac-sha256:[0-9a-f]{64}$"
|
|
34
|
+
},
|
|
35
|
+
"instant": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^(?!\\d{4}-02-(?:30|31)T)(?!\\d{4}-(?:04|06|09|11)-31T)\\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\\d|3[01])T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}Z$"
|
|
38
|
+
},
|
|
39
|
+
"revision": {
|
|
40
|
+
"type": "integer",
|
|
41
|
+
"minimum": 1,
|
|
42
|
+
"maximum": 9007199254740991
|
|
43
|
+
},
|
|
44
|
+
"opaqueId": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"minLength": 1,
|
|
47
|
+
"maxLength": 512,
|
|
48
|
+
"pattern": "^(?=.*\\S)[^\\u0000-\\u001f\\u007f]{1,512}$"
|
|
49
|
+
},
|
|
50
|
+
"code": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"pattern": "^[a-z][a-z0-9_]{0,63}$"
|
|
53
|
+
},
|
|
54
|
+
"phase": {
|
|
55
|
+
"enum": [
|
|
56
|
+
"prepared",
|
|
57
|
+
"handoff_pending",
|
|
58
|
+
"ready",
|
|
59
|
+
"send_pending",
|
|
60
|
+
"submitted",
|
|
61
|
+
"generating",
|
|
62
|
+
"capturing",
|
|
63
|
+
"completed",
|
|
64
|
+
"uncertain"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"mutationBoundary": {
|
|
68
|
+
"enum": ["none", "handoff_may_have_occurred", "send_may_have_occurred", "control_may_have_occurred"]
|
|
69
|
+
},
|
|
70
|
+
"evidenceProfile": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"additionalProperties": false,
|
|
73
|
+
"required": [
|
|
74
|
+
"providerIdentity",
|
|
75
|
+
"stableTabId",
|
|
76
|
+
"stableConversationId",
|
|
77
|
+
"stableUserTurnId",
|
|
78
|
+
"authoritativeTabClaim",
|
|
79
|
+
"replacementTabRecovery"
|
|
80
|
+
],
|
|
81
|
+
"properties": {
|
|
82
|
+
"providerIdentity": { "enum": ["required", "unavailable"] },
|
|
83
|
+
"stableTabId": { "enum": ["required", "unavailable"] },
|
|
84
|
+
"stableConversationId": { "enum": ["required", "unavailable"] },
|
|
85
|
+
"stableUserTurnId": { "enum": ["required", "unavailable"] },
|
|
86
|
+
"authoritativeTabClaim": { "enum": ["required", "unavailable"] },
|
|
87
|
+
"replacementTabRecovery": { "type": "boolean" }
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"target": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"additionalProperties": false,
|
|
93
|
+
"required": ["providerId", "browserId", "tabId", "coordinationScope", "evidenceProfile"],
|
|
94
|
+
"properties": {
|
|
95
|
+
"providerId": { "$ref": "#/$defs/opaqueId" },
|
|
96
|
+
"browserId": { "$ref": "#/$defs/opaqueId" },
|
|
97
|
+
"tabId": { "$ref": "#/$defs/opaqueId" },
|
|
98
|
+
"coordinationScope": { "enum": ["process", "provider"] },
|
|
99
|
+
"tabClaimEvidenceDigest": { "$ref": "#/$defs/digest" },
|
|
100
|
+
"canonicalThreadUrl": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"minLength": 1,
|
|
103
|
+
"maxLength": 4096,
|
|
104
|
+
"pattern": "^https://[^?#]+$"
|
|
105
|
+
},
|
|
106
|
+
"conversationId": { "$ref": "#/$defs/opaqueId" },
|
|
107
|
+
"userTurnBaselineDigest": { "$ref": "#/$defs/digest" },
|
|
108
|
+
"assistantTurnBaselineDigest": { "$ref": "#/$defs/digest" },
|
|
109
|
+
"configurationReceiptDigest": { "$ref": "#/$defs/digest" },
|
|
110
|
+
"targetLifecycle": { "enum": ["fixed", "new_pending", "new_established"] },
|
|
111
|
+
"newTargetAnchorDigest": { "$ref": "#/$defs/digest" },
|
|
112
|
+
"blankTaskEvidenceDigest": { "$ref": "#/$defs/digest" },
|
|
113
|
+
"targetEstablishment": { "$ref": "#/$defs/targetEstablishmentRead" },
|
|
114
|
+
"evidenceProfile": { "$ref": "#/$defs/evidenceProfile" }
|
|
115
|
+
},
|
|
116
|
+
"allOf": [
|
|
117
|
+
{
|
|
118
|
+
"if": { "properties": { "coordinationScope": { "const": "provider" } }, "required": ["coordinationScope"] },
|
|
119
|
+
"then": {
|
|
120
|
+
"required": ["tabClaimEvidenceDigest"],
|
|
121
|
+
"properties": {
|
|
122
|
+
"tabClaimEvidenceDigest": { "$ref": "#/$defs/digest" },
|
|
123
|
+
"evidenceProfile": {
|
|
124
|
+
"type": "object",
|
|
125
|
+
"properties": { "authoritativeTabClaim": { "const": "required" } }
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
,{
|
|
131
|
+
"if": { "type": "object", "properties": { "targetLifecycle": { "const": "new_pending" } }, "required": ["targetLifecycle"] },
|
|
132
|
+
"then": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"required": ["newTargetAnchorDigest", "blankTaskEvidenceDigest"],
|
|
135
|
+
"properties": {
|
|
136
|
+
"newTargetAnchorDigest": { "$ref": "#/$defs/digest" },
|
|
137
|
+
"blankTaskEvidenceDigest": { "$ref": "#/$defs/digest" }
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"if": { "type": "object", "properties": { "targetLifecycle": { "const": "new_established" } }, "required": ["targetLifecycle"] },
|
|
143
|
+
"then": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"required": ["newTargetAnchorDigest", "blankTaskEvidenceDigest", "canonicalThreadUrl", "conversationId", "targetEstablishment"],
|
|
146
|
+
"properties": {
|
|
147
|
+
"newTargetAnchorDigest": { "$ref": "#/$defs/digest" },
|
|
148
|
+
"blankTaskEvidenceDigest": { "$ref": "#/$defs/digest" },
|
|
149
|
+
"canonicalThreadUrl": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^https://[^?#]+$" },
|
|
150
|
+
"conversationId": { "$ref": "#/$defs/opaqueId" },
|
|
151
|
+
"targetEstablishment": { "$ref": "#/$defs/targetEstablishment" }
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"if": { "type": "object", "properties": { "targetLifecycle": { "const": "fixed" } }, "required": ["targetLifecycle"] },
|
|
157
|
+
"then": { "type": "object" }
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
"targetEstablishmentRead": {
|
|
162
|
+
"type": "object",
|
|
163
|
+
"additionalProperties": false,
|
|
164
|
+
"required": [
|
|
165
|
+
"targetBindingDigest",
|
|
166
|
+
"anchorDigest",
|
|
167
|
+
"causalSendActionId",
|
|
168
|
+
"conversationId",
|
|
169
|
+
"canonicalThreadUrl",
|
|
170
|
+
"userTurnId",
|
|
171
|
+
"userTurnEvidenceDigest",
|
|
172
|
+
"evidenceDigest",
|
|
173
|
+
"observedAt"
|
|
174
|
+
],
|
|
175
|
+
"properties": {
|
|
176
|
+
"targetBindingDigest": { "$ref": "#/$defs/digest" },
|
|
177
|
+
"anchorDigest": { "$ref": "#/$defs/digest" },
|
|
178
|
+
"causalSendActionId": { "$ref": "#/$defs/uuid" },
|
|
179
|
+
"conversationId": { "$ref": "#/$defs/opaqueId" },
|
|
180
|
+
"canonicalThreadUrl": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^https://[^?#]+$" },
|
|
181
|
+
"userTurnId": { "$ref": "#/$defs/opaqueId" },
|
|
182
|
+
"userTurnEvidenceDigest": { "$ref": "#/$defs/digest" },
|
|
183
|
+
"postSendDeltaDigest": { "$ref": "#/$defs/digest" },
|
|
184
|
+
"evidenceDigest": { "$ref": "#/$defs/digest" },
|
|
185
|
+
"observedAt": { "$ref": "#/$defs/instant" }
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"targetEstablishment": {
|
|
189
|
+
"allOf": [
|
|
190
|
+
{ "$ref": "#/$defs/targetEstablishmentRead" },
|
|
191
|
+
{ "type": "object", "required": ["postSendDeltaDigest"], "properties": { "postSendDeltaDigest": { "$ref": "#/$defs/digest" } } }
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
"submissionWitness": {
|
|
195
|
+
"type": "object",
|
|
196
|
+
"additionalProperties": false,
|
|
197
|
+
"required": [
|
|
198
|
+
"schemaVersion",
|
|
199
|
+
"actionId",
|
|
200
|
+
"actionKind",
|
|
201
|
+
"targetBindingDigest",
|
|
202
|
+
"baselineSnapshotDigest",
|
|
203
|
+
"postSendDeltaDigest",
|
|
204
|
+
"operationUserEvidenceDigest",
|
|
205
|
+
"observedAt"
|
|
206
|
+
],
|
|
207
|
+
"properties": {
|
|
208
|
+
"schemaVersion": { "const": "chatgpt.browser_control.operation_submission_witness.v1" },
|
|
209
|
+
"actionId": { "$ref": "#/$defs/uuid" },
|
|
210
|
+
"actionKind": { "enum": ["send", "work_steer"] },
|
|
211
|
+
"targetBindingDigest": { "$ref": "#/$defs/digest" },
|
|
212
|
+
"baselineSnapshotDigest": { "$ref": "#/$defs/digest" },
|
|
213
|
+
"postSendDeltaDigest": { "$ref": "#/$defs/digest" },
|
|
214
|
+
"operationUserEvidenceDigest": { "$ref": "#/$defs/digest" },
|
|
215
|
+
"userTurnId": { "$ref": "#/$defs/opaqueId" },
|
|
216
|
+
"observedAt": { "$ref": "#/$defs/instant" }
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"operationOwnershipBaseline": {
|
|
220
|
+
"type": "object",
|
|
221
|
+
"additionalProperties": false,
|
|
222
|
+
"required": ["schemaVersion", "operationId", "requestDigest", "targetBindingDigest", "actionId", "baseline", "observedAt"],
|
|
223
|
+
"properties": {
|
|
224
|
+
"schemaVersion": { "const": "chatgpt.browser_control.operation_ownership_baseline.v1" },
|
|
225
|
+
"operationId": { "$ref": "#/$defs/uuid" },
|
|
226
|
+
"requestDigest": { "$ref": "#/$defs/digest" },
|
|
227
|
+
"targetBindingDigest": { "$ref": "#/$defs/digest" },
|
|
228
|
+
"actionId": { "$ref": "#/$defs/uuid" },
|
|
229
|
+
"baseline": { "$ref": "#/$defs/ownershipBaseline" },
|
|
230
|
+
"observedAt": { "$ref": "#/$defs/instant" }
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"ownershipBaseline": {
|
|
234
|
+
"type": "object",
|
|
235
|
+
"additionalProperties": false,
|
|
236
|
+
"required": ["schemaVersion", "snapshotDigest", "target", "userTurns", "assistantTurns", "completeness"],
|
|
237
|
+
"properties": {
|
|
238
|
+
"schemaVersion": { "const": "chatgpt.browser_control.turn_ownership.v1" },
|
|
239
|
+
"snapshotDigest": { "$ref": "#/$defs/digest" },
|
|
240
|
+
"target": { "$ref": "#/$defs/ownershipTarget" },
|
|
241
|
+
"userTurns": { "type": "array", "maxItems": 256, "items": { "$ref": "#/$defs/ownershipTurn" } },
|
|
242
|
+
"assistantTurns": { "type": "array", "maxItems": 256, "items": { "$ref": "#/$defs/ownershipTurn" } },
|
|
243
|
+
"completeness": { "const": "complete" }
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"ownershipTarget": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"additionalProperties": false,
|
|
249
|
+
"required": ["provider", "browser", "tab", "thread", "conversation", "canonicalThreadUrl", "authoritativeTabClaim", "coordinationScope"],
|
|
250
|
+
"properties": {
|
|
251
|
+
"provider": { "$ref": "#/$defs/ownershipIdentity" },
|
|
252
|
+
"browser": { "$ref": "#/$defs/ownershipIdentity" },
|
|
253
|
+
"tab": { "$ref": "#/$defs/ownershipIdentity" },
|
|
254
|
+
"thread": { "$ref": "#/$defs/ownershipIdentity" },
|
|
255
|
+
"conversation": { "$ref": "#/$defs/ownershipIdentity" },
|
|
256
|
+
"canonicalThreadUrl": { "$ref": "#/$defs/ownershipUrlIdentity" },
|
|
257
|
+
"authoritativeTabClaim": { "$ref": "#/$defs/ownershipIdentity" },
|
|
258
|
+
"coordinationScope": { "enum": ["process", "provider"] }
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"ownershipIdentity": {
|
|
262
|
+
"oneOf": [
|
|
263
|
+
{
|
|
264
|
+
"type": "object",
|
|
265
|
+
"additionalProperties": false,
|
|
266
|
+
"required": ["status", "value"],
|
|
267
|
+
"properties": { "status": { "const": "available" }, "value": { "$ref": "#/$defs/opaqueId" } }
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"type": "object",
|
|
271
|
+
"additionalProperties": false,
|
|
272
|
+
"required": ["status", "reason"],
|
|
273
|
+
"properties": { "status": { "const": "unavailable" }, "reason": { "enum": ["not_exposed", "not_observed", "redacted"] } }
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
"ownershipUrlIdentity": {
|
|
278
|
+
"oneOf": [
|
|
279
|
+
{
|
|
280
|
+
"type": "object",
|
|
281
|
+
"additionalProperties": false,
|
|
282
|
+
"required": ["status", "value"],
|
|
283
|
+
"properties": {
|
|
284
|
+
"status": { "const": "available" },
|
|
285
|
+
"value": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^https://[^?#]+$" }
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"type": "object",
|
|
290
|
+
"additionalProperties": false,
|
|
291
|
+
"required": ["status", "reason"],
|
|
292
|
+
"properties": { "status": { "const": "unavailable" }, "reason": { "enum": ["not_exposed", "not_observed", "redacted"] } }
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
"ownershipTurn": {
|
|
297
|
+
"type": "object",
|
|
298
|
+
"additionalProperties": false,
|
|
299
|
+
"required": ["evidenceDigest", "structureDigest", "ordinal"],
|
|
300
|
+
"properties": {
|
|
301
|
+
"stableId": { "$ref": "#/$defs/opaqueId" },
|
|
302
|
+
"evidenceDigest": { "$ref": "#/$defs/digest" },
|
|
303
|
+
"structureDigest": { "$ref": "#/$defs/digest" },
|
|
304
|
+
"ordinal": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
305
|
+
"parentStableId": { "$ref": "#/$defs/opaqueId" },
|
|
306
|
+
"branchStableId": { "$ref": "#/$defs/opaqueId" },
|
|
307
|
+
"state": { "enum": ["generating", "terminal"] },
|
|
308
|
+
"artifactEvidenceDigests": { "type": "array", "maxItems": 32, "items": { "$ref": "#/$defs/digest" } }
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"actionKind": {
|
|
312
|
+
"enum": [
|
|
313
|
+
"status_read",
|
|
314
|
+
"configuration_set",
|
|
315
|
+
"tool_set",
|
|
316
|
+
"composer_set",
|
|
317
|
+
"power_discovery",
|
|
318
|
+
"power_select",
|
|
319
|
+
"file_handoff",
|
|
320
|
+
"send",
|
|
321
|
+
"work_steer",
|
|
322
|
+
"stop",
|
|
323
|
+
"download",
|
|
324
|
+
"local_output_commit",
|
|
325
|
+
"clipboard_capture_restore"
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
"repeatPolicy": {
|
|
329
|
+
"enum": [
|
|
330
|
+
"read_only",
|
|
331
|
+
"reconcile_set_to_value",
|
|
332
|
+
"reconcile_local_effect",
|
|
333
|
+
"observe_only_after_intent"
|
|
334
|
+
]
|
|
335
|
+
},
|
|
336
|
+
"actionIntent": {
|
|
337
|
+
"type": "object",
|
|
338
|
+
"additionalProperties": false,
|
|
339
|
+
"required": ["actionId", "kind", "repeatPolicy", "requestDigest"],
|
|
340
|
+
"properties": {
|
|
341
|
+
"actionId": { "$ref": "#/$defs/uuid" },
|
|
342
|
+
"kind": { "$ref": "#/$defs/actionKind" },
|
|
343
|
+
"repeatPolicy": { "$ref": "#/$defs/repeatPolicy" },
|
|
344
|
+
"requestDigest": { "$ref": "#/$defs/digest" },
|
|
345
|
+
"parentActionId": { "$ref": "#/$defs/uuid" },
|
|
346
|
+
"targetDigest": { "$ref": "#/$defs/digest" }
|
|
347
|
+
},
|
|
348
|
+
"allOf": [
|
|
349
|
+
{
|
|
350
|
+
"if": { "properties": { "kind": { "not": { "const": "status_read" } } }, "required": ["kind"] },
|
|
351
|
+
"then": {
|
|
352
|
+
"required": ["targetDigest"],
|
|
353
|
+
"properties": { "targetDigest": { "$ref": "#/$defs/digest" } }
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"if": { "properties": { "kind": { "enum": ["status_read", "power_discovery"] } }, "required": ["kind"] },
|
|
358
|
+
"then": { "properties": { "repeatPolicy": { "const": "read_only" } } }
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"if": { "properties": { "kind": { "enum": ["configuration_set", "tool_set", "composer_set", "power_select"] } }, "required": ["kind"] },
|
|
362
|
+
"then": { "properties": { "repeatPolicy": { "const": "reconcile_set_to_value" } } }
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"if": { "properties": { "kind": { "enum": ["file_handoff", "send", "work_steer", "stop"] } }, "required": ["kind"] },
|
|
366
|
+
"then": { "properties": { "repeatPolicy": { "const": "observe_only_after_intent" } } }
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"if": { "properties": { "kind": { "enum": ["download", "local_output_commit", "clipboard_capture_restore"] } }, "required": ["kind"] },
|
|
370
|
+
"then": { "properties": { "repeatPolicy": { "const": "reconcile_local_effect" } } }
|
|
371
|
+
}
|
|
372
|
+
]
|
|
373
|
+
},
|
|
374
|
+
"actionPrepared": {
|
|
375
|
+
"type": "object",
|
|
376
|
+
"additionalProperties": false,
|
|
377
|
+
"required": ["type", "action", "intentAt", "baseline"],
|
|
378
|
+
"properties": {
|
|
379
|
+
"type": { "const": "action_prepared" },
|
|
380
|
+
"action": {
|
|
381
|
+
"allOf": [
|
|
382
|
+
{ "$ref": "#/$defs/actionIntent" },
|
|
383
|
+
{
|
|
384
|
+
"type": "object",
|
|
385
|
+
"required": ["kind"],
|
|
386
|
+
"properties": { "kind": { "enum": ["send", "work_steer"] } }
|
|
387
|
+
}
|
|
388
|
+
]
|
|
389
|
+
},
|
|
390
|
+
"intentAt": { "$ref": "#/$defs/instant" },
|
|
391
|
+
"baseline": { "$ref": "#/$defs/operationOwnershipBaseline" }
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"artifactTransferIntent": {
|
|
395
|
+
"type": "object",
|
|
396
|
+
"additionalProperties": false,
|
|
397
|
+
"required": [
|
|
398
|
+
"schemaVersion", "operationId", "requestDigest", "targetBindingDigest", "assistantTurnId",
|
|
399
|
+
"sourceIdentityDigest", "kind", "ordinal", "transferActionId", "destinationIdentityDigest",
|
|
400
|
+
"actionKind", "repeatPolicy", "intentAt"
|
|
401
|
+
],
|
|
402
|
+
"properties": {
|
|
403
|
+
"schemaVersion": { "const": "chatgpt.browser_control.artifact_transfer_intent.v1" },
|
|
404
|
+
"operationId": { "$ref": "#/$defs/uuid" },
|
|
405
|
+
"requestDigest": { "$ref": "#/$defs/digest" },
|
|
406
|
+
"targetBindingDigest": { "$ref": "#/$defs/digest" },
|
|
407
|
+
"assistantTurnId": { "$ref": "#/$defs/opaqueId" },
|
|
408
|
+
"sourceIdentityDigest": { "$ref": "#/$defs/digest" },
|
|
409
|
+
"kind": { "enum": ["file", "image", "other"] },
|
|
410
|
+
"ordinal": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
411
|
+
"transferActionId": { "$ref": "#/$defs/uuid" },
|
|
412
|
+
"destinationIdentityDigest": { "$ref": "#/$defs/digest" },
|
|
413
|
+
"actionKind": { "const": "local_output_commit" },
|
|
414
|
+
"repeatPolicy": { "const": "reconcile_local_effect" },
|
|
415
|
+
"intentAt": { "$ref": "#/$defs/instant" }
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"artifactTransferReceipt": {
|
|
419
|
+
"type": "object",
|
|
420
|
+
"additionalProperties": false,
|
|
421
|
+
"required": [
|
|
422
|
+
"schemaVersion", "operationId", "requestDigest", "targetBindingDigest", "assistantTurnId",
|
|
423
|
+
"sourceIdentityDigest", "kind", "ordinal", "transferActionId", "destinationIdentityDigest",
|
|
424
|
+
"status", "observedAt"
|
|
425
|
+
],
|
|
426
|
+
"properties": {
|
|
427
|
+
"schemaVersion": { "const": "chatgpt.browser_control.artifact_transfer_receipt.v1" },
|
|
428
|
+
"operationId": { "$ref": "#/$defs/uuid" },
|
|
429
|
+
"requestDigest": { "$ref": "#/$defs/digest" },
|
|
430
|
+
"targetBindingDigest": { "$ref": "#/$defs/digest" },
|
|
431
|
+
"assistantTurnId": { "$ref": "#/$defs/opaqueId" },
|
|
432
|
+
"sourceIdentityDigest": { "$ref": "#/$defs/digest" },
|
|
433
|
+
"kind": { "enum": ["file", "image", "other"] },
|
|
434
|
+
"ordinal": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
435
|
+
"transferActionId": { "$ref": "#/$defs/uuid" },
|
|
436
|
+
"destinationIdentityDigest": { "$ref": "#/$defs/digest" },
|
|
437
|
+
"outputKey": { "$ref": "#/$defs/outputKey" },
|
|
438
|
+
"bytes": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
439
|
+
"sha256": { "$ref": "#/$defs/sha256" },
|
|
440
|
+
"status": { "enum": ["transferred", "partial", "blocked"] },
|
|
441
|
+
"blockerCode": { "$ref": "#/$defs/code" },
|
|
442
|
+
"observedAt": { "$ref": "#/$defs/instant" }
|
|
443
|
+
},
|
|
444
|
+
"allOf": [
|
|
445
|
+
{
|
|
446
|
+
"if": { "properties": { "status": { "const": "transferred" } }, "required": ["status"] },
|
|
447
|
+
"then": {
|
|
448
|
+
"required": ["outputKey", "bytes", "sha256"],
|
|
449
|
+
"properties": {
|
|
450
|
+
"outputKey": { "$ref": "#/$defs/outputKey" },
|
|
451
|
+
"bytes": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
452
|
+
"sha256": { "$ref": "#/$defs/sha256" },
|
|
453
|
+
"blockerCode": false
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"if": { "properties": { "status": { "enum": ["partial", "blocked"] } }, "required": ["status"] },
|
|
459
|
+
"then": { "required": ["blockerCode"] }
|
|
460
|
+
}
|
|
461
|
+
]
|
|
462
|
+
},
|
|
463
|
+
"actionReceipt": {
|
|
464
|
+
"type": "object",
|
|
465
|
+
"additionalProperties": false,
|
|
466
|
+
"required": ["type", "actionId", "outcome", "observedAt"],
|
|
467
|
+
"properties": {
|
|
468
|
+
"type": { "const": "action_receipt" },
|
|
469
|
+
"actionId": { "$ref": "#/$defs/uuid" },
|
|
470
|
+
"outcome": { "enum": ["satisfied", "not_satisfied", "uncertain"] },
|
|
471
|
+
"evidenceDigest": { "$ref": "#/$defs/digest" },
|
|
472
|
+
"blockerCode": { "$ref": "#/$defs/code" },
|
|
473
|
+
"observedAt": { "$ref": "#/$defs/instant" }
|
|
474
|
+
},
|
|
475
|
+
"allOf": [
|
|
476
|
+
{
|
|
477
|
+
"if": { "properties": { "outcome": { "const": "satisfied" } }, "required": ["outcome"] },
|
|
478
|
+
"then": {
|
|
479
|
+
"required": ["evidenceDigest"],
|
|
480
|
+
"properties": { "evidenceDigest": { "$ref": "#/$defs/digest" } }
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"if": {
|
|
485
|
+
"required": ["blockerCode"],
|
|
486
|
+
"properties": { "blockerCode": { "$ref": "#/$defs/code" } }
|
|
487
|
+
},
|
|
488
|
+
"then": { "properties": { "outcome": { "enum": ["not_satisfied", "uncertain"] } } }
|
|
489
|
+
}
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
"blocker": {
|
|
493
|
+
"type": "object",
|
|
494
|
+
"additionalProperties": false,
|
|
495
|
+
"required": ["code", "messageDigest", "recoverable", "observedAt"],
|
|
496
|
+
"properties": {
|
|
497
|
+
"code": { "$ref": "#/$defs/code" },
|
|
498
|
+
"messageDigest": { "$ref": "#/$defs/digest" },
|
|
499
|
+
"recoverable": { "type": "boolean" },
|
|
500
|
+
"observedAt": { "$ref": "#/$defs/instant" }
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"artifact": {
|
|
504
|
+
"type": "object",
|
|
505
|
+
"additionalProperties": false,
|
|
506
|
+
"required": ["schemaVersion", "operationId", "artifactKey", "assistantTurnId", "sourceIdentityDigest", "kind", "ordinal", "status"],
|
|
507
|
+
"properties": {
|
|
508
|
+
"schemaVersion": { "const": "chatgpt.browser_control.operation_artifact_receipt.v1" },
|
|
509
|
+
"operationId": { "$ref": "#/$defs/uuid" },
|
|
510
|
+
"artifactKey": { "$ref": "#/$defs/opaqueKey" },
|
|
511
|
+
"assistantTurnId": { "$ref": "#/$defs/opaqueId" },
|
|
512
|
+
"sourceIdentityDigest": { "$ref": "#/$defs/digest" },
|
|
513
|
+
"kind": { "enum": ["file", "image", "other"] },
|
|
514
|
+
"ordinal": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
515
|
+
"outputKey": { "$ref": "#/$defs/outputKey" },
|
|
516
|
+
"mimeType": {
|
|
517
|
+
"type": "string",
|
|
518
|
+
"minLength": 1,
|
|
519
|
+
"maxLength": 127,
|
|
520
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9!#$&^_.+/-]{0,126}$"
|
|
521
|
+
},
|
|
522
|
+
"bytes": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
523
|
+
"sha256": { "$ref": "#/$defs/sha256" },
|
|
524
|
+
"status": { "enum": ["available", "transferred", "partial", "blocked"] },
|
|
525
|
+
"blockerCode": { "$ref": "#/$defs/code" }
|
|
526
|
+
},
|
|
527
|
+
"allOf": [
|
|
528
|
+
{
|
|
529
|
+
"if": { "properties": { "status": { "const": "transferred" } }, "required": ["status"] },
|
|
530
|
+
"then": {
|
|
531
|
+
"required": ["outputKey", "bytes", "sha256"],
|
|
532
|
+
"properties": {
|
|
533
|
+
"outputKey": { "$ref": "#/$defs/outputKey" },
|
|
534
|
+
"bytes": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
535
|
+
"sha256": { "$ref": "#/$defs/sha256" }
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"if": { "properties": { "status": { "enum": ["partial", "blocked"] } }, "required": ["status"] },
|
|
541
|
+
"then": {
|
|
542
|
+
"required": ["blockerCode"],
|
|
543
|
+
"properties": { "blockerCode": { "$ref": "#/$defs/code" } }
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"if": { "properties": { "status": { "enum": ["available", "transferred"] } }, "required": ["status"] },
|
|
548
|
+
"then": { "not": { "required": ["blockerCode"] } }
|
|
549
|
+
}
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
"opaqueKey": {
|
|
553
|
+
"type": "string",
|
|
554
|
+
"minLength": 1,
|
|
555
|
+
"maxLength": 128,
|
|
556
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
|
|
557
|
+
},
|
|
558
|
+
"outputKey": {
|
|
559
|
+
"type": "string",
|
|
560
|
+
"minLength": 1,
|
|
561
|
+
"maxLength": 128,
|
|
562
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"
|
|
563
|
+
},
|
|
564
|
+
"sha256": {
|
|
565
|
+
"type": "string",
|
|
566
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
567
|
+
},
|
|
568
|
+
"receipt": {
|
|
569
|
+
"type": "object",
|
|
570
|
+
"additionalProperties": false,
|
|
571
|
+
"required": [
|
|
572
|
+
"schemaVersion",
|
|
573
|
+
"operationId",
|
|
574
|
+
"requestDigest",
|
|
575
|
+
"targetBindingDigest",
|
|
576
|
+
"userTurnId",
|
|
577
|
+
"userTurnEvidenceDigest",
|
|
578
|
+
"assistantTurnId",
|
|
579
|
+
"ownershipEvidenceDigest",
|
|
580
|
+
"finishReason",
|
|
581
|
+
"contentAvailable",
|
|
582
|
+
"artifacts",
|
|
583
|
+
"completedAt"
|
|
584
|
+
],
|
|
585
|
+
"properties": {
|
|
586
|
+
"schemaVersion": { "const": "chatgpt.browser_control.operation_receipt.v1" },
|
|
587
|
+
"operationId": { "$ref": "#/$defs/uuid" },
|
|
588
|
+
"requestDigest": { "$ref": "#/$defs/digest" },
|
|
589
|
+
"targetBindingDigest": { "$ref": "#/$defs/digest" },
|
|
590
|
+
"userTurnId": { "$ref": "#/$defs/opaqueId" },
|
|
591
|
+
"userTurnEvidenceDigest": { "$ref": "#/$defs/digest" },
|
|
592
|
+
"assistantTurnId": { "$ref": "#/$defs/opaqueId" },
|
|
593
|
+
"ownershipEvidenceDigest": { "$ref": "#/$defs/digest" },
|
|
594
|
+
"responseDigest": { "$ref": "#/$defs/digest" },
|
|
595
|
+
"responseBytes": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
596
|
+
"responseFormat": { "enum": ["markdown", "text"] },
|
|
597
|
+
"finishReason": {
|
|
598
|
+
"type": "string",
|
|
599
|
+
"minLength": 1,
|
|
600
|
+
"maxLength": 128,
|
|
601
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
|
|
602
|
+
},
|
|
603
|
+
"contentAvailable": { "type": "boolean" },
|
|
604
|
+
"artifacts": {
|
|
605
|
+
"type": "array",
|
|
606
|
+
"items": { "$ref": "#/$defs/artifact" },
|
|
607
|
+
"maxItems": 32
|
|
608
|
+
},
|
|
609
|
+
"completedAt": { "$ref": "#/$defs/instant" }
|
|
610
|
+
},
|
|
611
|
+
"dependentRequired": {
|
|
612
|
+
"responseDigest": ["responseBytes"],
|
|
613
|
+
"responseBytes": ["responseDigest"]
|
|
614
|
+
},
|
|
615
|
+
"allOf": [
|
|
616
|
+
{
|
|
617
|
+
"if": { "properties": { "contentAvailable": { "const": true } }, "required": ["contentAvailable"] },
|
|
618
|
+
"then": {
|
|
619
|
+
"required": ["responseDigest", "responseBytes"],
|
|
620
|
+
"properties": {
|
|
621
|
+
"responseDigest": { "$ref": "#/$defs/digest" },
|
|
622
|
+
"responseBytes": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
]
|
|
627
|
+
},
|
|
628
|
+
"event": {
|
|
629
|
+
"oneOf": [
|
|
630
|
+
{
|
|
631
|
+
"type": "object",
|
|
632
|
+
"additionalProperties": false,
|
|
633
|
+
"required": ["type", "operationId", "requestDigest", "surface", "createdAt"],
|
|
634
|
+
"properties": {
|
|
635
|
+
"type": { "const": "operation_created" },
|
|
636
|
+
"operationId": { "$ref": "#/$defs/uuid" },
|
|
637
|
+
"requestDigest": { "$ref": "#/$defs/digest" },
|
|
638
|
+
"surface": { "enum": ["chat", "work"] },
|
|
639
|
+
"createdAt": { "$ref": "#/$defs/instant" },
|
|
640
|
+
"capturePolicy": { "$ref": "#/$defs/capturePolicy" }
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"type": "object",
|
|
645
|
+
"additionalProperties": false,
|
|
646
|
+
"required": ["type", "target", "observedAt"],
|
|
647
|
+
"properties": {
|
|
648
|
+
"type": { "const": "target_bound" },
|
|
649
|
+
"target": { "$ref": "#/$defs/target" },
|
|
650
|
+
"observedAt": { "$ref": "#/$defs/instant" }
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"type": "object",
|
|
655
|
+
"additionalProperties": false,
|
|
656
|
+
"required": ["type", "establishment"],
|
|
657
|
+
"properties": {
|
|
658
|
+
"type": { "const": "target_established" },
|
|
659
|
+
"establishment": { "$ref": "#/$defs/targetEstablishment" }
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"type": "object",
|
|
664
|
+
"additionalProperties": false,
|
|
665
|
+
"required": ["type", "witness"],
|
|
666
|
+
"properties": {
|
|
667
|
+
"type": { "const": "submission_witness" },
|
|
668
|
+
"witness": { "$ref": "#/$defs/submissionWitness" }
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"type": "object",
|
|
673
|
+
"additionalProperties": false,
|
|
674
|
+
"required": ["type", "baseline"],
|
|
675
|
+
"properties": {
|
|
676
|
+
"type": { "const": "ownership_baseline" },
|
|
677
|
+
"baseline": { "$ref": "#/$defs/operationOwnershipBaseline" }
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"type": "object",
|
|
682
|
+
"additionalProperties": false,
|
|
683
|
+
"required": ["type", "action", "intentAt"],
|
|
684
|
+
"properties": {
|
|
685
|
+
"type": { "const": "action_intent" },
|
|
686
|
+
"action": { "$ref": "#/$defs/actionIntent" },
|
|
687
|
+
"intentAt": { "$ref": "#/$defs/instant" }
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
{ "$ref": "#/$defs/actionPrepared" },
|
|
691
|
+
{
|
|
692
|
+
"type": "object",
|
|
693
|
+
"additionalProperties": false,
|
|
694
|
+
"required": ["type", "intent"],
|
|
695
|
+
"properties": {
|
|
696
|
+
"type": { "const": "artifact_transfer_intent" },
|
|
697
|
+
"intent": { "$ref": "#/$defs/artifactTransferIntent" }
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"type": "object",
|
|
702
|
+
"additionalProperties": false,
|
|
703
|
+
"required": ["type", "receipt"],
|
|
704
|
+
"properties": {
|
|
705
|
+
"type": { "const": "artifact_transfer_receipt" },
|
|
706
|
+
"receipt": { "$ref": "#/$defs/artifactTransferReceipt" }
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
{ "$ref": "#/$defs/actionReceipt" },
|
|
710
|
+
{
|
|
711
|
+
"type": "object",
|
|
712
|
+
"additionalProperties": false,
|
|
713
|
+
"required": ["type", "from", "to", "mutationBoundary", "observedAt"],
|
|
714
|
+
"properties": {
|
|
715
|
+
"type": { "const": "phase_changed" },
|
|
716
|
+
"from": { "$ref": "#/$defs/phase" },
|
|
717
|
+
"to": { "$ref": "#/$defs/phase" },
|
|
718
|
+
"mutationBoundary": { "$ref": "#/$defs/mutationBoundary" },
|
|
719
|
+
"causeActionId": { "$ref": "#/$defs/uuid" },
|
|
720
|
+
"evidenceDigest": { "$ref": "#/$defs/digest" },
|
|
721
|
+
"observedAt": { "$ref": "#/$defs/instant" }
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"type": "object",
|
|
726
|
+
"additionalProperties": false,
|
|
727
|
+
"required": ["type", "blocker"],
|
|
728
|
+
"properties": {
|
|
729
|
+
"type": { "const": "blocker_observed" },
|
|
730
|
+
"blocker": { "$ref": "#/$defs/blocker" }
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"type": "object",
|
|
735
|
+
"additionalProperties": false,
|
|
736
|
+
"required": ["type", "receipt", "observedAt"],
|
|
737
|
+
"properties": {
|
|
738
|
+
"type": { "const": "receipt_completed" },
|
|
739
|
+
"receipt": { "$ref": "#/$defs/receipt" },
|
|
740
|
+
"observedAt": { "$ref": "#/$defs/instant" }
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"type": "object",
|
|
745
|
+
"additionalProperties": false,
|
|
746
|
+
"required": ["type", "available", "observedAt"],
|
|
747
|
+
"properties": {
|
|
748
|
+
"type": { "const": "content_availability_changed" },
|
|
749
|
+
"available": { "type": "boolean" },
|
|
750
|
+
"observedAt": { "$ref": "#/$defs/instant" }
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
]
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}
|