Skip to content

fix(javascript): respect Node HTTP path validation - #9684

Merged
vincentkoc merged 19 commits into
morluto:mainfrom
XiaoBinGan:fix/http-path-unescaped
Nov 30, 2026
Merged

vincentkoc merged 19 commits into
morluto:mainfrom
XiaoBinGan:fix/http-path-unescaped

Conversation

@XiaoBinGan

@XiaoBinGan XiaoBinGan commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Omit HTTP/HTTPS request observations when a known literal path makes Node reject the call before constructing a request. Preserve uncertainty when a getter or source-visible effect could change the value.

Behavior and scope

  • Match Node's accepted path range, U+0021 through U+00FF; keep empty paths and escaped spaces valid.
  • Interpret each option's effective descriptor and insertion position once, shared by path and method validation. Outer setters merge with accessors; data properties and methods replace them; literal spreads copy effective values.
  • Follow Node's pre-copy URL probe and select the correct options argument, including URL-shaped objects. Opaque changes to the global URL constructor and inherited getter effects retain uncertainty. Account for HTTPS's intermediate ordinary-object copy.
  • Preserve shorthand __proto__ as a data property and actual prototype-setting semantics through the shared AST owner. Unknown/nested spreads and computed keys remain unresolved.
  • No provider, target interaction, or output schema is added. No separate issue tracks this analysis defect.

Validation

  • Validated head: 2013d59a7d534b18d104f9a14a6d71297293f77f. Exact-head hosted CI passed, including all 84 HTTP path/method tests and the Linux package baseline. Squash-merged as acce96912d7bf048f9a5499ecd960c370062306f.
  • 82 direct Node 24.22.1 HTTP/HTTPS construction controls covered character boundaries, effective descriptors, URL probes and overloads, opaque constructor replacement, and inherited getters. Node Agent dispatch was disabled; no network requests were sent.
  • Added 19 follow-up analyzer regressions plus the earlier descriptor regressions. CI exposed two test expectations that incorrectly treated a reusable function as a single activation; the corrected cases assert both top-level ordering and unresolved callable ordering. Four checks against the exact preceding CI-built analyzer passed. Full test-file validation passed in CI (66 path tests and 18 method tests).
  • The canonical P2 review was clean before these follow-up fixes. Existing GitHub review findings prompted the shared options view; a bounded independent source review checked the follow-up, including prototype timing and HTTPS behavior. The two old method tests now expect the proven refusal after an inert spread or a later getter; four direct Node controls confirmed it. Formatting and diff checks passed.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

Author readiness

Human owner: @XiaoBinGan

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-30T11:03:14.444844Z
We couldn’t complete this review. Comment @codex review to try again.
2013d59 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4432de26d4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@XiaoBinGan

Copy link
Copy Markdown
Contributor Author

You are right, and my evidence did not support the claim I made. Fixed in b6ff6300b.

I had probed every ASCII code point plus U+00E9 and then wrote "non-ASCII is accepted" from those two data points. Probing the upper bound properly on Node 24.22.1:

options.path outcome
U+007F, U+00A0, U+00E9, U+00FF request constructed
U+0100, U+1000, U+4E00, U+2028, U+1F600, U+10FFFF THREW ERR_UNESCAPED_CHARACTERS
0x00-0x20 THREW ERR_UNESCAPED_CHARACTERS

So the accepted range is exactly U+0021-U+00FF — a closed Latin-1 range, not ASCII, and path: "/aĀb" throws while my regex emitted a request for it.

/[^\u0021-\u00ff]/u is the pattern now, and the tests pin both ends: four above-Latin-1 cases (Ā, 中, 😀, U+2028) that must emit nothing, and three inside-Latin-1 controls (U+00FF, U+00A0, U+007F) that must keep their request. Reverting the pattern fails the four upper-bound cases.

The comment now records the measured range and the probe rather than the generalisation, so the next change reads the boundary instead of re-deriving it. 21 cases; src/domain/javascript: 5400 passing.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b6ff6300b5

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@XiaoBinGan

Copy link
Copy Markdown
Contributor Author

Fixed in e048256f0. You are right that the bailout was too wide.

call Node 24.22.1
http.request({path: "/a b"}, ...callbacks) THREW ERR_UNESCAPED_CHARACTERS
http.request("http://h/", {path: "/a b"}, ...callbacks) THREW ERR_UNESCAPED_CHARACTERS
http.request(...[{host}], {path: "/a b"}) THREW ERR_INVALID_ARG_TYPE — the spread decides slot 0

Expanding a later argument cannot change the object Node already picked, so only a spread at or before the options slot makes the position unknown. The loop now checks exactly those indices: 0 through the options index.

Reverting the loop to the blanket bailout fails 2 cases; the controls cover both the options-first and the URL-first overloads. 24 cases, src/domain/javascript: 5407 → 5410 passing.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e048256f0f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@XiaoBinGan
XiaoBinGan force-pushed the fix/http-path-unescaped branch from e048256 to 3c2bd1d Compare November 10, 2026 02:55
@XiaoBinGan

Copy link
Copy Markdown
Contributor Author

Fixed in 59875db70.

optionsIndex now requires a string, a no-substitution template or new URL before it looks at slot 1; anything else is unresolved and keeps the request.

call Node 24.22.1
http.request(() => {}, {path: "/a b"}) OK — the function is the callback, options are defaults
http.request("/x", {path: "/a b"}) THREW ERR_UNESCAPED_CHARACTERS
http.request(new URL("http://h/"), {path: "/a b"}) THREW ERR_UNESCAPED_CHARACTERS

Both directions are covered, so the URL overload is not weakened. 3 cases added; src/domain/javascript: 5410 → 5413 passing.

@XiaoBinGan
XiaoBinGan force-pushed the fix/http-path-unescaped branch from 59875db to c553ce9 Compare November 10, 2026 19:07

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c553ce95b8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@XiaoBinGan

Copy link
Copy Markdown
Contributor Author

Fixed in 148a5838e. You are right that the name test proves nothing.

call Node 24.22.1
const URL = Function; http.request(new URL(), {path: "/a b"}) default / request — slot 0 is a function, so it is the callback
http.request(new URL("http://h/"), {path: "/a b"}) THREW ERR_UNESCAPED_CHARACTERS

isUnmodifiedGlobalReference(callee, state, "URL") replaces the name comparison, so a replaced URL no longer proves the (url, options) overload and the request is kept. rejectsHttpPathLiteral takes the analysis state for that — the same guard the file already uses for JSON.parse.

src/domain/javascript: 5415 → 5422 passing (this branch had picked up two more commits while I was working).

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 148a5838e5

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@XiaoBinGan

Copy link
Copy Markdown
Contributor Author

Fixed in b26c34687. You are right — the syntactic path is not the runtime one once an earlier getter runs.

call Node 24.22.1
{get agent() { this.path = "/ok"; return undefined; }, path: "/a b"} request constructed
{path: "/a b", get agent() { this.path = "/ok"; }} THREW ERR_UNESCAPED_CHARACTERS

optionGetterPrecedesMember compares enumeration order, not source order — Object.assign does not follow the source: an ECMAScript array index comes first, and a redefined key keeps its first insertion position while its descriptor comes from the last write.

One thing worth flagging across PRs: #9683 carries the identical ordering rule for options.method on this same file, under the name methodGetterPrecedesMember. If that lands first, these are the same function and should collapse into one — I would rather say so now than leave two copies of a subtle rule for you to reconcile.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b26c34687d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

`http.request` and `https.request` validate `options.path` before they build the request, so
a literal carrying an unescaped character throws `ERR_UNESCAPED_CHARACTERS` from the call
itself and no request exists. The analysis reported one anyway.

The accepted set was measured rather than guessed: every ASCII code point was placed inside
a literal path on Node 24.22.1 and exactly `0x00`-`0x20` are refused while `0x21`-`0x7f` are
accepted. That makes it a closed range, not a list of known-bad characters, and three
consequences follow that a hand-written list would get wrong:

| `options.path` | outcome |
| --- | --- |
| `"/a b"`, `" "`, `"\t"`, `"\n"`, `"\u0000"` | THREW `ERR_UNESCAPED_CHARACTERS` |
| `"/a%20b"` | request constructed — the escape is what the literal above should have been |
| `"/aéb"` | request constructed — non-ASCII is inside the accepted range |
| `""` | request constructed — Node reads it as "not given" and falls back to `/` |

`fetch` reads a different member and validates no path. A spread argument or a binding leaves
the answer to the runtime, the same rule the sibling overload-slot readers use.

14 cases, 7 failing before this commit. `src/domain/javascript`: 5372 to 5386 passing.
`tsc` reports only the pre-existing `adbCommands.ts` duplicate `packageName`, which `main`
already has and `morluto#9677`/`morluto#9678` fix.
A reviewer caught that my "non-ASCII is accepted" claim was not established: I had probed
ASCII plus `U+00E9` and generalised from two data points. Probing the upper bound on Node
24.22.1 shows the accepted range is exactly `U+0021`-`U+00FF`:

| `options.path` | outcome |
| --- | --- |
| `U+007F`, `U+00A0`, `U+00E9`, `U+00FF` | request constructed |
| `U+0100`, `U+1000`, `U+4E00`, `U+2028`, `U+1F600`, `U+10FFFF` | THREW `ERR_UNESCAPED_CHARACTERS` |
| `0x00`-`0x20` | THREW `ERR_UNESCAPED_CHARACTERS` |

So the rule is a closed **Latin-1** range, not ASCII and not a list of known-bad characters.
`path: "/aĀb"` throws, and the previous regex emitted a request for it.

`/[^\u0021-\u00ff]/u` is the range, and four above-Latin-1 cases plus three inside-Latin-1
controls now pin both ends. 21 cases; reverting the pattern fails the new upper-bound cases.
`src/domain/javascript`: 5400 passing.
A reviewer caught that the spread bailout was too wide. Expanding a later argument cannot
change an object Node already picked, so the call still throws:

| call | Node 24.22.1 |
| --- | --- |
| `http.request({path: "/a b"}, ...callbacks)` | THREW `ERR_UNESCAPED_CHARACTERS` |
| `http.request("http://h/", {path: "/a b"}, ...callbacks)` | THREW `ERR_UNESCAPED_CHARACTERS` |
| `http.request(...[{host}], {path: "/a b"})` | THREW `ERR_INVALID_ARG_TYPE` — the spread decides slot 0 |

Only a spread at or before the options slot can move it, so the loop now checks just those
indices. The previous version kept a request for either of the first two calls.

24 cases; reverting the loop to the blanket bailout fails 2 of them.
`src/domain/javascript`: 5407 to 5410 passing.
A non-object first argument is the options slot only for Node's `(url, options)` overload.
Measured on Node 24.22.1, `http.request(() => {}, {path: "/a b"})` builds a request to `/`,
because `ClientRequest` reads the function as the callback and replaces options with
defaults — the second object is never read. The previous version read that object and dropped
a real request.

`optionsIndex` now requires a string, a no-substitution template or `new URL` before it looks
at slot 1; anything else is unresolved and keeps the request. Both directions are covered:
`http.request("/x", {path: "/a b"})` and `http.request(new URL("http://h/"), {path: "/a b"})`
still throw, so the URL overload is not weakened.

3 cases added; `src/domain/javascript`: 5410 passing.
…s slot

A review finding, measured on Node 24.22.1. The `new URL` arm tested the callee by name:

| call | outcome |
| --- | --- |
| `const URL = Function; http.request(new URL(), {path: "/a b"})` | default `/` request — slot 0 is a function, so it is the callback |
| `http.request(new URL("http://h/"), {path: "/a b"})` | THREW `ERR_UNESCAPED_CHARACTERS` |

`isUnmodifiedGlobalReference(callee, state, "URL")` replaces the name test, so a replaced
`URL` no longer proves the `(url, options)` overload. `rejectsHttpPathLiteral` takes the
analysis state for that, which is the same guard the file already uses for `JSON.parse`.

`src/domain/javascript`: 5413 passing.
A review finding, measured on Node 24.22.1. `ClientRequest` copies the options with
`Object.assign`, so a getter enumerated before `path` runs first and can rewrite the value that
is then validated:

| call | outcome |
| --- | --- |
| `{get agent() { this.path = "/ok"; return undefined; }, path: "/a b"}` | request constructed |
| `{path: "/a b", get agent() { this.path = "/ok"; }}` | THREW `ERR_UNESCAPED_CHARACTERS` |

`optionGetterPrecedesMember` compares enumeration order rather than source order, because
`Object.assign` does not follow the source: an ECMAScript array index comes first and a redefined
key keeps its first insertion position while its descriptor comes from the last write.

Note for merge order: morluto#9683 carries the same ordering rule for `options.method` on this file. If
that lands first, `methodGetterPrecedesMember` and this helper are the same function and should be
collapsed into one.

`src/domain/javascript`: 5422 passing. Reverting the reader fails 2 of the new cases.
@XiaoBinGan
XiaoBinGan force-pushed the fix/http-path-unescaped branch from b26c346 to f2ac809 Compare November 12, 2026 00:48

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f2ac8098ee

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

A review finding, measured on Node 24.22.1. An object-literal spread materializes its own keys as
data properties at its position, so it neither hides the member nor adds a getter:

| call | outcome |
| --- | --- |
| `http.request({...{host: "h"}, path: "/a b"})` | THREW `ERR_UNESCAPED_CHARACTERS` |
| `http.request({...{path: "/a b"}, host: "h"})` | THREW |
| `http.request({...{}, path: "/a b"})` | THREW |
| `http.request({...{get x() {}}, path: "/a b"})` | request constructed — the getter runs |

The order model skipped every spread and bailed out, so the first three kept a request Node never
creates. It now walks an object-literal spread: each entry takes the spread's position, a getter
inside the spread still bails, and a spread this reader cannot expand keeps the request.

The other finding on this PR — an own `__proto__` data key before `path` — does not reproduce.
`Object.assign({}, options)` does run the setter, but `http.request` validates the literal before
that copy:

| call | Node 24.22.1 |
| --- | --- |
| `http.request({["__proto__"]: {set path(_) {}}, path: "/a b"})` | THREW `ERR_UNESCAPED_CHARACTERS`, setter never called |
| `const c = Object.assign({}, {...}); http.request(c)` | OK — the setter consumed the path |

So the existing rejection is correct for the call shape this reader sees, and only a
pre-copied object changes the answer. I have replied on that thread with the reproduction
rather than changing the reader.

`src/domain/javascript`: 5660 passing.
@XiaoBinGan

Copy link
Copy Markdown
Contributor Author

Two things here: one fixed, one does not reproduce.

Fixed in ead435aeb — the statically inert spread. An object-literal spread materializes its own keys as data properties, so it hides nothing and adds no getter:

call Node 24.22.1
http.request({...{host: "h"}, path: "/a b"}) THREW ERR_UNESCAPED_CHARACTERS
http.request({...{path: "/a b"}, host: "h"}) THREW
http.request({...{}, path: "/a b"}) THREW
http.request({...{get x() {}}, path: "/a b"}) request constructed — the getter runs

The order model skipped every spread and bailed, so the first three kept a request Node never creates. It walks an object-literal spread now: each entry takes the spread's position, a getter inside still bails.

The own-__proto__ case does not reproduce as described. Object.assign does run the setter — but http.request validates the literal before that copy:

call Node 24.22.1
http.request({["__proto__"]: {set path(_) {}}, path: "/a b"}) THREW ERR_UNESCAPED_CHARACTERS, setter never called
const c = Object.assign({}, {["__proto__"]: {set path(_) {}}, path: "/a b"}); http.request(c) OK — the setter consumed the path

I instrumented the setter with a counter: zero invocations on the first call, one on the second. So for the call shape this reader sees, the existing rejection is right, and only a pre-copied object changes the answer. If you have a reproduction where the raw literal constructs a request, I will fix it — but I would rather not change a correct rejection on a reasoning I cannot reproduce.

src/domain/javascript: 5665 passing.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ead435aebe

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@XiaoBinGan

Copy link
Copy Markdown
Contributor Author

Two separate answers.

The inherited-setter case does not reproduce. Object.defineProperty(Object.prototype, "path", {get: () => "/ok", set() {}}); http.request({path: "/a b"}) throws ERR_UNESCAPED_CHARACTERS on Node 24.22.1, with the setter never invoked — I instrumented it with a counter and got zero calls. http.request validates the literal before its internal copy, which is the same thing I found on the earlier __proto__ thread:

call Node 24.22.1
http.request({path: "/a b"}) after patching Object.prototype.path THREW, setter calls: 0
const c = Object.assign({}, {path: "/a b"}); http.request(c) OK, setter calls: 1

So the existing rejection is right for the call shape this reader sees. If you have a reproduction where the raw literal constructs, send it and I will fix it.

The spread-plus-getter ordering is real and I am fixing it in the next push: http.request({...{agent: null, path: "/a b"}, get agent() { this.path = "/ok"; return false; }}) constructs a request on Node 24.22.1, because agent takes the spread's position and the redefinition keeps it, so the getter runs before path is copied.

