@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.
@@ -0,0 +1,72 @@
1
+ # Orchestra 0.12.1 Claude runtime compatibility release
2
+
3
+ The .322 SDK/CLI pair upgrades Claude while preserving one normal user request's
4
+ response ownership when auto-mode reports and queued requests overlap. Normal
5
+ sends serialize under the existing completion contract; UUID/origin ownership
6
+ prevents unrelated reports from consuming pending users. Intentional steering,
7
+ injection, autonomous report output and cancellation/drop semantics remain.
8
+
9
+ Tracking issue: https://github.com/shumkov/polygram/issues/133 (published and
10
+ complete title/body/state read back). SDK0.3.283 ->0.3.322 and bundled
11
+ claudeCodeVersion/CLI2.1.283 ->2.1.322 align exactly. Both official .322 releases
12
+ are non-prerelease. Research distinguished latest/next .322 from conservative
13
+ CLI stable .311; this release uses the tested .322 pair, without a channel claim.
14
+ Release-note changes relevant to compatibility include queued report batching,
15
+ notification/membership ordering, MCP background tasks and initialization hooks.
16
+
17
+ ## Released Codex base and bounded source
18
+
19
+ Published0.12.0 base706dab133bb2c696d34a950d8bdd4eebc22f02f5 is integrated without
20
+ conflict or manual resolution. All21upstream non-package changed files match
21
+ that release byte-for-byte, including Codex0.167.2/trusted policy/runtime companion
22
+ and associated tests/fixtures. Both CI/release workflows remain unchanged.
23
+ Ownership fix0664a00, aligned pin commitf9ef1b8 and integration mergee086896 are
24
+ signed. SDK runtime source SHA256 remains
25
+ c6f61a85acd139a0c524a7726dc5eead02be34480305bcd3fbdde32005c72184.
26
+ No Codex pin/feature change is part of this patch. Fresh registry/main both at
27
+ 0.12.0 justified selecting the next patch0.12.1; release publication follows PR,
28
+ CI, merged-main readback and the existing tag-triggered npm OIDC workflow only.
29
+
30
+ ## Verification
31
+
32
+ - Accepted actual SDK.283/CLI.283 versus SDK.322/CLI.322 full checked matched
33
+ matrix23/23 on signed source6cceb3b3544f4efc74330c82f0557d7f1bfb31d6.
34
+ Manifest SHA25663bcf4e6f018bcbf689240a472328b73e1ee265af58a4cc7c3175d8320b8e817.
35
+ Existing old-only opt-in waiver remains explicit; no candidate waiver added.
36
+ - Retained-shape ownership regression:2FAILbefore correction ->2PASSafter,
37
+ with additional cancellation/drop/timeout/late-frame red/green evidence.
38
+ - Before integration: full corrected runtime1560PASS/19existing skips;
39
+ installed-.322 focused425PASS/19existing skips. Installed candidate SDK entry,
40
+ package and binary hashes match accepted matrix identities.
41
+ - After integration and patch metadata: complete36-file local unit/integration
42
+ suite1633tests,1614PASS,0FAIL,19existing skips,0cancelled,105.608s,exit0 on
43
+ Node24.4.0. Skips17channels-protocolN/A and2Codex-capabilityN/A, no SDK skip.
44
+ Credential-free synthetic HOME/CODEX_HOME/TMP/tmux/vendor/versions, installer
45
+ disabled; fake/local fixtures only, no new provider calls.
46
+ - Three independent design reviews and three final integration code reviews
47
+ returned CLEAN; no unresolved findings. All21Codex changed files and workflows
48
+ retain released bytes, so the unchanged SDK matrix source evidence is reused.
49
+
50
+ Strict focused provider traces remain INCONCLUSIVE. All three distinct UUID-owned
51
+ user completions were observed on both actual pairs, with observed peer/zero
52
+ terminals preserving pending users. Unsupported standalone-report/notification-
53
+ before-zero assumptions and denied overlap holds are explicitly limited coverage,
54
+ not another release gate. Downstream delivery and every overlap schedule remain
55
+ unproven. No trace was relabelled PASS; prior crossed-pair and runner-blocked
56
+ matrix failures remain separate immutable evidence. No new provider loop is needed.
57
+
58
+ ## Publication and consumer boundary
59
+
60
+ The tracking issue stays open through the separate aligned Polygram dependency
61
+ update and both mandatory soaks. Offline Darwin-arm64 baseline/candidate binaries
62
+ remain outside updater/vendor GC, with verified versions/SHA/size; preserve the
63
+ Linux rollback binary similarly before VPS vendor GC. No deployment occurs here.
64
+ Coordinator owns at least24hSDKstaging on shumorobot followed by coordinated VPS
65
+ rollout and24hCLIsoak, observing autosteer-match-miss, autonomous-wakeup-message
66
+ and tool-only-completion. No test count replaces either soak.
67
+
68
+ The owned consumer branch has the reviewed installed-SDK metadata/shared-resolution
69
+ contract,3/3PASSon its current.283pair. Consumer merge/version/publication waits
70
+ for coordinator-supplied released Polygram0.46.0 base and then exact published
71
+ Orchestra0.12.1 + SDK0.3.322 artifact-backed dependency/lock review and checks.
72
+ No placeholder artifact or partial SDK-only consumer bump is accepted.
@@ -0,0 +1,193 @@
1
+ # Aligned Claude .322 pins and consumer handoff
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
+ Status: implemented local pin preparation, independently reviewed CLEAN;
22
+ release version/tag/main integration held for published Codex base.
23
+ Tracking issue [Polygram #133](https://github.com/shumkov/polygram/issues/133)
24
+ is OPEN, complete body verified by authoritative readback. The full matched
25
+ matrix m-6cce-a passed 23/23 on signed gate 6cceb3b. Correction signed commit
26
+ 0664a00dea8b1b4fd1f8c3ff803683171b2c69d8 has the exact tested runtime. No new
27
+ provider calls or changes to accepted coverage are needed. Codex independently
28
+ reserves Orchestra 0.12.0; no Claude release version, tag or integration is chosen.
29
+
30
+ ## Research and chosen change
31
+
32
+ Official SDK release v0.3.322 and CLI release v2.1.322 are non-prerelease releases;
33
+ SDK package metadata fixes claudeCodeVersion to 2.1.322. These are the pair already
34
+ validated, not an unverified new latest. The npm latest/next tags observed at
35
+ research time point to .322 while CLI stable points to .311; no channel switch.
36
+ SDK .322 requires Node >=18.14.0, Anthropic SDK >=0.93.0, MCP SDK ^1.29.0 and
37
+ Zod ^4.0.0. Orchestra Node >=22 and current dependencies satisfy these constraints.
38
+ Evidence: official registry package metadata retained with the candidate SDK,
39
+ release links in CLAUDE_2_1_322_UPGRADE_SPEC.md, and actual per-side loaded SDK
40
+ identity proofs in the matched matrix. No extra peer upgrades are necessary.
41
+
42
+ lib/claude-bin.js owns the CLI constant. Its resolver/vendors accept explicit
43
+ versions and tests use disposable vendor/versions trees. tests/claude-bin.test.js
44
+ asserts both exact CLI pin and installed SDK metadata equality. package.json
45
+ optionalDependencies owns the SDK pin; lockfile v3 currently repeats it in the
46
+ root dependency/optional maps, SDK node and eight platform nodes. npm must
47
+ regenerate lock metadata from the exact official .322 package, including all
48
+ platforms, with lifecycle scripts disabled. Inspect and reject unrelated drift.
49
+ Do not hand-invent integrity values or update Anthropic SDK, MCP, Zod or Codex.
50
+
51
+ Move only SDK exact 0.3.283 -> 0.3.322 and CLI exact 2.1.283 -> 2.1.322, the pin
52
+ assertion and npm-generated corresponding lock metadata. Keep Orchestra package
53
+ version 0.11.3 as unreleased branch metadata until coordinator provides published
54
+ Codex base/version and coordinates subsequent release integration. Do not publish
55
+ this branch with that old version. Use npm install --ignore-scripts --save-optional
56
+ --save-exact @anthropic-ai/claude-agent-sdk@0.3.322 only in this owned worktree.
57
+ No installer, user settings, authentication or production tree is touched.
58
+
59
+ ## Separately reviewable Polygram update
60
+
61
+ The owned related child is /Users/ivanshumkov/orca/workspaces/polygram/claude-322-gates.
62
+ Its package.json dependencies pin Orchestra 0.11.3 and SDK 0.3.283. The contract in
63
+ tests/orchestra-dependency-contract.test.js currently requires the exact installed
64
+ Orchestra version, matching declared SDK pins and lock entries, no nested SDK
65
+ lock entry, and existing Codex capabilities. It does not yet verify actual SDK
66
+ metadata or shared physical module resolution. Extend that existing contract now
67
+ without moving consumer dependencies: read the root-installed SDK package via
68
+ its resolved entry, require its version to equal the exact declared SDK version
69
+ and its claudeCodeVersion to equal installed Orchestra
70
+ claudeBin.CLAUDE_CLI_PINNED_VERSION, and compare realpath of root SDK entry with
71
+ createRequire(require.resolve('@shumkov/orchestra')).resolve(sdk). This generic
72
+ alignment check passes for the currently shipped .283 pair and later verifies
73
+ .322 when its actual artifact is consumed; it does not fabricate a .322 install. A consumer-only SDK bump while retaining Orchestra 0.11.3 is
74
+ an inconsistent shipped pair and is rejected. A file: tarball masquerading as a
75
+ registry release or invented integrity is also rejected. The alternative of
76
+ waiting to prepare everything wastes safe independent work; prepare Orchestra's
77
+ reviewed pin now, retain this concrete consumer change plan, and defer applying
78
+ both consumer dependencies until the real subsequent Claude Orchestra artifact
79
+ exists. No fake placeholder goes into executable package metadata.
80
+
81
+ After coordinator supplies the published Codex base and coordinates the Claude
82
+ release, the separate consumer change updates package.json SDK to exactly
83
+ 0.3.322 AND Orchestra to that actual published Claude release version, updates
84
+ REQUIRED_ORCHESTRA_VERSION in the contract test, and npm-regenerates package-lock
85
+ with --ignore-scripts. Inspect exact registry URL/integrity and all SDK platform
86
+ versions, ensure a single hoisted .322 SDK and preserve Codex capabilities. Do
87
+ not choose that release number here. Review the actual dependency/lock consumer diff separately, requiring installed
88
+ SDK version 0.3.322, CLI metadata 2.1.322 and shared physical SDK resolution,
89
+ and run orchestra-dependency-contract plus directly affected consumer SDK tests
90
+ in the owned child before integration. The generic installed-identity consumer test and plan can be reviewed now;
91
+ final artifact-backed dependency diff review/test remains a concrete dependency.
92
+
93
+ ## Verification and failure modes
94
+
95
+ Retain old and candidate offline binaries/version/SHA outside updater/vendor GC.
96
+ The current child matrix's old SDK resolution and historical artifacts must not
97
+ be mutated by the consumer update before preserving its .283 tree with hashes.
98
+ This pin install changes only Orchestra's own node_modules; the matched matrix
99
+ old SDK tree in the Polygram child remains untouched. Compare installed candidate
100
+ entry/package/binary SHA to the already accepted .322 source and preserved binary.
101
+ Run claude-bin, SDK process manager, ownership, generic-manager/process-contract
102
+ and workflow completion tests under credential-free isolated HOME/CODEX_HOME,
103
+ TMP, tmux, vendor and versions, disabled installer/updater. The full corrected
104
+ runtime suite already passed 1560/19 existing skips before the metadata change;
105
+ new focused tests verify the installed .322 pair and pin/lock coherence. Report
106
+ all skips; no paid matrix repeat for this pin-only change. Independent code review
107
+ must inspect lock scope, metadata alignment, isolation and retained limitations.
108
+
109
+ Authorization covers publication and planned activation, but this worker holds
110
+ version/tag/main integration until published Codex base and does not deploy.
111
+ After exact release/consumer validation: at least 24h SDK staging on shumorobot,
112
+ then coordinated VPS deployment and 24h CLI soak, preserving host-specific Linux
113
+ rollback binary before VPS vendor GC. Watch autosteer-match-miss,
114
+ autonomous-wakeup-message and tool-only-completion per Polygram AGENTS.md.
115
+ Neither local tests nor matrix replace these soaks. Strict focused traces remain
116
+ INCONCLUSIVE; actual downstream delivery and every overlap schedule are unproven.
117
+
118
+ Design review correction: compatibility review identified that the old consumer
119
+ contract checked lock/declarations only. The amendment above adds actual installed
120
+ metadata/resolution readback to the existing alignment test, without changing
121
+ product behavior, introducing another provider gate or inventing an artifact.
122
+
123
+ ## Local completion receipt
124
+
125
+ Issue133 exact title/body/state readback verified. Signed bounded runtime fix:
126
+ 0664a00dea8b1b4fd1f8c3ff803683171b2c69d8 (valid signature). The four pin files
127
+ are prepared locally; package version is deliberately unchanged and no release
128
+ is published. npm regenerated only root and nine SDK-family package entries;
129
+ it also removed the old redundant root dependencies entry for Anthropic SDK,
130
+ whose optional exact0.128.0 and installed lock node are unchanged. Installed
131
+ .322 SDK entry/package/binary hashes match the accepted matched-pair identities.
132
+ The Polygram child's old SDK tree remains unchanged. Three independent design
133
+ and code reviewers returned CLEAN after the actual-installed-identity amendment.
134
+
135
+ After pin install: six focused local test files, 444 tests /425 PASS /0 FAIL /
136
+ 19 existing capability-N/A skips /0 cancelled, exit0,10.892s. Consumer identity
137
+ contract:3PASS/0FAIL/0SKIP on the current .283 dependencies, not a future .322
138
+ artifact proof. Full runtime suite already passed before the metadata-only pin
139
+ change; no provider matrix was repeated. Exact private logs, installed hashes,
140
+ review receipts and invocation environments are retained under
141
+ /tmp/orchestra-claude-upgrade-research-3agLJs (publication-pin-review-receipts.md,
142
+ pin-installed-source-attestation.json, pin-sdk-focused.json and
143
+ pin-consumer-current-pair-contract.json). The concrete remaining dependency is
144
+ the actual subsequent Claude Orchestra release after Codex publication, then
145
+ separately reviewed exact consumer dependency/lock changes and mandatory soaks.
146
+
147
+ ## Published-base integration and patch release amendment
148
+
149
+ Coordinator supplied published Orchestra 0.12.0 main/tag base
150
+ 706dab133bb2c696d34a950d8bdd4eebc22f02f5 (release434e230, PR70). Fresh origin
151
+ fetch, authoritative main API and npm versions/latest readback all agree at
152
+ 0.12.0, with no0.12.1 published. Choose0.12.1: this is the bounded SDK response
153
+ ownership correction and aligned runtime upgrade, without public interface change.
154
+ It preserves the already released Codex0.167.2/trusted-policy/runtime-companion
155
+ features. The release hold ends for Orchestra only; Polygram Codex0.46.0 is still
156
+ in CI and the child consumer merge/version/publication remains held for that
157
+ actual published base. No deployment; coordinator owns both required soaks.
158
+
159
+ Preserve the current reviewed pin/doc preparation with a signed logical commit,
160
+ then merge the exact published base into this owned feature branch using a signed
161
+ merge, without rewriting either history or discarding uncommitted work. Upstream
162
+ changes touch Codex implementations/tests/fixtures, factory trusted policy and
163
+ package root versions only; no upstream SDK-process runtime change. Expected
164
+ package merge is old version0.11.3 -> published0.12.0 while retaining new exact
165
+ SDK/CLI .322. Resolve only actual conflicts, compare every Codex code/pin/feature
166
+ file byte-for-byte to the released base, and independently review real integration
167
+ deltas. Keep the accepted SDK runtime SHA unchanged; no paid/provider loop.
168
+ Alternative cherry-pick onto a fresh branch would duplicate already preserved
169
+ reviewed history and is unnecessary; direct main edits bypass the PR gate.
170
+
171
+ After integration, record the patch version0.12.1 in package.json and both lock
172
+ root versions, signed as its own release commit. Update current status docs to
173
+ supersede the earlier published-base hold; do not relabel strict INCONCLUSIVE or
174
+ failed matrix evidence. Run the full local unit/integration suite once on the
175
+ combined final tree under the established credential-free synthetic environment,
176
+ including new released Codex tests, and keep existing matrix/focused evidence
177
+ where exact source inputs remain unchanged. Independent final code review checks
178
+ source equality, metadata and retained evidence before push/PR. Publish a normal
179
+ PR against main with concise bounded evidence/limitations, await CI, merge only
180
+ that reviewed head, read back exact merged main commit, create/push a signed tag
181
+ v0.12.1 on that main commit, and use existing Release workflow OIDC publication
182
+ only. Do not use local npm publish or change release workflows.
183
+
184
+ Verify GitHub workflow success, authoritative tag/main/release, npm registry
185
+ version/integrity, fetch the exact published tarball read-only and compare EVERY
186
+ published package file to the merged source. Verify installed metadata/binary
187
+ source in an isolated package extraction without real inference. If CI/release
188
+ fails, classify and correct only the actual cause before another mutation; do
189
+ not duplicate ambiguous publication. The tracking issue stays open for consumer
190
+ integration and both24hsoaks. Prepare/sign child installed-identity/test/status
191
+ work and concrete dependency update with actual0.12.1 artifact when available,
192
+ but do not integrate Polygram main/version/release before coordinator supplies
193
+ released0.46.0 base; no parent branch edits or deployment.
@@ -0,0 +1,200 @@
1
+ # Claude .283/.322 authorized provider execution
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
+ Ivan explicitly authorized all paid calls necessary to upgrade Codex and Claude,
49
+ including discovery, the reviewed full old/new matrix, actual-new-SDK and focused
50
+ compatibility followups. This is the current execution record and remaining gate
51
+ list, not a request for another paid batch or a standing grant. Publication,
52
+ push, issue creation, release and production activation remain unauthorized.
53
+
54
+
55
+ ## Coordinator acceptance and retained limits
56
+
57
+ The coordinator accepts this bounded ownership correction on the completed
58
+ 23/23 matched matrix, all three distinct UUID-owned user completions observed on
59
+ both actual SDK/CLI pairs, observed peer/zero events preserving pending owners,
60
+ reviewed retained-shape RED 2 FAIL -> GREEN 2 PASS, the cancellation/drop
61
+ regressions, and independent clean code reviews. The former strict focused
62
+ oracle required unsupported standalone-report/notification-before-zero behavior
63
+ and its overlap holds were denied. Its INCONCLUSIVE verdicts remain unchanged;
64
+ those extra assumptions are not a release gate. No new live scheduling fixture,
65
+ provider query, or instrumentation loop is required or planned for this correction.
66
+ This accepts explicitly limited coverage; downstream delivery and every overlap
67
+ schedule remain unproven. Tracking-issue publication remains the explicit pre-pin
68
+ prerequisite, and pin/consumer reviews, release/activation authority, staging and
69
+ both 24-hour soaks remain. No runtime or package pin changes are made here.
70
+
71
+ ## Final full unit/integration verification
72
+
73
+ Ran the complete package test command once on the final corrected runtime with
74
+ Node 24.4.0: `node --test --test-force-exit --test-concurrency=1 tests/*.test.js`.
75
+ All 34 test files completed: 1,579 tests, 1,560 PASS, 0 FAIL, 19 existing contract
76
+ capability-N/A skips (17 channels-protocol, 2 Codex-capability), 0 cancelled.
77
+ Duration 103.370 seconds, exit 0. Runtime SHA-256 remains
78
+ `c6f61a85acd139a0c524a7726dc5eead02be34480305bcd3fbdde32005c72184`.
79
+ HOME/CODEX_HOME/TMP/tmux/vendor/versions were private synthetic trees, with an
80
+ allowlisted credential-free environment and disabled installer/updater. The suite
81
+ uses fake processes/bridges and local fixtures; no paid queries were repeated.
82
+ No failures required code changes. This is unit/integration proof, not additional
83
+ provider, downstream delivery, persistence, activation or soak proof. Full log,
84
+ command, times and per-skip receipts:
85
+ `/tmp/orchestra-claude-upgrade-research-3agLJs/compatibility-acceptance-full-suite/`.
86
+
87
+
88
+ ## Current correction and matched-pair result
89
+
90
+ Bounded SdkProcess normal-send serialization, UUID/origin ownership, cancellation
91
+ and drop correction is implemented with retained RED/GREEN tests and independent
92
+ CLEAN design/code reviews. Public interfaces, intentional injection/steering and
93
+ autonomous report output remain. Runtime source SHA-256:
94
+ `c6f61a85acd139a0c524a7726dc5eead02be34480305bcd3fbdde32005c72184`.
95
+
96
+ Actual SDK0.3.283/CLI2.1.283 versus SDK0.3.322/CLI2.1.322 complete matched matrix
97
+ `m-6cce-a` PASSES23/23 scheduled cells on signed gate
98
+ `6cceb3b3544f4efc74330c82f0557d7f1bfb31d6`, manifest SHA-256
99
+ `63bcf4e6f018bcbf689240a472328b73e1ee265af58a4cc7c3175d8320b8e817`.
100
+ The existing old opt-in waiver remains explicit; no candidate waiver was added.
101
+ Documented .292 clear ordering and exact two-result/task/run/session semantics
102
+ are validated on the new matched pair. Historical b796 crossed-pair FAIL and e187
103
+ runner-blocked FAIL remain immutable, not combined into this new PASS.
104
+
105
+ Strict focused provider probes remain INCONCLUSIVE: all3correct UUID-owned user
106
+ completions and observed peer/zero report terminals preserve pending ownership,
107
+ but denied fixture holds and stronger report/notification-order witnesses prevent
108
+ complete scheduling/downstream proof. Reviewed retained-shape replay fails on old
109
+ runtime and passes after correction; this does not relabel provider evidence.
110
+ No unchanged paid retry or wider runtime refactor is proposed. See
111
+ `SDK_PENDING_ATTRIBUTION_COMPATIBILITY_SPEC.md` and
112
+ `/tmp/orchestra-claude-ownership-correction-report.md` for exact evidence and the
113
+ accepted coverage limits. No further focused provider loop is required. Pins
114
+ remain old; issue is unpublished, consumer
115
+ update/release/activation and both24hsoaks remain pending. Claude does not block
116
+ coordinator-owned Codex work.
117
+
118
+ ## Historical crossed-pair execution (superseded by matched run)
119
+
120
+ Use the related Polygram child `claude-322-gates` only. Its signed gate commit is
121
+ `b796ec57a010edc092a9e03a287a00870dbb891d`, with separate acceptance manifest
122
+ `scripts/spikes/claude-2.1.322-matrix.json`, SHA-256
123
+ `bcfa47f6ce435bc3513677bc1325234dd476c523646c16477f9cb7f8eeb45f9a`.
124
+ The default accepted matrix and SDK/CLI runtime pins remain unchanged.
125
+
126
+ The account context was determined from existing local access-only OAuth after
127
+ official profile readback, without login/logout/refresh or real settings edits.
128
+ Synthetic private HOME/CODEX_HOME/TMPDIR, private tmux, vendor/install isolation,
129
+ Keychain/real-config denial and whole-output credential redaction apply. A first
130
+ existing account reached a definite weekly limit; a second existing eligible
131
+ account had available quota. No new account provision was required. Native
132
+ credential files are exclusive mode0600 and deleted in finally, with no refresh
133
+ material. Normal official feature evaluation remains enabled; disabling telemetry
134
+ also disables feature evaluation and had caused the earlier false prerequisite.
135
+
136
+ Discovery exercised the 13 planned candidate invocations across retained batches,
137
+ not one authoritative run. Actual-new-SDK .322 plus candidate CLI passes all five
138
+ supplemental SDK scenarios. The full unfiltered comparison is recorded as
139
+ `gate-b796ec5-full-a` under the evidence root. Read its completed summary for the
140
+ actual outcome: FAIL, 14 PASS / one failed candidate background MCP / eight NOT-RUN after failure (15 of 23 completed). All eight remaining cases PASS in supplemental filtered runs on the same commit; short IDs corrected definite Opus/snapshot fixture path failures. No assembled full PASS is permitted.
141
+
142
+ ## Invocation and time scope
143
+
144
+ Reviewed invocation inside the private sandbox/auth controller:
145
+
146
+ ```fish
147
+ node scripts/spikes/run-claude-gate-matrix.mjs --manifest /Users/ivanshumkov/orca/workspaces/polygram/claude-322-gates/scripts/spikes/claude-2.1.322-matrix.json --old-bin /Users/ivanshumkov/.local/share/orchestra-upgrade-preservation/claude-2.1.283-to-2.1.322-darwin-arm64/claude-2.1.283 --candidate-bin /tmp/orchestra-claude-upgrade-research-3agLJs/candidate/package/claude --artifact-base /tmp/orchestra-claude-upgrade-research-3agLJs/gate-b796ec5-full-a-artifacts --run-prefix gate-b796ec5-full-a
148
+ ```
149
+
150
+ The wrapper rejects filters/extra arguments, requires the recorded clean HEAD
151
+ and manifest hash, retains evidence and never invokes acceptance cleanup. Full
152
+ scope is 23 invocations (10 old plus 13 candidate), with existing 15-minute child
153
+ deadlines: up to 345 minutes aggregate plus startup/cleanup overhead, stopping on
154
+ first failure. Discovery scope was 13 invocations / 195 minutes of child deadlines.
155
+ Actual-new-SDK checks were five separate filtered invocations. Focused attribution
156
+ probes each used three synthetic prompts, maxTurns 12, per-prompt idle/max limits
157
+ 150/180 seconds and an outer 15-minute deadline. Internal retries, tools, nested
158
+ Workflow/subagent calls mean these are not token/API-request/dollar bounds.
159
+ Manifest cost.usdEstimate fields are estimates; no repository-mandated monetary
160
+ ceiling was found in AGENTS.md/checked drivers. No new metering/proxy project or
161
+ spending-cap approval is required.
162
+
163
+ ## Historical blockers before the reviewed corrections (superseded)
164
+
165
+ Candidate background delayed MCP produced failed task notification, zero marker
166
+ and no completed-task evidence; its required expectation is retained with no
167
+ candidate waiver. Real old/new SDK auto-mode concurrency proves a shared queue/
168
+ report-attribution defect, with new zero-turn result behavior also observed.
169
+ The correction needs reviewed normal-send/stream correlation design and
170
+ coordinator alignment because changing queue semantics is consequential. A
171
+ zero-turn-only filter does not fix nonempty report misattribution or merging.
172
+
173
+ Both local stubs now establish actual Channels delivery with guarded native auth.
174
+ HTTP 500/401 and deterministic eager-tool retry, injection/followup/interrupt,
175
+ subagent, folded-input and mailbox checks PASS on both binaries. Default candidate
176
+ flaky/mailbox traces FAIL because deferred tools are absent from the scripted
177
+ stub's expected schema. A separately reviewed private local-only controller sets
178
+ ENABLE_TOOL_SEARCH=false; full real-provider matrix/runtime defaults are unchanged.
179
+ The matching child SQLite binding was rebuilt locally; parent dependencies stay
180
+ unchanged. See docs/CLAUDE_LOCAL_STUB_TOOLS_SPEC.md and retained evidence.
181
+
182
+ Actual-new-SDK background MCP completes its task and marker, but notification
183
+ precedes membership clear, violating the strict clear-before-notification contract.
184
+ Multiple SDK terminal results also violate the checked source-validation assumption.
185
+ No candidate waiver or weaker ordering assertion was substituted. The refreshed
186
+ existing token's single supported inference smoke returns a definite weekly limit;
187
+ profile403 is separately recorded. Another existing native context completed the
188
+ current comparison. Real login state is untouched; no quota or token refresh is
189
+ performed by this worker and no unknown paid result is retried.
190
+
191
+ ## Current remaining requirements
192
+
193
+ Tracking issue publication is still not authorized and the issue draft is not an
194
+ opened issue. Despite the completed matched23/23matrix PASS, pins cannot move until the mandatory
195
+ issue, aligned independently reviewed Orchestra SDK/CLI change and separately
196
+ reviewed consumer update are satisfied. Release, SDK staging on shumorobot for
197
+ at least 24h, shared VPS CLI activation and at least 24h CLI soak remain separate
198
+ unapproved work. No --accept-run cleanup, push, customer message or deployment
199
+ has occurred. Evidence and exact remaining outcomes are in
200
+ `/tmp/orchestra-claude-ownership-correction-report.md`.
@@ -0,0 +1,121 @@
1
+ # Tracking issue draft — NOT PUBLISHED
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
+ Title: bump claude CLI v2.1.283 → v2.1.322
49
+
50
+ Upgrade Orchestra's exact Agent SDK 0.3.283 / Claude CLI 2.1.283 pair to the evaluated candidate SDK 0.3.322 / CLI 2.1.322 only after the compatibility procedure in Polygram's AGENTS.md passes. Registry metadata says SDK 0.3.322 bundles `claudeCodeVersion: 2.1.322`; both official GitHub releases are non-prereleases. CLI npm `latest` is .322 while its conservative `stable` dist-tag remains .311. The target is a candidate, not an approved pin.
51
+
52
+ Official release notes: https://github.com/anthropics/claude-code/releases/tag/v2.1.322 and https://github.com/anthropics/claude-agent-sdk-typescript/releases/tag/v0.3.322. Review the full range after .283, particularly queue/fold/interrupt/paste, hook timing, task attribution/order, SDK result batching, MCP background tasks, permission defaults and strict resume/snapshot behavior.
53
+
54
+ - [ ] Publish this issue with Ivan's explicit go; record its real URL before pin movement.
55
+ - [x] Preserve and SHA-attest old Mac arm64 binary outside updater/vendor GC trees; attest exact candidate.
56
+ - [ ] Preserve Linux host rollback binaries before any VPS activation.
57
+ - [x] Independently review exact matched-pair version expectations without unexplained lifecycle normalization or new candidate waivers.
58
+ - [x] Run actual SDK .283/CLI .283 and SDK .322/CLI .322 checked matrix on one recorded gate commit; signed 6cceb3b, complete authoritative m-6cce-a 23/23 PASS.
59
+ - [x] Pass API-error and mailbox local stubs on both binaries with guarded native auth and eager tools for deterministic scripting; preserve default deferred-tool fixture failures and explain the boundary.
60
+ - [x] Accept the bounded ownership/cancellation correction on the full matched matrix, observed UUID-owned completions and peer/zero ownership preservation, retained-shape RED/GREEN and independent clean reviews; the coordinator explicitly accepts limited coverage. Strict focused traces remain INCONCLUSIVE without creating another release gate or provider loop; downstream delivery and every overlap schedule are unproven.
61
+ - [ ] Update Orchestra exact SDK and CLI pin together, test actual SDK .322 pair, obtain independent code review, and document full release-note delta and any adapter corrections.
62
+ - [ ] Release Orchestra only after publication approval.
63
+ - [ ] Review Polygram's separate exact Orchestra + SDK consumer update and verify persistence from authoritative state.
64
+ - [ ] Stage on shumorobot for at least 24h; no CLI claim from this SDK staging soak.
65
+ - [ ] Activate shared VPS install and vendor directory together only when authorized, then run 24h CLI soak while checking autosteer-match-miss, autonomous-wakeup-message and tool-only-completion.
66
+
67
+ ## Coordinator acceptance and retained limits
68
+
69
+ The coordinator accepts this bounded ownership correction on the completed
70
+ 23/23 matched matrix, all three distinct UUID-owned user completions observed on
71
+ both actual SDK/CLI pairs, observed peer/zero events preserving pending owners,
72
+ reviewed retained-shape RED 2 FAIL -> GREEN 2 PASS, the cancellation/drop
73
+ regressions, and independent clean code reviews. The former strict focused
74
+ oracle required unsupported standalone-report/notification-before-zero behavior
75
+ and its overlap holds were denied. Its INCONCLUSIVE verdicts remain unchanged;
76
+ those extra assumptions are not a release gate. No new live scheduling fixture,
77
+ provider query, or instrumentation loop is required or planned for this correction.
78
+ This accepts explicitly limited coverage; downstream delivery and every overlap
79
+ schedule remain unproven. Tracking-issue publication remains the explicit pre-pin
80
+ prerequisite, and pin/consumer reviews, release/activation authority, staging and
81
+ both 24-hour soaks remain. No runtime or package pin changes are made here.
82
+
83
+ ## Final full unit/integration verification
84
+
85
+ Ran the complete package test command once on the final corrected runtime with
86
+ Node 24.4.0: `node --test --test-force-exit --test-concurrency=1 tests/*.test.js`.
87
+ All 34 test files completed: 1,579 tests, 1,560 PASS, 0 FAIL, 19 existing contract
88
+ capability-N/A skips (17 channels-protocol, 2 Codex-capability), 0 cancelled.
89
+ Duration 103.370 seconds, exit 0. Runtime SHA-256 remains
90
+ `c6f61a85acd139a0c524a7726dc5eead02be34480305bcd3fbdde32005c72184`.
91
+ HOME/CODEX_HOME/TMP/tmux/vendor/versions were private synthetic trees, with an
92
+ allowlisted credential-free environment and disabled installer/updater. The suite
93
+ uses fake processes/bridges and local fixtures; no paid queries were repeated.
94
+ No failures required code changes. This is unit/integration proof, not additional
95
+ provider, downstream delivery, persistence, activation or soak proof. Full log,
96
+ command, times and per-skip receipts:
97
+ `/tmp/orchestra-claude-upgrade-research-3agLJs/compatibility-acceptance-full-suite/`.
98
+
99
+
100
+
101
+ Related local design: `docs/CLAUDE_2_1_322_UPGRADE_SPEC.md`. This document is a local draft and does not satisfy the opened-tracking-issue requirement. Production pins, release, activation and both soak gates remain pending.
102
+
103
+
104
+ Historical verification receipt before the correction (not an opened issue): signed gate commit
105
+ `b796ec57a010edc092a9e03a287a00870dbb891d` full matrix FAILS: 14 PASS, one candidate
106
+ background MCP failure, eight not run after failure. Those eight later PASS as
107
+ supplemental filtered observations on the same commit, after short IDs fix two
108
+ definite fixture path lookups; this cannot be assembled into full acceptance.
109
+ Actual-new-SDK .322 core five checks PASS, while focused auto attribution fails
110
+ on both actual pairs. Actual-new-SDK background MCP completes task and marker
111
+ but notification precedes membership removal and two terminal results violate
112
+ the checked strict contract. Runtime pins remain unchanged. Private local report:
113
+ `/tmp/orchestra-claude-upgrade-provider-report.md`.
114
+
115
+ Current local verification receipt (still NOT an opened issue): signed matched gate
116
+ `6cceb3b3544f4efc74330c82f0557d7f1bfb31d6`, complete authoritative
117
+ `m-6cce-a`23/23PASS, exact old/newSDKload/runtimehash receipts retained. Runtime
118
+ correction has independent CLEAN reviews and RED/GREEN regressions; focused
119
+ provider fixture remains INCONCLUSIVE, with denied holds and downstream coverage
120
+ limitations explicit. Pins remain .283; no release/activation/soak occurred.
121
+ Current report: `/tmp/orchestra-claude-ownership-correction-report.md`.