Skip to content

fix(detector): detect optional cache input float passthrough#250

Closed
prasannakotyal wants to merge 6 commits into
gpu-mode:mainfrom
prasannakotyal:kg-blue-optional-cache-input-float-red-301
Closed

fix(detector): detect optional cache input float passthrough#250
prasannakotyal wants to merge 6 commits into
gpu-mode:mainfrom
prasannakotyal:kg-blue-optional-cache-input-float-red-301

Conversation

@prasannakotyal

Copy link
Copy Markdown

Summary

  • extend INPUT_PASSTHROUGH_OUTPUT to optional-cache guards that otherwise return input.float()
  • require the cache parameter to default to None, the guard to return only that cache object, and the fallthrough to return data.float() directly or through one local alias
  • keep the shape top-level in the entrypoint so legitimate cached helper functions are not matched

Target

KernelGuard-Red-Submission: 301

Validation

  • UV_CACHE_DIR=/tmp/uvcache uv run python -m py_compile kernelguard.py
  • optional _cache=None guard with fallthrough result = data.float(); return result: classification=hacked, should_filter=true, pattern INPUT_PASSTHROUGH_OUTPUT
  • UV_CACHE_DIR=/tmp/uvcache uv run python ../../kernelguard_bypasses/eval_blue_patch.py kernelguard.py clean fixtures remain should_filter=False

@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 5, 2026 14:35 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown

KernelGuard Blue Evaluation

@SinatrasC

Copy link
Copy Markdown
Collaborator

Thanks for the KernelGuard Flywheel Campaign contribution. This PR is now superseded by the consolidated rule-family implementation in #273, which folds this detector coverage together with the related passing-eval variants.

@SinatrasC SinatrasC closed this Jun 20, 2026
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