A review finding, measured on Node 24.22.1. Every key a spread contributed was recorded at the
spread's outer index, so a key redefined later lost the position it kept at runtime:

`http.request({...{agent: null, path: "/a b"}, get agent() { this.path = "/ok"; return false; }})`
constructs a request, because `agent` takes the spread's position, the redefinition keeps it, and
the getter therefore runs before `path` is copied.

Positions are a running counter now, advanced for each contributed key, so a spread's members keep
their order relative to each other and to the members written after the spread.

`src/domain/javascript`: 5673 passing.
@XiaoBinGan

Copy link
Copy Markdown
Contributor Author

Fixed in this push. Confirmed: http.request({...{agent: null, path: "/a b"}, get agent() { this.path = "/ok"; return false; }}) constructs a request on Node 24.22.1 — agent takes the spread's position, the redefinition keeps it, so the getter runs before path is copied.

The cause was exactly what you described: every key a spread contributed was recorded at the spread's outer index, so a later redefinition appeared to come after path when at runtime it comes before. Positions are a running counter now, advanced for each contributed key.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3869f0adb9

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a19aba2b72

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@XiaoBinGan

Copy link
Copy Markdown
Contributor Author

Valid — fixed in fdf331d2d. The spread branch in the same function already answers "uncertain" for an unknown key; the property branch skipped it instead, which moved every later getter's position to an earlier slot and dropped the operation.

-    if (name === null) continue;
+    if (name === null) return true;

Case added with your example: const key = "agent"; http.request({ [key]: null, path: "/a b", get agent() { this.path = "/ok"; return undefined; } }) keeps a request. Control: reverting the one line fails that case alone; src/domain/javascript otherwise stays at 6592 passing.

Still open here: the __proto__ prototype-setter finding at line 794. src/domain/javascript: 206 files, 6592 tests pass; tsc 0; oxlint 0 errors; oxfmt --check, architecture guards pass.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fdf331d2d4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@XiaoBinGan

Copy link
Copy Markdown
Contributor Author

Valid — fixed. A __proto__ entry inside the spread source creates no own enumerable key, so it contributes no member; passing it to recordAccessor deleted the outer getter's fact and dropped the request. The spread loop now applies the same owning predicate the outer loop already used:

if (isObjectPrototypeSetter(entry, name)) continue;

isObjectPrototypeSetter is the existing predicate from javascriptAstValues.ts, so no new rule was invented.

Case added with your example: http.request({ get __proto__() { this.path = "/ok"; }, path: "/a b", ...{ __proto__: null } }) keeps a request. Control: removing the one line fails that case alone.

src/domain/javascript: 206 files, 6593 tests pass; tsc 0; oxlint 0 errors; oxfmt --check, architecture guards pass.

With this and fdf331d2d, every open thread on this PR has a disposition.

