Skip to content

fix(agent): exclude delivered prompt files from workspace diffs - #446

Open
karanb192 wants to merge 2 commits into
alibaba:mainfrom
karanb192:fix/exclude-delivered-prompt
Open

karanb192 wants to merge 2 commits into
alibaba:mainfrom
karanb192:fix/exclude-delivered-prompt

Conversation

@karanb192

@karanb192 karanb192 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

When skill-up delivered a prompt through a workspace file, the diff used for grading could include the framework's own prompt. Engines now register the exact runtime file with the existing diff exclusion mechanism. Inline delivery leaves the exclusion list alone.

Changes

The shared delivery metadata records the workspace source separately from the host-side prompt artifact. Multi-turn aggregation carries those source paths forward with the other framework files.

Test plan

The resumed-delivery regression failed on the base branch for file-backed delivery and passed with the fix. It checks that the runtime path is registered for file delivery and stays eligible for diffing when delivery is inline.

An evaluator-level test runs the real Qoder adapter between the workspace snapshot and diff. With file delivery, the diff omits the prompt file and keeps a sibling the agent wrote in the same directory. With inline delivery, a file the agent writes at the prompt path stays in the diff.

Local checks passed with make verify, go test -race ./... and the Codex plugin unit tests.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T02:11:17.564120Z 31babf6 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.

@zpzjzj

zpzjzj commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

I reviewed 31babf6 and found no blocking issues. The change excludes the exact workspace prompt path, not the host-side copy, and the existing multi-turn aggregation preserves that exclusion. Inline delivery adds no exclusion. As a non-blocking follow-up, an evaluator-level test could confirm that file-backed delivery hides only the prompt, that sibling files remain visible, and that an inline-only run still shows changes at the same path. This was a static review; I did not rerun the tests.

Run the real Qoder adapter between the evaluator's workspace snapshot
and diff. With file-backed delivery the diff omits the prompt file but
keeps a sibling the agent wrote in the same directory. With inline
delivery an agent-written file at the same path stays in the diff.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants