Repository navigation
fix(outputs): use neutral destination diagnostics - #7949
Merged
Merged
Conversation
Contributor
[Low impact] This PR appears safe to merge; the wording changes leave destination checks and error classification intact. Summary
Reviews (1) · Last reviewed commit: "fix(outputs): use neutral destination di..." · Reviewed by Greptile |
morluto
marked this pull request as ready for review
October 28, 2026 23:08
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. |
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.
Summary
Fixes #7396. Environment-bundle destination failures referred to an extraction root, even though the shared output-tree writer serves several workflows. The writer now uses neutral output-destination wording.
Problem and expected behavior
An occupied output directory, existing file, or missing parent is correctly refused, but the error should describe the selected output rather than imply that an extraction was requested. Both the top-level message and field issue now carry the shared owner's neutral reason.
Change and scope
Update the shared
SafeOutputTreediagnostics for admission, output and cleanup failures. Extraction-specific source-containment guidance remains with the extraction owner. No destination policy, transaction, or cleanup behavior changes.Contract and boundary impact
Expected effects:
Evidence and regression coverage
The production MCP boundary checks dry-run occupied directories and files, missing parents, non-dry-run occupied directories, exact field and message attribution, and preserved contents. Existing public CLI/MCP script export tests verify the other shared consumer. Source tests cover output-tree refusal projection and extraction behavior. No real target/provider or non-macOS platform was exercised.
Validation performed
npm run test:focused -- tests/boundary/mcp/environmentBundleMcp.test.ts tests/boundary/mcp/webScriptSelectionMcp.test.ts tests/boundary/cli/webScriptSelectionCli.test.ts— 14 passed.npm run test:local -- src/artifacts/SafeOutputTreeAdmission.test.ts src/artifacts/extraction/ArtifactExtraction.test.ts src/artifacts/extraction/EmbeddedArtifactExtraction.test.ts— 38 passed.npm run check:fastandgit diff --check— passed.Compatibility, safety, and release
Human-readable messages change across shared output-tree consumers. Structured error classifications and behavior remain unchanged.
Author readiness
Human owner: @morluto
Before merge
type(scope): outcome.