Consume diagnostics without overreacting
Use when
An existing approved launcher supervises Codex’s hidden HTTP/3 TCP tunnel. A rejected CONNECT can affect one stream while the listener remains usable; treating every stderr message as process death can trigger needless recovery.
Action
On
an
already-approved
build
containing
PR
50131,
append
--diagnostics-json
to
the
existing
codex
tcp-tunnel
invocation.
Parse
newline-delimited
stderr
separately
from
stdout’s
LISTENING
and
AUTH_UPDATED
acknowledgments.
Recognize
only
documented
version-one
phase/code/terminal
combinations;
keep
a
generic
fallback
for
unknown,
malformed,
or
missing
records
and
older
helpers.
A
nonterminal
event
must
not
automatically
restart
the
worker,
replay
its
request,
or
become
its
diagnosed
failure
cause.
Keep
credentials
on
stdin,
not
arguments.
Preserve
independent
child-exit
and
task-outcome
checks.
Acceptance check
In
an
authorized
owned-proxy
fixture,
reject
one
CONNECT
with
403,
then
admit
a
later
connection.
Require
terminal:false,
the
same
helper
and
listener,
successful
later
traffic,
and
no
controller-triggered
restart
or
replay.
Separately
inject
a
terminal
startup/control
failure
with
dummy
secrets
in
its
error
chain:
require
bounded
structured
diagnostics,
nonzero
helper
exit,
and
no
secret
disclosure.
Exercise
unknown
versions,
invalid
combinations,
a
trailing
generic
error
line,
and
absent
diagnostics.
All
must
retain
fallback
handling,
not
invent
success.
Retain
redacted
streams,
process
receipts,
and
actual
workload
results.
Evidence
October
2’s
merged
implementation
appears
in
Codex
0.162.0-alpha.2.
Tagged
tests
assert
secret-free
terminal
records,
bounded
output,
flush
invocation,
validated
HTTP
statuses,
and
legacy
behavior.
The
integration
fixture
exercises
rejection
followed
by
success,
plus
transport
reconnection
without
replaying
old
streams.
These
are
inspectable
source
assertions,
not
tests
run
for
this
newsletter.
Caveat
This
is
a
prerelease,
hidden
helper—not
a
stable
general-purpose
API
or
an
upgrade
recommendation.
Records
lack
stream
identity;
they
cannot
establish
why
a
later
child
failed.
Writes
and
flushes
are
attempted,
but
their
errors
are
discarded:
record
delivery
is
not
guaranteed.
LISTENING
proves
neither
target
authorization
nor
application
readiness.
A
terminal
record
also
does
not
authorize
retrying
side
effects.
No
installation,
runtime
fixture,
or
configuration
change
was
performed.