Skip to content

refactor(plugin): simplify Deep Scan worker launch - #1212

Merged
mldangelo-oai merged 6 commits into
mainfrom
refactor/pr1185-followup-12-launch
Oct 4, 2026
Merged

mldangelo-oai merged 6 commits into
mainfrom
refactor/pr1185-followup-12-launch

Conversation

@mldangelo-oai

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

Copy link
Copy Markdown
Collaborator

Summary

Worker launch and permission preflight repeat configuration and template setup. Consolidate those paths while preserving the child-process settings boundary.

Changes

  • Trace selected executable, environment, runtime/Cyber settings and artifact MCP settings through discovery and reducer launches.
  • Retain fresh and resumed worker behavior and explicit Python overrides.
  • Adapt the reducer-paging evaluation with the renderer signature and retain its prompt contract assertion.
  • Remove the version bridge only after updating all current consumers; reuse shared MCP test helpers.

Testing

  • Fresh executor, permission-preflight, parent-sandbox, template, coordinator, real IPC paging and source/shipped compact-server tests passed.
  • The five portable source checks passed. SDK changes passed types and normal formatting; MCP changes passed MCP typecheck and relevant formatting checks.
  • The combined integration tree is byte-identical to the previously validated combined tree: both full SDK runs (3,566 passed, 53 skipped each), 209 MCP checks and installed-package checks remain applicable. These full suites were not rerun for this history-only integration.
  • Three fresh native reviews and an independent verifier passed for this exact base/head. Hosted CI and Codex/Copilot reviews run on the updated head.

Risk and rollout

Per-scan isolation, credentials, permission profiles and executable selection remain protected. Child-process tests must continue covering both worker kinds, resumes and concurrent executors.

Targets main, with dff04368 merged. The original refactor contribution is unchanged; conflicts from the landed parent PRs are resolved.

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 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-04T05:05:58.913069Z 20197a8 Manual request
🔒 Security Review ✅ Completed 2026-10-04T05:05:28.286007Z 20197a8 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.

@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review the current head ea826c1.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: ea826c191d

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

Copilot review overview

🔵 Needs a closer look

It changes security-sensitive, cross-platform child-process permission and executable-selection boundaries that still require CI and human validation.

Review effort: Balanced
Findings: None

What changed in this PR

Simplifies Deep Scan worker launch, preflight, and prompt setup while preserving child-process configuration boundaries.

Changes:

  • Streamlines worker configuration, permission-profile handling, and prompt rendering.
  • Reuses shared validation, version, and temporary-directory helpers.
  • Expands coverage for resumed, concurrent, and platform-specific worker launches.
File Description
artifact-writer-main.ts Imports the package version directly.
server.ts Imports the package version directly.
src/​version.ts Removes the version bridge implementation.
src/​record.ts Adds shared non-empty-string validation.
src/​deep-scan/​executor.ts Simplifies launch configuration, event handling, profiles, and path resolution.
src/​deep-scan/​parent-sandbox.ts Reuses shared string validation.
src/​deep-scan/​permission-profile-preflight.ts Consolidates validation and preflight error handling.
src/​deep-scan/​templates.ts Simplifies template substitution and reducer arguments.
src/​deep-scan/​worker-runner.ts Reuses computed reducer worker IDs.
tests/​support/​reducer-paging/​deep-reducer-paging.mjs Adapts the reducer evaluation to the new renderer API.
tests/​test_deep_scan_executor.mjs Strengthens worker-boundary and configuration assertions.
tests/​test_deep_scan_permission_profile_preflight.mjs Reuses shared test helpers and predicates.
tests/​test_deep_scan_templates.mjs Validates template placeholders and renderer behavior.

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

codex added 3 commits October 3, 2026 20:35
Artifact storage and server entrypoints repeat context and file-handling work. Consolidate that work at its actual owners while preserving storage boundaries.
Worker launch and permission preflight repeat configuration and template setup. Consolidate those paths while preserving the child-process settings boundary.

@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 ea826c191dd389a81e741c54e8819200dcb34923 against its own base 3809b0c2ef2d5e4dc0169c696c8c80660096da09 with exactly three independent high-reasoning full-diff reviews, including every test diff, plus root verification. No serious introduced code defect identified.

The complete synthetic executor, permission-preflight and template test scripts passed, including fresh/resumed worker launch assertions. Fresh native host build, plugin/SDK builds, types, formatting, Ruff and portable source checks passed.

Local validation was on macOS arm64. No model execution, local Windows run or full installed-package smoke. Reviewed sources remained unchanged. This review covers this exact head; it does not establish combined-stack validation against current main.

@mldangelo-oai
mldangelo-oai force-pushed the refactor/pr1185-followup-05-artifacts branch from 3809b0c to 5f195ee Compare October 3, 2026 21:19
@mldangelo-oai
mldangelo-oai force-pushed the refactor/pr1185-followup-12-launch branch from ea826c1 to ac70da9 Compare October 3, 2026 21:19
@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review the current head ac70da9.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: ac70da92e5

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

Copilot review overview

🟢 Approval recommended

The refactoring preserves existing boundaries and provides focused coverage for the affected worker launch paths.

Review effort: Balanced
Findings: None

@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 earlier independent full-diff reviews after verifying that all 13 ordered file contributions are unchanged. Root verification reconciled the inherited server changes with the version import and worker launch changes. No actionable introduced findings remain at this exact head.

Fresh validation passed: 3 complete MCP test scripts, native host and plugin/SDK builds, types, formatting, Ruff and portable source checks, including nine source-check tests. Reviewed source files still match the head. Local validation was on macOS arm64; no local Windows run, model execution or installed-package smoke was performed.

At the prepublication check, current-head CI was still running with no reported failures. Approval is not a claim of completed CI or merge readiness.

codex added 2 commits October 3, 2026 22:10
# Conflicts:
#	plugins/codex-security/mcp-app/tests/test_compact_artifact_server.mjs
@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review the current head 04fb440.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 04fb4405c9

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

Copilot review overview

🔵 Needs a closer look

It modifies security-sensitive worker permission and child-process launch boundaries that warrant final human review.

Review effort: Balanced
Findings: None

Base automatically changed from refactor/pr1185-followup-05-artifacts to main October 4, 2026 04:38
@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review the current head 20197a8.

@mldangelo-oai
mldangelo-oai requested a balanced review from Copilot October 4, 2026 05:04
@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 20197a8fed

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

Copilot review overview

🟢 Approval recommended

All changed call sites and consumers are updated consistently, with preserved behavior and corresponding test coverage.

Review effort: Balanced
Findings: None

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

Source review approved for 20197a8feda12c09647d8cfb7580d169c133f5e0 against dff043688e8e0d7cb9079525eec82ab61eed195f.

Retained exactly three independent HIGH full-diff review passes, including every test diff. Independently verified the actual GitHub three-dot diff, identical ordered contributions, all 13 touched paths at both base and head (bytes and modes), and the three historical report hashes. No actionable introduced source finding remains. No additional full source pass or local test was run for this restack; prior validation retains its original revision, execution time, and limitations.

Hosted CI was still unfinished at the separate 2026-10-04 05:14 UTC observation.

This is source approval, not a merge-readiness or combined-integration claim. No fresh model execution, local Windows validation, native rebuild, or clean installed-package smoke test is claimed.

@mldangelo-oai
mldangelo-oai merged commit 634532d into main Oct 4, 2026
66 of 68 checks passed
@mldangelo-oai
mldangelo-oai deleted the refactor/pr1185-followup-12-launch branch October 4, 2026 08:23
@github-actions github-actions Bot mentioned this pull request Oct 4, 2026
3 tasks done
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.

4 participants