@shumkov/orchestra 0.11.3 → 0.12.1
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_RUNTIME_UPGRADE_REPORT.md +419 -0
- package/docs/CODEX_RUNTIME_UPGRADE_SPEC.md +419 -0
- package/docs/SDK_PENDING_ATTRIBUTION_COMPATIBILITY_SPEC.md +340 -0
- package/docs/codex-app-server-compatibility.md +5 -0
- package/lib/claude-bin.js +1 -1
- package/lib/codex/app-server-client.js +32 -3
- package/lib/codex/preflight.js +21 -7
- package/lib/codex/protocol-schema.json +14 -7
- package/lib/codex/runtime-companion.js +66 -0
- package/lib/process/factory.js +5 -4
- package/lib/process/sdk-process.js +151 -45
- package/package.json +2 -2
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
# Codex 0.167.2 local upgrade evidence
|
|
2
|
+
|
|
3
|
+
Status: reviewed local implementation; hard-loss gate scope explicitly reconciled
|
|
4
|
+
to the accepted native-beta/quarantine contract. Native and CLIProxy final validation lanes passed; translated Linux x64
|
|
5
|
+
attestation/schema/consumer/helper/normal-stop validation passed. No production activation,
|
|
6
|
+
publication, commits, package-version changes, or Claude/Agent SDK pin changes.
|
|
7
|
+
|
|
8
|
+
## Scope and decision
|
|
9
|
+
|
|
10
|
+
Orchestra base: `c195f2f96373c8c2cb6a86f5b6fa8ef70ae98431`, worker tree
|
|
11
|
+
`/Users/ivanshumkov/orca/workspaces/orchestra/codex-runtime-upgrade`.
|
|
12
|
+
Polygram consumer base: `960b0be3b191f5a336bab8d5d6577d411c548a3a`, owned Orca child
|
|
13
|
+
`/Users/ivanshumkov/orca/workspaces/polygram/codex-runtime-compat`.
|
|
14
|
+
Parent/trusted/shared-skills/infra worktrees were read only.
|
|
15
|
+
|
|
16
|
+
Official release verification on 2026-11-12 selected non-prerelease `rust-v0.167.2`
|
|
17
|
+
(published 2026-11-11). Read the complete stable release inventory between 0.145.0
|
|
18
|
+
and 0.167.2 (40 releases), exact candidate source and official app-server docs;
|
|
19
|
+
the protocol reviewer independently audited the delta. Evidence is retained in
|
|
20
|
+
`/tmp/codex-runtime-upgrade-research/{latest.json,delta-release-notes.md,codex-rust-v0.167.2}`.
|
|
21
|
+
Sources: [official release](https://github.com/openai/codex/releases/tag/rust-v0.167.2),
|
|
22
|
+
[release API](https://api.github.com/repos/openai/codex/releases/latest),
|
|
23
|
+
[app-server documentation](https://developers.openai.com/codex/app-server).
|
|
24
|
+
|
|
25
|
+
Keeping 0.145.0 retains established evidence but provides no upgrade. The smallest
|
|
26
|
+
stable successor 0.146.0 reduces the delta but still needs new schema/binary/provider
|
|
27
|
+
validation. Exact 0.145/0.146 source already enables `CodeModeHost` by default;
|
|
28
|
+
0.146 does not source-evidently avoid the companion or process-group issue. No
|
|
29
|
+
evidenced earlier stable candidate solves the observed shared crash limitation.
|
|
30
|
+
Prefer finishing 0.167.2 within the already accepted containment boundary, under
|
|
31
|
+
the coordinator-approved correction to the stricter new crash-gate scope. This is
|
|
32
|
+
not a passing crash cleanup result; do not downgrade solely from this observation.
|
|
33
|
+
|
|
34
|
+
## Reviewed changes and interfaces
|
|
35
|
+
|
|
36
|
+
The spec received three initial independent reviews, two instruction-amendment
|
|
37
|
+
reviews and two companion-amendment reviews. Final protocol and scope/security
|
|
38
|
+
reviews are CLEAN for the source changes; final protocol, scope/security and
|
|
39
|
+
validation report re-reviews are also CLEAN. Final provider gates and translated Linux checks passed. Native Linux
|
|
40
|
+
CPU/sandbox/launcher validation remains a release prerequisite. These verdicts do not approve release or activation.
|
|
41
|
+
|
|
42
|
+
Public constructors, profile/receipt shapes, allowed client methods and process
|
|
43
|
+
interfaces remain compatible. Exact new hook metadata is validated (`async:false`,
|
|
44
|
+
`environmentId:null`); eight official PlanType additions are accepted without
|
|
45
|
+
exposing account data. Only the exact UI/auth summary notifications
|
|
46
|
+
`thread/readState/changed`, `account/updated` and provider
|
|
47
|
+
`turn/moderationMetadata` are dropped; unknown methods and
|
|
48
|
+
unsupported hook metadata still fail closed; exact policy checks remain enforced.
|
|
49
|
+
Limited/trusted policies, native ChatGPT admission,
|
|
50
|
+
CLIProxy selection, model/effort catalogs, hook inventory, checkpoint delivery,
|
|
51
|
+
steer/resume and deployment admission/fingerprint fencing remain enforced.
|
|
52
|
+
Trusted filesystem serialization remains `glob_scan_max_depth:null`, digest
|
|
53
|
+
`ce41c7bdb7f357798e0ce66850e28f87de7a8544bb13ce2cc029985aa41d852a`.
|
|
54
|
+
|
|
55
|
+
Candidate explicit-untrusted project loading excludes project instructions as well
|
|
56
|
+
as project configuration. The approved adaptation binds only Polygram's dedicated
|
|
57
|
+
CODEX_HOME/AGENTS.md to the exact admitted workspace's canonical root AGENTS.md.
|
|
58
|
+
It never writes the user global Codex home, copies instructions, overwrites a
|
|
59
|
+
regular file, retargets an existing link, accepts foreign/dangling targets or
|
|
60
|
+
AGENTS.override.md, or reuses another workspace's binding. Existing owned-profile
|
|
61
|
+
identity/admission checks enforce the binding through cache and dispatch; canonical
|
|
62
|
+
content edits remain live shared-source edits. Nested project AGENTS are ignored
|
|
63
|
+
under this runtime's explicit-untrusted mode; this adaptation covers the canonical
|
|
64
|
+
Shumabit root, not a general nested-instruction loader.
|
|
65
|
+
|
|
66
|
+
The approved required companion is the exact-target official
|
|
67
|
+
`codex-code-mode-host`, in the plain standalone sibling layout only. Its secure
|
|
68
|
+
path/owner/mode/nlink/hash and selection layout are bound privately at existing
|
|
69
|
+
attestation boundaries and rechecked before spawn and state-changing writes,
|
|
70
|
+
including after awaited checkpoints. Competing resources/package/bundle layouts
|
|
71
|
+
are rejected. This adds no general executable supervisor or arbitrary helper path.
|
|
72
|
+
|
|
73
|
+
## Artifact attestations
|
|
74
|
+
|
|
75
|
+
All SHA-256 values below are exact official downloaded executable bytes. Preserved
|
|
76
|
+
old and candidate Darwin artifacts are outside updater/vendor GC under
|
|
77
|
+
`/Users/ivanshumkov/.local/share/orchestra-runtime-evidence/codex-<version>/`.
|
|
78
|
+
|
|
79
|
+
| Artifact | SHA-256 |
|
|
80
|
+
| --- | --- |
|
|
81
|
+
| 0.145.0 Darwin ARM64 CLI | `1da3f4e0e96028b8a771814293c3033dafd1971f943f6c7e79b0897fe705f590` |
|
|
82
|
+
| 0.145.0 Linux x64 musl CLI (base pin; not newly executed) | `a2a05dafaa1acb002a45eaec0a462de5b13694fcfcd7bc43305f14781ce7be14` |
|
|
83
|
+
| 0.145.0 Darwin ARM64 companion | `c75e27ea296ede4025959e4f66772c283261f28d95b1f27be4d8ef07aabe9bce` |
|
|
84
|
+
| 0.167.2 Darwin ARM64 CLI | `97bc82fd46f117cf10efb95e6ff0c81dc4784f5797bcdc2cb75093ba09e4def0` |
|
|
85
|
+
| 0.167.2 Darwin ARM64 companion | `45acdb759c3ac0a6b30a5107329b364b7ac1579f2cdf270997f03bc8d6365ef6` |
|
|
86
|
+
| 0.167.2 Linux x64 musl CLI | `a9672d0fa0dd8fcf8cad136fa0d056b914bc046f5ac3d78f4a5cf390655af56b` |
|
|
87
|
+
| 0.167.2 Linux x64 musl companion | `007c62795a7215c27ee85486ecb95e714b33118a2d18c6d7b09b0d9793c72ff4` |
|
|
88
|
+
|
|
89
|
+
The base 0.145.0 experimental canonical schema pin was
|
|
90
|
+
`1bc09dedc506075562d4d49b702ecab6d947dd5a8c2a9014a5cde592a0938efb`.
|
|
91
|
+
Fresh candidate Darwin binary generation, stable then experimental v2:
|
|
92
|
+
|
|
93
|
+
| Schema | Stable | Experimental |
|
|
94
|
+
| --- | --- | --- |
|
|
95
|
+
| Repository canonical digest | `3acaab0f5788b486250d8e32f75ae5e98198c63090a500c04182df52f0c8f137` | `ca9811bd8310c9576f2acc1c37ba132afeef49c0cdbc3e02908b64ad12126163` |
|
|
96
|
+
| Raw ClientRequest JSON | `94074a415950787a25e09ae3b4d9de312cc264eb0f021633dfca921d300cd42a` | `2d629aaaceea335d7e58ab19ce5908c8dd75ca3f3a6161a5f015bf59aadd3295` |
|
|
97
|
+
| Raw protocol JSON | `021462a9bacd117f4cd40c256a4888619d059cec6a65b795198d521ba660e554` | `486c7c8daa5dc7f3ab2a1fb56de5316804caf7a4210fda1dc28d3f0f4e90cfe1` |
|
|
98
|
+
|
|
99
|
+
The regeneration probe caught an initial research canonicalization mistake:
|
|
100
|
+
Python ASCII escaping differs from the repository algorithm on newly present
|
|
101
|
+
Unicode. Corrected pins above use `lib/canonical-json.js`; raw byte hashes did not
|
|
102
|
+
change. `/tmp/codex-upgrade-schema-digest-red.log` and
|
|
103
|
+
`/tmp/codex-upgrade-schema-regeneration.log` preserve the mismatch and successful
|
|
104
|
+
independent regeneration/manifest comparison. Preflight fingerprint fixtures were
|
|
105
|
+
updated deliberately. Exact Linux x64 CLI/helper attestations and freshly generated
|
|
106
|
+
stable/experimental schemas also passed in the disposable Linux VM using RosettaLinux
|
|
107
|
+
x64 translation; both raw hashes and canonical digests match Darwin. Simulated
|
|
108
|
+
target-selection tests are separately labeled and are not execution evidence.
|
|
109
|
+
|
|
110
|
+
## Verification and red/green evidence
|
|
111
|
+
|
|
112
|
+
Final full runs after the notification correction: Orchestra 1,585/1,604 tests passed
|
|
113
|
+
(19 N/A skips: 17 channel capabilities and two Codex capability cases), zero failures;
|
|
114
|
+
Polygram full run before the final Orchestra-only notification change:
|
|
115
|
+
4,791/4,807 passed (16 existing opt-in Claude skips), zero failures. Logs:
|
|
116
|
+
`/tmp/orchestra-codex-upgrade-final3-full.log` and
|
|
117
|
+
`/tmp/polygram-codex-upgrade-final2-full.log`. Linux target-selection simulation
|
|
118
|
+
passed all 35 preflight tests; this is not Linux execution. After the exact
|
|
119
|
+
notification fix, all 249 client/preflight/upgrade tests and 321 consumer Codex/
|
|
120
|
+
dependency-contract tests passed. Both diffs pass
|
|
121
|
+
`git diff --check`. Historical Codex fixture tests: 116 pass.
|
|
122
|
+
|
|
123
|
+
Concrete failures were pinned before fixes: strict hook metadata, exact account
|
|
124
|
+
notification/plan additions, missing helper admission, helper-selection shadow
|
|
125
|
+
layouts, drift during awaited spawn attestation, canonical instruction ownership,
|
|
126
|
+
and original owned-profile retention through registered admission. Red/green logs:
|
|
127
|
+
`/tmp/codex-upgrade-{hooks,account,plan}-{red,green}.log`,
|
|
128
|
+
`/tmp/codex-companion-{real,prespawn}-{red,green}.log`,
|
|
129
|
+
`/tmp/codex-companion-shadow-red.log`, `/tmp/codex-companion-green.log`,
|
|
130
|
+
`/tmp/polygram-codex-instructions-{red,green}.log`,
|
|
131
|
+
`/tmp/polygram-instruction-admission-{red,green}.log`.
|
|
132
|
+
|
|
133
|
+
Meaningful real-binary deterministic checks (zero external inference):
|
|
134
|
+
|
|
135
|
+
- Production Polygram builder/preflight/factory/CodexProcess/checkpoint path with
|
|
136
|
+
actual code-host tool execution and synthetic memory/skill read plus tool marker;
|
|
137
|
+
two loopback turns, four HTTP requests, two rejected WebSocket attempts followed
|
|
138
|
+
by HTTP fallback, 49 durable checkpoints. Fresh-process resume, ordered steer,
|
|
139
|
+
stale-steer rejection and authoritative JSONL readback passed:
|
|
140
|
+
`/tmp/codex-upgrade-tool-reviewed-fixture.log` (fixture-cgxO6L); final post-pin
|
|
141
|
+
repetition `/tmp/codex-upgrade-tool-final-fixture.log` (fixture-fOyxqr) passed
|
|
142
|
+
the same checks/counts.
|
|
143
|
+
- Real candidate hooks trust lifecycle: all 14 checks passed, credential free,
|
|
144
|
+
`/tmp/codex-upgrade-real-hooks-final.log`.
|
|
145
|
+
- Real limited sandbox: workspace read/write allowed; actual protected-home
|
|
146
|
+
config/auth/daemon-secret canary denied; external sandbox network blocked while
|
|
147
|
+
host loopback control succeeded, `/tmp/codex-upgrade-limited.log`.
|
|
148
|
+
- Old 0.145 synthetic rollout preserved, candidate fresh-process resume and
|
|
149
|
+
authoritative persisted readback passed, `/tmp/codex-upgrade-old-to-new.log`.
|
|
150
|
+
This raw transport characterization is separate from the full consumer fixture.
|
|
151
|
+
- Final candidate normal interrupt fixture passed exact terminal reconciliation,
|
|
152
|
+
background clean and fresh empty-page durable receipts:
|
|
153
|
+
`/tmp/codex-upgrade-interrupt-fixture.log`. Two completed synthetic turns plus
|
|
154
|
+
one intentionally interrupted turn, zero external inference.
|
|
155
|
+
- Helper attestation and delayed pre-spawn selection-shadow checks passed against
|
|
156
|
+
the actual candidate, `/tmp/codex-companion-prespawn-green.log`.
|
|
157
|
+
|
|
158
|
+
Loopback skill/memory execution is deterministic tool proof, not proof that a live
|
|
159
|
+
model independently followed root instructions or consumed discovered skill bodies
|
|
160
|
+
and unprompted synthetic shared memory. Separate actual provider evidence below
|
|
161
|
+
now completes those gates.
|
|
162
|
+
|
|
163
|
+
## Actual provider results and paid-call accounting
|
|
164
|
+
|
|
165
|
+
| Lane | Logical turns attempted | Completed | Result |
|
|
166
|
+
| --- | --- | --- | --- |
|
|
167
|
+
| Original native Astra | 1 | 0 | stopped on unexplained protocol fault |
|
|
168
|
+
| First authorized corrective native | 1 | 0 | stopped on uniquely matched metadata notification |
|
|
169
|
+
| Further explicitly authorized native after deterministic fix | 2 | 2 | passed |
|
|
170
|
+
| First independent CLIProxy Astra | 2 | 2 | passed |
|
|
171
|
+
| Total | 6 | 4 | two stopped lanes retained separately |
|
|
172
|
+
|
|
173
|
+
Transport/inference request-attempt counts are unknown; these logical-turn counts
|
|
174
|
+
are not billable-request counts. No blind paid retries occurred. The coordinator
|
|
175
|
+
explicitly authorized each corrective lane after reviewing evidence.
|
|
176
|
+
|
|
177
|
+
Final native evidence: `/tmp/codex-upgrade-native-final-live.log`, private
|
|
178
|
+
`live-DbxsvM`, 53 durable checkpoints. Final CLIProxy evidence:
|
|
179
|
+
`/tmp/codex-upgrade-cliproxy-live.log`, private `live-F8Tlq0`, 55 checkpoints.
|
|
180
|
+
Both use actual `gpt-6-astra`/high through the production consumer builder/preflight/
|
|
181
|
+
factory/CodexProcess. Both passed canonical root instruction consumption, discovered
|
|
182
|
+
skill-body nonce, unprompted synthetic shared-memory fact, actual shell tool marker,
|
|
183
|
+
completed turns, authoritative JSONL readback, fresh-process resume, accepted and
|
|
184
|
+
semantically consumed steer, and correlated durable request/start/terminal/delta
|
|
185
|
+
checkpoints/events. Native final safe trace directly captured exact
|
|
186
|
+
`turn/moderationMetadata` with threadId/turnId/metadata key names and no values,
|
|
187
|
+
confirming the earlier source/schema-backed inference. Live bot parity is not claimed.
|
|
188
|
+
|
|
189
|
+
The original failed lane `/tmp/codex-upgrade-native-live.log` (live-DvhDQ7) remains
|
|
190
|
+
unexplained at exact-method level; the helper omission was separate. The stopped
|
|
191
|
+
first corrective lane `/tmp/codex-upgrade-native-corrective.log` (live-HBJWiT)
|
|
192
|
+
produced one tool call/output before the inferred metadata rejection, no final
|
|
193
|
+
completion. Their failed results are not relabeled as successes by later passes.
|
|
194
|
+
The reviewed exact-drop correction has pending-RPC red/green privacy and unknown-
|
|
195
|
+
sibling regression proof in `/tmp/codex-moderation-{red,green}.log`.
|
|
196
|
+
|
|
197
|
+
CLIProxy used the existing private loopback Responses provider through SSH forwarding;
|
|
198
|
+
ChatGPT auth remained mandatory. Read-only `/v1/models` advertised Astra. Actual
|
|
199
|
+
WebSocket versus HTTP-fallback selection was not independently captured for the
|
|
200
|
+
live lanes; configured supports_websockets=true alone is not transport proof.
|
|
201
|
+
The deterministic fixture explicitly proves rejected WebSocket/HTTP fallback.
|
|
202
|
+
No production service changes. Probe auth clones remove refresh-token authority,
|
|
203
|
+
enforce bounded access expiry, and verify original auth unchanged. Bearer/account/
|
|
204
|
+
token values are never printed.
|
|
205
|
+
|
|
206
|
+
## Crash comparison and Linux scope inspection
|
|
207
|
+
|
|
208
|
+
The original fixture-qaDACI ran Darwin ARM64 27.0.0, direct binary under Orchestra's
|
|
209
|
+
Node supervisor, with no sessionLauncher. Its app-server PID 347/group 346 was
|
|
210
|
+
SIGKILLed; helper PID 374/group 374 exited; nested `/bin/sleep` PID 375/group 375
|
|
211
|
+
survived beyond eight seconds. The original log omitted platform and precise fault
|
|
212
|
+
timing; it is supplemented by explicit audited reproduction below.
|
|
213
|
+
|
|
214
|
+
Audited fixture-X7a0kn: same OS/launcher, app 6356/group6355, helper6386/group6386,
|
|
215
|
+
nested6387/group6387. No client fault before injection at1794473540531; protocol
|
|
216
|
+
fault followed at1794473540595 (+64ms). At1794473548600 nested6387 remained PPID1;
|
|
217
|
+
only the positively identified fixture process was killed. This injected crash does
|
|
218
|
+
not diagnose the earlier live protocol fault. Evidence:
|
|
219
|
+
`/tmp/codex-upgrade-crash-audited.log`; final repeated probe also records
|
|
220
|
+
authoritative post-cleanup absence in `/tmp/codex-upgrade-crash-final.log`.
|
|
221
|
+
|
|
222
|
+
Equivalent bounded ordinary FOREGROUND `command/exec` crash comparison used
|
|
223
|
+
`/bin/sh -c 'echo $$ > foreground.pid; exec /bin/sleep 30'` under the same production
|
|
224
|
+
supervisor, no session launcher, Darwin ARM64 27.0.0, Node26.5.0. Supervisor source
|
|
225
|
+
SHA `afb5da3227c42d3160e6c149523a5a94aeedff046fb561619c19901fa5366c45`.
|
|
226
|
+
|
|
227
|
+
| Runtime | Supervisor PID | App PID/group | Nested PID/group | After app SIGKILL |
|
|
228
|
+
| --- | --- | --- | --- | --- |
|
|
229
|
+
| Preserved 0.145.0 | 4767 | 4772/4767 | 4774/4774 | survives >8s, PPID1 |
|
|
230
|
+
| Candidate 0.167.2 | 4958 | 4969/4958 | 4988/4988 | survives >8s, PPID1 |
|
|
231
|
+
|
|
232
|
+
Exact old/new CLI identities are the hashes above. Both owned fixture commands were
|
|
233
|
+
identity/group/name checked, killed, and absence read back. Full observations and
|
|
234
|
+
injection timestamps: `/tmp/codex-upgrade-crash-compare.log`, private
|
|
235
|
+
`crash-compare-jHl4Xk/report.json`. This proves a shared Darwin hard-loss limitation,
|
|
236
|
+
not a demonstrated candidate regression. Baseline compatibility docs explicitly
|
|
237
|
+
accept arbitrary-descendant hard-loss limits with daemon-wide same-host reboot
|
|
238
|
+
quarantine (existing document lines29 and728). Normal interrupt/terminal/background
|
|
239
|
+
cleanup remains mandatory. Requiring every arbitrary descendant to disappear after
|
|
240
|
+
hard loss exceeds that documented baseline. Coordinator explicitly corrected this
|
|
241
|
+
upgrade-gate scope; the crash-cleanup observations remain failed.
|
|
242
|
+
|
|
243
|
+
Read-only production Linux inspection found systemd255.4 on x86_64 and installed
|
|
244
|
+
launcher `/usr/local/libexec/claude-session-scope`, SHA
|
|
245
|
+
`c84655092a93df6857ec9008892801ab3f0a020aa5643e5d9932d227c0fef60e`.
|
|
246
|
+
The infra template execs `systemd-run --user --scope --collect --quiet
|
|
247
|
+
--no-ask-password --description=contained-claude-session --expand-environment=no
|
|
248
|
+
--slice=claude.slice` with OOM/resource limits and stripped bus/tmux environment.
|
|
249
|
+
Parent Polygram passes ORCHESTRA_SESSION_LAUNCHER into Codex. Existing client
|
|
250
|
+
attests the launcher, but obtains no exact owned-unit identity or stop receipt.
|
|
251
|
+
|
|
252
|
+
Nine contained scopes existed. Two sampled active scopes had KillMode=control-group,
|
|
253
|
+
KillSignal=15, SendSIGKILL=yes, TimeoutStop=90s, RuntimeMax=infinity,
|
|
254
|
+
StopWhenUnneeded=no, BindsTo/PartOf empty, CollectMode=inactive-or-failed. The outer
|
|
255
|
+
production service has a distinct system.slice cgroup. No scopes were created,
|
|
256
|
+
killed or reconfigured; no prompts, environment secrets or raw journals were read.
|
|
257
|
+
|
|
258
|
+
A scope remains active while any process remains; `--collect` unloads inactive
|
|
259
|
+
units. KillMode applies when stopping the owned scope, not as evidence that a dead
|
|
260
|
+
app-server triggers that stop. No trap/unit-name/lifecycle acknowledgment establishes
|
|
261
|
+
such a stop here. The existing narrow grep RSS/D-state reaper does not supply
|
|
262
|
+
arbitrary orphan cleanup. These conclusions follow the exact source plus official
|
|
263
|
+
[scope](https://raw.githubusercontent.com/systemd/systemd/v255/man/systemd.scope.xml),
|
|
264
|
+
[systemd-run](https://raw.githubusercontent.com/systemd/systemd/v255/man/systemd-run.xml)
|
|
265
|
+
and [kill](https://raw.githubusercontent.com/systemd/systemd/v255/man/systemd.kill.xml)
|
|
266
|
+
semantics. Linux Codex source uses parent-death signaling for its direct child;
|
|
267
|
+
that is not executed Linux or arbitrary-descendant cleanup proof.
|
|
268
|
+
|
|
269
|
+
Initially no isolated Linux environment was running (Docker socket unavailable,
|
|
270
|
+
Colima stopped, no Lima instances). The authorized disposable environment described
|
|
271
|
+
below was subsequently created; no production scope changed. Reusing an exact
|
|
272
|
+
owned scope's stop lifecycle could be smaller than a general descendant supervisor,
|
|
273
|
+
but requires new unit identity/ownership/stop acknowledgment and reviewed alignment;
|
|
274
|
+
it is not an already proven facility. No containment implementation was added.
|
|
275
|
+
|
|
276
|
+
## Files and remaining prerequisites
|
|
277
|
+
|
|
278
|
+
Orchestra changed files: `lib/codex/{app-server-client.js,protocol-schema.json}`,
|
|
279
|
+
new `runtime-companion.js`; updated app-server/hook/preflight fixtures/tests; new
|
|
280
|
+
companion and runtime-upgrade tests plus `tests/fixtures/codex-app-server-0.167.2/`;
|
|
281
|
+
new companion/schema probes, historical spike diagnostic, this report, the spec
|
|
282
|
+
and compatibility-document historical banner.
|
|
283
|
+
Polygram child changed files: `lib/codex/{runtime-profile.js,runtime-controller.js}`,
|
|
284
|
+
binary/dependency/profile/controller/integration tests, and new
|
|
285
|
+
`scripts/spikes/codex-runtime-upgrade.mjs`. Source package manifests/locks unchanged.
|
|
286
|
+
Its node_modules contains the private local same-version Orchestra build only;
|
|
287
|
+
no registry publication or parent dependency write occurred.
|
|
288
|
+
|
|
289
|
+
Remaining: native Linux x64 CPU/sandbox and actual session-launcher crash/stop
|
|
290
|
+
validation; live WebSocket selection remains unproven; final
|
|
291
|
+
integration/release review and separately authorized packaging/deployment/activation.
|
|
292
|
+
Deployment and rollback require both exact-target CLI and companion as immutable
|
|
293
|
+
siblings, plus preserved 0.145 artifacts/config/package backups outside updater GC.
|
|
294
|
+
Nothing in this report claims live bot parity, native Linux sandbox/production
|
|
295
|
+
launcher cleanup, or production activation proof.
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
## Gate correction and corrective native result
|
|
299
|
+
|
|
300
|
+
Coordinator explicitly reconciled the new blanket descendant cleanup gate to the
|
|
301
|
+
accepted native-beta hard-loss/quarantine boundary. The failed crash observations
|
|
302
|
+
remain failures and an honest limitation. Existing normal interrupt/exact terminal
|
|
303
|
+
reconciliation/background clean/fresh empty-page tests and durable quarantine/no
|
|
304
|
+
silent replacement or new admission remain mandatory and passed in the full suite.
|
|
305
|
+
Relevant named regressions include `interrupt waits for exact terminal, clean,
|
|
306
|
+
fresh empty page, and durable stop checkpoints`, `strict clean resume rejects any
|
|
307
|
+
non-empty background terminal page`, and post-spawn fault quarantine tests.
|
|
308
|
+
|
|
309
|
+
The authorized corrective native lane stopped after one incomplete logical turn:
|
|
310
|
+
`/tmp/codex-upgrade-native-corrective.log`, private `live-HBJWiT`. It recorded an
|
|
311
|
+
actual code-mode tool call and output in authoritative JSONL, but no tool-proof
|
|
312
|
+
file and no completed turn. No root/skill-body/memory success is claimed. The
|
|
313
|
+
trace ends with unknown notification keys threadId/turnId/metadata; among the
|
|
314
|
+
generated candidate ServerNotification variants only turn/moderationMetadata has
|
|
315
|
+
that property set (also in the old schema). Exact candidate source forwards this
|
|
316
|
+
opaque provider metadata independently of terminal/errors/guardian decisions.
|
|
317
|
+
The trace masked unknown method names, so method attribution remains inferred
|
|
318
|
+
from the unique schema/source shape, not directly captured exact wire identity.
|
|
319
|
+
|
|
320
|
+
A reviewed narrow fix drops only that exact notification, retains unknown-sibling
|
|
321
|
+
rejection and does not expose metadata or grant new authority. The pending-RPC
|
|
322
|
+
regression reproduced CODEX_PROTOCOL_ERROR before the fix in
|
|
323
|
+
`/tmp/codex-moderation-red.log`. Diagnostic key/item strings are now closed-set
|
|
324
|
+
masked as well. The authorization for that single corrective lane ended when it stopped;
|
|
325
|
+
that stopped lane was not blindly repeated. Coordinator
|
|
326
|
+
then explicitly authorized one further bounded lane after reviewing the fix; its
|
|
327
|
+
completed result and the independent CLIProxy result are recorded above.
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
## Disposable Linux execution
|
|
331
|
+
|
|
332
|
+
Used cua-sandboxes guidance with a dedicated task CUA_HOME, embedded runtime and
|
|
333
|
+
separate state directory. No user/global cua, Colima or Lima home/config/lifecycle
|
|
334
|
+
was changed. The local Linux VM was ARM64 Ubuntu, kernel6.8.0-117-generic, with a
|
|
335
|
+
private Docker engine. Sandbox name codex-runtime-0167; x64 test container
|
|
336
|
+
codex-linux-x64. Node image node:26-bookworm-slim resolved to digest
|
|
337
|
+
sha256:5df79989ed685e09f0a98019db4cebfb22fb9df1a53c0161664a011f7ff6b0f1.
|
|
338
|
+
|
|
339
|
+
QEMU8.2.2 in this owned guest executed the exact x64 Codex CLI and generated matching
|
|
340
|
+
schemas, but crashed Node22 and26 before JavaScript execution. This is a translator
|
|
341
|
+
environment failure, not a demonstrated Codex regression. Existing Apple
|
|
342
|
+
VZLinuxRosettaDirectoryShare availability was installed; the task VM alone was
|
|
343
|
+
restarted via Lima's documented Rosetta support (no host installation). Colima's
|
|
344
|
+
Mac Rosetta receipt heuristic initially refused it; direct Lima correctly exposed
|
|
345
|
+
the already available Linux translator. QEMU's x64 binfmt handler was disabled
|
|
346
|
+
only inside this disposable guest so Rosetta could handle the test processes.
|
|
347
|
+
See [official Lima multi-architecture guidance](https://lima-vm.io/docs/config/multi-arch/).
|
|
348
|
+
|
|
349
|
+
Node22.23.5 x64 was downloaded from official nodejs.org with its SHASUMS256 check:
|
|
350
|
+
archive SHA cdeb8670a0c81f51b4dc4ac61919f9b1ad917b304bf8221eb939570663d240f8.
|
|
351
|
+
Actual process.platform=linux/process.arch=x64, no target overrides or injected
|
|
352
|
+
attestors. Corrected fixture file ownership after Docker cp (foreign uid502 was
|
|
353
|
+
correctly rejected); CLI/helper are root-owned secure test paths with exact hash checks.
|
|
354
|
+
The production schema probe passes CLI/helper attestation and both raw/canonical
|
|
355
|
+
manifest comparisons: /tmp/codex-linux-schema-probe.log. Linux raw hashes are now
|
|
356
|
+
recorded deliberately in the versioned manifest.
|
|
357
|
+
|
|
358
|
+
The consumer fixture initially stopped at account/read before any turn. The slim
|
|
359
|
+
container lacked its OS CA bundle; after installing ca-certificates in this
|
|
360
|
+
disposable container, the same fixture passed without changing auth or production
|
|
361
|
+
code. The final fixture
|
|
362
|
+
passed actual helper execution/tool marker, exact production profile/preflight/
|
|
363
|
+
factory, ChatGPT admission, two completed loopback turns, fresh-process resume,
|
|
364
|
+
ordered and stale steer checks, correlated persisted events, and a third
|
|
365
|
+
intentionally interrupted turn with exact terminal/clean/fresh empty-page receipts.
|
|
366
|
+
Counts:3 logical synthetic turns attempted,2 completed,1 intentionally interrupted;
|
|
367
|
+
5 loopback HTTP requests,2 rejected WebSocket attempts,68 checkpoints,0 external
|
|
368
|
+
inference. /tmp/codex-linux-consumer-green.log, fixture-mJlArb.
|
|
369
|
+
Private durable evidence:
|
|
370
|
+
`/Users/ivanshumkov/.local/share/orchestra-runtime-evidence/linux-translated-4ibjnazn`,
|
|
371
|
+
retaining report/checkpoints/synthetic rollouts/tool marker, excluding auth files. The clone had refresh authority removed; original source credentials
|
|
372
|
+
were never written.
|
|
373
|
+
|
|
374
|
+
These are actual translated Linux x64 CLI/helper/protocol/consumer executions on
|
|
375
|
+
an ARM64 Linux kernel. They do not establish native x64 CPU/seccomp/sandbox behavior
|
|
376
|
+
or the production systemd launcher lifecycle, and no Linux live inference was
|
|
377
|
+
performed. No production scope/service or shared host lifecycle was changed.
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
Cleanup: both positively owned containers were removed, the task VM stopped,
|
|
381
|
+
process inventory read back zero remaining processes referencing its exact state
|
|
382
|
+
root, and that private task CUA_HOME was removed after preserving evidence.
|
|
383
|
+
The task SSH forward was closed. Evidence cleanup.json records this readback;
|
|
384
|
+
no shared VM/service or production scope was stopped.
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
## Exact modified source paths
|
|
388
|
+
|
|
389
|
+
Orchestra:
|
|
390
|
+
|
|
391
|
+
- `docs/CODEX_RUNTIME_UPGRADE_REPORT.md`
|
|
392
|
+
- `docs/CODEX_RUNTIME_UPGRADE_SPEC.md`
|
|
393
|
+
- `docs/codex-app-server-compatibility.md`
|
|
394
|
+
- `lib/codex/app-server-client.js`
|
|
395
|
+
- `lib/codex/protocol-schema.json`
|
|
396
|
+
- `lib/codex/runtime-companion.js`
|
|
397
|
+
- `scripts/spikes/codex-app-server-real.mjs`
|
|
398
|
+
- `scripts/spikes/codex-runtime-companion-probe.mjs`
|
|
399
|
+
- `scripts/spikes/codex-runtime-schema-probe.mjs`
|
|
400
|
+
- `tests/codex-app-server-client.test.js`
|
|
401
|
+
- `tests/codex-hook-composition.test.js`
|
|
402
|
+
- `tests/codex-preflight.test.js`
|
|
403
|
+
- `tests/codex-runtime-companion.test.js`
|
|
404
|
+
- `tests/codex-runtime-upgrade.test.js`
|
|
405
|
+
- `tests/fixtures/codex-app-server-0.167.2/experimental-compatibility.schema.json`
|
|
406
|
+
- `tests/fixtures/codex-app-server-0.167.2/manifest.json`
|
|
407
|
+
- `tests/fixtures/codex-app-server-0.167.2/stable-compatibility.schema.json`
|
|
408
|
+
- `tests/fixtures/fake-codex-app-server.mjs`
|
|
409
|
+
|
|
410
|
+
Polygram child:
|
|
411
|
+
|
|
412
|
+
- `lib/codex/runtime-controller.js`
|
|
413
|
+
- `lib/codex/runtime-profile.js`
|
|
414
|
+
- `scripts/spikes/codex-runtime-upgrade.mjs`
|
|
415
|
+
- `tests/codex-binary.test.js`
|
|
416
|
+
- `tests/codex-runtime-controller.test.js`
|
|
417
|
+
- `tests/codex-runtime-integration.test.js`
|
|
418
|
+
- `tests/codex-runtime-profile.test.js`
|
|
419
|
+
- `tests/orchestra-dependency-contract.test.js`
|