Skip to content

Keep provider error displays free of upstream payloads - #2098

Closed
JAORMX wants to merge 5 commits into
fix/recovery-baseline-races-20261005from
fix/recovery-error-display-20261005
Closed

JAORMX wants to merge 5 commits into
fix/recovery-baseline-races-20261005from
fix/recovery-error-display-20261005

Conversation

@JAORMX

@JAORMX JAORMX commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes an inherited provider-error display weakness required by the recovery acceptance contract in #1912/#1920.

  • Render closed category/status messages for HTTP, in-band, and transport errors in the three standalone providers instead of arbitrary upstream payloads.
  • Preserve SDK/transport causes, errors.Is/As, status/timing metadata, context-overflow classification, and retry vetoes.
  • Preserve trusted Codex login remediation through a private host-composition wrapper recognizing the existing concrete policy error; upstream text cannot impersonate it.
  • Replace stale provider documentation and remove obsolete raw-error formatting helpers.

No new public interface, shared provider module, or recovery policy. The providers retain their independent module boundaries.

Verification

Synthetic canaries in message/code/type fields exposed the bug before the fix. Coverage now exercises real HTTP/SSE terminal output, all three adapters, unknown categories, post-SSE body-read failures, and positive trusted Codex remediation alongside forged-guidance negative controls.

Passed all provider standalone tests and race suites, focused root composition/resilience tests and race checks, scoped lint, docs and site build. Independent security, architecture, reuse and test-adequacy closure reviews found no remaining blockers.

CI on 977257b52: 29 passed, 8 skipped. Remains draft pending complete local aggregate certification. The initial full suite caught and led to a fix for loss of trusted Codex remediation; that regression now has positive and negative controls.

Earlier full-suite attempts encountered inherited socket-path/port and namespace setup problems. The integrated candidate in #1920 now passes full local lint/docs/site/API/demo checks but has separately triaged baseline storage-health and pre-execution disconnect test failures, plus an incomplete full race gate. Neither those failures nor earlier invalid-environment runs are claimed green, and CI does not substitute for the remaining local aggregate verification.

Relates to #1912 and #1920. This prerequisite can land independently. No PR merged or deployment performed.

JAORMX and others added 4 commits October 5, 2026 12:45
Render closed category/status text while retaining private classification inputs, SDK causes, and sanitized HTTP target/correlation details. Cover HTTP, in-band, transport, and exhausted terminal projections with synthetic canaries.

Co-authored-by: Mecatl <[email protected]>
Restore bounded local Codex StatusError guidance at host composition without exposing upstream error strings or adding public API. Exercise the real HTTP/SSE relay and post-event body read failures, retain raw-field classification, and remove obsolete in-band formatting helpers. Update the owning provider documentation.

Co-authored-by: Mecatl <[email protected]>
@JAORMX
JAORMX changed the base branch from main to fix/recovery-baseline-races-20261005 October 5, 2026 13:13
@JAORMX

JAORMX commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

Closing as superseded by #1920. The provider error-display fix and its regression tests are already integrated into that implementation; no code is being discarded. Consolidating the work to the original plan/implementation plus baseline repairs in #2108.

@JAORMX JAORMX closed this Oct 5, 2026

This branch was successfully deployed

1 active deployment
Preview — e50f3619 Deployed Oct 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant