Skip to content

fix(browser): normalize selected script manifest roots on Windows - #1078

Merged
N0zoM1z0 merged 2 commits into
mainfrom
fix/windows-web-script-paths
Oct 8, 2026
Merged

N0zoM1z0 merged 2 commits into
mainfrom
fix/windows-web-script-paths

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Fixes #1067.

Normalize the selected manifest's host directory before joining and walking its source paths. Windows forward-slash drive paths now reach the same containment boundary as native paths; provider reads also terminate correctly for dot segments and relative roots. Keep the shared CLI/MCP absolute-path admission contract and preserve the caller-selected manifest spelling, capture metadata, URLs, and source identities.

Verification: 19 focused filesystem, CLI/MCP, schema, and Windows-lane regressions passed. The two new path regressions failed on the original implementation; they now cover real directories with spaces, host path spellings, and retained tamper rejection. Source-location parity uses the actual compiled stdio MCP server and owned source-map codec. npm run check, npm run docs:generate, npm run docs:check, and test discovery passed. After rebasing onto current main, the combined setup/path/CLI/MCP lane passed seven tests with one Windows-only case skipped locally, plus static and generated-document checks. Native Windows CI includes both real CLI/MCP journeys and the filesystem regressions. No real Hopper/Ghidra verification is applicable; no browser execution is claimed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 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 ✅ Completed 2026-10-08T14:28:57.996736Z c4af466 PR opened
ℹ️ 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.

@N0zoM1z0 N0zoM1z0 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewed host-path normalization and retained containment, byte-identity, and caller-path reporting. Native Windows CI passed the real filesystem regressions and both CLI/MCP journeys, including the compiled source-map codec. Local malformed/tampered-artifact regressions and static/docs checks passed. Waiting for the final macOS x64 package check before merging.

@N0zoM1z0
N0zoM1z0 merged commit b49beb4 into main Oct 8, 2026
26 checks passed
@N0zoM1z0
N0zoM1z0 deleted the fix/windows-web-script-paths branch October 8, 2026 14:37
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
…rluto#1078)

* fix(browser): normalize selected script manifest roots on Windows

* test(browser): keep manifest fixtures valid across Windows drives
@morluto morluto added the bug Something isn't working label Oct 14, 2026
morluto added a commit that referenced this pull request Nov 15, 2026
The CLI renders caller paths with native separators through absoluteCallerPath; MCP keeps the caller's spelling. The web trace parity tests now also call MCP with the forward-slash manifest spelling and expect the same trace with that path echoed, restoring the #1078 coverage.
morluto added a commit that referenced this pull request Nov 15, 2026
…#10575)

* test(cli): report CLI fields that admit values their contract refuses

For every CLI command that reaches an MCP contract, compare each
name-matched CLI field with its contract field on empty, NUL,
caller-relative host path and numeric argv spellings. The 16 mismatches on
main are recorded in a baseline with a counted ceiling that can only go
down: a new mismatch fails, and so does a listed one that no longer occurs.

* test: cover constrained CLI contract fields

* fix(cli): admit relative web trace paths

* test(cli): probe numeric contract fields by type, including bounds

Numeric probes no longer require the contract to admit 0 or 1, so ranged fields such as inspect-byte-entropy --block-size (256..65536) are compared, with probes just past each declared bound.

* fix(cli): describe caller-relative web trace paths and expect native Windows spellings

The relative-path CLI arguments lost their contract descriptions; they now describe the caller-relative resolution. absoluteCallerPath renders native separators on Windows, so the web trace acceptance tests use native manifest paths for CLI and MCP parity.

* test(cli): keep forward-slash Windows manifest coverage through MCP

The CLI renders caller paths with native separators through absoluteCallerPath; MCP keeps the caller's spelling. The web trace parity tests now also call MCP with the forward-slash manifest spelling and expect the same trace with that path echoed, restoring the #1078 coverage.
@morluto morluto added the area: runtime Process capture and runtime observation label Nov 26, 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 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Web script tools reject forward-slash Windows manifest paths ("no containing manifest directory")

2 participants