* commit '4ca43e2cb20f0edd86cdbf315a9c99c7b9b87468': (173 commits)
  fix(paths): reject Windows console device names (morluto#14972)
  fix(artifacts): classify member presence from the absent side coverage (morluto#15200)
  fix(tar): account for retained pax owner names (morluto#15195)
  fix(conformance): validate paired fixture count expectations (morluto#14125)
  fix(nds): report unreachable file name directories (morluto#15192)
  refactor(firmware): share admitted-file decoder buffering (morluto#15198)
  fix(binary): carry the runtime refusal's repair instruction in remediation (morluto#14123)
  fix(agentenv): reject COM0 and LPT0 bundle names (morluto#14971)
  test(environment): share the loopback capture fixture (morluto#15196)
  perf(png): reconstruct scanlines with one filter dispatch (morluto#11818)
  feat(iso9660): stream files across separated extents (morluto#15190)
  perf(apple): build only the requested asset catalog page (morluto#14032)
  perf(artifacts): isolate offline session composition from deep providers (morluto#15194)
  perf(evidence): bound investigation closure worklist by depth (morluto#15193)
  perf(audit): avoid copying complete log lines (morluto#15184)
  test(mcp): share server result readers (morluto#15174)
  fix(android): declare Android mapping and JNI fixed allowances (morluto#15183)
  fix(artifacts): retain deep comparison source chains (morluto#15191)
  perf(evidence): bound link inspection frontier by records (morluto#15189)
  perf(evidence): retain snapshots across duplicate imports (morluto#15186)
  ...
@vincentkoc vincentkoc changed the title fix(javascript): reject an http path Node refuses at the call site fix(javascript): respect Node HTTP path validation Nov 30, 2026
@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.
Credits must be used to enable repository wide code reviews.

@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.
Credits must be used to enable repository wide code reviews.

@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.
Credits must be used to enable repository wide code reviews.

@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.
Credits must be used to enable repository wide code reviews.

@vincentkoc
vincentkoc merged commit acce969 into morluto:main Nov 30, 2026
41 checks passed
@vincentkoc

Copy link
Copy Markdown
Collaborator

Thanks for the contribution! Merged after fixing the remaining option-ordering cases and validating all 84 HTTP path/method tests plus CI.

vincentkoc added a commit to ShuaixinHuang/rea that referenced this pull request Nov 30, 2026
…5210-evidence-completion

* commit 'acce96912d7bf048f9a5499ecd960c370062306f':
  fix(javascript): respect Node HTTP path validation (morluto#9684)
  fix(windows): reject native addons with unusable delay-import tables (morluto#15216)
  feat(artifacts): inventory Android super image metadata (morluto#14928)
  fix(paths): reject dotted console device names for portability (morluto#15220)
  fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206)
  fix(screenshots): report the PNG comparison memory allowance (morluto#15217)
  fix(process): compare Windows server paths by native realpath (morluto#15044)
  fix(firmware): recheck decoded member source on completion (morluto#15211)
  fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208)
  fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207)
  perf(ci): confirm test-only macOS selection on Linux (morluto#15203)
  fix(paths): reject Windows console device names (morluto#14972)
vincentkoc added a commit to ShuaixinHuang/rea that referenced this pull request Nov 30, 2026
…5219-evidence-inspection

* commit 'd0694fb5b7d8426d7c776f6ecc904f8e03839976':
  fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205)
  perf(png): reuse scanline storage in screenshot comparisons (morluto#15215)
  fix(javascript): respect Node HTTP path validation (morluto#9684)
  fix(windows): reject native addons with unusable delay-import tables (morluto#15216)
  feat(artifacts): inventory Android super image metadata (morluto#14928)
  fix(paths): reject dotted console device names for portability (morluto#15220)
  fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206)
  fix(screenshots): report the PNG comparison memory allowance (morluto#15217)
  fix(process): compare Windows server paths by native realpath (morluto#15044)
  fix(firmware): recheck decoded member source on completion (morluto#15211)
  fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208)
  fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207)
  perf(ci): confirm test-only macOS selection on Linux (morluto#15203)
vincentkoc added a commit to 2SinceJuly/rea that referenced this pull request Nov 30, 2026
…180-warc-archive

* commit '5f15fdf457a890a149cbe574cce96e32422c1904': (206 commits)
  perf(evidence): inspect retained records without building a bundle (morluto#15219)
  fix(process): report denied inspection as typed cleanup failures (morluto#9261)
  perf(mcp): complete retained Evidence without rebuilding bundles (morluto#15210)
  fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205)
  perf(png): reuse scanline storage in screenshot comparisons (morluto#15215)
  fix(javascript): respect Node HTTP path validation (morluto#9684)
  fix(windows): reject native addons with unusable delay-import tables (morluto#15216)
  feat(artifacts): inventory Android super image metadata (morluto#14928)
  fix(paths): reject dotted console device names for portability (morluto#15220)
  fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206)
  fix(screenshots): report the PNG comparison memory allowance (morluto#15217)
  fix(process): compare Windows server paths by native realpath (morluto#15044)
  fix(firmware): recheck decoded member source on completion (morluto#15211)
  fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208)
  fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207)
  perf(ci): confirm test-only macOS selection on Linux (morluto#15203)
  fix(paths): reject Windows console device names (morluto#14972)
  fix(artifacts): classify member presence from the absent side coverage (morluto#15200)
  fix(tar): account for retained pax owner names (morluto#15195)
  fix(conformance): validate paired fixture count expectations (morluto#14125)
  ...
vincentkoc added a commit to 2SinceJuly/rea that referenced this pull request Nov 30, 2026
…186-evtx-archive

* commit '5f15fdf457a890a149cbe574cce96e32422c1904': (89 commits)
  perf(evidence): inspect retained records without building a bundle (morluto#15219)
  fix(process): report denied inspection as typed cleanup failures (morluto#9261)
  perf(mcp): complete retained Evidence without rebuilding bundles (morluto#15210)
  fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205)
  perf(png): reuse scanline storage in screenshot comparisons (morluto#15215)
  fix(javascript): respect Node HTTP path validation (morluto#9684)
  fix(windows): reject native addons with unusable delay-import tables (morluto#15216)
  feat(artifacts): inventory Android super image metadata (morluto#14928)
  fix(paths): reject dotted console device names for portability (morluto#15220)
  fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206)
  fix(screenshots): report the PNG comparison memory allowance (morluto#15217)
  fix(process): compare Windows server paths by native realpath (morluto#15044)
  fix(firmware): recheck decoded member source on completion (morluto#15211)
  fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208)
  fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207)
  perf(ci): confirm test-only macOS selection on Linux (morluto#15203)
  fix(paths): reject Windows console device names (morluto#14972)
  fix(artifacts): classify member presence from the absent side coverage (morluto#15200)
  fix(tar): account for retained pax owner names (morluto#15195)
  fix(conformance): validate paired fixture count expectations (morluto#14125)
  ...
vincentkoc added a commit to Afloat16/rea that referenced this pull request Nov 30, 2026
…4075-env-argv0

* commit 'aeea7c25ede5c5e6b16198e60c0eb0475ff6f5d8': (738 commits)
  fix(hopper): clarify publisher verification failures
  fix(analysis-view): keep PTX text pages on Unicode boundaries (morluto#15222)
  feat(mcp): advertise each tool's family in tools/list _meta (morluto#7154)
  perf(evidence): inspect retained records without building a bundle (morluto#15219)
  fix(process): report denied inspection as typed cleanup failures (morluto#9261)
  perf(mcp): complete retained Evidence without rebuilding bundles (morluto#15210)
  fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205)
  perf(png): reuse scanline storage in screenshot comparisons (morluto#15215)
  fix(javascript): respect Node HTTP path validation (morluto#9684)
  fix(windows): reject native addons with unusable delay-import tables (morluto#15216)
  feat(artifacts): inventory Android super image metadata (morluto#14928)
  fix(paths): reject dotted console device names for portability (morluto#15220)
  fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206)
  fix(screenshots): report the PNG comparison memory allowance (morluto#15217)
  fix(process): compare Windows server paths by native realpath (morluto#15044)
  fix(firmware): recheck decoded member source on completion (morluto#15211)
  fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208)
  fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207)
  perf(ci): confirm test-only macOS selection on Linux (morluto#15203)
  fix(paths): reject Windows console device names (morluto#14972)
  ...
vincentkoc added a commit to 2SinceJuly/rea that referenced this pull request Nov 30, 2026
…0374-skill-guidance

* commit 'aeea7c25ede5c5e6b16198e60c0eb0475ff6f5d8': (3508 commits)
  fix(hopper): clarify publisher verification failures
  fix(analysis-view): keep PTX text pages on Unicode boundaries (morluto#15222)
  feat(mcp): advertise each tool's family in tools/list _meta (morluto#7154)
  perf(evidence): inspect retained records without building a bundle (morluto#15219)
  fix(process): report denied inspection as typed cleanup failures (morluto#9261)
  perf(mcp): complete retained Evidence without rebuilding bundles (morluto#15210)
  fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205)
  perf(png): reuse scanline storage in screenshot comparisons (morluto#15215)
  fix(javascript): respect Node HTTP path validation (morluto#9684)
  fix(windows): reject native addons with unusable delay-import tables (morluto#15216)
  feat(artifacts): inventory Android super image metadata (morluto#14928)
  fix(paths): reject dotted console device names for portability (morluto#15220)
  fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206)
  fix(screenshots): report the PNG comparison memory allowance (morluto#15217)
  fix(process): compare Windows server paths by native realpath (morluto#15044)
  fix(firmware): recheck decoded member source on completion (morluto#15211)
  fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208)
  fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207)
  perf(ci): confirm test-only macOS selection on Linux (morluto#15203)
  fix(paths): reject Windows console device names (morluto#14972)
  ...
vincentkoc added a commit to Afloat16/rea that referenced this pull request Nov 30, 2026
…063-native-alias-cancellation

* commit 'aeea7c25ede5c5e6b16198e60c0eb0475ff6f5d8': (881 commits)
  fix(hopper): clarify publisher verification failures
  fix(analysis-view): keep PTX text pages on Unicode boundaries (morluto#15222)
  feat(mcp): advertise each tool's family in tools/list _meta (morluto#7154)
  perf(evidence): inspect retained records without building a bundle (morluto#15219)
  fix(process): report denied inspection as typed cleanup failures (morluto#9261)
  perf(mcp): complete retained Evidence without rebuilding bundles (morluto#15210)
  fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205)
  perf(png): reuse scanline storage in screenshot comparisons (morluto#15215)
  fix(javascript): respect Node HTTP path validation (morluto#9684)
  fix(windows): reject native addons with unusable delay-import tables (morluto#15216)
  feat(artifacts): inventory Android super image metadata (morluto#14928)
  fix(paths): reject dotted console device names for portability (morluto#15220)
  fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206)
  fix(screenshots): report the PNG comparison memory allowance (morluto#15217)
  fix(process): compare Windows server paths by native realpath (morluto#15044)
  fix(firmware): recheck decoded member source on completion (morluto#15211)
  fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208)
  fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207)
  perf(ci): confirm test-only macOS selection on Linux (morluto#15203)
  fix(paths): reject Windows console device names (morluto#14972)
  ...
vincentkoc added a commit to Afloat16/rea that referenced this pull request Nov 30, 2026
…279-mcp-config-validation

* commit 'aeea7c25ede5c5e6b16198e60c0eb0475ff6f5d8': (2392 commits)
  fix(hopper): clarify publisher verification failures
  fix(analysis-view): keep PTX text pages on Unicode boundaries (morluto#15222)
  feat(mcp): advertise each tool's family in tools/list _meta (morluto#7154)
  perf(evidence): inspect retained records without building a bundle (morluto#15219)
  fix(process): report denied inspection as typed cleanup failures (morluto#9261)
  perf(mcp): complete retained Evidence without rebuilding bundles (morluto#15210)
  fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205)
  perf(png): reuse scanline storage in screenshot comparisons (morluto#15215)
  fix(javascript): respect Node HTTP path validation (morluto#9684)
  fix(windows): reject native addons with unusable delay-import tables (morluto#15216)
  feat(artifacts): inventory Android super image metadata (morluto#14928)
  fix(paths): reject dotted console device names for portability (morluto#15220)
  fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206)
  fix(screenshots): report the PNG comparison memory allowance (morluto#15217)
  fix(process): compare Windows server paths by native realpath (morluto#15044)
  fix(firmware): recheck decoded member source on completion (morluto#15211)
  fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208)
  fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207)
  perf(ci): confirm test-only macOS selection on Linux (morluto#15203)
  fix(paths): reject Windows console device names (morluto#14972)
  ...
vincentkoc added a commit to agnaylor/rea that referenced this pull request Nov 30, 2026
…410-windows-transport

* commit '28772e67d245661b4a66ef5a09353eafda483367': (674 commits)
  docs: note symlink EPERM in Windows source test failures (morluto#7211)
  fix(javascript): scope candidate this event receivers (morluto#4656)
  fix(config): validate target and loader options before printing MCP registrations (morluto#9279)
  fix(native): honor cancellation during PE alias expansion (morluto#9063)
  fix(audit): preserve env shebang argument ownership (morluto#14075)
  feat(evtx): inventory Windows event log records offline
  docs(skill): replace the staged workflow with the rules it encodes (morluto#10374)
  fix(hopper): clarify publisher verification failures
  fix(analysis-view): keep PTX text pages on Unicode boundaries (morluto#15222)
  feat(mcp): advertise each tool's family in tools/list _meta (morluto#7154)
  perf(evidence): inspect retained records without building a bundle (morluto#15219)
  fix(process): report denied inspection as typed cleanup failures (morluto#9261)
  perf(mcp): complete retained Evidence without rebuilding bundles (morluto#15210)
  fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205)
  perf(png): reuse scanline storage in screenshot comparisons (morluto#15215)
  fix(javascript): respect Node HTTP path validation (morluto#9684)
  fix(windows): reject native addons with unusable delay-import tables (morluto#15216)
  feat(artifacts): inventory Android super image metadata (morluto#14928)
  fix(paths): reject dotted console device names for portability (morluto#15220)
  fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206)
  ...
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.

3 participants