Skip to content

feat(web): retain literal-shaped endpoint candidates - #9836

Closed
gongfpp wants to merge 54 commits into
morluto:mainfrom
gongfpp:feat-endpoint-literal-candidates
Closed

gongfpp wants to merge 54 commits into
morluto:mainfrom
gongfpp:feat-endpoint-literal-candidates

Conversation

@gongfpp

@gongfpp gongfpp commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #3539.

Retain path/URL-shaped literals missed by analyze_web_bundle as low-confidence endpoint_candidate inferences, not endpoint observations.

Problem and expected behavior

The issue fixture retained the existing http.post candidate and fetch observation, but missed the wrapper argument, three array entries and absolute base URL. Analyst discovery should retain these strings without claiming that a wrapper performs a request or that an array is a route table.

Change and scope

  • Add a bundle-local classifier for exact strings and expression-free templates: nonempty root-relative paths, or parseable absolute HTTP(S)/WS(S) URLs.
  • Discover first call arguments after existing request classification, literal array elements (also in mixed arrays), and absolute URL const initializers.
  • Reuse the existing candidate producer for userinfo redaction, low confidence, script/artifact provenance and first-coordinate deduplication. Pass detector identity explicitly rather than hardcoding a request-method detector.
  • Keep proven Map lookups, module loads and known browsing-context opens out of the call fallback. Keep existing request certainty and analyze_javascript_application behavior unchanged.
  • Document the intentionally broader heuristic: local file paths and configuration factory arguments can be candidates, never proof of networking. Update two existing bundle expectations to make that observable behavior explicit.

Related #9509 handles method-first request(method, url) calls and explicitly leaves this issue uncovered. This PR does not edit its shared request-argument helper or implement its rule; both touch the existing bundle test file in different cases.

Contract and boundary impact

  • Semantic owner and earliest changed stage: the captured-script AST inspection produces candidates; both public adapters consume the same bundle analysis. Shape policy stays bundle-local because application request analysis has a distinct contract.
  • Contribution scope: existing static inspection; no new execution, injection, mutation or protection recovery. A maintainer scope decision is not applicable to these changes.
  • CLI/MCP/catalog: existing inference kind and schemas, additive candidates with literal:path-shaped / literal:url-shaped detectors; no tool or option changes.
  • Compatibility/provenance: original spelling and existing userinfo sanitization; first representative literal location plus script key and artifact digest. Existing dedup identity remains script/value/detector.
  • Authority/cleanup: no new target interaction or resource lifecycle.
  • Generated metadata/package/install impact: none committed; no dependency changes.

Expected effects:

  • Read existing files or captured data.

Evidence and regression coverage

  • On base d2f9b8b7de6aeec86d0e818bf1d04cb43bbc22af, all three new domain tests failed before production edits. The issue fixture returned only ['/api/verified-post'] as candidates instead of six; the other two tests returned no shape candidates.
  • The fixture now returns five new candidates, all confidence low: /api/daily/complete, /api/daily/stats, /api/progress/complete, /api/multiplayer/hint, https://api.example.test. /api/verified-post keeps its existing request-spelling candidate; /api/feedback alone remains an endpoint observation; Map get('dpl') stays excluded.
  • Public compiled CLI and stdio MCP tests independently assert that result, the distinction from observations, detector/location and artifact provenance. They use a wire-level simulated CDP source producer, not a real browser.
  • Further domain coverage: repeated values/first coordinate, optional calls, expression-free versus dynamic templates, mixed arrays, URL userinfo versus preserved query text, malformed/non-network URLs, non-path strings, non-first arguments, Map lookups, module loaders and navigation exclusions.
  • No new lifecycle stages; existing parser/Map/request tests remain enabled.

Evidence contract:

  • Observed, derived, and inferred claims remain distinguishable.
  • Artifact identity, source provenance, and failed attempts remain preserved.
  • Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.

Validation performed

Final upstream CI run 42830350358 on ba41a1f passed: source tests, all 8 test shards, portable tests, static checks, documentation, package build, Windows native build, Linux native package baseline, and CI required. Author readiness and PR title checks also passed. No inline review findings or unresolved review threads are present. Codex could not complete its latest-head review because the repository's code-review usage limit was reached; this is an unavailable automated review, not a passing review or a code finding.

Windows x64, pinned Node 24.22.1 / npm 11.16.0:

  • npm run compile — passed, including runtime bundles/catalog recording.
  • npm run artifacts:skills — passed (ignored generated output).
  • npm run check:fast — passed (typecheck and lint).
  • node node_modules/vitest/vitest.mjs run tests/boundary/mcp/contractPresentation.test.ts tests/boundary/mcp/toolErrorSchemaDelivery.test.ts src/domain/webBundleEndpointLiterals.test.ts src/domain/webBundleAnalyzer.test.ts src/domain/webBundleAnalyzerAst.test.ts tests/boundary/cli/webBundleEndpointLiterals.test.ts src/domain/desktop/appExport.test.ts --maxWorkers=1 — 7 files, 127 tests passed (17.49 s), including compiled CLI/stdio MCP, full advertised-schema equality and the inherited CI regressions below.
  • Formatting checks on the six feature files and both MCP CI-repair files — passed; commit hooks also ran lint-staged successfully.
  • node scripts/verify/architecture-guards.mjs — passed.
  • node scripts/check-doc-facts.mjs — passed after generating ignored skill output.
  • git diff --check — passed.

Environment limitation: npm run build:cached initially required the missing Windows native artifact, restored from the matching published [email protected] package and verified by the repository's artifact verifier. Its exclusive child subsequently failed catalog temporary-directory creation with EPERM; the same operation worked directly, and npm run compile passed outside that exclusive wrapper. No permissions or build scripts were changed. A test-options typing failure during development was corrected before the final passing static gate.

Inherited CI failure corrected separately

The first upstream source suite passed 26,579 tests but failed the desktop export assertion for an alias whose captured kind is missing. Reproduced the identical failure in an isolated, unmodified main worktree at 94ca4b656aede76eda0ebac3af9aed42a27c21a5 (two selected cases pass, the missing-kind case fails). The owning capturedStateAliases producer and typed export plan explicitly normalize missing kinds to "unknown"; Python boundary tests already cover that representation. A separate CI-only commit updates the stale expectation and its name, preserving all three cases. No desktop production behavior was changed. The complete 36-test desktop module and the 89 endpoint tests pass, followed by a fresh passing typecheck/lint gate.

MCP presentation fixture CI timeout corrected separately

Run 42810193789 passed source tests, static checks, documentation, package/native builds and shard 8, but shard 5 timed out in the existing contractPresentation child after 20 seconds; matrix fail-fast cancelled the remaining shards. The fixture and test were unchanged from the PR baseline. Reproduced the timeout locally; a standalone complete execution took 25.90 s. A bounded CPU profile and call trace identified SDK ClientResponseCache.outputValidator eagerly compiling the output schemas of every advertised tool at the first call, including tools this test never calls.

The fixture now resolves each tool definition by name from the full advertised catalog and passes it to client.callTool, retaining SDK schema validation while avoiding unrelated validators. No catalog, schema-equality or handler assertions are removed. Set an explicit 45 s child / 60 s enclosing budget to cover cold imports and complete contract verification on loaded hosts; no retries or skipped tests. The final seven-file run passed all 127 tests, with the presentation check completing in 4.62 s. Timings were from different host loads and are not a controlled performance benchmark. Typecheck/lint passed again. Only test code changed; no production refactor or lifecycle change is needed.

Compatibility, safety, and release

No schema migration or dependency change. More low-confidence candidates are intentional; no interprocedural resolution, constant propagation, dynamic string evaluation, runtime reachability or API completeness claim. Real-browser behavior and the full repository suite were not run locally; upstream results and the test-fixture failure are distinguished above. Public CLI/MCP evidence above uses simulated CDP transport. No new networking or execution authority, and no generated/native files are committed.

Author readiness

Human owner: @gongfpp

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

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.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

Review follow-up

Head e9d34a404d802b55d5428bb98674ecb2e189446c.

