Skip to content

feat(scans): stream reviewed findings during local scans - #2671

Open
mldangelo-oai wants to merge 19 commits into
mainfrom
feat/live-reviewed-findings
Open

mldangelo-oai wants to merge 19 commits into
mainfrom
feat/live-reviewed-findings

Conversation

@mldangelo-oai

@mldangelo-oai mldangelo-oai commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

People following a local Standard, Diff, or Deep scan can now see a reviewed finding before the final report and follow the same finding ID if the assessment changes or is withdrawn.

Changes

  • Add a paginated MCP tool, list_codex_security_finding_updates. Each scan has its own cursor, so another client can disconnect and replay the updates it missed.
  • Publish accepted review checkpoints for Standard and Diff. For Deep, publish the coordinator’s merged batch while later passes continue. Reconcile all three modes against the sealed report.
  • When an accepted checkpoint corrects a finding’s identity, withdraw the superseded ID and publish its replacement. Ordinary omissions remain visible, and accepted current findings take precedence over saved history.
  • Show updates through CLI progress and expose an optional TypeScript SDK onFindingUpdate callback. The CLI uses the existing flags and keeps JSON output on stdout and progress on stderr.
  • The local scan workflow documentation now explains publication timing, event kinds, and cursor handling. The published local-scan workflow and SDK callback examples should describe the same publication timing and cursor behavior.
  • Move the reviewed finding journal from preview slot 73 to migration 87 by name, preserving its data and original timestamp. Check the stored name before applying migration 87.

Testing

The correction at f237ae54 fixes superseded finding IDs remaining active in the feed. The main integration also includes two CI installer pin updates.

  • Four real writer-to-feed regressions failed before the correction and passed afterward, covering Standard and all three Diff targets. They also cover ordinary omissions, same-ID history, accepted current-ID precedence, repeated and nested history, and recovery after an optional journal append failure.
  • The five portable plugin checks passed in the required order, using Node 22.13.0 for the source checker. The documentation formatting check passed.
  • An independent 72-event terminal replay control passed at the corrected head.
  • The full Python 3.12 source suite passed with its recorded platform/filesystem skips and one Java-runtime skip. The unchanged Java collector testcase retains its original hosted pass; the receiving skip remains explicit.
  • The cold MCP suite passed with 2,001 passing leaf cases and 38 skips. The current package producer and archive checks also passed.
  • Both full SDK orders passed at the corrected head: 13,285 passed, 176 skipped, one todo, and no failures in each order. Types and formatting also passed.
  • Installed-package checks passed on Linux with Node 22.13.0, 24.0.0, 24.22.3, 26.0.0, and 26.13.1. The candidate Action integration, standalone native build, and all 37 Standard-eval cases passed.
  • The Linux amd64 customer image checks and ordinary Compose runtime passed. The AppArmor Compose configuration check passed; its runtime checks skipped under the existing host-detection check. Earlier f9dd3e8 executions retain their original attribution.
  • The receiving workflow files passed the four pinned actionlint, example, ShellCheck and offline zizmor commands before this correction. Their final consumed-input binding remains separate from hosted installer execution.

Risk and rollout

The plugin adds an append-only SQLite migration for the local journal. The SDK negotiates feed support with the installed plugin. Hosted and imported results keep their existing workflow. Clients that persist a cursor should key it by scan ID. An interrupted scan can have reviewed findings without a final disposition.

The journal uses migration 87. An upgrade moves its own preview receipt and leaves other migrations at 73 available to their owners. Use the updated journal build when reopening an upgraded database. An unknown receipt at 87 causes a transactional error.

Public disclosure review

Review covers the available PR material, workflow logs and artifacts, and service-exported Code Scanning reports. One historical workflow artifact and the original Code Quality upload payloads were not retrieved or 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.

@github-actions github-actions Bot added the enhancement New feature or request label Nov 15, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T01:12:25.342958Z f237ae5 New commits
🔒 Security Review ✅ Completed 2026-11-23T01:12:42.442464Z f237ae5 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.

Copy link
Copy Markdown
Collaborator Author

I checked the SQLite upgrade at 9cd4c49c. The released npm-v0.10.0 history ends at migration 72 and upgrades successfully. A database created with #2675’s stopped-phase migration 74 also acquired this PR’s finding journal and retained its migration 74 receipt.

There is a landing-order dependency with #275 / #2263 and #919 / #907. Each pair already uses 73 for another migration. I tested both histories with this PR’s Python migrator. It returned successfully because 73 was already recorded, then SELECT COUNT(*) FROM scan_finding_updates failed with no such table: scan_finding_updates.

Please choose the canonical 73/74 history before combining these branches. If this PR lands first, preserve its 73 for the finding journal, including in its dependent PR #2672. For any interim databases that need an upgrade path, test the populated history from each supported branch and a second migration run. A change to the number in the manifest alone cannot repair a database that already carries the conflicting receipt.

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.

1 participant