Skip to content

fix(browser): preserve explicit URL references and endpoint evidence - #2878

Open
FengCi0 wants to merge 14 commits into
morluto:mainfrom
FengCi0:fix/web-endpoint-candidates
Open

FengCi0 wants to merge 14 commits into
morluto:mainfrom
FengCi0:fix/web-endpoint-candidates

Conversation

@FengCi0

@FengCi0 FengCi0 commented Oct 13, 2026 •

Copy link
Copy Markdown

Summary

I preserve explicit URL references while keeping ambiguous method arguments as low-confidence candidates across captured bundles and artifact analysis. Refs #2806.

  • The shared producer recognizes parser-accepted HTTP/WS protocols and explicit relative markers: either slash kind, query/fragment references, and complete literal or encoded dot segments. It retains the original spelling.
  • Existing collection, configuration and extension-state exclusions keep their attribution rules.
  • Relative network userinfo redaction uses the shared transport parser's span/fallback facts without inventing a scheme or origin.
  • Ambient alias writes use each read's initializer snapshot. Deferred public/private/accessor field values retain all possible assignments; static fields and computed keys keep their eager snapshots. The same activation rule serves all consumers.
  • Regression coverage preserves candidate certainty through worker transfer and graph projection, original values and source evidence, explicit deduplication limits, and malformed-input uncertainty.

Upstream integration

I merged main@767fe0f. The resolution adopts upstream's shared DOMSnapshot string decoder, primitive-escape producer rule, exactOptional worker schema and consolidated regression fixtures. Superseded local decoder and scalar-escape repairs were removed after checking their consumers.

The retained tests cover Chrome's empty-value -1 encoding, strict document/name indexes, HTML/XML namespace behavior, source-map associations, provider ownership and error provenance. The class-field review regression remains covered at the shared initializer-selection boundary.

Validation

Pinned Node 24.18.0 / npm 11.16.0 on macOS arm64:

  • Full source suite: 504 files, 7,390 tests passed, 13 expected skips.
  • Affected compiled/boundary suites: 203 tests passed, 3 expected skips across 18 files, including actual HTML/XHTML/SVG Chrome cases.
  • Complete real-browser verifier with Chrome 153.0.8010.12: passed. It recovered all four current-document form destinations and verified screenshots, popups, network evidence, script export, module tracing, cancellation and owned-resource cleanup.
  • npm run check, npm run docs:check, duplicate/TODO checks and test discovery passed; all 1,243 test files are discovered once.
  • Independent source review checked the conflict resolutions and producing boundaries.
  • Current-head GitHub CI: passed for f423780, including all five test shards, source/static checks, real Chrome, JavaScript recovery, Windows capability/package checks, native package baselines and the required CI gate.

The broad local gate and a clean c7105d9 checkout both reproduce three native DMG classification failures on this host: hdiutil returns localized diagnostics outside the current English classifier. Those tests, caller locale and unknown classification remain unchanged; I am not reporting a green complete local check:pr.

No new execution/mutation capability or performance improvement is claimed. Real Chrome verification used owned localhost fixtures; no real Ghidra or IDA installation was exercised.

Expected effects

  • Read existing files or captured data.

The existing browser workflow contacts the caller-selected CDP endpoint. This correction adds no provider or target execution authority.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-15T07:03:30.847663Z e7609b8 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: 4e8aaa693f

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Medium impact] The reviewed changes appear safe to merge, with no new actionable findings.

Summary

Preserves explicit URL references while keeping ambiguous method arguments as low-confidence candidates.

  • Captured scripts recognize explicit URL references and keep ambiguous arguments as candidates.
  • Relative network references lose userinfo without gaining a made-up origin.
  • Alias analysis uses each read's initializer snapshot and keeps uncertain reads conservative.
  • Boundary fixtures record browser, CLI, and provider cases without changing their behavior.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Source[JavaScript source] --> Classify[Shared request classification]
  Classify --> Explicit[Explicit URL references]
  Classify --> Candidate[Low-confidence candidates]
  Explicit --> Graph[Application graph and worker transfer]
  Candidate --> Graph
  Explicit --> Redact[Remove captured URL userinfo]
  Candidate --> Redact
  Redact --> Bundle[Captured bundle evidence]