Checked route facts are reserved before optional path/URL literals. An inexact omission count is described as occurrences, not unique literals. Numeric-limit discovery ignores a prose template that only mentions a limit name, and still counts a template that assigns that name.

npm run check:fast passed. Focused tests passed: src/domain/webBundleEndpointLiterals.test.ts, tests/evaluation/numericLimitCheck.test.ts, and src/browser/WebBundleAnalysisWorkerServer.test.ts (32 tests). node scripts/verify/rea-numeric-limits.mjs passed.

GitHub created the pull_request_target readiness workflow for this head and did not create the pull_request CI workflow. The previous CI run is still the queued run for f2797c3ce.

The MIPS instruction-context probe remains removed in .github/workflows/ghidra-bridge-sources.yml on this branch. Restoring it changes a workflow file, and this credential cannot push workflow updates. main still runs the MIPS probe.

Open in Web Open in Cursor 

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 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-17T09:31:07.590918Z
We couldn’t complete this review. Comment @codex review to try again.
829940b 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.

@gongfpp

gongfpp commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

CI follow-up: fixed the single source-suite failure in separate commit 9063a4b.

The failed job was https://github.com/morluto/rea/actions/runs/42807724088/job/129801677134 (26,579 passed, one failed desktop alias expectation). I reproduced the same assertion on an isolated, unmodified current-main worktree at 94ca4b656aede76eda0ebac3af9aed42a27c21a5: the missing-kind case expected omission but the producer returns kind: "unknown".

The producing capturedStateAliases function and DesktopAppExportPlan already own and require the explicit file | directory | unknown representation; Python boundary coverage likewise consumes unknown. The fix updates only the stale test expectation/name, preserving the directory/file/missing-kind cases. No desktop production code or resource lifecycle changes; no directly related production refactor remains.

Validation after the fix: the full desktop export domain module plus the four endpoint test files passed 125/125, including compiled public CLI and stdio MCP. Fresh typecheck/lint and commit/pre-push hooks passed. The PR description now records the baseline reproduction and updated evidence.

The initial Codex review completed on 964f501 with no findings, and there were no inline or unresolved review threads at inspection. Author readiness has been recorded from the human owner's explicit approval; CI for the new commit is pending.

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

@gongfpp

gongfpp commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

CI follow-up in ba41a1f: fixed the existing MCP presentation fixture's child-process timeout.

Run 42810193789 passed source tests, static checks, docs, package/native builds and shard 8. Shard 5 failed only contractPresentation at its 20-second child deadline; matrix fail-fast cancelled the other shards. The fixture/test were unchanged from the PR baseline. I reproduced the timeout locally and measured a complete standalone run at 25.90 seconds.

Root cause: the pinned SDK's ClientResponseCache.outputValidator eagerly compiles every advertised output schema on the first callTool. A bounded CPU profile showed compilation dominating the first call. The fixture now finds the selected full advertised definition by name and passes toolDefinition to client.callTool, preserving SDK validation without compiling unrelated tools. The sibling schema-delivery test already uses this API. Full catalog/schema-equality and handler assertions remain intact; no production change or directly related production refactor is needed.

The child/enclosing test now have explicit 45/60-second budgets for cold imports plus the full contract check on loaded hosts, rather than removing coverage or adding retries. Final validation: 127/127 tests across seven files passed, including the presentation test (4.62 s), schema delivery, desktop aliases, endpoint domain tests, compiled CLI and stdio MCP. Typecheck/lint, formatting and normal commit/pre-push hooks passed. Different host loads mean these timings are not a controlled benchmark. The PR body is current; upstream CI for this new head still needs to finish.

Resolve the presentation-order test so main's response-name set stays
asserted and the branch keeps its longer timeout and per-tool schema
validation.

Co-authored-by: morluto <[email protected]>

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

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

Record path and URL literals when their own node is entered, so a nested
array element keeps the earlier coordinate. REA_WEB_BUNDLE_ENDPOINT_LITERAL_CANDIDATES
defaults to 1024, with a floor of 1 and a maximum of 4096. Further unique
literals are omitted and completeness is partial. A change requires
restarting REA.

@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: 56923676ea

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

Comment thread docs/guides/web/browser-observation.md Resolved
REA_WEB_BUNDLE_ENDPOINT_LITERAL_CANDIDATES still seeds
web.bundle_endpoint_literal_candidates. Each analyze_web_bundle call
sends the accepted snapshot to the worker, and update_analysis_settings
changes the next analysis inside the existing floor and maximum.
Add the spec, plan and tasks AGENTS.md requires for the inventory and
for web.bundle_endpoint_literal_candidates, and index them with the
other feature records.
Use the traversal parent for array elements and const checks. Copy the
ancestor list only after a node is a URL-shaped variable initializer.
Part of morluto#9881. Record every numeric REA_ limit and fail static checks when one is neither a runtime analysis setting nor a documented exception with a reason.

@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: 31781a5f5d

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

Part of morluto#9881. Add effect immediate or next_process and keep rea_restart_required, restart_required, and restartRequired as compatibility aliases.
Callers read update_mode to see whether update_analysis_settings can change a limit, and pending_restart only when a configured value is not active in this process.
GitHub CI tests the merge with main. Main now removes copied
authentication even when command cleanup fails, which the evaluation
command test still required to remain.
Main removes copied authentication even when command cleanup stays
incomplete, and CI tests that merge. Keep the incomplete-cleanup
diagnostics and the retained run directory, and expect auth.json to be gone.
Depends on morluto#9885. That branch replaces rea_restart_required with
update_mode and pending_restart and forbids the legacy fields.

@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: 61ae5faa8e

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

Comment thread src/domain/webBundleAnalyzerResult.ts Resolved
…tions

The numeric-limit check now treats REA_WEB_BUNDLE_ENDPOINT_LITERAL_CANDIDATES as a count limit and does not count registry text as a producer.
Invalid ChangeTime settings now carry update_mode and pending_restart through the configuration error and its projection, including startup parsing. Runtime recoveries name update_analysis_settings instead of telling the caller to restart REA.
Omit a path or URL literal when its serialized record, including
provenance, does not fit the remaining worker result budget. When the
count ceiling is already the setting maximum, report that ceiling as
maximal. Depends on morluto#9885: the limit uses update_mode and pending_restart.
A template counts as a producer only when a chunk is the limit name or an
assignment of that name. A diagnostic that merely mentions the name does not
keep a removed registry entry alive.
The push of 8494912 updated the pull request head, but GitHub did not
create the pull_request CI workflow for that revision.

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

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

Comment thread CHANGELOG.md
@@ -1,5 +1,7 @@
# Changelog

The next release changes analysis-setting output (#9885). `update_analysis_settings`, `inspect_analysis_settings`, and limit errors no longer include `rea_restart_required`, `restart_required`, `restartRequired`, or `effect`. Read `update_mode` (`runtime`, `restart`, or `parameter`) and `pending_restart`. `runtime` means the setter can change the active value. `restart` means this process keeps the value it started with. `parameter` means this call supplied the value, so `update_analysis_settings` cannot change it; artifact reader limits, web-network capture budgets, and an explicit `analysis_timeout_ms`, `max_heap_mb`, or `command_timeout_ms` use it. There is no compatibility alias. Release Please should copy this migration into that release's breaking-changes section.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Mark the analysis-setting removal as breaking

For clients consuming analysis-setting outputs, this entry explicitly documents removal of public fields with no compatibility alias, but the reviewed commit is titled feat(web): retain literal-shaped endpoint candidates and has no BREAKING CHANGE: footer; release tooling and downstream Conventional Commit consumers therefore see an ordinary feature rather than the required breaking-contract marker. Add ! to the subject or the required footer.

AGENTS.md reference: AGENTS.md:L107-L107

Useful? React with 👍 / 👎.

Comment on lines +443 to +447
accumulator.endpointLiterals.maximumCount
) {
accumulator.endpointLiteralOmitted += 1;
accumulator.endpointLiteralOmittedExact = false;
return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Backfill slots after oversized literals are dropped

When the ceiling is 1 and the first literal record is larger than the remaining worker result budget but a later small literal such as /api/ok would fit, this traversal-time return discards the later literal before retainLiteralCandidatesWithinResultBudget drops the oversized first record. The result can therefore retain zero candidates and report the useful small literal as count-omitted despite having space for it; apply byte admission before finalizing the count ceiling or retain a bounded overflow so vacated slots can be filled.

AGENTS.md reference: AGENTS.md:L19-L19

Useful? React with 👍 / 👎.

@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 Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[High impact] The PR appears safe to merge based on the reviewed changes and previous-thread checks.

Summary

The PR retains path- and URL-shaped strings as low-confidence endpoint_candidate inferences. It adds count and byte limits, reports omissions, and updates analysis-setting output.

  • Web bundle analysis keeps shaped literals as endpoint candidates.
  • Analysis limits say whether callers can change each value now or need a restart.
  • The numeric-limit check compares the documented inventory with source definitions.
  • Supporting tests cover Ghidra context, command cleanup, and contract presentation.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Captured script] --> B[Inspect source without executing it]
  B --> C[Existing request and route facts]
  B --> D[Path and URL literal candidates]
  C --> E[Reserve checked route space]
  D --> F[Apply candidate count and byte limits]
  E --> F
  F --> G[Worker result with omission details]
  G --> H[Shared CLI and MCP output]
