Skip to content

fix(broker): close invalid HTTPS responses at headers - #804

Merged
antropos17 merged 1 commit into
masterfrom
codex/model-https-failure-integrated-20261008
Oct 8, 2026
Merged

antropos17 merged 1 commit into
masterfrom
codex/model-https-failure-integrated-20261008

Conversation

@antropos17

Copy link
Copy Markdown
Owner

An upstream server could send an invalid response and leave its body open, keeping the model operation waiting until the exchange timeout. The broker now rejects invalid status/profile headers immediately and closes the request, response and isolated agent. Successful JSON/SSE responses retain the same final acceptance rules.

Added real loopback HTTPS regressions covering open error bodies, redirects, revoked requests, replay, endpoint/credential changes and successful responses. TLS checks and credential scope remain unchanged.

Validation: independent Astra review, including 1,936 old/new parser combinations with no acceptance differences; 84/84 tests across seven suites passed after integration; donor scoped lint/format/main typecheck passed. Required GitHub CI contexts must pass before merge. Tests use fixture CA certificates, synthetic authority and dummy credentials; this does not enable production launch or qualify full E5/A2.

@antropos17
antropos17 merged commit bec975c into master Oct 8, 2026
5 checks passed
@antropos17
antropos17 deleted the codex/model-https-failure-integrated-20261008 branch October 8, 2026 10:49
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