Skip to content

CodeQL: fail closed on native visual response coverage - #846

Merged
GraciousGazelles merged 3 commits into
mainfrom
codex/codeql-visual-coverage-fail-closed
Sep 10, 2026
Merged

GraciousGazelles merged 3 commits into
mainfrom
codex/codeql-visual-coverage-fail-closed

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • add a production CodeQL problem query that fails closed when an expected Android/browser visual handler disappears or has no recognized successful Ok(...) response exit
  • keep the existing coverage metric for telemetry, and add a shared qltest fixture proving healthy=1, zero-success=0, missing=no-row while the new problem query flags the latter two
  • bind the production .qls membership and expected provider source paths with a required repository-policy verifier
  • route future provider/contract changes through the policy lane and run the verifier in both repo checks and CodeQL query tests

Validation

  • python3 .github/scripts/test_verify_native_visual_response_contract.py (5 tests)
  • python3 .github/scripts/test_classify_ci_paths.py (12 tests)
  • Python compile checks for modified/new scripts
  • reconstructed pre-change files hash exactly to frozen-main blobs
  • candidate commit is exactly one commit ahead of a11b33f81c93d4c7baab96e0108fa6a09e8dc7dc, with the expected 15-path diff
  • hosted CodeQL query compilation/qltests and required CI run on this PR

Remote-first provenance

  • workflow package: Remote-First Engineering v4.0.0, SHA-256 2a273e3f6979d5e1ab3eaba93c018fc1817b56acc22dd8d2781d1eb3cefabb53
  • review/publish parent: a11b33f81c93d4c7baab96e0108fa6a09e8dc7dc
  • candidate tree: d8f06e6342aef5f24eb4bd786a0de6198de6a1af
  • candidate commit: a535eced24aa4af273c0f3ef2aaaf711f4d71351
  • reconciliation: NO_CHANGE

Non-goal

  • this does not narrow the custom suite to rest-a/rest-b; that remains an optional performance optimization.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 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-09T23:36:24.844414Z a535ece 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 introduces a new CodeQL query, NativeVisualResponseProductionCoverageMissing.ql, along with its corresponding tests, to ensure that production Android and browser visual handlers have at least one recognized successful response exit. Additionally, it adds a verification script (verify_native_visual_response_contract.py) and associated unit tests to enforce fail-closed native visual-response CodeQL production wiring, and updates the CI path classification logic to handle these new contract paths. There are no review comments, so I have no feedback to provide.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 10, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 10, 2026
@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 10, 2026
Merged via the queue into main with commit b02f0e1 Sep 10, 2026
86 checks passed
@GraciousGazelles
GraciousGazelles deleted the codex/codeql-visual-coverage-fail-closed branch September 10, 2026 04:49
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