Skip to content

test: preserve original child writeup references - #1152

Merged
mldangelo-oai merged 2 commits into
mdangelo/codex/pr939-split-28-follow-up-outputfrom
mdangelo/codex/pr939-split-29-finding-sources
Oct 4, 2026
Merged

mldangelo-oai merged 2 commits into
mdangelo/codex/pr939-split-28-follow-up-outputfrom
mdangelo/codex/pr939-split-29-finding-sources

Conversation

@mldangelo-oai

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

Copy link
Copy Markdown
Collaborator

Part 29 of 46. Previous: #1151 · Next: #1153 · Stack index

Summary

Keep projection regression coverage focused on the verified child-relative writeups introduced in part 12. Remove tests for the superseded copying behavior.

Changes

  • Update canonical projection fixtures and retain assertions for original evidence links.
  • Remove obsolete copying and namespace-replacement expectations from Python and SDK tests.

Testing

Projection tests passed at the owning earlier boundary and both later affected boundaries; this layer retains original-evidence reference checks.

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

Draft-input compatibility takes effect in part 12; this layer updates the remaining projection tests. Saved parent scans continue to retain their original child output and scan-local file checks.

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

@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 ⚠️ Failed 2026-10-04T17:35:30.133339Z d8fdc41 Draft marked ready
🔒 Security Review ⚠️ Failed 2026-10-04T17:35:37.125651Z d8fdc41 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 98677d26e8

ℹ️ 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 implementation consistently preserves child writeup references across projection, validation, rendering, and recovery tests.

Review effort: Balanced
Findings: None

What changed in this PR

Links merged findings to child-scan writeups in place, avoiding redundant copies while preserving safe scan-local access.

Changes:

  • Retains original child writeup paths during projection.
  • Expands report-path schemas and rendering validation.
  • Updates fixtures and projection/recovery tests.
File Description
sdk/​typescript/​tests-ts/​scan-projection-fixtures.test.ts Tests retained child evidence references.
plugins/​codex-security/​tests/​test_workbench_scan_composition.py Verifies stopped scans retain original writeups.
plugins/​codex-security/​tests/​test_scan_projection.py Updates projection and symlink behavior tests.
plugins/​codex-security/​tests/​fixtures/​scan-projection/​canonical-child.json Defines child-relative projected paths.
plugins/​codex-security/​scripts/​report_projection.py Accepts Deep Scan child writeup paths.
plugins/​codex-security/​scripts/​project_scan_artifacts.py References child writeups instead of copying them.
plugins/​codex-security/​schemas/​tools/​scan-draft.schema.json Allows nested writeup paths.
plugins/​codex-security/​schemas/​findings.schema.json Allows retained Deep Scan writeup paths.

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

@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-28-follow-up-output branch from 849fd6a to adbc041 Compare October 1, 2026 07:25
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-29-finding-sources branch from 98677d2 to 022f16b Compare October 1, 2026 07:25
@mldangelo-oai mldangelo-oai changed the title refactor: link merged findings to their original writeups refactor: link merged findings to original writeups Oct 1, 2026

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

The earlier evidence-link defect is fixed here. I reran the reproduction at this PR's own head, 022f16b: findings/check/check.md can link to ../../artifacts/trace.txt, and the projected parent entry retains a working link through the original child tree. Both original and projected evidence paths exist. The own-head projection/report suites passed (76 tests), and the same reproduction passes at the stack tip.

@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 retained-writeup projection change at 022f16b4916e21398cd3b633b34d8008e009303f with three independent passes and root verification. No introduced actionable findings remain. The exact plugin build, 49 Python tests, and eight SDK projection tests pass. Replaying the earlier cross-directory evidence-link probe now resolves both the original and parent-facing links correctly.

Two reviewers flagged that projected drafts do not satisfy the tool input schema. Exact base/head comparison shows that mismatch already exists in the base, so it is not reported as a new regression here; its actual caller path remains part of the stack integration review.

@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-29-finding-sources branch from 022f16b to f3fcd7d 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.

The previously completed three independent passes carry forward after verifying the patch is identical; root reconciled the current base and discussion.

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-29-finding-sources branch from f3fcd7d to e8adf46 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 e8adf46c0bd80ce20f530a7268a16d752ff2cb5e. Three independent high-reasoning passes covered the complete changed patch and tests; root source checks and focused reproductions informed this decision.

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-28-follow-up-output branch from 267ecf0 to bbd8b21 Compare October 2, 2026 01:37
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-29-finding-sources branch from e8adf46 to 1de7f41 Compare October 2, 2026 01:37
@mldangelo-oai mldangelo-oai changed the title refactor: link merged findings to original writeups refactor: align draft inputs with original child writeups Oct 2, 2026
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-28-follow-up-output branch from bbd8b21 to bcdf521 Compare October 2, 2026 01:56
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-29-finding-sources branch from 1de7f41 to 0f6d79f 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 0f6d79fbfdb8.

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-29-finding-sources branch from 0f6d79f to 9936a85 Compare October 2, 2026 02:47
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-28-follow-up-output branch from bcdf521 to 507421a Compare October 2, 2026 02:47
@mldangelo-oai mldangelo-oai changed the title refactor: align draft inputs with original child writeups test: preserve original child writeup references Oct 2, 2026

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

Completed three fresh independent full-diff reviews and root verification at 9936a85fc2f3.

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-28-follow-up-output branch from 507421a to aec98a8 Compare October 2, 2026 03:52
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-29-finding-sources branch from 9936a85 to 1e5a051 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 1e5a051c7d9a.

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.

Consolidate approved Deep Scan changes into the parent topic branch.
@mldangelo-oai
mldangelo-oai marked this pull request as ready for review October 4, 2026 17:34
@mldangelo-oai
mldangelo-oai merged commit a021eb3 into mdangelo/codex/pr939-split-28-follow-up-output Oct 4, 2026
1 check passed
@mldangelo-oai
mldangelo-oai deleted the mdangelo/codex/pr939-split-29-finding-sources branch October 4, 2026 17:34
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