Skip to content

fix(detector): detect descriptor input float passthrough#248

Open
prasannakotyal wants to merge 5 commits intoSinatrasC:mainfrom
prasannakotyal:kg-blue-descriptor-input-float-red-100
Open

fix(detector): detect descriptor input float passthrough#248
prasannakotyal wants to merge 5 commits intoSinatrasC:mainfrom
prasannakotyal:kg-blue-descriptor-input-float-red-100

Conversation

@prasannakotyal
Copy link
Copy Markdown

Summary

  • extend INPUT_PASSTHROUGH_OUTPUT to descriptor-backed fake output wrappers
  • detect descriptors whose __get__ returns owner.<stored_input>.float()
  • require a wrapper class to store the entrypoint input into that attribute and the entrypoint to return the descriptor access directly

Target

KernelGuard-Red-Submission: 100

Validation

  • UV_CACHE_DIR=/tmp/uvcache uv run python -m py_compile kernelguard.py
  • descriptor wrapper _W(data).d returning data.float() sample: 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
  • __init_subclass__ extension passed official eval on PR fix(detector): detect init-subclass input float passthrough #247 with TP 20/20, FP 20/20, surgicalness 1.0

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

github-actions Bot commented May 5, 2026

KernelGuard Blue Evaluation

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