@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 runtime upgrade: 0.145.0 to 0.167.2
|
|
2
|
+
|
|
3
|
+
Status: implementation and amendments independently reviewed; crash-gate scope corrected by coordinator, bounded provider verification authorized, production unactivated. Detailed evidence: [upgrade report](CODEX_RUNTIME_UPGRADE_REPORT.md). Base: c195f2f96373c8c2cb6a86f5b6fa8ef70ae98431.
|
|
4
|
+
No Claude CLI/Agent SDK pins, package release versions, production configuration,
|
|
5
|
+
service state, publication, or existing parent worktrees may change.
|
|
6
|
+
|
|
7
|
+
## Problem and research
|
|
8
|
+
|
|
9
|
+
Ivan requested a runtime upgrade after trusted/proxy enablement. Orchestra currently
|
|
10
|
+
pins exact 0.145.0 target binaries and experimental v2 schema. Preserve the public
|
|
11
|
+
source interface, limited policy, trusted policy, provider selection, native ChatGPT
|
|
12
|
+
auth admission, model/effort catalog, hooks, durable event delivery, steer and resume.
|
|
13
|
+
|
|
14
|
+
Verified 2026-11-12: the official changelog and OpenAI release API identify
|
|
15
|
+
rust-v0.167.2 (non-prerelease, published 2026-11-11) as latest stable:
|
|
16
|
+
- https://learn.chatgpt.com/docs/changelog (Codex CLI 0.167.2)
|
|
17
|
+
- https://api.github.com/repos/openai/codex/releases/latest
|
|
18
|
+
- https://github.com/openai/codex/releases/tag/rust-v0.167.2
|
|
19
|
+
- https://developers.openai.com/codex/app-server
|
|
20
|
+
|
|
21
|
+
Downloaded official exact-tag source and Darwin ARM64 / Linux x64 musl releases
|
|
22
|
+
under /tmp/codex-runtime-upgrade-research; generated stable and experimental schemas
|
|
23
|
+
from the candidate under an empty isolated CODEX_HOME. Preserved the old Darwin
|
|
24
|
+
binary outside updater/vendor GC at ~/.local/share/orchestra-runtime-evidence/
|
|
25
|
+
codex-0.145.0/codex-aarch64-apple-darwin with the existing matching SHA-256.
|
|
26
|
+
Release notes for all stable versions in the delta and relevant exact-tag source
|
|
27
|
+
are reviewed before implementation; release evidence is summarized in the report.
|
|
28
|
+
|
|
29
|
+
Relevant upstream changes include permission restoration on resume, provider
|
|
30
|
+
validation, thread shutdown/start races, environment-scoped hooks, and command-hook
|
|
31
|
+
async metadata. Local source inspection covered compatibility docs, protocol schema,
|
|
32
|
+
preflight, factory, app-server client, CodexProcess, their immediate tests, Polygram
|
|
33
|
+
runtime profile and the minimal Shumabit spec. Candidate source:
|
|
34
|
+
codex-rs/app-server-protocol/src/protocol/v2/{thread,plugin,permissions}.rs and
|
|
35
|
+
codex-rs/protocol/src/permissions.rs.
|
|
36
|
+
|
|
37
|
+
## Decision and alternatives
|
|
38
|
+
|
|
39
|
+
Choose latest stable 0.167.2 subject to all gates below. Keeping 0.145.0 has the
|
|
40
|
+
strongest old evidence but does not fulfill the requested upgrade. The smallest
|
|
41
|
+
stable successor (0.146.0, verified from official release inventory) reduces the delta but omits
|
|
42
|
+
later permission/resume/provider fixes and still needs fresh binary/schema/live
|
|
43
|
+
attestation; prefer it only if a concrete incompatible candidate behavior prevents
|
|
44
|
+
preserving the agreed contract. Do not silently downgrade or relax policy.
|
|
45
|
+
|
|
46
|
+
Retain stdio app-server rather than switching SDK, exec, WebSocket RPC transport,
|
|
47
|
+
or a remote agent host. Those alternatives alter lifecycle and ownership without
|
|
48
|
+
helping this bounded runtime upgrade. Provider WebSocket transport remains the
|
|
49
|
+
existing supports_websockets=true configuration, independently of stdio RPC.
|
|
50
|
+
|
|
51
|
+
## Interface and data flow
|
|
52
|
+
|
|
53
|
+
Public constructors, receipts, factory selection, checkpoint sinks and process
|
|
54
|
+
state machine remain source-compatible. Update protocol-schema.json exact CLI
|
|
55
|
+
version, both target binary SHA-256 values and experimental v2 canonical digest.
|
|
56
|
+
Add a new versioned fixture/manifest with raw and canonical schema attestations;
|
|
57
|
+
keep the 0.145.0 observations historical and never relabel them as new evidence.
|
|
58
|
+
Use a dedicated candidate gate rather than transplanting old live observations.
|
|
59
|
+
The historical U1a checker must clearly identify its baseline when the active pin
|
|
60
|
+
has changed; its old fixture-unit tests remain historical tests.
|
|
61
|
+
|
|
62
|
+
Candidate schemas preserve required turn/steer fields and legacy sandbox variants.
|
|
63
|
+
Start/resume still expose experimental activePermissionProfile and
|
|
64
|
+
runtimeWorkspaceRoots; validate exact profile, owned root, model/provider, approval,
|
|
65
|
+
and sandbox through the production parser, for both fresh and persisted resume.
|
|
66
|
+
New thread metadata is not permission authority and is not exposed to consumers.
|
|
67
|
+
No new client methods, tools, server requests, or wildcard notification acceptance.
|
|
68
|
+
Any newly emitted notification requires source-backed explicit classification.
|
|
69
|
+
Candidate raw fresh/resume emits thread/readState/changed (source documented in
|
|
70
|
+
app-server README). It carries unread-state UI bookkeeping, not turn/checkpoint
|
|
71
|
+
ownership: add this exact method to dropped notifications with regression tests;
|
|
72
|
+
no wildcard acceptance or source payload exposure.
|
|
73
|
+
Authenticated startup also emits account/updated (account_processor.rs,
|
|
74
|
+
current_account_updated_notification); drop only this exact auth-mode/plan summary,
|
|
75
|
+
without forwarding account data. Explicit account/read remains the auth admission
|
|
76
|
+
authority, and unknown account notifications still fault.
|
|
77
|
+
|
|
78
|
+
Candidate PlanType adds promax, self_serve_business_prolite, ent26,
|
|
79
|
+
enterprise_cbp_automation, edu_plus, edu_pro, sci and sci_plus. Accept only
|
|
80
|
+
these exact schema enum additions; retain ChatGPT-only admission and omit email
|
|
81
|
+
and plan from the public account projection. Unknown values remain protocol errors.
|
|
82
|
+
|
|
83
|
+
HookMetadata now flattens a handler union. A command entry has handlerType=command,
|
|
84
|
+
command and async=false; environmentId must be present and null for our local owned
|
|
85
|
+
hooks. Extend the exact hook metadata verifier only for these observed/pinned
|
|
86
|
+
fields, require async strictly false, reject missing/non-null environmentId,
|
|
87
|
+
missing/true/nonboolean async, foreign handlers, and all unknown fields. Keep the
|
|
88
|
+
existing descriptor/receipt interface unchanged. Reconfirm the live raw shape
|
|
89
|
+
before editing; use a symptom-named failing fixture test before the fix.
|
|
90
|
+
|
|
91
|
+
Trusted filesystem remains exactly {glob_scan_max_depth:null, ':root':'write'}
|
|
92
|
+
(digest ce41c7bdb7f357798e0ce66850e28f87de7a8544bb13ce2cc029985aa41d852a),
|
|
93
|
+
with network enabled/web live; limited policy stays network/web disabled and
|
|
94
|
+
workspaceWrite with exact legacy exclusions/roots. A candidate shape change is a
|
|
95
|
+
stop requiring a reviewed spec amendment, not an extra accepted hash or stripped
|
|
96
|
+
unknown fields. Native memories remain disabled; shell inherits none, login false,
|
|
97
|
+
trusted actual service HOME/explicit PATH; limited mode retains its existing synthetic
|
|
98
|
+
command HOME and controlled PATH. CLIProxy remains optional, loopback Responses, private
|
|
99
|
+
bearer, requires_openai_auth=true, supports_websockets=true, no native fallback.
|
|
100
|
+
|
|
101
|
+
## Verification and failure handling
|
|
102
|
+
|
|
103
|
+
1. Offline: verify downloaded bytes, version, repeat schema generation, stable and
|
|
104
|
+
experimental canonical hashes and production-method parameter compatibility. Keep
|
|
105
|
+
Darwin and Linux evidence separate; compute Linux binary attestation locally and
|
|
106
|
+
run it/schema generation only on an isolated non-production Linux environment if
|
|
107
|
+
available. Never claim Linux execution from a downloaded-byte digest.
|
|
108
|
+
2. Deterministic credential-free fixtures: production client against real candidate
|
|
109
|
+
and bounded loopback Responses provider; exact config/layers/requirements/profile,
|
|
110
|
+
trusted and limited fresh attachment, completed turn/event delivery, authoritative
|
|
111
|
+
JSONL persistence, fresh-process resume, ordered steering/stale steer, interruption
|
|
112
|
+
and background-terminal cleanup. Limited mode must also enforce successful synthetic workspace access and denied
|
|
113
|
+
CODEX_HOME/daemon-secret reads and denied network; serialized policy is insufficient.
|
|
114
|
+
Use held fixture responses for deterministic
|
|
115
|
+
active-turn windows; keep all synthetic commands bounded. Prove old synthetic
|
|
116
|
+
rollout can resume under candidate, retaining an untouched old copy.
|
|
117
|
+
At least one candidate fixture must traverse production preflight -> spawn receipt
|
|
118
|
+
-> factory/CodexProcess -> acknowledged on-disk checkpoint sink, with authoritative
|
|
119
|
+
checkpoint readback; a no-op client sink cannot establish this integration layer.
|
|
120
|
+
Credential-free fixture-only providers may set requires_openai_auth=false; that
|
|
121
|
+
exception never clears production native ChatGPT-auth admission, which is proved
|
|
122
|
+
separately using the exact native/CLIProxy policy.
|
|
123
|
+
3. Hooks: run existing hooks-on/off production-client gate against candidate; raw
|
|
124
|
+
inventory characterization before exact verifier update, red/green fixture tests,
|
|
125
|
+
negative metadata tests, trusted inventory and content-free event dropping.
|
|
126
|
+
4. Actual providers: use only private existing auth, isolated persistent test homes
|
|
127
|
+
and synthetic workspaces. Do not print tokens or account identifiers. Planned
|
|
128
|
+
calls: one native Astra tools/skills/shared-memory turn; one fresh-process native
|
|
129
|
+
resume/steer turn; one CLIProxy Astra tools turn plus fresh-process resume turn if
|
|
130
|
+
accessible. Retain exact requested model and catalog effort; count inference
|
|
131
|
+
requests, distinguish logical turns and transport attempts, record ambiguous
|
|
132
|
+
outcomes and stop that lane without a blind retry. Inspect provider WebSocket/HTTP
|
|
133
|
+
behavior from safe transport metadata; a fixture is not real-provider evidence.
|
|
134
|
+
Skill-body consumption and shared memory use synthetic files only, no business data.
|
|
135
|
+
Require a nonce present only in a discovered harmless skill body, and fresh-session
|
|
136
|
+
recall of a synthetic fact through AGENTS instructions without naming its memory
|
|
137
|
+
file or repeating the fact in the prompt. Native transport attempts can be opaque:
|
|
138
|
+
report their count as unknown, separately from observed logical turns/tool rounds.
|
|
139
|
+
Each provider scenario has a 120-second deadline and bounded process cleanup;
|
|
140
|
+
missing native held-turn setup is explicitly inconclusive, not a steering failure.
|
|
141
|
+
5. Run focused production-client/preflight/factory/process/hook suites and full
|
|
142
|
+
Orchestra tests. The consumer gate is required: create a related
|
|
143
|
+
Polygram child through Orca based on 960b0be3b191f5a336bab8d5d6577d411c548a3a,
|
|
144
|
+
notify coordinator of its path, build/install a local unpublished package only in
|
|
145
|
+
that child, and run candidate profile-builder/preflight plus admission/revocation/catalog/event tests. No parent
|
|
146
|
+
writes or release version bump. Finish independent diff reviews, resolve must-fixes.
|
|
147
|
+
|
|
148
|
+
Credential access failure, unsupported runtime policy/provenance, new protocol
|
|
149
|
+
traffic without a safe explicit interpretation, or ambiguous inference stops the
|
|
150
|
+
relevant lane with concrete evidence. Keep failures and unproven layers visible.
|
|
151
|
+
Local tests are not activation, VPS deployment, or live bot parity proof. Retain
|
|
152
|
+
uncommitted reviewable changes and a final report with attestations, checks/skips,
|
|
153
|
+
red/green evidence, actual call counts, review decisions and release prerequisites.
|
|
154
|
+
|
|
155
|
+
## Approved instruction-source amendment
|
|
156
|
+
|
|
157
|
+
Exact candidate core/src/agents_md.rs:64 skips project instructions whenever
|
|
158
|
+
active_project.is_untrusted(). Version 0.150.0 introduced this security behavior.
|
|
159
|
+
Polygram deliberately writes trust_level="untrusted" to prevent project config and
|
|
160
|
+
thread/start from mutating owned config. Exact candidate app-server
|
|
161
|
+
src/request_processors/thread_processor.rs:1480 onward automatically persists
|
|
162
|
+
trusted project state when trust is absent and effective permissions allow writes.
|
|
163
|
+
Coordinator authorized the narrow dedicated-home symlink adaptation on 2026-11-12.
|
|
164
|
+
Retain explicit untrusted; do not downgrade to preserve the old loading mechanism.
|
|
165
|
+
Nested project AGENTS.md files are skipped by this runtime under untrusted; the
|
|
166
|
+
approved scope restores the canonical workspace root only, with no recursive merge.
|
|
167
|
+
|
|
168
|
+
Existing ownership flow: runtime-profile provisionRuntimeFiles canonicalizes the
|
|
169
|
+
workspace and dedicated owner-only non-temporary home, enforces root separation,
|
|
170
|
+
then provisionBaseConfig validates the exact owned config including its one
|
|
171
|
+
workspace trust stanza. A differing workspace already produces config drift;
|
|
172
|
+
hook preparation also owns home/workspace artifacts. Retain these authoritative
|
|
173
|
+
checks rather than creating another home registry or router.
|
|
174
|
+
|
|
175
|
+
Before provisionRuntimeFiles or any other provisioning mutation:
|
|
176
|
+
- Reject the actual user global Codex home (process user's ~/.codex), plus any
|
|
177
|
+
CODEX_HOME equal to the service HOME's .codex; only the dedicated Polygram home.
|
|
178
|
+
After exact owned config ownership validation, prepare the root instruction reference:
|
|
179
|
+
- If workspace/AGENTS.md exists, require a canonical regular owner-controlled file
|
|
180
|
+
(no symlink, group/other writes, or hard-link alias) and safe parent chain. Create
|
|
181
|
+
CODEX_HOME/AGENTS.md with exclusive symlink creation only if absent; otherwise
|
|
182
|
+
require it already be a symlink resolving directly to exactly that file. Never
|
|
183
|
+
replace a regular file, retarget a link, or follow a foreign/dangling alias.
|
|
184
|
+
- If the canonical root is absent, allow the existing limited generic workspace
|
|
185
|
+
without instructions, but trusted mode requires the canonical root. No home
|
|
186
|
+
AGENTS.md may exist in the absent-root case. Reject CODEX_HOME/AGENTS.override.md
|
|
187
|
+
whether regular, symlink or dangling. Do not create or change workspace files.
|
|
188
|
+
- Keep a private profile binding in the builder's existing ownership mechanism,
|
|
189
|
+
without adding public Orchestra receipt fields, content hashes or snapshots.
|
|
190
|
+
Re-attest path/type/target/override state after awaited characterization, after
|
|
191
|
+
preflight, on cached receipt use, client construction and shared live admission.
|
|
192
|
+
Root content edits remain live canonical edits and do not invalidate the profile;
|
|
193
|
+
replacing/retargeting the link, introducing an override, deleting/introducing the root, or
|
|
194
|
+
reusing the dedicated home for another workspace rejects new admissions.
|
|
195
|
+
- Reuse the existing builder reattest seam and controller assertEntryCurrent seam.
|
|
196
|
+
No per-chat home routing, recursive instruction merger, copied content, or new
|
|
197
|
+
persistent binding file. Exact owned config remains the persisted home/workspace
|
|
198
|
+
ownership authority and symlink target is the instruction binding readback.
|
|
199
|
+
|
|
200
|
+
Tests must reproduce canonical-root absence/foreign-target/override/workspace-reuse
|
|
201
|
+
failures before the fix; verify no existing path gets overwritten, global home is
|
|
202
|
+
refused before writes, normal canonical content edits survive re-attestation,
|
|
203
|
+
async preflight link drift and warm live admission drift are refused. Actual fresh
|
|
204
|
+
root marker, discovered skill-only nonce and unprompted synthetic memory recall
|
|
205
|
+
remain acceptance gates. All filesystem writes use isolated test homes/workspaces.
|
|
206
|
+
|
|
207
|
+
## Independent review receipts
|
|
208
|
+
|
|
209
|
+
Three built-in read-only reviewers completed before runtime edits: protocol and
|
|
210
|
+
feasibility; validation and provider evidence; scope, simplicity and security.
|
|
211
|
+
Must-fixes folded above: mandatory Polygram candidate boundary, distinct limited
|
|
212
|
+
HOME policy, production factory/process/persisted-checkpoint integration, exact
|
|
213
|
+
skill-only nonce and unprompted synthetic recall, provider count/deadline semantics,
|
|
214
|
+
fixture-only auth exception, and candidate limited filesystem/network enforcement.
|
|
215
|
+
The coordinator approved the narrow instruction-source adaptation. Protocol reviewer confirmed
|
|
216
|
+
candidate codex-home/src/instructions/mod.rs:42-76 loads CODEX_HOME/AGENTS.md before
|
|
217
|
+
project instructions and independently of project trust, while repository skill
|
|
218
|
+
host roots have no equivalent trust guard. Recommended narrow alternative:
|
|
219
|
+
retain explicit untrusted and symlink only the dedicated CODEX_HOME/AGENTS.md to
|
|
220
|
+
the canonical workspace AGENTS.md, require AGENTS.override.md absent, never copy
|
|
221
|
+
or translate instructions, and verify fresh root/skill/memory consumption. This
|
|
222
|
+
changes root instruction sourcing only within the approved canonical-root scope.
|
|
223
|
+
|
|
224
|
+
## Initial characterization (not production integration proof)
|
|
225
|
+
|
|
226
|
+
Candidate Darwin SHA-256:
|
|
227
|
+
97bc82fd46f117cf10efb95e6ff0c81dc4784f5797bcdc2cb75093ba09e4def0.
|
|
228
|
+
Downloaded Linux musl SHA-256 (not executed):
|
|
229
|
+
a9672d0fa0dd8fcf8cad136fa0d056b914bc046f5ac3d78f4a5cf390655af56b.
|
|
230
|
+
Darwin generated stable v2 canonical SHA-256:
|
|
231
|
+
3acaab0f5788b486250d8e32f75ae5e98198c63090a500c04182df52f0c8f137.
|
|
232
|
+
Darwin generated experimental v2 canonical SHA-256:
|
|
233
|
+
ca9811bd8310c9576f2acc1c37ba132afeef49c0cdbc3e02908b64ad12126163.
|
|
234
|
+
Raw bounded synthetic loopback characterization passed trusted filesystem shape,
|
|
235
|
+
start, completed turn, JSONL readback and fresh-process resume at
|
|
236
|
+
/private/tmp/polygram-trusted-resume-20o8NR/observation.json. This bypasses the
|
|
237
|
+
production parser/preflight and uses synthetic auth, so does not clear them.
|
|
238
|
+
At this initial characterization stage: one synthetic loopback logical turn and zero
|
|
239
|
+
actual provider calls. Later provider accounting is in the report.
|
|
240
|
+
Related Polygram child created through Orca at
|
|
241
|
+
/Users/ivanshumkov/orca/workspaces/polygram/codex-runtime-compat,
|
|
242
|
+
base HEAD 960b0be3b191f5a336bab8d5d6577d411c548a3a. Subsequent consumer
|
|
243
|
+
implementation and verification are recorded in the report.
|
|
244
|
+
|
|
245
|
+
Amendment re-review: protocol/feasibility and security/scope reviewers accepted
|
|
246
|
+
the design after moving the dedicated-home guard before all provisioning writes.
|
|
247
|
+
Both reviewers required that ordering; the scope reviewer also added the
|
|
248
|
+
absent-root to root-created drift regression. These corrections are incorporated.
|
|
249
|
+
|
|
250
|
+
## Companion executable amendment (approved and independently reviewed)
|
|
251
|
+
|
|
252
|
+
The first native Astra turn reached inference, emitted its intended calibration
|
|
253
|
+
commentary, and was contained on a protocol fault before tool completion. It is
|
|
254
|
+
not a successful provider gate and must not be blindly retried. Loopback tool
|
|
255
|
+
reproduction then exposed a separate concrete distribution requirement: 0.167.2
|
|
256
|
+
code mode needs `codex-code-mode-host`, shipped as a separate official release
|
|
257
|
+
asset; the single CLI archive omits it. An initial output-only fixture was
|
|
258
|
+
insufficient because the model can return text after a failed tool invocation.
|
|
259
|
+
The strengthened gate must assert the synthetic tool marker exists.
|
|
260
|
+
|
|
261
|
+
Exact-tag source: install-context/src/lib.rs:175-205 resolves the code host from
|
|
262
|
+
packaged resources first, then beside the executable; core/src/thread_manager.rs
|
|
263
|
+
selects the host-backed runtime. The code host creates its own process group;
|
|
264
|
+
kill-on-drop is useful evidence but does not by itself establish containment.
|
|
265
|
+
Required validation includes successful tool output and cleanup with the companion,
|
|
266
|
+
plus SIGKILL of the app-server itself while a bounded synthetic tool is active.
|
|
267
|
+
Observe the code-host PID/group and actual nested command PID; verify both exit
|
|
268
|
+
independently of the supervisor-group proof, and report survivors as blockers.
|
|
269
|
+
|
|
270
|
+
Proposed narrow implementation: retain public runtime/profile/receipt interfaces,
|
|
271
|
+
but treat the code host as another exact pinned executable of the selected target
|
|
272
|
+
inside the existing binary attestation/start boundary. Validate its canonical
|
|
273
|
+
path chain, owner/mode/nlink/executable status and exact hash using the existing
|
|
274
|
+
rules. Resolve only the upstream documented plain standalone sibling layout for
|
|
275
|
+
this bounded release; reject competing codex-resources or package-metadata layouts
|
|
276
|
+
rather than accepting a different helper silently. Bind the companion fingerprint and helper-selection layout privately, recheck
|
|
277
|
+
after initial attestation/spawn and before state-changing request writes because
|
|
278
|
+
upstream launches it lazily. Test missing/tampered companion, replacement after
|
|
279
|
+
startup, and late resource/package-metadata shadow introduction. Record both target companion
|
|
280
|
+
hashes in the pin manifest. Do not disable code mode, choose alternate tools, add
|
|
281
|
+
RPC methods, weaken filesystem policy, or accept arbitrary helper paths.
|
|
282
|
+
|
|
283
|
+
Alternatives: disable code mode and force direct tools (changes native model/tool
|
|
284
|
+
behavior and can fail closed for CodeModeOnly models); use an earlier stable candidate (legitimate fallback if evidenced compatible, but
|
|
285
|
+
requires its own artifact/schema/provider gates and does not yet solve this issue);
|
|
286
|
+
accept helper presence without exact attestation (weakens executable identity).
|
|
287
|
+
If supported helper selection or cleanup cannot be proved within this boundary,
|
|
288
|
+
stop before release/activation and report the specific blocker.
|
|
289
|
+
|
|
290
|
+
Official companion downloaded-byte SHA-256 values:
|
|
291
|
+
Darwin ARM64 45acdb759c3ac0a6b30a5107329b364b7ac1579f2cdf270997f03bc8d6365ef6;
|
|
292
|
+
Linux x64 musl 007c62795a7215c27ee85486ecb95e714b33118a2d18c6d7b09b0d9793c72ff4.
|
|
293
|
+
Linux remains byte-attested only. A paid retry requires coordinator permission
|
|
294
|
+
because the prior live action failed; the corrective retry will be bounded to
|
|
295
|
+
one fresh two-turn native lane after the deterministic tool/cleanup gate passes.
|
|
296
|
+
|
|
297
|
+
Companion amendment review: protocol and scope/security reviewers accepted the
|
|
298
|
+
narrow approach with the lazy-spawn fingerprint/layout fence and explicit
|
|
299
|
+
SIGKILL/host/nested-command cleanup checks above. Native live fault diagnosis
|
|
300
|
+
remains separate from the verified missing-helper distribution requirement.
|
|
301
|
+
|
|
302
|
+
Coordinator approval: exact official companion dependency and ONE corrective
|
|
303
|
+
native diagnostic lane (at most two turns) are authorized after deterministic
|
|
304
|
+
helper/tool/SIGKILL cleanup gates. No production installation is authorized.
|
|
305
|
+
Deployment and rollback must preserve both exact-target standalone artifacts:
|
|
306
|
+
`codex` and sibling `codex-code-mode-host`, immutable and owned under the same
|
|
307
|
+
secure versioned directory; include Darwin ARM64 and Linux x64 musl hashes above.
|
|
308
|
+
Do not install only the CLI archive or mix helper versions. Keep the old 0.145
|
|
309
|
+
runtime directory and its source/package/config backups outside updater GC;
|
|
310
|
+
rollback selects those preserved artifacts rather than overwriting candidate files.
|
|
311
|
+
Before any production step, Linux execution/schema/helper/cleanup proof and the
|
|
312
|
+
existing deploy/admission checks remain mandatory. The helper selection contract
|
|
313
|
+
currently excludes npm/package/resource layouts; activation must use the reviewed
|
|
314
|
+
plain standalone sibling layout.
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
## Bounded crash comparison and current hold
|
|
318
|
+
|
|
319
|
+
The stricter companion SIGKILL gate failed on Darwin: the host exits but a nested
|
|
320
|
+
foreground sleep survives. Equivalent bounded direct foreground command crashes
|
|
321
|
+
on preserved 0.145.0 and candidate 0.167.2 show the same orphan beyond eight
|
|
322
|
+
seconds, using the production Node supervisor and no session launcher. This is
|
|
323
|
+
evidence of an existing hard-loss limitation, not a demonstrated candidate
|
|
324
|
+
regression. The existing compatibility document explicitly accepts arbitrary
|
|
325
|
+
descendant hard-loss limits with same-host reboot quarantine. A blanket new
|
|
326
|
+
descendant guarantee exceeds that accepted baseline and requires explicit
|
|
327
|
+
alignment; it must not be silently introduced or silently waived.
|
|
328
|
+
|
|
329
|
+
Production Linux source/read-only inspection finds systemd scope membership and
|
|
330
|
+
resource limits, but no exact owned-unit stop acknowledgment or app-server-death
|
|
331
|
+
trigger. Scope collection does not kill an active orphan. No isolated Linux
|
|
332
|
+
execution has been performed. A new owned-scope lifecycle might be narrower than
|
|
333
|
+
a general supervisor, but it changes ownership/lifecycle and is outside the
|
|
334
|
+
current implementation without reviewed alignment. Exact 0.145/0.146 source already
|
|
335
|
+
enables code-mode hosting; the smallest stable successor has no evidenced cure.
|
|
336
|
+
|
|
337
|
+
Keep 0.167.2 unactivated and both remaining paid lanes held while reporting these
|
|
338
|
+
comparisons. Prefer finishing the candidate under the existing accepted boundary
|
|
339
|
+
if explicitly aligned; no blind retry or containment expansion. The report records
|
|
340
|
+
exact identities, cleanup readback, native-attempt accounting, tests, limitations
|
|
341
|
+
and release prerequisites.
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
## Accepted containment boundary after comparison
|
|
345
|
+
|
|
346
|
+
Coordinator explicitly aligned the upgrade gate to the existing native-beta
|
|
347
|
+
hard-loss/quarantine contract. This corrects the newly introduced blanket
|
|
348
|
+
arbitrary-descendant guarantee; it does not turn the failed SIGKILL cleanup
|
|
349
|
+
observations into passes. Preserve both logs and limitation. Normal interrupt,
|
|
350
|
+
exact terminal reconciliation, background clean and fresh empty-page checks,
|
|
351
|
+
durable hard-loss quarantine, and no silent replacement/admission remain required.
|
|
352
|
+
No new containment subsystem or downgrade is justified by the shared result.
|
|
353
|
+
|
|
354
|
+
The one corrective fresh native lane (at most two logical turns) and first
|
|
355
|
+
independent CLIProxy lane are released under existing paid authorization. Stop a
|
|
356
|
+
lane after another unexplained or ambiguous result; no blind retry. After provider
|
|
357
|
+
diagnosis, pursue disposable non-production Linux validation without production
|
|
358
|
+
scope/service changes, shared host lifecycle changes, or paid cloud provisioning.
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
## Native diagnostic notification amendment
|
|
362
|
+
|
|
363
|
+
The one corrective native lane stopped after one incomplete logical turn with
|
|
364
|
+
CODEX_PROTOCOL_ERROR and no retry. Its content-free tail ends with an unknown
|
|
365
|
+
notification carrying exactly threadId, turnId and metadata. Among all generated
|
|
366
|
+
ServerNotification variants, only turn/moderationMetadata has that property set
|
|
367
|
+
(in both old and candidate schemas). The trace deliberately masked unknown method
|
|
368
|
+
names, so this is source/schema-backed attribution by shape, not captured exact
|
|
369
|
+
wire-method proof. The host now ran a tool call/output, so the earlier missing
|
|
370
|
+
companion does not explain this separate protocol omission.
|
|
371
|
+
|
|
372
|
+
Exact candidate protocol/common.rs declares experimental turn/moderationMetadata;
|
|
373
|
+
v2/model.rs defines its opaque JSON metadata. core/session/turn.rs forwards the
|
|
374
|
+
provider event to session/mod.rs, and app-server/bespoke_event_handling.rs forwards
|
|
375
|
+
it directly as this notification. It is observational provider metadata, does not
|
|
376
|
+
request authority, and is distinct from errors, terminal status or guardian
|
|
377
|
+
assessment. The existing protocol subset omitted it even though the old schema
|
|
378
|
+
also contains it.
|
|
379
|
+
|
|
380
|
+
Narrow correction: classify only this exact notification as dropped, preserving
|
|
381
|
+
existing envelope checks and privacy; do not expose opaque metadata, add methods,
|
|
382
|
+
accept wildcard siblings, or bypass actual error/terminal handling. Add the exact
|
|
383
|
+
observed parameter shape to a pending-RPC fixture; prove rejection before the pin
|
|
384
|
+
change and healthy completion with zero delivered payload afterward. Add a sibling
|
|
385
|
+
unknown turn notification negative. Alternative: opt out at initialization, which
|
|
386
|
+
changes startup negotiation without benefiting this static exact-drop policy;
|
|
387
|
+
delivering opaque metadata adds unnecessary public surface. Native corrective
|
|
388
|
+
authorization is exhausted by its stopped lane; no automatic repeat. The first
|
|
389
|
+
independent CLIProxy lane remains unused and can run after this deterministic fix.
|
|
390
|
+
|
|
391
|
+
Improve content-free tracing with closed source-backed method/key/item-type sets;
|
|
392
|
+
unknown names and key names remain redacted (retaining counts/types). Add only the
|
|
393
|
+
new exact source-backed method to the existing recognizer for this fix. Never
|
|
394
|
+
record arbitrary item-type/key strings or metadata/prompt values.
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
## Native correction validation authorization and result
|
|
398
|
+
|
|
399
|
+
After reviewing the exact-drop fix and red/green evidence, coordinator authorized
|
|
400
|
+
one further fresh native lane, at most two turns. It completed both turns with
|
|
401
|
+
actual Astra tools, canonical root instruction marker, discovered skill-body
|
|
402
|
+
nonce, unprompted synthetic memory, authoritative JSONL, fresh-process resume,
|
|
403
|
+
semantic steer and durable event correlation. The now-allowlisted trace captured
|
|
404
|
+
exact turn/moderationMetadata with keys only, confirming method identity without
|
|
405
|
+
metadata values. Independent first CLIProxy lane also completed both turns.
|
|
406
|
+
Provider transport attempt counts remain unknown. No production activation.
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
## Linux translated execution evidence boundary
|
|
410
|
+
|
|
411
|
+
A task-owned local cua/Lima VM and private Docker engine supplied ARM64 Linux
|
|
412
|
+
with the already-installed RosettaLinux translator. Exact pinned Linux x64 CLI
|
|
413
|
+
and companion passed production attestation, raw/canonical schema regeneration
|
|
414
|
+
(matches Darwin), and the real consumer fixture with helper tools, fresh resume,
|
|
415
|
+
steer, durable events and normal interrupt/terminal/clean/fresh-empty receipts.
|
|
416
|
+
Node22.23.5 x64 ran without target overrides or injected attestors. No Linux
|
|
417
|
+
external inference or production launcher changes. This is translated execution,
|
|
418
|
+
not native x64 CPU/seccomp/sandbox or systemd scope cleanup proof. Preserve that
|
|
419
|
+
limitation for release/activation; no blanket descendant guarantee is added.
|