Loading

Reviews (16) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile

@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: 57051299c3

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@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: 47bf8e6e96

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@morluto
morluto force-pushed the fix/web-endpoint-candidates branch from d56aec8 to d082d85 Compare October 13, 2026 18:09

@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: d082d85b77

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/domain/webBundleAnalyzerResult.ts Resolved
@morluto
morluto force-pushed the fix/web-endpoint-candidates branch from d082d85 to 42c425a Compare October 13, 2026 18:27
@morluto
morluto force-pushed the fix/web-endpoint-candidates branch from 42c425a to 6b50a5e Compare October 13, 2026 18:48
@greptile-apps

greptile-apps Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Want your agent to iterate on Greptile's feedback? Try greploops.

@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: e5ef88b34e

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Recognize literal root, network and dot reference separators after lookup exclusions. Redact relative URL userinfo at the shared transport URL boundary.

@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: df73b589f5

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@morluto morluto added area: runtime Process capture and runtime observation bug Something isn't working labels Oct 14, 2026
Use WHATWG protocols and complete dot-segment boundaries while preserving raw evidence and lookup exclusions. Retain upstream EventSource and sendBeacon recognition in the classified producer.
@FengCi0

FengCi0 commented Oct 14, 2026

Copy link
Copy Markdown
Author

@morluto bro

Retain parsed URL reference handling together with upstream extension-state and header-store exclusions, precise loadURL matching, and canonical AST traversal.
@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.

@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.

@FengCi0 FengCi0 changed the title fix(browser): preserve ambiguous endpoint arguments as inferences fix(browser): preserve explicit URL references and endpoint evidence Oct 14, 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.
Repo admins can enable using credits for code reviews in their settings.

@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.

@FengCi0

FengCi0 commented Oct 14, 2026

Copy link
Copy Markdown
Author

@morluto 合并一下

# Conflicts:
#	src/browser/CdpCaptureDocuments.test.ts
#	tests/acceptance/applications/runtime.test.ts
#	tests/boundary/browser/sazWebCapture.test.ts
#	tests/boundary/process/processSettlementDeadline.test.ts
@kaoru0822-kitauji

Copy link
Copy Markdown
Collaborator

Merged latest main into this branch to resolve conflicts in four test files. No rebase or force-push was used.

  • src/browser/CdpCaptureDocuments.test.ts: kept this PR's added nodeValue index -0.5 case next to main's cases.
  • tests/boundary/browser/sazWebCapture.test.ts, tests/boundary/process/processSettlementDeadline.test.ts and tests/acceptance/applications/runtime.test.ts: main rewrote these tests, adding MCP parity checks, owned-process settlement probes and database-refusal assertions. They take main's version, which supersedes this PR's edits.
  • Semantic conflict: main made declarationKinds a required field of JavaScriptSemanticBindingState, so this PR's binding fixture in javascriptSemanticMutationInitializers.test.ts now sets declarationKinds: new Set(), as main's fixtures do.

Validation on the merged tree:

  • 161 JavaScript/domain test files: 3,049 passed;
  • the PR's browser, history, observation and IDA source tests: 148 passed;
  • the SAZ, settlement, runtime-acceptance, Ghidra Java launch, browser MCP and JS reconstruction boundary tests: 72 passed, 1 skipped;
  • typecheck and lint, via the pre-push hook.

@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.

@morluto

morluto commented Nov 24, 2026

Copy link
Copy Markdown
Owner

@FengCi0 thanks for the PR — this branch has merge conflicts with main. Could you merge or rebase onto the latest main and resolve them? Once it's clean and CI is green we can take another look.
cc @gensokyo-dev @dandgabr

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction area: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants