Skip to content

chore(bulk-scan): reconcile saved-result validation with main - #97

Closed
GautamSharma99 wants to merge 11 commits into
openai:mainfrom
GautamSharma99:fix/validate-multiscan-resume
Closed

GautamSharma99 wants to merge 11 commits into
openai:mainfrom
GautamSharma99:fix/validate-multiscan-resume

Conversation

@GautamSharma99

@GautamSharma99 GautamSharma99 commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Bulk scan used to trust completed receipts without checking the saved result.
#1720 included all ten commits from this PR and fixed #30 by validating the
saved contract and seal on resume.

Changes

The contributor branch now has the same tree as main. The PR diff is empty.

Testing

The installed CLI from the identical main tree skipped a valid completed scan
and preserved its policy result and cost. A malformed manifest or a findings
file with a mismatched digest sent the task to a new attempt and preserved the
previous files. A missing configured schema stopped resume before a worker
started. All 30 focused tests passed, with 214 assertions.

Risk and rollout

Version 0.5.0 shipped this fix. A scan that completed with partial coverage
can be reused when its saved contract and seal validate. This branch requires
no additional release.

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.

@GautamSharma99

Copy link
Copy Markdown
Contributor Author

@mldangelo-oai @ianw-oai
I updated bulk-scan resume handling so completed scans are reused only after validating the canonical contract, artifact hashes, manifest seal, required files, and complete coverage. Corrupted, modified, or incomplete results are now queued for another scan instead of being silently skipped. I also added support for configured plugin schemas, cancellation handling, documentation, and regression tests for malformed and tampered artifacts.

@mldangelo-oai mldangelo-oai added the bug Something isn't working label Aug 3, 2026
@mldangelo-oai mldangelo-oai changed the title fix: validate bulk-scan resume artifacts fix(bulk-scan): validate bulk-scan resume artifacts Oct 8, 2026
@mldangelo-oai mldangelo-oai added area:artifacts Saved scan state, storage, sealing, recovery, history, and artifact integrity. area:bulk-scan Multi-repository discovery, campaigns, receipts, and campaign resume. labels Oct 8, 2026
@mldangelo-oai mldangelo-oai changed the title fix(bulk-scan): validate bulk-scan resume artifacts fix(bulk-scan): validate completed results on resume Oct 8, 2026
@mldangelo-oai mldangelo-oai removed area:bulk-scan Multi-repository discovery, campaigns, receipts, and campaign resume. area:artifacts Saved scan state, storage, sealing, recovery, history, and artifact integrity. labels Oct 8, 2026

@mldangelo-oai mldangelo-oai left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’d move forward with this shared contract-loader approach for #30. It addresses corrupted artifacts without making resume depend on new private registration data.

I’ve carried the original commits into #1720 and updated the integration for current main: completion follows the manifest status, legacy completion receipts go through the same validation, and rejected attempts remain available. The affected test files passed 268 cases with one platform skip. All eight new corruption/status regressions fail with main’s resume implementation and pass with the repair.

The completed CI run on #1720 passed 64 checks, including Linux, macOS, and Windows tests. Local types and formatting passed, and both full SDK runs matched the same 22 failures reproduced on the main baseline, documented in that PR. Updating its description triggered a CI rerun, so that run and maintainer review are still pending on #1720.

@mldangelo-oai mldangelo-oai changed the title fix(bulk-scan): validate completed results on resume chore(bulk-scan): reconcile saved-result validation with main Nov 2, 2026
@mldangelo-oai

Copy link
Copy Markdown
Collaborator

Thanks for the resume fix. #1720 brought in this PR’s commits and closed #30. Bulk scan now checks the saved result before it skips a completed task. This branch has no remaining changes, so I’m closing it.

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.

multiscan resume skips corrupted artifacts without validating the scan contract

2 participants