Daily harness signal · October 4, 2026

A failed connection
is not a failed worker.

One implementation lesson · Transport supervision

Codex’s new tunnel diagnostics separate recoverable connection events from terminal helper failures. Use that distinction to avoid unnecessary worker restarts—without exposing credentials or turning an error message into retry authority.

Fresh · source October 2, 2026 · prerelease

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.

Compact source notes

  1. OpenAI Codex PR 50131, merged October 2, 2026; dated prerelease and exact comparison establish inclusion. No stable-release or live-latest claim.
  2. Same tag: schema and consumer contract, serializer, unit assertions, integration fixture. Version-one records are under 256 bytes; optional rejected-CONNECT status excludes successful 2xx codes. No independent CI receipt inspected.
  3. Tagged lifecycle source separates proxy readiness, per-connection authorization, stream errors and helper return. Normal controlling-pipe closure produces no failure. Retrieved history records the October 2 change, not deployed-state proof.
  4. Anchor lens: exact serializer, lifecycle branches and regression assertions. Unity lens: diagnostic scope should match recovery scope; proposed invariant. Source semantics: confidence_confirmed; proposed consumer control: confidence_likely. A secret leak, false worker restart, or accepted failed workload falsifies the relevant check.