Skip to content

fix(scan): restore concrete discovery guidance for Standard and Deep scans - #2246

Merged
mldangelo-oai merged 2 commits into
mainfrom
mdangelo/codex/restore-shared-audit-guidance
Nov 2, 2026
Merged

mldangelo-oai merged 2 commits into
mainfrom
mdangelo/codex/restore-shared-audit-guidance

Conversation

@mldangelo-oai

@mldangelo-oai mldangelo-oai commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Restore concrete discovery instructions to the shared audit used by Standard scans and Deep discovery workers. A focused investigator can now close the original question and pursue a different source-backed lead on the same path within the authorized scope and budget.

Changes

  • Give the independent auditor vulnerability classes to consider at the interfaces it encounters. Keep finding admission tied to the reachable operation, effective control, and consequence.
  • Ask focused investigators to compare the object or representation a guard checked with the one the sensitive operation uses, including changes between the check and the first effect.
  • Extend the synthetic discovery eval with two vulnerable and safe pairs. One confines file paths but lets the requester choose another tenant. The other verifies a signed grant but consumes a different submitted grant. Include a focused exercise that starts with the path traversal question.
  • Grade an unlabelled affected location using a role on a verbatim code snippet covering the same expected line. A safe sibling cited as an expected control is comparison evidence.
  • Allow the reviewed shared workflow in the SDK custom-validation adapter alongside the previous version.

Testing

  • Ruff lint and formatting, SDK build:ci, plugin source compatibility, all nine checker tests, SDK types and formatting, and the eval TypeScript build passed.
  • The full Linux SDK suite passed twice across eight CI shards, once with seed 12345 and once with randomized ordering. Each run had 7,504 passes and 108 skips.
  • All 146 Standard and secret-discovery eval tests passed, including both cases that carry accepted findings through the actual workbench into the sealed report.
  • Exercised the final fixture routes with Flask, signed sessions, signed grants, and SQLite. Reproduced both bugs, verified both safe routes, and checked rejection of traversal, invalid grant pairs, excess entries, oversized requests, and unauthenticated access.
  • All 47 custom-validation tests passed (340 assertions). Verified the compiled SDK embeds the packaged baseline and focused investigator instructions in custom discovery and hands provisional findings to the SDK-owned validation turn. The adapter accepted the previous reviewed workflow and rejected a one-byte unreviewed change.
  • Ran matched production Deep scans with the previous and restored instructions on the final synthetic statement and grant fixtures. Both completed with the two expected findings and no findings against the safe routes. The previous grader scored each saved report 0/2 because their affected locations omitted roles. Regrading the same two sealed reports with the corrected grader scored each 2/2, with zero unmatched findings, evidence errors, or safe-control flags. This agrees with manual adjudication and shows no recall gain in this pair.
  • Replayed each of the three safe controls with an injected accusation and with an expected-control citation. Each accusation was flagged exactly once and each comparison stayed clear. Six corrupted or misattributed variants received zero credit.
  • A separate focused exercise used the traversal question on an earlier version of the statement fixture. The investigator ruled out traversal, reported the tenant-selection flaw, and cited the session-bound sibling as a control.

Risk and rollout

Suggested release highlight

Standard and Deep scans again name vulnerability classes at relevant interfaces. Focused investigators can follow unexpected in-scope leads and check which value reaches a sensitive operation. The change can affect findings and investigation time. The synthetic cases do not establish a general change in recall.

Related to #2242.

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.

@github-actions github-actions Bot added the bug Something isn't working label Nov 2, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 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
📝 Code Review ✅ Completed 2026-11-02T10:45:46.675818Z 28efdd7 New commits
🔒 Security Review ✅ Completed 2026-11-02T10:46:27.515084Z 28efdd7 New commits
ℹ️ 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.

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

Thanks—no blocking findings in this owner-level merge-safety review. The shared discovery guidance remains bounded by authorized scope and evidence, and the custom-validation adapter preserves the SDK-owned validation handoff. The two new synthetic cases and their safe siblings exercise the intended control distinctions.

Validation: Ruff, SDK/plugin/eval builds, types and formatting passed, along with 153 local tests, 23 Flask fixture checks and built-adapter compatibility probes. Local persisted integration cases hit the existing filesystem ownership guard; no complete local integration-suite pass is claimed. Relevant hosted eval and SDK checks passed on the tested merge, whose changed PR files match this head. Model-quality comparisons were not rerun; these checks do not establish a general recall improvement.

@mldangelo-oai
mldangelo-oai merged commit 6942ebf into main Nov 2, 2026
86 checks passed
@mldangelo-oai
mldangelo-oai deleted the mdangelo/codex/restore-shared-audit-guidance branch November 2, 2026 11:00
@github-actions github-actions Bot mentioned this pull request Nov 2, 2026
3 tasks
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