Skip to content

test(sdk): trace findings through assessment, patching and verification - #3008

Open
mldangelo-oai wants to merge 74 commits into
test/cleanup-23-runtime-authfrom
test/cleanup-25-results-remediation
Open

mldangelo-oai wants to merge 74 commits into
test/cleanup-23-runtime-authfrom
test/cleanup-25-results-remediation

Conversation

@mldangelo-oai

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

Copy link
Copy Markdown
Collaborator

Summary

An assessment can finish for one finding while another still needs a retry. These tests follow that state from the host’s review frames to the saved scan, then check what the CLI reports when a patch changes the checkout or verification loses its output terminal.

Changes

  • Submit severity votes through the records command and inspect its review and terminal frames. Check the retained votes after a failed review, the exact diagnostic records when enabled and the default output when disabled.
  • Reopen saved validation results after changing evidence, guidance, output paths or model selection. Replace a finding’s pathname during a read and verify which finding was actually validated.
  • Use Git worktrees to distinguish real source changes from metadata edits and pre-existing changes. Resume a review from the saved request and verify the selected push destination.
  • Exercise verification through real pipes and a pseudo-terminal. Check the final result, exit status and signal cleanup after backpressure, disconnection or cancellation.
  • Recover a GitLab merge request that was closed between successful creation and a retry after a lost response. Exercise machine-readable lookup across all states and noninteractive creation.
  • Use the same Python environment builder for validation and saved-scan bootstrap tests. A nested environment now starts from the base interpreter and can load dependencies from the selected environment.

Testing

After merging the refreshed #3007 parent, all 26 affected Linux suites passed 458 tests with 3,350 assertions, plus five Windows skips. The 26 relabeled cases passed in a focused run.

Previous verification

On Linux, all 26 affected suites passed 458 tests, with five Windows skips. I ran the full stack of 41 changed suites at 00eb52b0 on Python 3.12.14 and Bun 1.4.4 with seed 12345. Across four shards, 840 tests passed in 2m 33s, with seven Windows skips. Three other suites using the shared helpers passed all 28 tests.

The compiled SDK passed both hosted package and remediation smoke scripts, including diagnostic forwarding and patch and verify. Type checking, formatting, Ruff, the CI build and all nine plugin compatibility checker cases passed.

The session test passed with the rollout append delayed by one second. Removing the await lost the expected response record. Disabling occurrence lookup failed the direct patch test, which selects the owner from two saved scans. Each of three separate GitLab faults also failed the lost-response test, including omitting closed requests, omitting JSON output and requiring confirmation before creation.

The three validation cases previously failed with a Python 3.10 virtual environment. After sharing the constructor, they passed with Python 3.10 and 3.12. A probe confirmed the selected 3.10.22 interpreter starts and loads tomli from the parent environment.

Risk and rollout

The pathname replacement test uses the packaged reader’s first read after identity checks. The terminal cases exercise actual signal delivery and check the worker’s result after cleanup. Native CI exercises platform-specific paths and PowerShell invocation.

This PR builds on #3007. The CLI patch tests use its native skill fixture and process proxy. Once #3007 lands, target main and rerun CI.

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.

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review 651a47d994cc against test/cleanup-base-results-remediation at f89c7067800b. With the updated prerequisites, does this PR’s own diff preserve the behavior the tests cover? Trace the affected code and identify any concrete regression those tests would miss.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 651a47d994

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

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

Thanks for moving these checks through saved findings and the actual validation/remediation paths. Owner-level merge-safety review of this exact head against the stacked base found one test reliability issue: the new session-event fixture starts an asynchronous append without awaiting it. The inline comment includes a controlled reproduction and the smallest fix. I found no other material issues in the 31-file diff.

Validation: focused runs produced 429 passes and 3 Windows-only skips, plus one failure caused by the local Git wrapper; both affected cases passed with native Git. SDK/plugin/CI builds, types, Ruff, changed-file formatting and the current plugin source check passed. Compiled CLI hosted-diagnostics and patch/verify smoke checks passed with a fake executor. Private faults were caught by the restored direct-ID selection and held-reader assertions. The 56 exact-head hosted checks are green. Full suites and local Windows/macOS execution were not run; recheck the retargeted diff and CI after the prerequisites land.

@mldangelo-oai
mldangelo-oai marked this pull request as ready for review December 5, 2026 21:40
@mldangelo-oai
mldangelo-oai changed the base branch from test/cleanup-base-results-remediation to test/cleanup-23-runtime-auth December 5, 2026 22:27

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review 4e9a8a98 against test/cleanup-23-runtime-auth. Please check the direct finding ID lookup, awaited session record writes, saved validation evidence, and the terminal and subprocess paths for patch and verify. Look for behavior the reduced fixtures could miss.

@mldangelo-oai
mldangelo-oai requested review from alandelong-oai and removed request for alandelong-oai December 6, 2026 09:08
@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 4e9a8a984b

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

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review 00eb52b0 against test/cleanup-23-runtime-auth. Please check the direct finding ID lookup, awaited session record writes, saved validation evidence, and the terminal and subprocess paths for patch and verify. Look for behavior the reduced fixtures could miss.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 00eb52b0d5

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants