Skip to content

refactor!: simplify saved scans and remove retired recovery - #1092

Merged
mldangelo-oai merged 10 commits into
mdangelo/codex/simplify-deep-scanfrom
mdangelo/codex/pr-939-cleanup
Sep 29, 2026
Merged

mldangelo-oai merged 10 commits into
mdangelo/codex/simplify-deep-scanfrom
mdangelo/codex/pr-939-cleanup

Conversation

@mldangelo-oai

@mldangelo-oai mldangelo-oai commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Stacked on #939. Remove retired resume/recovery compatibility, duplicated publication work, and redundant test setup: 3,183 net lines removed across 83 files. SDK sealed results can be finalized from their saved state without preparing Codex authentication or a model session.

Changes

  • Remove active v1 conversion and get-cli-scan-resume --migrate, unsealed legacy worker-fragment salvage, obsolete draft writers, and an unshipped migration backfill. Keep ordinary stopped-result recovery, sealed historical reports, source-integrity checks, and append-only migration DDL.

  • Share saved accounting, coverage/provenance helpers, publication fixtures, configuration copying, timeout selection, and build setup. Read authoritative completion metadata after fresh native success instead of completing twice.

  • Require explicit provenance, simplify terminal-resume rejection, and replace the broad composition test matrix with focused boundary scenarios. Keep fresh/resumed child-process auth, environment, executable, and permission checks.

  • Remove npm-layout executable discovery and unused dependencies; bundle one Zod runtime. Native executable selection uses CODEX_CLI_PATH or an executable on PATH.

  • Share report metadata and validation-list rendering without changing Markdown output; use a pure finding builder instead of writing unused contract fixtures.

  • Update stopped-result fixtures for canonical parent checkpoints and normalize the Windows protocol fixture executable. Integrate the current base and preserve historical cost attribution through the shared saved-result reader.

This implements the maintenance portion of the audit. Broader scheduler, reducer, and evidence-storage redesigns remain outside this PR. The smaller integration matrix deliberately covers fewer unusual failure combinations.

Testing

Passed on the updated source:

  • Portable plugin Ruff lint/format; SDK type generation/typechecking, formatting, and build:ci.
  • Plugin source compatibility check and all 9 checker tests.
  • Report rendering: 55 existing tests with byte-for-byte comparison against the prior renderer; independent review also checked 96 rendering and 6 fixture-equivalence cases.
  • Python CI suite: 1,156 passed, 8 skipped, and 109 subtests passed initially. Its 28 failures were missing local rg and date-time validation dependencies; all 159 tests in the affected files passed after correcting the isolated test tools. Every Python case is covered across these runs.
  • Fresh/resumed permission cases: 12 passed; API composition: 6 passed; execution ownership: 3 passed; preflight: 17 passed with one platform skip.
  • Final full SDK resume suite: 76 passed, including the saved-session ownership and native-unbound regressions.
  • Three fresh native Codex reviews plus an independent verifier found no actionable regressions at the final head.

The prior complete SDK runs at 241becb were not fully green locally: four tool/user-environment cases passed corrected reruns, and two sandbox integration cases require nested user namespaces unavailable in the local container. No ownership or permission protections were relaxed. GitHub CI supplies the platform coverage, including the corrected Windows protocol fixture.

Risk and rollout

This is a breaking compatibility cleanup. Interrupted v1 scans and unsealed v1 worker fragments require the prior release; completed historical reports remain readable. Implicit npm-managed executable layouts are no longer discovered: configure CODEX_CLI_PATH or expose the actual executable on PATH. Databases created by unreleased builds that inferred child membership from artifact paths are not backfilled; start fresh scans for those snapshots. Schema migrations remain append-only. Credential, unsafe-path, target/claim, artifact-seal, and per-scan isolation protections remain.

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.

@mldangelo-oai mldangelo-oai changed the title refactor!: remove retired resume compatibility and simplify saved scans refactor!: simplify saved scans and remove retired recovery Sep 29, 2026
@mldangelo-oai
mldangelo-oai marked this pull request as ready for review September 29, 2026 18:53
@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review the current cleanup head, including sealed-result completion, historical registration, and the documented compatibility removals.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 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 🔄 Running since 2026-09-29T22:08:26.622851Z f5737c4 New commits
🔒 Security Review ✅ Completed 2026-09-29T22:12:40.409271Z f5737c4 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: ed66c0fba6

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

@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review the updated cleanup head f5737c43ae1bfe1b2ba9b1483a5109f4f15f70eb, including report simplification, CI fixture corrections, and saved-result accounting after the base integration.

@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: f5737c43ae

ℹ️ 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 on lines 1071 to 1073
migrate_finding_workflow_columns(connection)
elif version == 39:
migrate_finding_workflow_review_columns(connection)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Backfill existing composition child roles

When upgrading a version-42 database containing Deep Scan pass records, migration 43 adds parent_scan_role as nullable but this path no longer marks the existing children as deep_pass. Those rows are then omitted by composition_children() in workbench_composition.py, so saved-result recovery, child cancellation, and usage accounting can ignore already-created passes and lose their findings or costs. Restore the migration-time backfill before recording version 43 as applied.

Useful? React with 👍 / 👎.

@mldangelo-oai
mldangelo-oai merged commit e367e17 into mdangelo/codex/simplify-deep-scan Sep 29, 2026
48 checks passed
@mldangelo-oai
mldangelo-oai deleted the mdangelo/codex/pr-939-cleanup branch September 29, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant