@shumkov/orchestra 0.12.0 → 0.12.2
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/docs/CLAUDE_0_12_1_RELEASE_REPORT.md +72 -0
- package/docs/CLAUDE_2_1_322_PIN_CONSUMER_SPEC.md +193 -0
- package/docs/CLAUDE_2_1_322_PROVIDER_GATE_REQUEST.md +200 -0
- package/docs/CLAUDE_2_1_322_TRACKING_ISSUE_DRAFT.md +121 -0
- package/docs/CLAUDE_2_1_322_UPGRADE_SPEC.md +259 -0
- package/docs/CLAUDE_LOCAL_STUB_TOOLS_SPEC.md +100 -0
- package/docs/CODEX_PROXY_AUTH_FIX_SPEC.md +45 -0
- package/docs/CODEX_RUNTIME_UPGRADE_SPEC.md +7 -4
- package/docs/SDK_PENDING_ATTRIBUTION_COMPATIBILITY_SPEC.md +340 -0
- package/docs/codex-app-server-compatibility.md +16 -0
- package/lib/claude-bin.js +1 -1
- package/lib/codex/app-server-client.js +1 -1
- package/lib/codex/preflight.js +27 -19
- package/lib/process/sdk-process.js +151 -45
- package/package.json +2 -2
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
# SDK pending attribution compatibility correction
|
|
2
|
+
|
|
3
|
+
## Current release integration — 2026-11-12
|
|
4
|
+
|
|
5
|
+
Published Codex Orchestra0.12.0 base706dab133bb2c696d34a950d8bdd4eebc22f02f5
|
|
6
|
+
is integrated by signed merge e086896 without conflicts or manual source changes.
|
|
7
|
+
All21upstream non-package changed files match that released base byte-for-byte;
|
|
8
|
+
accepted Claude SDK runtime SHA remains unchanged. Prepared aligned pin commit
|
|
9
|
+
f9ef1b8 follows bounded fix0664a00. Fresh main/npm showed0.12.0, so patch0.12.1
|
|
10
|
+
is selected for the reviewed correction and Claude SDK0.3.322/CLI2.1.322 pair.
|
|
11
|
+
The Orchestra publication hold has ended; PR/CI/OIDC release and exact registry
|
|
12
|
+
artifact verification are authorized and in progress. No deployment is performed.
|
|
13
|
+
Polygram consumer merge/version/publication remains held until coordinator supplies
|
|
14
|
+
its released0.46.0 base, then requires actual0.12.1 consumer artifact validation.
|
|
15
|
+
The accepted matrix23/23, existing runtime/focused receipts and strict focused
|
|
16
|
+
INCONCLUSIVE limits remain unchanged; no provider repeat or new gate is needed.
|
|
17
|
+
The coordinator owns staging and both mandatory24hsoaks. Earlier integration-hold
|
|
18
|
+
statements below are historical and superseded by this checkpoint.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## Publication and integration checkpoint — 2026-11-12
|
|
22
|
+
|
|
23
|
+
Ivan authorized publication and planned rollout. Tracking issue
|
|
24
|
+
[Polygram #133](https://github.com/shumkov/polygram/issues/133) is OPEN; its complete
|
|
25
|
+
body was authoritatively read back and verified. The accepted matched matrix
|
|
26
|
+
remains 23/23 on signed gate 6cceb3b. Bounded runtime correction is signed commit
|
|
27
|
+
0664a00dea8b1b4fd1f8c3ff803683171b2c69d8, preserving its exact tested source.
|
|
28
|
+
Local SDK 0.3.322 / CLI 2.1.322 pins and generated lock metadata are now prepared
|
|
29
|
+
and independently reviewed CLEAN by compatibility, isolation and scope reviewers.
|
|
30
|
+
Installed candidate entry/package/binary hashes equal the accepted matrix pair.
|
|
31
|
+
Focused local checks: 425 PASS, 0 FAIL, 19 existing capability skips; full corrected
|
|
32
|
+
runtime suite before the pin metadata change: 1,560 PASS, 19 existing skips.
|
|
33
|
+
No new provider call was made. Strict focused traces remain INCONCLUSIVE within
|
|
34
|
+
the accepted limits and no extra provider loop is mandatory.
|
|
35
|
+
|
|
36
|
+
Codex owns Orchestra 0.12.0. Claude release version/tag/main integration waits
|
|
37
|
+
for its authoritative published base; this worker does not deploy. Orchestra's
|
|
38
|
+
package version remains 0.11.3 only as unreleased branch metadata, never a release
|
|
39
|
+
claim. Consumer dependencies remain the coherent .283 pair until the actual
|
|
40
|
+
subsequent Claude Orchestra artifact exists. The existing consumer contract now
|
|
41
|
+
also verifies installed SDK/CLI metadata and shared physical SDK resolution;
|
|
42
|
+
3/3 checks pass on that current .283 installation. Artifact-backed .322 consumer
|
|
43
|
+
update and independent diff review, Linux rollback preservation and both 24-hour
|
|
44
|
+
soaks remain. Earlier authorization/pin-status statements below describe their
|
|
45
|
+
historical checkpoints and are superseded by this section.
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
Historical pre-publication status: bounded correction accepted by the coordinator within the limits below.
|
|
49
|
+
Full matched matrix PASS 23/23; retained strict focused probes INCONCLUSIVE.
|
|
50
|
+
Pins remain SDK 0.3.283 / CLI 2.1.283; no publication or activation authorized.
|
|
51
|
+
|
|
52
|
+
## Coordinator acceptance and retained limits
|
|
53
|
+
|
|
54
|
+
The coordinator accepts this bounded ownership correction on the completed
|
|
55
|
+
23/23 matched matrix, all three distinct UUID-owned user completions observed on
|
|
56
|
+
both actual SDK/CLI pairs, observed peer/zero events preserving pending owners,
|
|
57
|
+
reviewed retained-shape RED 2 FAIL -> GREEN 2 PASS, the cancellation/drop
|
|
58
|
+
regressions, and independent clean code reviews. The former strict focused
|
|
59
|
+
oracle required unsupported standalone-report/notification-before-zero behavior
|
|
60
|
+
and its overlap holds were denied. Its INCONCLUSIVE verdicts remain unchanged;
|
|
61
|
+
those extra assumptions are not a release gate. No new live scheduling fixture,
|
|
62
|
+
provider query, or instrumentation loop is required or planned for this correction.
|
|
63
|
+
This accepts explicitly limited coverage; downstream delivery and every overlap
|
|
64
|
+
schedule remain unproven. Tracking-issue publication remains the explicit pre-pin
|
|
65
|
+
prerequisite, and pin/consumer reviews, release/activation authority, staging and
|
|
66
|
+
both 24-hour soaks remain. No runtime or package pin changes are made here.
|
|
67
|
+
|
|
68
|
+
## Final full unit/integration verification
|
|
69
|
+
|
|
70
|
+
Ran the complete package test command once on the final corrected runtime with
|
|
71
|
+
Node 24.4.0: `node --test --test-force-exit --test-concurrency=1 tests/*.test.js`.
|
|
72
|
+
All 34 test files completed: 1,579 tests, 1,560 PASS, 0 FAIL, 19 existing contract
|
|
73
|
+
capability-N/A skips (17 channels-protocol, 2 Codex-capability), 0 cancelled.
|
|
74
|
+
Duration 103.370 seconds, exit 0. Runtime SHA-256 remains
|
|
75
|
+
`c6f61a85acd139a0c524a7726dc5eead02be34480305bcd3fbdde32005c72184`.
|
|
76
|
+
HOME/CODEX_HOME/TMP/tmux/vendor/versions were private synthetic trees, with an
|
|
77
|
+
allowlisted credential-free environment and disabled installer/updater. The suite
|
|
78
|
+
uses fake processes/bridges and local fixtures; no paid queries were repeated.
|
|
79
|
+
No failures required code changes. This is unit/integration proof, not additional
|
|
80
|
+
provider, downstream delivery, persistence, activation or soak proof. Full log,
|
|
81
|
+
command, times and per-skip receipts:
|
|
82
|
+
`/tmp/orchestra-claude-upgrade-research-3agLJs/compatibility-acceptance-full-suite/`.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## Evidence and current callers
|
|
86
|
+
|
|
87
|
+
The reviewed focused streaming-input fixture ran real SdkProcess in auto mode
|
|
88
|
+
with actual SDK/CLI .322 and the old actual SDK/CLI .283 pair, in isolated
|
|
89
|
+
existing-account contexts. Both combined three synthetic normal send prompts
|
|
90
|
+
into the first response, then routed autonomous report results to later user
|
|
91
|
+
pendings. Candidate additionally emitted the documented success empty result
|
|
92
|
+
with num_turns:0, consuming pending source 3. The first two task_started events
|
|
93
|
+
in the candidate trace are direct background local_agent depth1 tasks. Later
|
|
94
|
+
Bash task events are excluded by the corrected observer; do not rewrite the
|
|
95
|
+
original evidence artifact. No claim that .321 introduced prompt coalescing.
|
|
96
|
+
|
|
97
|
+
Private traces: /tmp/orchestra-claude-upgrade-research-3agLJs/new-sdk-pending-a-artifacts/new-sdk-pending-a
|
|
98
|
+
and old-sdk-pending-a-artifacts/old-sdk-pending-a. The new SDK changelog .321
|
|
99
|
+
explicitly describes queued auto-mode reports sharing a model call, with an
|
|
100
|
+
empty zero-turn result for all but the last report. Both SDK declarations
|
|
101
|
+
already expose coalesced prompt correlation. Official source:
|
|
102
|
+
https://github.com/anthropics/claude-agent-sdk-typescript/blob/main/CHANGELOG.md .
|
|
103
|
+
|
|
104
|
+
SdkProcess.send eagerly pushes every queued prompt; _handleEvent selects the
|
|
105
|
+
FIFO head for all streams and pops it on every result. A peer-origin nonempty
|
|
106
|
+
report and task-notification empty result therefore complete unrelated user
|
|
107
|
+
work. Injection/steering intentionally enter an active turn; normal send and
|
|
108
|
+
those APIs must be considered separately. Blindly ignoring only empty results
|
|
109
|
+
leaves coalescing, nonempty report completion, and streamed-text attribution
|
|
110
|
+
incorrect. The five normal SDK matrix cells do not cover this concurrency.
|
|
111
|
+
|
|
112
|
+
## Reviewed correction candidate
|
|
113
|
+
|
|
114
|
+
The public Process.send contract is one user turn, one completion; the explicit
|
|
115
|
+
inject/steer APIs perform intentional folds. Serialize only normal sends: retain
|
|
116
|
+
queued prompts in pendingQueue and submit a prompt only on activation. Queue cap
|
|
117
|
+
still drops the oldest waiting pending, whose prompt must never enter SDK input.
|
|
118
|
+
Activation, timer and onActivate behavior remain tied to the active head. Do not
|
|
119
|
+
change auto mode or SDK query lifetime.
|
|
120
|
+
|
|
121
|
+
Stamp each normal submission with crypto.randomUUID(). On retry use a fresh UUID
|
|
122
|
+
and retire the failed attempt's UUID. Echo correlation is supported by BOTH pinned
|
|
123
|
+
and candidate binaries: the provider-free native SDK loopback discovery
|
|
124
|
+
/tmp/orchestra-claude-upgrade-research-3agLJs/sdk-uuid-discovery-results.json
|
|
125
|
+
observed first assistant + result user_message_uuid and user_message_uuids on
|
|
126
|
+
.283/.283, .283/.322, .322/.322, one inference request each against loopback only.
|
|
127
|
+
SDK declarations describe first top-level assistant/partial-frame correlation,
|
|
128
|
+
then result correlation; a batched turn may list multiple consumed UUIDs.
|
|
129
|
+
|
|
130
|
+
Associate assistant/stream events with the active pending only when a supplied
|
|
131
|
+
UUID matches that pending's current submission or intentional active injection.
|
|
132
|
+
Bind to the pending AND physical submission attempt, keeping that binding for
|
|
133
|
+
subsequent unannotated frames until any top-level result. Explicit conflicting
|
|
134
|
+
UUIDs replace/invalidate the binding before partial/thinking early returns.
|
|
135
|
+
Exclude child partials as well as child assistant frames.
|
|
136
|
+
Matching current owned UUIDs take precedence over retired siblings in a consumed
|
|
137
|
+
list, so a legitimate current folded response still completes. Retain cancelled-attempt UUIDs until Query closes; their late frames and
|
|
138
|
+
subsequent unannotated frames are suppressed rather than delivered as autonomous
|
|
139
|
+
user replies. A genuinely unowned first frame, or a frame without a binding after
|
|
140
|
+
the prior result, is autonomous and uses the existing autonomous-assistant-message event even
|
|
141
|
+
while user work waits. Ignore child assistant frames for this binding. Never
|
|
142
|
+
stream unowned output through the head's streamer, reactor or usage counters.
|
|
143
|
+
An unannotated success cannot complete a pending unless its turn was already
|
|
144
|
+
bound by an assistant/partial echo. Explicit unmatched UUID or non-human origin
|
|
145
|
+
without a matching UUID is autonomous, including nonempty peer reports and empty
|
|
146
|
+
zero-turn results. Matching owned UUID takes precedence over peer origin when
|
|
147
|
+
an intentional user injection folds into a synthetic report turn. A bare error without echo or an existing bound turn cannot complete a user
|
|
148
|
+
pending: SDK documents singular UUID echo even for delivery failures (only the
|
|
149
|
+
plural list may be omitted). Terminal iterator failure still fails the session
|
|
150
|
+
and rejects pending work through the existing session-failure path. Unknown uncorrelated success fails closed
|
|
151
|
+
(wait for matching response or existing timeout), rather than guessing ownership.
|
|
152
|
+
|
|
153
|
+
Stamp steer/inject submissions too, associate them with the current active head
|
|
154
|
+
without submitting waiting normal sends; preserve priorities/shouldQuery and
|
|
155
|
+
bubble behavior. A fireUserMessage has its own unowned UUID and stays fire-and-
|
|
156
|
+
forget, never consuming an unrelated normal pending. Standalone steer/inject
|
|
157
|
+
remains autonomous. No public method signature or result shape changes.
|
|
158
|
+
|
|
159
|
+
Retry/drop/timeout/interrupt/drain requirements: a retry submits only its active
|
|
160
|
+
head; queue drops match input UUID rather than removing arbitrary waiting work;
|
|
161
|
+
input push failures settle the right pending and activate its successor. Timed
|
|
162
|
+
out/drained submission UUIDs cannot settle new work. Clear binding on retry
|
|
163
|
+
retirement, timeout, drain, reset and close. Timers and rejection codes stay unchanged. Track the physical submitted normal
|
|
164
|
+
attempt separately from the logical pending queue. After timeout, wait for the
|
|
165
|
+
existing Query.interrupt control acknowledgment before submitting the successor;
|
|
166
|
+
a matching terminal result may retire the attempt but does not bypass an in-flight
|
|
167
|
+
interrupt acknowledgment. Read the supported interrupt receipt: intersect
|
|
168
|
+
still_queued with submitted owned UUIDs and keep a survivor barrier until each
|
|
169
|
+
has a correlated terminal result or proven cancellation. Unknown internal UUIDs
|
|
170
|
+
are ignored. An acknowledgment with no receipt is insufficient to retire a
|
|
171
|
+
submitted attempt: wait for its terminal result. Never invoke undocumented
|
|
172
|
+
cancelAsyncMessage or cancel unrelated autonomous task notifications. A rejected interrupt fails waiting work through the
|
|
173
|
+
session failure path rather than blindly resubmitting into uncertain state.
|
|
174
|
+
Drain stays synchronous and does not invent an interrupt: it removes logical
|
|
175
|
+
work and buffered input. If its submitted input already reached SDK, future normal
|
|
176
|
+
sends wait for that physical result OR a caller interrupt receipt proving no owned UUID survives. Thus interrupt+drain remains reusable; drain alone lets existing SDK
|
|
177
|
+
work finish without coalescing a successor. An input removed before SDK consumed
|
|
178
|
+
it needs no physical-turn barrier. onActivate/timers begin only on submission. interrupt continues to signal Query.interrupt; drain rejects all
|
|
179
|
+
queued work while leaving the session reusable. Remove any not-yet-yielded
|
|
180
|
+
owned input by UUID on rejection/drain; preserve makeInputController.close()
|
|
181
|
+
semantics for unrelated callers. Do not submit rejected waiting
|
|
182
|
+
prompts later. Retain existing first-stream/onActivate and autonomous delivery
|
|
183
|
+
callbacks, including legitimate report text while another request is pending.
|
|
184
|
+
|
|
185
|
+
Alternatives rejected: only skip zero-turn results (nonempty reports still
|
|
186
|
+
misroute); only correlate eager submissions (one user request could still merge
|
|
187
|
+
with another); disable auto or discard reports (changes product behavior);
|
|
188
|
+
buffer every user stream until result (unnecessary latency with verified echoes).
|
|
189
|
+
Public streaming for supported .283/.322 remains live. Missing correlation is
|
|
190
|
+
explicitly inconclusive instead of silently attaching text to a different user.
|
|
191
|
+
|
|
192
|
+
## Background MCP gate amendment candidate
|
|
193
|
+
|
|
194
|
+
The crossed old-SDK/new-CLI experiment remains FAIL and immutable. SDK .319 added
|
|
195
|
+
MCP-task support in SDK sessions; its absence in .283 may explain the failedtask
|
|
196
|
+
but exact transport cause is not proven. Shipped validation needs matched SDK/CLI
|
|
197
|
+
pairs with imported SDK identity + exact CLI identity attested before launch.
|
|
198
|
+
No production lib/ consumer in either repository reads membership/task edge
|
|
199
|
+
ordering; production does consume SDK results and remains subject to the separate
|
|
200
|
+
ownership correction above.
|
|
201
|
+
|
|
202
|
+
Official pinned SDK .292 changelog explicitly changes finishing membership to
|
|
203
|
+
AFTER task_updated and task_notification. The .322 type states snapshot-vs-edge
|
|
204
|
+
ordering unspecified. Current documented actual matched .322 trace has exactly
|
|
205
|
+
two successful, non-error results, the second a task-notification turn with
|
|
206
|
+
origin.runId equal to the task run_id. Results are per turn, not per Query.
|
|
207
|
+
Sources: https://github.com/anthropics/claude-agent-sdk-typescript/blob/v0.3.322/CHANGELOG.md#03292
|
|
208
|
+
and https://code.claude.com/docs/en/agent-sdk/typescript#sdkbackgroundtaskschangedmessage .
|
|
209
|
+
|
|
210
|
+
Proposed exact manifest-bound .322/.322 policy: retain every tool/task count,
|
|
211
|
+
identity, timing, marker uniqueness and membership list/clear check; require
|
|
212
|
+
completed update < completed notification < empty membership < marker. Correlate
|
|
213
|
+
nonempty run_id across membership/start/update/notification and followup result
|
|
214
|
+
origin.runId, with matching session. Require exactly two successful non-error
|
|
215
|
+
results: initial turn, then correlated task-notification completion after marker.
|
|
216
|
+
Unknown/missing SDK/CLI identity cannot select this policy. Keep the old pair's
|
|
217
|
+
existing policy and raw-source regeneration, reject every failed/stopped task,
|
|
218
|
+
extra/missing result, wrong run/session, duplicate marker/clear/notification and
|
|
219
|
+
mutated raw bytes. This is a documented version-specific oracle, not a waiver.
|
|
220
|
+
|
|
221
|
+
A gate implementation needs independent review of exact per-side SDK resolution.
|
|
222
|
+
Prefer literal matched-pair execution using an explicit Node resolution hook that
|
|
223
|
+
redirects ONLY the SDK package to predownloaded, integrity-verified exact SDK
|
|
224
|
+
roots, leaving the checked gate source identical on both sides; attest imported
|
|
225
|
+
SDK and its claudeCodeVersion. Alternative: stage two identical source prefixes
|
|
226
|
+
with different SDKs and attest every source hash; more copying and stale-source
|
|
227
|
+
risk. Holding SDK .322 constant on both sides is simpler but adds a second axis
|
|
228
|
+
to the old baseline and should be supplemental rather than relabeled matched.
|
|
229
|
+
The amended complete accepted matrix must pass on one recorded gate commit.
|
|
230
|
+
No gate runtime change is made until its resolution mechanism is independently
|
|
231
|
+
reviewed and the coordinator receives the exact proposed amendment.
|
|
232
|
+
|
|
233
|
+
## Verification and scope boundary
|
|
234
|
+
|
|
235
|
+
Retain the existing explicit peer-result and task-notification-result RED spike.
|
|
236
|
+
Add deterministic RED cases for queued prompt coalescing/overflow leakage, stream
|
|
237
|
+
ownership and stale UUIDs after timeout/drain. GREEN must cover owned echoes,
|
|
238
|
+
nonempty peer reports, zero-turn reports, matching folded injection, independent
|
|
239
|
+
fire-and-forget output, retries, input drop/failure, queue limits, timeouts and
|
|
240
|
+
interrupt/drain reuse. Update fake events to model genuine SDK echo fields rather
|
|
241
|
+
than weakening the runtime to satisfy metadata-free success fixtures. Tests for
|
|
242
|
+
missing correlation must remain explicit and prove no false user completion.
|
|
243
|
+
|
|
244
|
+
After independent design reviews, implement only this bounded runtime correction,
|
|
245
|
+
obtain independent code reviews, then run the corrected focused real-SDK fixture
|
|
246
|
+
on both matched pairs and actual-new-SDK background lifecycle checks. Provider
|
|
247
|
+
runs keep existing deadlines/turn limits and isolated accounts. Preserve all
|
|
248
|
+
failed b796 evidence and do not repeat unaffected suites until full matrix is
|
|
249
|
+
required. All changes remain uncommitted for coordinator integration, except an
|
|
250
|
+
explicitly required recorded gate commit coordinated later. Publication, pins,
|
|
251
|
+
release, production activation and 24-hour soaks remain separate unmet gates.
|
|
252
|
+
|
|
253
|
+
## Implemented checkpoint (2026-11-12)
|
|
254
|
+
|
|
255
|
+
The bounded correction above is implemented without changing runtime pins or
|
|
256
|
+
public method signatures. Three independent final code reviews are CLEAN after
|
|
257
|
+
concrete cancellation/drop findings were reproduced RED then fixed. Retained
|
|
258
|
+
focused verification: 104 PASS/0 skipped ownership and SDK tests; process-contract
|
|
259
|
+
verification 65 PASS/19 capability-inapplicable skips; matched gate suite 89
|
|
260
|
+
PASS/0 skipped, followed only by affected observer tests (12 PASS/0 skipped).
|
|
261
|
+
Receipts and red/green logs live under
|
|
262
|
+
`/tmp/orchestra-claude-upgrade-research-3agLJs`.
|
|
263
|
+
|
|
264
|
+
The Polygram child records the actual-pair gate source at signed commit
|
|
265
|
+
`e1870e26220746c2503cec7d660538b1bd18b49e`, with exact per-side SDK identities and
|
|
266
|
+
Orchestra runtime SHA-256
|
|
267
|
+
`c6f61a85acd139a0c524a7726dc5eead02be34480305bcd3fbdde32005c72184`.
|
|
268
|
+
The implementation uses the reviewed SDK-only Node resolution hook and private
|
|
269
|
+
load receipts, independently rehashes the selected SDK and actual imported
|
|
270
|
+
Orchestra runtime after each child, and validates those receipts at acceptance.
|
|
271
|
+
The immutable b796 crossed-pair failure remains separate.
|
|
272
|
+
|
|
273
|
+
Corrected old-pair provider probe `own-old-d` completed with correct ownership of
|
|
274
|
+
all three user markers, two completed task notifications, a task-correlated peer
|
|
275
|
+
report while follow-ups remained unchanged, and no provider error. It is
|
|
276
|
+
INCONCLUSIVE: the second autonomous terminal report has task-notification origin
|
|
277
|
+
but no run ID, so it cannot satisfy the retained distinct-task report oracle.
|
|
278
|
+
Do not weaken that oracle or call this a PASS. Candidate proof and the complete
|
|
279
|
+
recorded matched matrix are pending at this checkpoint. No new runtime subsystem
|
|
280
|
+
or wider queue refactor is proposed to work around an observation limitation.
|
|
281
|
+
|
|
282
|
+
## Bounded retained-trace replay amendment
|
|
283
|
+
|
|
284
|
+
Independent final trace review found that auto permission denied the standalone
|
|
285
|
+
parent `sleep 30` and the follow-up hold in BOTH final traces; agent sleeps did
|
|
286
|
+
run. Therefore these calls prove observed stream ownership only, not the intended
|
|
287
|
+
30-second hold schedule. No unchanged paid retry or permission bypass is planned.
|
|
288
|
+
The strict focused oracle remains INCONCLUSIVE and the complete scheduled matrix
|
|
289
|
+
remains unchanged on e1870e2. UUID-owned results and per-turn SDK semantics do not
|
|
290
|
+
promise one separate autonomous terminal per agent or two completed notification
|
|
291
|
+
edges before every zero-turn result; those are stronger fixture observations.
|
|
292
|
+
|
|
293
|
+
Add only a provider-free regression replay in the existing ownership test file,
|
|
294
|
+
using sanitized minimal shapes from old-d and new-d. Replay first UUID-owned user
|
|
295
|
+
completion, queue user2/3, and preserve two separate sequences. Old: peer terminal ->
|
|
296
|
+
normal2 completion -> runless task-notification terminal -> normal3 completion.
|
|
297
|
+
Candidate: first completed notification -> peer/zero-turn terminals -> second
|
|
298
|
+
completed notification -> normal2/3 completions. Assert that autonomous text
|
|
299
|
+
remains delivered and each report terminal leaves its then-current pending
|
|
300
|
+
owners unchanged ([2,3] for the early peer/zero, [3] for the old late report),
|
|
301
|
+
only normal2 submits before its completion, and all3correct
|
|
302
|
+
markers complete their own request. Preserve origin/UUID/list/num_turns fields
|
|
303
|
+
and observed ordering; replace synthetic IDs/text with stable fixture placeholders
|
|
304
|
+
and dynamically supplied submitted UUIDs only. This is regression proof for the
|
|
305
|
+
observed ownership shapes, not provider scheduling/hold coverage or focused PASS.
|
|
306
|
+
Run against a separate temporary copy of the old runtime to retain RED without
|
|
307
|
+
overwriting dirty source, then run the corrected source GREEN. No production or
|
|
308
|
+
gate source changes and no new runtime behavior are in scope for this amendment.
|
|
309
|
+
|
|
310
|
+
The replay amendment and actual code received independent compatibility/scope
|
|
311
|
+
reviews. Findings corrected the separate old/new order and removed invented
|
|
312
|
+
assistant origin metadata; only terminal results carry observed origin. The two
|
|
313
|
+
final tests fail against a temporary unchanged original runtime (3 SDK inputs
|
|
314
|
+
instead of2), then pass against corrected source (2PASS/0skip). Logs:
|
|
315
|
+
`pending-retained-replay-reviewed-red.log` and `pending-retained-replay-reviewed-green.log`.
|
|
316
|
+
Both final reviewers CLEAN. This adds no runtime/gate behavior and does not change
|
|
317
|
+
INCONCLUSIVE provider receipts, hold-schedule or downstream proof limitations.
|
|
318
|
+
|
|
319
|
+
## Historical matched matrix checkpoint
|
|
320
|
+
|
|
321
|
+
The first actual-pair e1870e2 matrix is FAIL14PASS/1BLOCKED/8not-run. Candidate
|
|
322
|
+
background task, exact marker and independent raw/native/SDK/source checks pass;
|
|
323
|
+
the runner then incorrectly demands matching old evidence for the manifest's
|
|
324
|
+
explicitly waived old opt-in cell. A small reviewed comparison decision fixes
|
|
325
|
+
planning, execution and retained acceptance consistently without adding waivers
|
|
326
|
+
or weakening any per-cell oracle. Concrete RED true-versus-false plan assertion,
|
|
327
|
+
GREEN15focused checks/0skip and3final independent CLEAN reviews are retained.
|
|
328
|
+
Corrected signed gate commit6cceb3b3544f4efc74330c82f0557d7f1bfb31d6 records that
|
|
329
|
+
source; a new complete unfiltered matrix m-6cce-a is in flight. Old e187 and b796
|
|
330
|
+
failures remain immutable. No runtime or manifest identity changed for this fix.
|
|
331
|
+
|
|
332
|
+
Final readback: matched matrix m-6cce-a on signed6cceb3b completed23/23PASS,
|
|
333
|
+
0FAIL/0BLOCKED/0NOT-APPLICABLE at2026-11-12T11:52:23.130Z after854.631s.
|
|
334
|
+
All23SDKload receipts bind exact old/newSDKs and unchanged corrected runtimeSHA.
|
|
335
|
+
This closes the full scheduled matched matrix requirement. Under the coordinator
|
|
336
|
+
acceptance above, the bounded local correction is accepted; the strict focused
|
|
337
|
+
provider receipts remain INCONCLUSIVE; preserved raw traces and reviewed local
|
|
338
|
+
replay prove observed ownership shapes, not intended sleep scheduling/downstream
|
|
339
|
+
provider delivery. No unchanged retry or runtime expansion is proposed. Issue is
|
|
340
|
+
still unpublished; pins/consumer update/release/staging24h/CLI24h remain separate.
|
|
@@ -904,3 +904,19 @@ configuration where `effective.hooks != null`, so the reviewed hook-free
|
|
|
904
904
|
validation profile above is unchanged and was not re-run with hooks. A
|
|
905
905
|
hook-enabled authenticated run against the hosted backend, and the
|
|
906
906
|
wrapper/absolute-binary-path rejection, remain unproved here.
|
|
907
|
+
|
|
908
|
+
## Provider-specific auth admission
|
|
909
|
+
|
|
910
|
+
Native OpenAI preflight still requires a ChatGPT account and `requiresOpenaiAuth: true`.
|
|
911
|
+
Explicit CLIProxy instead uses its private provider bearer with
|
|
912
|
+
`requires_openai_auth = false` and requires a null account plus false auth requirement.
|
|
913
|
+
Its receipt state is `auth: { authenticated: false, accountType: null, requiresOpenaiAuth: false }`;
|
|
914
|
+
this does not claim external bearer validity or provider entitlement from `model/list`.
|
|
915
|
+
The existing exact provider/config attestation and successful-result receipt provenance
|
|
916
|
+
bind that state to CLIProxy and reject native/proxy mismatches. Native receipt shape
|
|
917
|
+
and fingerprint inputs remain unchanged. Missing raw account fields fail closed locally
|
|
918
|
+
instead of being projected into a legitimate null account.
|
|
919
|
+
|
|
920
|
+
See [provider auth correction](CODEX_PROXY_AUTH_FIX_SPEC.md). Historical validation
|
|
921
|
+
above that used a native auth clone for CLIProxy remains historical evidence; the
|
|
922
|
+
current external route requires no native login or copied authentication.
|
package/lib/claude-bin.js
CHANGED
|
@@ -13,7 +13,7 @@ const { createRequire } = require('module');
|
|
|
13
13
|
// package.json: that SDK's platform package supplies the vendored binary, and
|
|
14
14
|
// a unit test fails when the two drift apart. It stays a literal because
|
|
15
15
|
// consumers that omit optional dependencies have no SDK to derive it from.
|
|
16
|
-
const CLAUDE_CLI_PINNED_VERSION = '2.1.
|
|
16
|
+
const CLAUDE_CLI_PINNED_VERSION = '2.1.322';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Resolve + verify the pinned claude CLI binary.
|
|
@@ -1576,7 +1576,7 @@ function projectRpcResult(method, value, ownedCwd) {
|
|
|
1576
1576
|
};
|
|
1577
1577
|
}
|
|
1578
1578
|
if (method === 'account/read') {
|
|
1579
|
-
if (typeof result.requiresOpenaiAuth !== 'boolean') {
|
|
1579
|
+
if (!Object.hasOwn(result, 'account') || typeof result.requiresOpenaiAuth !== 'boolean') {
|
|
1580
1580
|
throw new CodexAppServerError(
|
|
1581
1581
|
'app-server account auth requirement is malformed',
|
|
1582
1582
|
'CODEX_PROTOCOL_ERROR',
|
package/lib/codex/preflight.js
CHANGED
|
@@ -811,6 +811,15 @@ function receiptInvalid(message) {
|
|
|
811
811
|
);
|
|
812
812
|
}
|
|
813
813
|
|
|
814
|
+
function expectedAuthentication(profile) {
|
|
815
|
+
const native = profile.expectedConfig.modelProvider === 'openai';
|
|
816
|
+
return {
|
|
817
|
+
authenticated: native,
|
|
818
|
+
accountType: native ? 'chatgpt' : null,
|
|
819
|
+
requiresOpenaiAuth: native,
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
|
|
814
823
|
function createCodexSpawnProfile(expectedStaticProfile, preflightResult) {
|
|
815
824
|
const profile = deepFreeze(normalizeExpectedProfile(expectedStaticProfile));
|
|
816
825
|
let result;
|
|
@@ -850,16 +859,17 @@ function createCodexSpawnProfile(expectedStaticProfile, preflightResult) {
|
|
|
850
859
|
} catch (error) {
|
|
851
860
|
throw receiptInvalid(error.message);
|
|
852
861
|
}
|
|
862
|
+
const expectedAuth = expectedAuthentication(profile);
|
|
853
863
|
if (
|
|
854
|
-
auth.authenticated !==
|
|
855
|
-
|| auth.accountType !==
|
|
856
|
-
||
|
|
864
|
+
auth.authenticated !== expectedAuth.authenticated
|
|
865
|
+
|| auth.accountType !== expectedAuth.accountType
|
|
866
|
+
|| auth.requiresOpenaiAuth !== expectedAuth.requiresOpenaiAuth
|
|
857
867
|
|| selected.model !== profile.model
|
|
858
868
|
|| selected.effort !== profile.effort
|
|
859
869
|
|| !Array.isArray(result.models)
|
|
860
870
|
|| !Array.isArray(result.efforts)
|
|
861
871
|
) {
|
|
862
|
-
throw receiptInvalid('
|
|
872
|
+
throw receiptInvalid('provider authentication or model selection did not match');
|
|
863
873
|
}
|
|
864
874
|
const selectedModels = result.models.filter(
|
|
865
875
|
(entry) => entry?.model === profile.model,
|
|
@@ -895,7 +905,7 @@ function createCodexSpawnProfile(expectedStaticProfile, preflightResult) {
|
|
|
895
905
|
runtimeVersion: profile.cliVersion,
|
|
896
906
|
schemaVersion: profile.protocolSchemaSha256,
|
|
897
907
|
attestation: expectedAttestation,
|
|
898
|
-
accountType:
|
|
908
|
+
accountType: expectedAuth.accountType,
|
|
899
909
|
});
|
|
900
910
|
if (result.spawnProfileId !== expectedSpawnProfileId) {
|
|
901
911
|
throw receiptInvalid('spawn-profile identity did not match');
|
|
@@ -996,15 +1006,17 @@ async function runPreflight(profile, client) {
|
|
|
996
1006
|
await client.request('account/read', { refreshToken: false }),
|
|
997
1007
|
'account result',
|
|
998
1008
|
);
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1009
|
+
const auth = expectedAuthentication(profile);
|
|
1010
|
+
if (
|
|
1011
|
+
account.requiresOpenaiAuth !== auth.requiresOpenaiAuth
|
|
1012
|
+
|| (auth.authenticated
|
|
1013
|
+
? account.account?.type !== 'chatgpt'
|
|
1014
|
+
: account.account !== null)
|
|
1015
|
+
) {
|
|
1006
1016
|
throw new CodexPreflightError(
|
|
1007
|
-
|
|
1017
|
+
auth.authenticated
|
|
1018
|
+
? 'Codex ChatGPT authentication is unavailable'
|
|
1019
|
+
: 'Codex external-provider account state did not match',
|
|
1008
1020
|
'CODEX_AUTH_UNAVAILABLE',
|
|
1009
1021
|
);
|
|
1010
1022
|
}
|
|
@@ -1044,18 +1056,14 @@ async function runPreflight(profile, client) {
|
|
|
1044
1056
|
runtimeVersion: profile.cliVersion,
|
|
1045
1057
|
schemaVersion: profile.protocolSchemaSha256,
|
|
1046
1058
|
attestation,
|
|
1047
|
-
accountType:
|
|
1059
|
+
accountType: auth.accountType,
|
|
1048
1060
|
});
|
|
1049
1061
|
return deepFreeze({
|
|
1050
1062
|
runtime: 'codex',
|
|
1051
1063
|
runtimeVersion: profile.cliVersion,
|
|
1052
1064
|
schemaVersion: profile.protocolSchemaSha256,
|
|
1053
1065
|
spawnProfileId,
|
|
1054
|
-
auth
|
|
1055
|
-
authenticated: true,
|
|
1056
|
-
accountType: account.account.type,
|
|
1057
|
-
requiresOpenaiAuth: account.requiresOpenaiAuth,
|
|
1058
|
-
},
|
|
1066
|
+
auth,
|
|
1059
1067
|
attestation,
|
|
1060
1068
|
models,
|
|
1061
1069
|
efforts: [...selected.supportedReasoningEfforts],
|