Skip to content

fix(deep): resume without historical worker prompts - #900

Open
mldangelo-oai wants to merge 8 commits into
mainfrom
mdangelo/codex/deep-scheduler-history
Open

mldangelo-oai wants to merge 8 commits into
mainfrom
mdangelo/codex/deep-scheduler-history

Conversation

@mldangelo-oai

@mldangelo-oai mldangelo-oai commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

Deep Scan resume can fail when historical worker prompts are missing even though accepted results remain intact. Recovery now reads the accepted artifacts and ordered merge inputs it needs to continue.

Changes

  • Remove unused scheduler history, prompt hashes, callbacks and attempt-path reconstruction.
  • Return the latest validated reducer result directly instead of rebuilding unused audit records.
  • Preserve discovery and reducer recovery, original settings and deadlines, accepted findings, and ordered merge inputs.
  • The latest cleanup (5f09d59a) removes 52 net production lines with no test changes.

Testing

On 5f09d59a:

  • Deep coordinator, store and real-store integration tests passed.
  • MCP typecheck and all five portable source checks passed: Ruff lint/format, SDK build, plugin source compatibility, and compatibility tests.
  • Three independent reviews of cb039309..5f09d59a reported no findings; a separate verifier checked the complete outputs and source.
  • Source and caller review against main 02c5137f found no interacting changes. A clean merge-tree check preserves the exact cleanup diff. This is not an end-to-end comparison.
Earlier qualification and preserved failures

The recovery regression set has eight expected failures and seven passing controls on its unchanged baseline; the implementation passes all 15 cases. The previous public head, cb039309, passed CI including Linux, macOS, Windows and installed-package checks. Those results do not qualify the new cleanup head.

The latest real-store integration test initially failed under the sandbox's filesystem ownership mapping, then passed on the normal host without changing product guards. Initial offline dependency installation failures are retained; the frozen-lockfile install passed using the existing package store. Native reviewers' attempted coordinator test commands failed before execution because their source-only checkouts lacked esbuild; these attempts are not counted as passing tests.

Risk and rollout

Accepted-artifact validation, persisted worker records, retries, scheduling and public results keep their existing owners. No schema or public CLI change. Local cleanup checks ran on Linux. Hosted checks and review must run on the new head after publication; this change does not merge or release the PR.

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

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review the current head, ce9e29dac43c53b81d023ab2e6a3cf74065b0a7f.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 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-09-17T03:00:24.259916Z 5f09d59 Manual request
🔒 Security Review Completed 2026-09-17T03:01:23.048581Z 5f09d59 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. Bravo.

Reviewed commit: ce9e29dac4

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

Copilot AI 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.

🟡 Changes recommended

Completed-reducer recovery lacks regression coverage, and the coordinator retains an unused import.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Removes unused Deep Scan scheduler history so restarts rely only on durable result artifacts.

Changes:

  • Removes execution audits and prompt hashes/path tracking.
  • Stops recovery from reading historical prompts.
  • Tests recovery after deleting discovery prompts.
File summaries
File Description
worker-runner.ts Removes unused execution evidence.
coordinator.ts Removes scheduler audit and prompt reconstruction.
test_deep_scan_coordinator.mjs Tests restart without discovery prompts.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread plugins/codex-security/mcp-app/src/deep-scan/coordinator.ts
Comment thread plugins/codex-security/mcp-app/tests/test_deep_scan_coordinator.mjs Outdated
@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review current head ab826dba4c65d1e70204160e7fb49f002540d54e against main at 7b77956c3067861559d31a3f3f791209b403643d. This update merges main, removes the unused filesystem import, and covers completed-reducer restart after its historical prompt is removed. The regression fails on main and passes here; the full MCP suite and portable source checks pass.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: ab826dba4c

ℹ️ 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 current head cbea8edc65951b7dc8a3b64f19d9422e56bae97b against main 1a3ca64333f894426dde0c0a7721d717c99f8cba. This update strengthens discovery and completed-reducer recovery tests, including preserved findings, accepted artifacts, merge inputs, context/settings, and deadlines.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: cbea8edc65

ℹ️ 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 mldangelo-oai changed the title refactor(plugin): remove unused Deep scheduler history fix(deep): resume without historical worker prompts Sep 16, 2026
@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review current head cb039309ab42d7e0d7705c86abbcf86d70881348 against main 1a3ca64333f894426dde0c0a7721d717c99f8cba. The final additive change removes an unused test parameter and duplicate completed-reducer recovery invocation. Distinct recovery regressions remain covered.

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

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: cb039309ab

ℹ️ 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 latest cleanup at 5f09d59a6ed0aab35a9ba4ba5ea18c00cc50c410. It removes unused scheduler bookkeeping while preserving persisted recovery and accepted-artifact validation.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 5f09d59a6e

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

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