Skip to content

CodeQL: track native visual response versions - #816

Merged
GraciousGazelles merged 3 commits into
mainfrom
codex/w13764-visual-codeql-20260907
Sep 7, 2026
Merged

GraciousGazelles merged 3 commits into
mainfrom
codex/w13764-visual-codeql-20260907

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • bind the visual response guard detector to the current Android and browser provider paths
  • follow local response aliases/reborrows and reject wrong-object, branch-only, overwritten, success-reset, and image-removal paths
  • require the guard implementation to remain body-backed, add a production coverage-witness metric, and add focused bad/safe/held-out fixtures

Validation

  • git diff --check passed locally
  • CodeQL pack compilation and query tests are intentionally delegated to the existing GitHub-hosted codeql-query-tests workflow; no local CodeQL/build/test execution was performed
  • production applicability is read back through the NativeVisualResponseCoverageWitness summary query

No workflow permissions, required checks, or production Rust sources are changed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 7, 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
🔒 Security Review ✅ Completed 2026-09-07T13:41:03.934114Z c497988 PR opened
ℹ️ 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.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request refactors and enhances the CodeQL contract queries for Rust computer-use handlers by extracting the core flow logic into a shared library (NativeVisualResponseFlow.qll), expanding coverage to browser-based handlers, and adding a production coverage witness metric. The review feedback highlights several critical areas for improvement in the CodeQL implementation to ensure robustness and precision. Specifically, the reviewer recommends replacing fragile toString().regexpMatch(...) patterns with structural AST matching and data-flow tracking, and replacing line-number comparisons with control-flow graph (CFG) reachability analysis to accurately determine execution order.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 7, 2026
Merged via the queue into main with commit 324b985 Sep 7, 2026
83 checks passed
@GraciousGazelles
GraciousGazelles deleted the codex/w13764-visual-codeql-20260907 branch September 7, 2026 20:04
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.

1 participant