Skip to content

fix(plugin): keep Deep Scan guidance in structured output - #1029

Merged
ianw-oai merged 1 commit into
mainfrom
fix/deep-scan-structured-guidance
Sep 24, 2026
Merged

ianw-oai merged 1 commit into
mainfrom
fix/deep-scan-structured-guidance

Conversation

@ianw-oai

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #1026. Hosts that use structured MCP output still miss the Deep Scan completion and cancellation instructions stored only in text.

Changes

  • Add scanDir and instructions to successful and canceled Deep Scan results. Use the same instructions in the text response without changing its wording.
  • Update the tool description and skill to use the structured scan ID and directory.
  • Extend the stdio lifecycle test to check structured success and cancellation guidance and its agreement with text output.

Testing

  • Stdio lifecycle regression: failed on the base code because structured cancellation instructions were missing; passed with this change. The passing run also checks success guidance after an MCP restart.
  • node --test plugins/codex-security/mcp-app/tests/test_deep_scan_stdio_lifecycle.mjs — passed with synthetic workers in a private temporary directory, using real filesystem ownership.
  • MCP type check — passed.
  • Prettier check on all three changed files — passed.
  • Ruff 0.16.7 lint and format checks for the plugin — passed.
  • pnpm --dir sdk/typescript run build:ci — passed.
  • Plugin source compatibility check and all nine tests — passed.
  • git diff --check — passed.

Risk and rollout

This adds structured response fields. Existing text, scan IDs, manifest paths, and error responses are unchanged. Worker execution, scan ownership, and completion checks are unchanged. A plugin release is required. This has not been tested with a live model run.

Public disclosure review

  • No customer, partner, prospect, or user identities, data, or identifying details are included.
  • No credentials, personal data, private source, scan findings, or nonpublic links or tickets are included.
  • I reviewed the branch name, title, description, commits, changes, comments, logs, screenshots, attachments, and links for public disclosure.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 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
🔒 Security Review ✅ Completed 2026-09-24T22:13:48.911943Z 7c7cb2c 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.

@github-actions github-actions Bot added the bug Something isn't working label Sep 24, 2026
@ianw-oai
ianw-oai merged commit 2a3dcbd into main Sep 24, 2026
57 checks passed
@ianw-oai
ianw-oai deleted the fix/deep-scan-structured-guidance branch September 24, 2026 23:30
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.

2 participants