Skip to content

refactor: delete the retired worker result protocol - #1169

Merged
mldangelo-oai merged 1 commit into
mdangelo/codex/pr939-split-45-retired-python-enginefrom
mdangelo/codex/pr939-split-46-retired-result-protocol
Oct 4, 2026
Merged

mldangelo-oai merged 1 commit into
mdangelo/codex/pr939-split-45-retired-python-enginefrom
mdangelo/codex/pr939-split-46-retired-result-protocol

Conversation

@mldangelo-oai

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

Copy link
Copy Markdown
Collaborator

Part 46 of 46. Previous: #1168 · Stack index

Summary

Remove the artifact tools and packaging used by the retired Deep Scan worker and reducer runtime.

Changes

  • Delete the artifact-writer source, worker/reducer schemas, templates, paging evaluation and direct tests.
  • Remove obsolete fields and dependencies, and simplify active artifact replacement to a temporary file followed by rename.
  • Keep active scan artifact tools and update their tests and package inventory.

Testing

Checks against the complete stack passed: SDK and MCP typechecks, formatting, Ruff, the SDK build, portable plugin compatibility and its tests, focused recovery/accounting tests, and local-artifact package smoke using exact cached dependencies. The package check was not a clean registry install. See this PR’s Checks tab for CI results for its current commit.

Risk and rollout

The worker entrypoint was already disconnected by the plugin switch. Active artifact writes also drop the per-file lock while retaining temporary-file-and-rename replacement; unused append helpers are removed.

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

@mldangelo-oai
mldangelo-oai requested a balanced review from Copilot October 1, 2026 06:53
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 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-04T17:31:37.539203Z 3e0083d Draft marked ready
🔒 Security Review ✅ Completed 2026-10-04T17:32:28.474967Z 3e0083d Draft marked ready
ℹ️ 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.

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.

Copilot review overview

🟢 Approval recommended

Retired protocol code and its consumers are consistently removed while active artifact contracts remain covered.

Review effort: Balanced
Findings: None

What changed in this PR

Removes the retired Deep Scan worker artifact protocol while preserving the active scan artifact workflow.

Changes:

  • Deletes legacy worker/reducer tools, schemas, templates, evaluations, and tests.
  • Simplifies artifact contexts, inventory access, and atomic replacement.
  • Removes obsolete runtime dependencies and updates packaging/tests.
File Description
CONTRIBUTING.md Removes obsolete reducer CI reference.
evals/​README.md Removes retired reducer evaluation.
evals/​deep-reducer/​.gitignore Deletes obsolete report ignore.
evals/​deep-reducer/​README.md Deletes retired evaluation documentation.
evals/​deep-reducer/​run.mjs Deletes retired evaluation runner.
plugins/​codex-security/​plugin-files.json Removes retired schemas from packaging.
plugins/​codex-security/​schemas/​tools/​deep-reducer.schema.json Deletes reducer schema.
plugins/​codex-security/​schemas/​tools/​review-items.schema.json Removes worker-only input schema.
plugins/​codex-security/​schemas/​tools/​worker-threat-model.schema.json Deletes worker threat-model schema.
plugins/​codex-security/​tests/​test_scan_contract_examples.py Retains Standard draft contract coverage.
plugins/​codex-security/​mcp-app/​artifact-writer-main.ts Deletes legacy worker MCP entrypoint.
plugins/​codex-security/​mcp-app/​package.json Removes SDK runtime dependency.
plugins/​codex-security/​mcp-app/​pnpm-lock.yaml Updates locked dependency graph.
plugins/​codex-security/​mcp-app/​tsconfig.json Removes deleted entrypoint.
plugins/​codex-security/​mcp-app/​src/​artifact-context.ts Removes worker/reducer context fields.
plugins/​codex-security/​mcp-app/​src/​artifact-deep-reducer-pages.ts Deletes reducer paging implementation.
plugins/​codex-security/​mcp-app/​src/​artifact-deep-reducer.ts Deletes reducer artifact operations.
plugins/​codex-security/​mcp-app/​src/​artifact-inventory.ts Removes worker inventory contract.
plugins/​codex-security/​mcp-app/​src/​artifact-io.ts Removes append/locking support.
plugins/​codex-security/​mcp-app/​src/​artifact-scan-draft.ts Removes legacy re-exports.
plugins/​codex-security/​mcp-app/​src/​artifact-storage.ts Removes obsolete layout metadata.
plugins/​codex-security/​mcp-app/​src/​artifact-threat-model.ts Deletes worker threat-model writer.
plugins/​codex-security/​mcp-app/​src/​artifact-worker-scan-draft.ts Deletes legacy worker draft implementation.
plugins/​codex-security/​mcp-app/​src/​deep-scan/​artifact-contracts.ts Deletes obsolete artifact contracts.
plugins/​codex-security/​mcp-app/​src/​deep-scan/​artifact-validation.ts Deletes legacy result validation.
plugins/​codex-security/​mcp-app/​src/​deep-scan/​artifacts.ts Deletes legacy artifact layout helpers.
plugins/​codex-security/​mcp-app/​src/​deep-scan/​templates.ts Deletes worker prompt rendering.
plugins/​codex-security/​mcp-app/​src/​server/​compact-artifact-tools.ts Removes worker/reducer tool registration.
plugins/​codex-security/​mcp-app/​templates/​deep-scan/​dedup.md Deletes reducer prompt.
plugins/​codex-security/​mcp-app/​templates/​deep-scan/​discovery.md Deletes discovery-worker prompt.
plugins/​codex-security/​mcp-app/​tests/​test_artifact_deep_reducer.mjs Deletes reducer tests.
plugins/​codex-security/​mcp-app/​tests/​test_artifact_deep_reducer_pages.mjs Deletes paging tests.
plugins/​codex-security/​mcp-app/​tests/​test_artifact_foundation.mjs Updates active artifact I/O coverage.
plugins/​codex-security/​mcp-app/​tests/​test_artifact_inventory.mjs Replaces worker cases with scan isolation.
plugins/​codex-security/​mcp-app/​tests/​test_artifact_storage_regressions.mjs Aligns contexts and bundling.
plugins/​codex-security/​mcp-app/​tests/​test_artifact_worker_threat_model.mjs Deletes retired writer tests.
plugins/​codex-security/​mcp-app/​tests/​test_deep_reducer_paging_eval.mjs Deletes paging regression evaluation.
plugins/​codex-security/​mcp-app/​tests/​test_deep_scan_artifact_validation.mjs Deletes legacy validation tests.
plugins/​codex-security/​mcp-app/​tests/​test_deep_scan_templates.mjs Deletes retired template tests.
plugins/​codex-security/​mcp-app/​tests/​support/​reducer-paging/​controlled-code-mode.mjs Deletes evaluation harness.
plugins/​codex-security/​mcp-app/​tests/​support/​reducer-paging/​deep-reducer-paging-fixture.mjs Deletes paging fixture.
plugins/​codex-security/​mcp-app/​tests/​support/​reducer-paging/​deep-reducer-paging-server.mjs Deletes evaluation server.
plugins/​codex-security/​mcp-app/​tests/​support/​reducer-paging/​deep-reducer-paging.mjs Deletes reducer evaluator.
Files not reviewed (1)
  • plugins/codex-security/mcp-app/pnpm-lock.yaml: Generated file

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

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 46213afcfc

ℹ️ 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 force-pushed the mdangelo/codex/pr939-split-46-retired-result-protocol branch from 46213af to d66eaca Compare October 1, 2026 07:25
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-45-retired-python-engine branch from 65fee77 to f6195ff Compare October 1, 2026 07:39
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-46-retired-result-protocol branch from d66eaca to b49ed19 Compare October 1, 2026 07:39
@mldangelo-oai mldangelo-oai changed the title refactor: delete the old worker result protocol refactor: delete the retired worker result protocol Oct 1, 2026
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-46-retired-result-protocol branch from b49ed19 to 835f0d1 Compare October 1, 2026 17:10
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-45-retired-python-engine branch from f6195ff to 50fcfff Compare October 1, 2026 17:10

@faizan-oai faizan-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed the retired result-protocol removal at 835f0d1, including the remaining artifact writer. The integrated plugin builds; SDK/MCP typechecking, compact artifact server checks, and tracked-source compatibility checks pass. No new issue found in this cleanup increment. This approval does not clear the active runtime/recovery issues tracked earlier in the stack.

@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-46-retired-result-protocol branch from 835f0d1 to f888263 Compare October 1, 2026 18:37
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-45-retired-python-engine branch from 50fcfff to cdeea3c Compare October 1, 2026 18:37
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-46-retired-result-protocol branch from f888263 to 79296c3 Compare October 1, 2026 20:29
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-45-retired-python-engine branch from cdeea3c to 18695d3 Compare October 1, 2026 20:29

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

Three independent passes and root verification found no actionable regression in the old worker protocol removal and retained artifact operations. All 27 focused artifact checks passed after rerunning the compact-server test against a stable bundle; its first attempt overlapped my local rebuild and is not a code finding. All 20 schema tests (44 subtests) passed.

Final-head validation also passed: clean SDK/plugin builds, MCP types, Ruff check and format with required 0.16.8, CI TypeScript build, source compatibility and all 9 compatibility tests. The exact-head npm archive passed all 596 entry checks plus installed public imports, NodeNext types, CLI/SDK lifecycle, credential locking, MCP initialization, and shared scan runtime smoke tests. No repository files were changed.

@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-46-retired-result-protocol branch from 79296c3 to f4b3eab Compare October 1, 2026 23:44
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-45-retired-python-engine branch from 18695d3 to 783458b Compare October 1, 2026 23:44

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

Three independent re-review passes and root reconciliation are complete for this restacked head.

No serious outstanding finding was identified in this change. The scoped prior review and current diff remain consistent.

Approval is for this change. Integrated-tip validation passed 1,357 SDK tests (31 skipped), 105 MCP tests (2 skipped), portable checks, types/builds and installed-package smoke. Other stack findings and known CI fixture failures still prevent the stack from being mergeable.

@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-45-retired-python-engine branch from 783458b to 43a2b25 Compare October 2, 2026 00:36
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-46-retired-result-protocol branch from f4b3eab to 06e75cf Compare October 2, 2026 00:36

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

Re-reviewed the real PR diff at 06e75cfed4bd36b520ff24322acdcf57befc5946. The patch is unchanged from the prior three-pass review. I reconciled the inherited changes in touched files and retained the prior verified findings and tests.

No serious outstanding finding identified in this patch; prior conclusions remain consistent with the unchanged change or the current re-review.

Validation across touched paths at branch tip 06e75cfe: 1,356 SDK tests, 867 Python tests plus 100 subtests, and 108 MCP tests passed; builds, types, portable checks and installed-package checks passed. These are integration checks at the branch tip, not a claim that every intermediate PR or its CI is clean.

@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-46-retired-result-protocol branch from 06e75cf to fec36f1 Compare October 2, 2026 01:37
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-45-retired-python-engine branch from 182b45d to be950cf Compare October 2, 2026 01:56
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-46-retired-result-protocol branch from fec36f1 to 355ec32 Compare October 2, 2026 01:56

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

Retained the three independent passes for the identical patch and reconciled inherited touched-file changes at 355ec321d0f4.

No actionable introduced finding survives the independent reviews and root reconciliation of this exact patch, touched-file changes, and current integration checks.

Current tip 355ec321 passed 75 report-projection tests, portable source checks, SDK build:ci and plugin build. The immediately preceding tip fec36f1d passed 1,360 SDK tests, 873 Python tests plus 100 subtests, 109 MCP tests, builds/types and the clean 600-entry installed-package check. Only report_projection.py and its test changed between those tips; SDK/MCP runtime files are byte-identical. Both descend from main 008a8b4d. These are integration checks, separate from own-head probes. No native Windows local run.

No serious outstanding finding introduced by this PR. Code review approval does not establish CI or merge readiness.

@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-46-retired-result-protocol branch from 355ec32 to 6ef8cbb Compare October 2, 2026 02:47
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-45-retired-python-engine branch from be950cf to 1cf170f Compare October 2, 2026 02:47

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

Retained the three independent passes for the verified identical patch and reconciled inherited touched-file changes at 6ef8cbb81683.

No actionable introduced finding survives the independent reviews and root reconciliation of this exact patch and inherited changes in touched files.

Integrated tip 6ef8cbb8, based on 008a8b4d, passed 1,388 SDK tests, 879 Python tests plus 100 subtests, 109 MCP tests, portable checks, builds and the clean 600-entry installed-package check. These are branch-tip integration checks, separate from own-head probes; no local Windows execution was performed.

No serious outstanding finding introduced by this PR. Code approval is separate from CI and merge readiness.

@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-45-retired-python-engine branch from 1cf170f to f0ed597 Compare October 2, 2026 03:52
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-46-retired-result-protocol branch from 6ef8cbb to 3e0083d Compare October 2, 2026 03:52

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

Retained three prior independent passes for the verified identical patch and reconciled inherited touched-file changes at 3e0083d9d4bf.

No actionable introduced finding survives the independent reviews and root reconciliation of this exact patch and inherited changes in touched files.

Branch tip 3e0083d9, based on 008a8b4d, passed 1,392 SDK tests, 881 Python tests plus 100 subtests, 109 MCP tests, builds, portable source checks and the 600-entry installed-package check. These are tip checks, separate from own-head probes. No local Windows run was performed. The tip excludes the dependency update merged separately in #1184; combined validation remains outstanding.

No serious outstanding finding introduced by this PR. Code approval is separate from CI and merge readiness.

@mldangelo-oai
mldangelo-oai marked this pull request as ready for review October 4, 2026 17:30
@mldangelo-oai
mldangelo-oai merged commit d519676 into mdangelo/codex/pr939-split-45-retired-python-engine Oct 4, 2026
46 checks passed
@mldangelo-oai
mldangelo-oai deleted the mdangelo/codex/pr939-split-46-retired-result-protocol branch October 4, 2026 17:30
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.

5 participants