Skip to content

fix: correct pcap parent guidance and preserve loader base uncertainty - #6246

Closed
ShuaixinHuang wants to merge 12 commits into
morluto:mainfrom
ShuaixinHuang:codex/docs-pcap-analysis-view-parents
Closed

ShuaixinHuang wants to merge 12 commits into
morluto:mainfrom
ShuaixinHuang:codex/docs-pcap-analysis-view-parents

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by main

Closed by the author after comparing the full diff with main 044c9705.

  • 2ebaadfa replaces the two incomplete supported-parent lists with compatible-parent guidance; the contract still explicitly documents inspect_pcap_capture.
  • ccba355f preserves the alternate createRequire filename base through static facts, workers and graph resolution. f91b7f80 distinguishes resolver discovery from executable loading. These supersede this PR's conservative unknown-base guard and earlier resolver expectations.
  • Main also corrects managed graph token identity and Markdown formatting-capacity fault injection. The remaining unique assertions are duplicate or optional test strengthening, not unresolved product fixes; they will not be mixed into this PR.

This conclusion is based on source/diff comparison. No complete latest-main CI pass or real-provider run is claimed. Prior validation below describes earlier revisions only.

Historical PR description and validation ## Summary

Fixes #5733. Include pcap capture Evidence in both supported-parent guidance lists. Also preserve an unknown loader reference when the static projection cannot carry a proven createRequire URL base, so its literal is not resolved against the wrong source file.

Scope

  • The pcap change is wording only; schemas and projection admission are unchanged.
  • The loader fix adds one guard at the projection boundary, with a regression that fails on the original code. Historical source import handling is unchanged.
  • Align CI fixtures with current upstream contracts: repeated-query source identity, source-map URL identity, ELF fixed text versus decoded-name budgets, TeletexString compatibility decoding, require.resolve associations, Unicode simple case folding and unknown resource sizes.
  • Keep malformed certificate rejection, budget refusals and recovery, competing-owner uncertainty, separate CLI/MCP sessions, IDA case-sensitive/regex controls and CDP malformed/empty inventory coverage. Static associations do not establish runtime execution.

The latest synchronization uses upstream 96ea32b. Preserve its expanded source-map matrix and capacity fixture, plus the existing host-versus-file control and scalar replay source assertion. The two newly exposed CI failures required test-only changes: IDA case-insensitive sigma matches both sigma forms; valid omitted CDP content size remains unknown during comparison. A known-size empty-MIME control still compares unchanged. No new production capability, timeout increase or removed scenario.

Validation performed

Head d8d316d, Windows x64, pinned Node 24.22.1 and locked dependencies:

  • Reproduced IDA failure before its correction: 1 failed, 23 passed across IDA protocol/shared matching files. Reproduced CDP failure before its correction: 1 failed, 27 passed across CDP completeness/shared resource comparison files.
  • After final conflict resolution: all 216 tests passed across 12 files covering IDA protocol/session/shared matching, source-to-bundle comparison, source-map fetching/analysis, sourceMapPrefixCli, CDP completeness/shared resource comparison and environment bundle/replay/capacity. Public source-map cases exercise compiled CLI and real stdio MCP transport. CDP cases include public CLI and production MCP registration with a simulated CDP peer.
  • npm run check: six tasks, module boundaries and architecture guards passed.
  • npm run docs:check: six tasks and nine README consistency tests passed.
  • git diff --check, formatting and normal commit/push hooks passed.
  • Earlier head e971dd8 completed six CI shards successfully. Its source lane failed only the now-corrected IDA assertion; shard 2 failed only the now-corrected CDP assertion. Shard 3 reported 1,500 tests passed but its job was canceled, so it is not claimed as a successful CI job.
  • Fresh online CI for this head is pending. Earlier-head and local results do not establish complete current-head Linux CI success. IDA and CDP producers are simulated; no real IDA, browser, signed application, Electron launch or Wireshark acquisition was tested. No performance claim.

Author readiness

Human owner: @ShuaixinHuang

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

@ShuaixinHuang
ShuaixinHuang marked this pull request as ready for review October 22, 2026 04:12
@chatgpt-codex-connector

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-22T04:12:31.130652Z
We couldn’t complete this review. Comment @codex review to try again.
64afd06 Draft marked ready
ℹ️ 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

Copy link
Copy Markdown

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

@greptile-apps

greptile-apps Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

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

Summary

Corrects pcap parent guidance and keeps alternate-base loader references unknown instead of resolving them against the wrong source file.

  • Created-loader references stay unknown when their URL base cannot be carried.
  • Analysis-view guidance lists pcap captures as supported parents.
  • Regression tests now reflect current upstream contracts.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Loader call] --> B{Alternate URL base?}
  B -->|Yes| C[Keep unknown reference and expression]
  B -->|No| D[Keep existing source-file resolution]
Loading

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

@baron baron left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

AI-assisted review checked both wording additions against the existing inspect_pcap_capture result/dispatch and pcap projector. They describe already-supported parents rather than changing schemas, selection, source identity or analysis behavior.

No blocking content finding, but current conflicts with main prevent approval. Resolve them and validate the resulting revision; existing exact-head green CI does not qualify a future conflict resolution. No local Wireshark, docs generation or projection-test run was performed.

…sis-view-parents

# Conflicts:
#	src/contracts/analysisViewToolContracts.ts

Copy link
Copy Markdown
Contributor Author

@baron Thank you for the review. Resolved the main conflict in 87a96c0 by preserving the entire updated upstream description and adding only the missing pcap parent name; the net diff remains two wording changes. On upstream-pinned Node 24.22.1, npm run check, npm run docs:check and all 35 existing analysis-view/pcap tests passed. Fresh CI is running; the previous green head is not used to qualify this revision. Could you please re-review and approve/merge when the current required checks pass? @morluto

Comment thread src/native/elf/ElfNotesProvider.test.ts Resolved
@ShuaixinHuang ShuaixinHuang changed the title docs(views): include pcap in supported parent guidance fix: correct pcap parent guidance and preserve loader base uncertainty Oct 23, 2026
…sis-view-parents

# Conflicts:
#	src/domain/javascript/sourceToBundleComparison.test.ts
…sis-view-parents

# Conflicts:
#	src/application/environment/environmentBundle.test.ts
#	src/application/environment/environmentReplayCapacity.test.ts
@morluto morluto added bug Something isn't working provider: pcap Analysis provider / engine: pcap labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working provider: pcap Analysis provider / engine: pcap

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] inspect_analysis_view parent lists omit supported pcap capture Evidence

3 participants