Skip to content

fix(outputs): use neutral destination diagnostics - #7949

Merged
morluto merged 1 commit into
mainfrom
codex/output-destination-guidance-7396
Oct 29, 2026
Merged

morluto merged 1 commit into
mainfrom
codex/output-destination-guidance-7396

Conversation

@morluto

@morluto morluto commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

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 SafeOutputTree diagnostics 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

  • Semantic owner and earliest changed stage: shared output-tree admission and lifecycle diagnostics.
  • Contribution scope fit and linked maintainer decision: ordinary existing filesystem output behavior; no new capability or authority.
  • CLI and MCP/tool-catalog contract: diagnostic wording changes; code, category, field and recovery remain unchanged.
  • Provider, bridge, target-format, or platform compatibility: no provider behavior changes.
  • Evidence, artifact, provenance, or reconstruction contract: selected paths and existing contents remain preserved.
  • Target selection, authority, upstream behavior, and cleanup details: no policy or cleanup changes.
  • Generated metadata, package, or installation impact: none.

Expected effects:

  • Read existing files or captured data.
  • Change process memory, registers, files, or configuration.

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:fast and git 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

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

@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge; the wording changes leave destination checks and error classification intact.

Summary

SafeOutputTree now uses neutral wording for output-destination errors and several write and cleanup errors.

  • Output failures now describe the selected destination.

Reviews (1) · Last reviewed commit: "fix(outputs): use neutral destination di..." · Reviewed by Greptile

@morluto
morluto marked this pull request as ready for review October 28, 2026 23:08
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 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-28T23:09:22.418461Z 0fa9ecd 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.

@morluto
morluto merged commit 0448f31 into main Oct 29, 2026
42 of 44 checks passed
@morluto
morluto deleted the codex/output-destination-guidance-7396 branch October 29, 2026 00:42
@morluto morluto added the bug Something isn't working label Nov 22, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] export_environment_bundle calls its bundle destination an extraction output root

1 participant