Loading

Reviews (5) · Last reviewed commit: "test(web): cover upper-case wrapper name..." · Reviewed by Greptile

Comment thread src/domain/webBundleEndpointLiterals.ts Resolved
Comment thread src/domain/webBundleAnalyzer.ts Resolved
Comment thread scripts/verify/rea-numeric-limits.mjs Resolved
…ntion

- webBundleEndpointLiterals: reject backslash-prefixed candidates to prevent
  relative URL credentials from leaking into endpoint_candidate values
- webBundleAnalyzer: reserve bytes for omitted-literal records so that
  retaining literal candidates never displaces already-checked routes
- webBundleEndpointLiteralBudget: maintain running counts on append/remove
  instead of recounting all selected inferences (quadratic -> linear)
- rea-numeric-limits: parse registry entries and analysis settings with the
  TypeScript parser instead of order- and indentation-sensitive regexes
- tests: cover reordered registry properties and irregular indentation
@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.

Add a regression test for the relative-URL credential leak: a literal such
as `/\user:pass@host/path` must never become an endpoint_candidate.
@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.

…sh guard

- rea-numeric-limits.d.mts: declare readNumericLimitRegistryEntries and
  readAnalysisSettingUpdateModes, which NodeNext typechecking requires for
  the new imports in numericLimitCheck.test.ts
- webBundleEndpointLiterals.test.ts: exercise the backslash guard through
  array elements (inspectEndpointLiterals) with a valid-path control, so the
  credential-leak regression actually reaches webBundleEndpointLiteral
@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.

@gongfpp

gongfpp commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

Closing as superseded by #11822.

This branch is 54 commits behind main with 47 conflicted files, so the diff could not be reviewed as one change any more. #11822 rebuilds the classifier from scratch on 237b1ea5b (17 files, +355/−23) and keeps only what the feature needs:

  • the array and const-URL literal scan, the setting web.bundle_endpoint_literal_candidates, the structured omission record and the worker byte fit;
  • not the call-argument fallback. With that fallback, two existing cross-analyzer parity tests on main fail: web bundle configuration and navigation parity starts reporting getConfiguration("/api") / getConfiguration("/api/v1"), and web bundle static-analysis parity starts reporting fs.open("/tmp/data.txt"). A literal passed to an unclassified callee is not endpoint evidence, and the parity contract between the two analyzers owns that decision rather than a recall improvement.

Nothing else from this branch is carried over.

@gongfpp gongfpp closed this Nov 17, 2026
@morluto morluto added enhancement New feature or request area: runtime Process capture and runtime observation labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] analyze_web_bundle: surface path- and URL-shaped literals passed to project request wrappers

3 participants