Skip to content

fix(har): retain Playwright bracketed IPv6 address spelling - #3161

Closed
wunianze666-netizen wants to merge 2 commits into
morluto:mainfrom
wunianze666-netizen:codex/har-playwright-ipv6
Closed

wunianze666-netizen wants to merge 2 commits into
morluto:mainfrom
wunianze666-netizen:codex/har-playwright-ipv6

Conversation

@wunianze666-netizen

@wunianze666-netizen wunianze666-netizen commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Playwright 1.58.2 can copy Chromium's bracketed IPv6 remoteIPAddress into HAR serverIPAddress. The unchanged HAR schema expects an IP literal and rejects the entire archive. This reproduced with four public HARvest captures: GitHub, npm website (corpus filename npm-registry), Open-Meteo and Wikipedia (279 records total).

The HAR adapter now removes brackets only in its disposable validation projection, only for the exact observed Playwright 1.58.2 declaration and a valid enclosed IPv6 value. Original reported addresses, extensions, capture bytes and artifact digests stay intact. Invalid addresses, bracketed IPv4, ports, zone IDs and other producer/version declarations remain rejected. Producer metadata is still not authenticated.

The existing mitmproxy optional-null compatibility and the new Playwright representation share one producer-gated pass, removing the prior cloned producer/entry-array probe. The guide and packaged skill reference explain the observed profile. The new caveat is emitted only when bracketed IPv6 was actually adapted; unaffected captures preserve their existing Evidence identities.

Validation:

  • 57 HAR adapter tests passed, including preservation, redaction and invalid/profile-mismatch cases.
  • 12 compiled CLI tests, the historical MCP contract test, 16 analysis-view MCP tests and 5 documentation consistency tests passed. The published default API-surface example reproduces its original Evidence identity.
  • npm run check and npm run docs:check passed.
  • Actual production stdio MCP inspection of all four original archives: capture SHA-256, exact request groups, statuses, MIME inventories and coverage agreed with an independent HAR engine. Selected query-name pages were consumed across page boundaries. npm's oversized complete-record page was read through public retained-Evidence bundle export, without redecoding or replay.
  • Windows used the official native artifact from CI run 38512397927, with its archive and addon SHA-256 verified; native source is identical to this branch's base. No native binaries are committed.

Pinned original examples (producer authenticity is not independently attested):

Original archives remain local; the regression fixtures are source-owned synthetic inputs. No target traffic was replayed and no model API was called. Full agent token cost and process-family CPU/peak memory are unmeasured; no performance improvement is claimed.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge.

Summary

The PR accepts valid bracketed IPv6 addresses declared by Playwright 1.58.2 without rewriting reported addresses.

  • Playwright HAR captures with bracketed IPv6 now pass validation.

Reviews (2) · Last reviewed commit: "fix(har): preserve unaffected Evidence i..." · Reviewed by Greptile

morluto added a commit that referenced this pull request Oct 14, 2026
Adapt observed Playwright 1.58.2 bracketed IPv6 addresses only in the disposable HAR validation copy. Preserve the producer spelling and per-entry limitation through public CLI and MCP workflows, retaining existing safe-number admission policy.

Reviewed-PR: #3161
Co-authored-by: wunianze666-netizen <[email protected]>
@morluto

morluto commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Superseded by f14c2d4df398dbcd3353ea15ab5a4e31be7a5920. The HAR adapter now normalizes the observed Playwright 1.58.2 bracketed IPv6 representation only in a disposable validation copy, while preserving original spelling and producer limitations. Validation: src/browser/history/HarCapture.test.ts (60 tests), tests/boundary/browser/historicalWebCapture.test.ts (public CLI/MCP path, including numeric lexeme policy), and tests/boundary/browser/historicalCaptureDecoder.test.ts passed in phase-five logs. Safe-number admission remains the documented policy; no standard-number expansion is included. Thanks to the PR author and reviewers.

@morluto morluto closed this Oct 14, 2026
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants