Skip to content

fix(scan): complete standard scans from accepted structured drafts - #1680

Closed
mluck-openai wants to merge 1 commit into
mainfrom
codex/standard-scan-structured-drafts
Closed

mluck-openai wants to merge 1 commit into
mainfrom
codex/standard-scan-structured-drafts

Conversation

@mluck-openai

Copy link
Copy Markdown
Collaborator

Summary

Standard repository and scoped-path scans could finish with handwritten canonical JSON containing invalid inventory values or missing coverage IDs. They now submit a final structured draft through the existing artifact tool, and completion rebuilds unsealed canonical output from the accepted checkpoint.

Changes

  • Require an accepted terminal checkpoint for normal Standard CLI/SDK scans; reject missing, incomplete, or digest-mismatched checkpoints.
  • Keep target metadata, inventory strategy, and surface IDs owned by the workbench. Update the scan prompt, plugin skill, and hosted executor documentation to require a successful final draft submission.
  • Preserve accepted findings, unresolved coverage, hardening metadata, and original diagnostics across rejected submissions and transport failures. Ignore later unselected checkpoints during completion.
  • Preserve import, custom-validation, mock, Deep, and diff completion paths. Update integration fixtures to exercise real draft acceptance and add malformed-output recovery regressions.

Testing

  • Structured-completion Python regressions: 20 passed.
  • Final SDK integration run covering hosted scans, imports, custom validation, MCP startup, and plugin bundling: 142 passed.
  • MCP draft-recovery tests: 182 passed.
  • SDK type checking, build:ci, formatting, pinned Ruff lint/format, portable source compatibility checks and their tests, and git diff --check: passed.
  • The full seeded SDK suite was not green. Its affected suites passed in the final integration rerun above. Remaining Deep-worker cancellation and PATH/Python-discovery failures reproduced on the unchanged baseline or passed in isolation; the full suite was not repeated after the compatibility fixes.

Risk and rollout

Normal Standard scans must publish through record_codex_security_scan_draft; file-only executors now fail with an actionable completion error. The bundled prompt and hosted executor contract are updated together. Existing completed artifacts retain their validation and idempotency behavior. No CLI flags, dependencies, database migrations, or service deployment are introduced.

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.

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.

1 participant