Skip to content

feat(deep-scan): read saved recovery state before enabling new writers - #919

Open
mldangelo-oai wants to merge 315 commits into
mainfrom
mdangelo/codex/deep-compatible-reader
Open

mldangelo-oai wants to merge 315 commits into
mainfrom
mdangelo/codex/deep-compatible-reader

Conversation

@mldangelo-oai

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

Copy link
Copy Markdown
Collaborator

Summary

Deep Scan can finish a selected result after its original owner rollout has been archived or lost. This is the compatibility reader for the durable publication writer in #907. Release this reader first.

Changes

  • Read the accepted selection, execution settings and usage owner from the workbench. Verify the publication digest before completing the scan. The SDK rejects custom validation on fresh and resumed Deep Scans.
  • Preserve the selected workbench script’s entry point. Pass each worker its own scan’s limits, recorded parent settings and current authorized read roots. Read plain and compressed rollouts from the recorded execution home.
  • Reconcile late exact usage with provisional counters for the matching turn and model. Keep ambiguous model costs unpriced. An indexed subtotal can establish that a budget was exceeded even when the full cost is unknown.
  • The Python and SDK openers preserve released migration history, reconcile recognized reader previews by name into slots 82–85, and recognize writer context already stored at slot 86. Original receipt timestamps survive the upgrade.

Testing

  • Reopened 22 SQLite starting layouts in reader → writer → reader → writer order using the SDK migration logic. All 88 openings preserved the covered worker, session, selection and accounting data and passed integrity and foreign-key checks. Earlier end-to-end tests also exercised the Python and Node openers against ten historical databases.
  • After the feat(deep-scan): verify frozen inputs when resuming publication #907 writer saved a capped publication and its lease expired, this reader retained the exact terminal selection with zero worker dispatches. The released 0.10.1 reader restarted discovery on the same fixture.
  • Synthetic fixtures cover concurrent workers with independent settings, delayed receipts across turns, missing archives, partial budget measurements, and repeated completion. Source CI passed on Linux, macOS and Windows. Hosted checks

Risk and rollout

Keep the reader release available for rollback. Let older writers finish before enabling #907. An unreadable attributed archive can stop a budgeted resume before dispatch. Optional cost observation can return a warning, and incomplete measurements can leave the final estimate unavailable.

Public disclosure review

Reviewed the incremental changes, synthetic tests, title, body and available public discussion. Earlier reviews and inspections of historical CI output apply to their original revisions. Newly generated hosted output has not been reviewed.

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

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

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

@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: 3f697f5b90

ℹ️ 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 thread sdk/typescript/src/scan-logs.ts Resolved

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

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

@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: 43d588e41f

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

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

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

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

ℹ️ 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 thread sdk/typescript/src/cost.ts Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants