Skip to content

feat!: deep scan upgrade - #2118

Merged
mldangelo-oai merged 7 commits into
mainfrom
dev/ianw/deepscan-v2
Nov 4, 2026
Merged

mldangelo-oai merged 7 commits into
mainfrom
dev/ianw/deepscan-v2

Conversation

@ianw-oai

@ianw-oai ianw-oai commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Deep Scan now repeats Standard scans and accumulates their findings in the host. The previous implementation launched a separate reducer to rewrite the combined report after each batch. The host now decides when to run another batch and publishes the findings it retained.

Changes

  • Merge completed scans in launch order. Later workers receive the titles and source locations already reported. The existing no-new threshold, scan cap and time limit bound the loop.
  • Compare observations to determine whether one fix covers both. The host can reopen a group when later evidence points to a separate fix. It retains each original observation along with the artifacts reviewed and limitations reported by each worker.
  • Remove the reducer worker, its prompt, paging tools and evaluation harness. Wait for every comparison in a batch to finish before checkpointing. Reserve a separate checkpoint directory for each writer so a late coordinator cannot overwrite a recovered scan’s result.

Testing

  • Ran 20 affected MCP suites covering host coordination, publication, receipt recovery, artifact validation and process lifecycle. The tests that initially failed during local setup passed with the built bundle and a private temporary directory. The stdio lifecycle test timed out under load and passed on its own. The executor suite passed all 46 cases and the iteration suite passed all 27 cases.
  • All 44 affected SDK tests passed, including packaged worker recovery, native configuration and Deep Scan workbench tests. All 321 affected Python tests and 36 subtests passed.
  • The first hosted SDK run caught a replay fixture that still tried to resume a removed reducer. Updated both the fixture and its caller to check fresh discovery, resumed discovery and a fresh comparison. All 15 profile-replay tests passed locally, including all eight affected CLI cases.
  • After integrating the latest main, rebuilt the 179-file bundled plugin and reran both packaged worker recovery tests successfully.
  • Ruff lint and format, the SDK CI build, the plugin source compatibility check and all 9 tests for that checker passed. The MCP TypeScript check passed.

Risk and rollout

Deep Scan counts consecutive completed scans with no new finding, which can change how long a run lasts and how many reports it returns. The host uses the configured model to compare plausible duplicates. It can resume an interrupted run from saved checkpoints and worker results.

Known issues before merge

Review confirmed 17 existing issues in the draft. They remain open after the update from main.

  • Cost and usage. Comparison turns can be omitted from scan usage and --max-cost enforcement. The compact completion response also omits measured usage and finalization metadata available in the saved result.
  • Comparison setup. Report-only comparisons still need tighter tool configuration. Some inherited MCP server configurations also prevent the comparison turn from starting.
  • Finding identity and evidence. Comparisons can collapse distinct instances, overlook a second independently broken control, omit distinguishing attack-path or validation evidence, or accept a match despite contradictory source confirmations.
  • Stopping and recovery. The scan can dispatch more workers after a comparison exhausts quota. A later success can clear a failure threshold reached earlier in the batch. A discovery deadline can interrupt comparison of accepted results. When a group splits, crediting the wrong worker can stop discovery early.
  • Comparison size. Repeated copies of the same claim can generate redundant model calls. A report set that exceeds the model context can prevent later comparisons from finding duplicates.
  • Saved and exported results. Restoring a legacy checkpoint can lose the accepted group’s combined explanation and locations. A later worker’s differing threat model can be omitted. Combining matching location ranges can lose the role used to select the primary location for export.

Two additional advisories concern progress and worker guidance. The progress display can omit the consolidation phase, and later workers can receive a caller location instead of the retained finding’s primary site.

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.

@ianw-oai
ianw-oai marked this pull request as ready for review November 4, 2026 00:14
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 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-11-04T00:17:11.307998Z 80835c7 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.

@ianw-oai ianw-oai changed the title refactor(deep-scan): merge repeated Standard scans in the host feat: deep scan upgrade Nov 4, 2026
@mldangelo-oai mldangelo-oai changed the title feat: deep scan upgrade feat!: deep scan upgrade Nov 4, 2026
@github-actions github-actions Bot added the breaking-change Breaking change called out in generated release notes label Nov 4, 2026
@mldangelo-oai
mldangelo-oai merged commit cb92c4f into main Nov 4, 2026
147 of 158 checks passed
@mldangelo-oai
mldangelo-oai deleted the dev/ianw/deepscan-v2 branch November 4, 2026 01:48
@github-actions github-actions Bot mentioned this pull request Nov 4, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change Breaking change called out in generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants