Repository navigation
fix(browser): normalize selected script manifest roots on Windows - #1078
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
N0zoM1z0
commented
Oct 8, 2026
N0zoM1z0
left a comment
Collaborator
Author
There was a problem hiding this comment.
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.
This was referenced Oct 8, 2026
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
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.
11 tasks
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.