Skip to content

fix(bulk-scan): validate saved results before campaign resume - #466

Open
mldangelo-oai wants to merge 189 commits into
mainfrom
mdangelo/codex/authenticate-multiscan-recovery
Open

mldangelo-oai wants to merge 189 commits into
mainfrom
mdangelo/codex/authenticate-multiscan-recovery

Conversation

@mldangelo-oai

@mldangelo-oai mldangelo-oai commented Aug 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Bulk scans verify saved results against their private scan registration before reuse and can resume completed work offline after checkout cleanup. Checkout repair and report regeneration remain in the stacked follow-up #2332.

Changes

  • Verify the registered request, scan ID, checkout revision, manifest seal and canonical scope before accepting saved work. Recompute the severity decision from verified findings.
  • Preserve compatible older registrations, physical path traversal, literal CSV paths and saved batch reservations, including recovery without an invocation-wide cost cap. Keep the original request budget when an approved resume raises the running cost limit.
  • Account for work dispatched during recovery before validating its result. A rejected billed result consumes its attempt and budget; loading already completed work does not.
  • Give fresh retries distinct checkouts that preserve the repository basename. Reserve output before checkout allocation so interrupted work advances to another attempt, while accepting a validated empty output directory for an ordinary retry.
  • Reuse authenticated canonical scope after partial checkout cleanup, while retaining directory identity and cleanup ownership checks. Earlier persisted checkout layouts remain supported.
  • No commands, flags, environment variables or defaults change. The published bulk-scan recovery documentation should describe the registration requirement and retained retry checkouts, matching the repository CLI guide.

Testing

  • On f2be8000, the required portable source checks passed in order, including all nine source-checker tests. Earlier MCP formatting and six workflow, shell and release checks retain their original attribution with unchanged consumed source, configuration and tools.
  • The budget regression reproduced an unexpected second scan attempt before the correction; the identical focused command then passed all four cases, including repeated budget increases, completed-work reuse, unchanged-budget legacy recovery and registration without a cost cap. The corrected source and tests are unchanged in the current integration.
  • Earlier deterministic triage, secret-discovery, dependency-reachability and package-mapping contracts, Standard time-budget, workflow-routing, and standalone plugin host checks passed. Their original attribution is retained after checking the consumed inputs; no current version stamp is claimed for historical output. The standalone fixture exercised the actual host build with no SDK checkout.
  • Current version 0.11.0 receiving preflight, release-notes validation, SDK types and formatting passed. Both full SDK fixed and default orders passed: each reported 13,573 passes, 171 skips, one existing TODO and zero failures across 352 files. Default-order JUnit and coverage reports were retained.
  • MCP reported 2,024 passes and 38 skips. Python reported 4,307 passes, 152 skips and 422 passing subtests; all five Python report-gate tests passed. Package creation and inspection passed, validating 1,289 entries in the 0.11.0 archive and preserving the current CLI guide.
  • Installed-package smoke tests passed on Node 22.13.0, 24.0.0, 24.22.3 and 26.0.0. Action build metadata validation and CLI integration passed against the same 0.11.0 archive.
  • Native amd64 image build, entrypoint, sandbox, CSV-rejection, Git-helper and default Compose checks passed. The AppArmor owner checked configuration and skipped its runtime branch because this Docker host does not expose AppArmor. The unchanged synthetic release-index test retains its verified hosted result. Native ARM and AppArmor runtime coverage remain with hosted CI.
  • Three fresh source-only native reviews and independent full-transcript verification passed for the current commit and base.

Risk and rollout

Saved results lacking matching private registration are not reused. Older scoped results with ambiguous path identity may require another scan. Older registrations with an already-raised cost limit can require another scan when the original limit was not retained. Checkout cleanup still requires the original ownership marker, and retained occupied checkouts still require recovery or operator action. No live-model scan was performed in this receiving check.

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.

The existing provenance question about a documentation example removed from its current files remains unanswered in the available evidence. Historical material review retains its unavailable-original and converted-export limits; no new sensitive finding was identified.

@github-actions github-actions Bot added the bug Something isn't working label Aug 15, 2026
@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 15, 2026 •

Copy link
Copy Markdown

Security review completed. No security issues were found in this pull request.

Reviewed commit: 0afea57ee1

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0afea57ee1

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sdk/typescript/src/multiscan.ts Resolved
Comment thread sdk/typescript/src/multiscan.ts Resolved
Comment thread sdk/typescript/src/multiscan.ts Resolved
@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 7a0e18410a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 15, 2026 •

Copy link
Copy Markdown

Security review completed. No security issues were found in this pull request.

Reviewed commit: 7a0e18410a

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review the current head, d61658ebcec9e5a8176d3e19200fee020028fd49.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 16, 2026 •

Copy link
Copy Markdown

Security review completed. No security issues were found in this pull request.

Reviewed commit: d61658ebce

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d61658ebce

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sdk/typescript/src/multiscan.ts Resolved

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review the current head, df25b47d2605f0be7babf009343027575edbd459.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 16, 2026 •

Copy link
Copy Markdown

Security review completed. No security issues were found in this pull request.

Reviewed commit: df25b47d26

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: df25b47d26

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sdk/typescript/src/multiscan.ts Resolved

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review the current head, 4b270e7d3e39c27b61e944af9053a711db3116c5.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 16, 2026 •

Copy link
Copy Markdown

Security review completed. No security issues were found in this pull request.

Reviewed commit: 4b270e7d3e

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4b270e7d3e

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sdk/typescript/src/contract.ts Resolved

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 7ac503f82f

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 16, 2026 •

Copy link
Copy Markdown

Security review completed. No security issues were found in this pull request.

Reviewed commit: 7ac503f82f

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@zcrab-oai zcrab-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.

Draft feedback: narrow the authenticated-resume change before adding unrelated result and warning behavior.

Comment thread sdk/typescript/src/multiscan.ts Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Unknown error
ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 76749b6020

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sdk/typescript/src/finding-workflow.ts Resolved
mldangelo-oai added a commit that referenced this pull request Nov 20, 2026
mldangelo-oai added a commit that referenced this pull request Nov 20, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Unknown error
ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Unknown error
ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants