Skip to content

fix(deep-scan): finish saving cancellation before returning to callers - #1260

Merged
mldangelo-oai merged 78 commits into
mainfrom
mdangelo/codex/deep-scan-lifecycle
Oct 13, 2026
Merged

mldangelo-oai merged 78 commits into
mainfrom
mdangelo/codex/deep-scan-lifecycle

Conversation

@mldangelo-oai

@mldangelo-oai mldangelo-oai commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Wait for worker cleanup and saved-result publication before returning an accepted Deep Scan cancellation.

Changes

  • Coordinate cancellation with worker admission and terminal parent state.
  • Preserve the original persistence failure when cleanup also fails.
  • Cover real Workbench/SQLite races and caller settlement order.

Testing

Recorded scoped validation passed the lifecycle and coordinator matrix, six MCP modules, 11 Python cases, 443 SDK tests with 27 skips, and all portable/type/build checks. The full SDK suite, Windows execution, and native compilation were not rerun.

Risk and rollout

Accepted cancellation waits until cleanup and publication settle while preserving the original persistence error. The former dependency #1269 is already merged and included in this branch.

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 provenance of inherited historical material remains unestablished, so the second disclosure attestation remains unchecked.

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

chatgpt-codex-connector Bot commented Oct 5, 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-10-11T20:37:01.681496Z 1662c9d New commits
🔒 Security Review ✅ Completed 2026-10-11T20:37:21.887061Z 1662c9d 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.

Reviewed the full contribution at ae1d397c57a76f33fb9aff418668b4997dcb856a with selected base e4eff6521926241c1ad1df1bb6395b71135e56d3, including changed tests and touched context, using three independent reviews followed by root synthesis.

No supported introduced finding.

Static source review; tests were inspected but not executed. CI, mergeability and integration are separate.

@mldangelo-oai mldangelo-oai changed the title fix(deep-scan): settle workers and publication before waiters fix(deep-scan): settle cancellation from saved terminal state Oct 5, 2026
@mldangelo-oai
mldangelo-oai changed the base branch from main to mdangelo/codex/scan-lifecycle October 5, 2026 19:24

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

Reviewed the complete contribution and changed tests with three independent review passes plus root synthesis. No supported introduced finding remains at this head. This is a static source review; tests were not executed, and CI and integration remain separate.

@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: 5b38ca9e72

ℹ️ 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 fix(deep-scan): settle cancellation from saved terminal state fix(deep-scan): finish saving cancellation before returning to callers Oct 7, 2026

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

Reviewed the diff and relevant surrounding code at abe48bd, with an independent second pass. No obvious correctness or regression issues found. Full local platform suites were not rerun. CI still has failed, canceled, or unfinished checks; those results remain separate from this source-review approval.

@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. Bravo.

Reviewed commit: 3f7ac6d913

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

Base automatically changed from mdangelo/codex/scan-lifecycle to main October 8, 2026 01:27
@mldangelo-oai mldangelo-oai added area:artifacts Saved scan state, storage, sealing, recovery, history, and artifact integrity. area:deep-scan Deep Scan coordination, worker scheduling, coverage, convergence, and resume. and removed area:artifacts Saved scan state, storage, sealing, recovery, history, and artifact integrity. area:deep-scan Deep Scan coordination, worker scheduling, coverage, convergence, and resume. labels Oct 8, 2026

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

Reviewed the diff and relevant callers at 4dd79b8, with an independent second pass. No actionable findings.

Focused validation: All production diff and coordinator/registry/server callers inspected. Clean uv CPython + Node26 focused coordinator/store/terminal-race/workbench-process suite: 13 test entries passed, zero failed. The initial ambient-Python run and first retry hit the 30s fixture timeout; the exact case and full focused suite passed with clean Python.

Validation limits: No Windows execution. No live model run.

CI still has failed, canceled, or unfinished checks. This source-review approval does not clear those checks.

@mldangelo-oai
mldangelo-oai merged commit 7905d70 into main Oct 13, 2026
121 checks passed
@mldangelo-oai
mldangelo-oai deleted the mdangelo/codex/deep-scan-lifecycle branch October 13, 2026 01:56
@github-actions github-actions Bot mentioned this pull request Oct 13, 2026
3 tasks done
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.

4 participants