Repository navigation
fix(web): keep malformed HAR response statuses unknown - #12218
Merged
Merged
Conversation
Contributor
[Medium impact] The PR appears safe to merge; no blocking defects were found. SummaryThe PR makes the HAR response reader own status validation and shares the existing three-digit status schema with browser scenarios.
Reviews (5) · Last reviewed commit: "fix(web): normalize observed response st..." · Reviewed by Greptile |
ShuaixinHuang
marked this pull request as ready for review
November 19, 2026 05:34
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
morluto
enabled auto-merge (squash)
November 19, 2026 11:44
3 tasks
4 of 8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Do not promote malformed HAR response statuses to observed API status codes or state-write facts. Use the three-digit integer range already admitted by browser scenario captures.
Evidence
On main, -1, 99, 200.5 and 1000 all appeared as observed status codes in the API surface. They now leave the status unknown, like the existing zero sentinel. Valid response observations retain their current behavior.
The API-surface, environment-state and manifest suites passed all 168 tests with authored captures. No browser or network was used. No issue is linked because the defect was independently reproduced.
Follow-up validation
On
80f3e5d2e, one captured-status schema feeds HAR admission, scenario capture and expected-status validation. The HAR reader reports malformed statuses as unknown and downstream API, replay and state views consume that result. Controls retain 100, 200, 600 and 999 and reject numeric strings. All 283 focused tests andcheck:fastpassed.Author readiness
Human owner: @ShuaixinHuang
Before merge