Skip to content

fix(detector): detect partial bound method replay#193

Closed
prasannakotyal wants to merge 1 commit into
gpu-mode:mainfrom
prasannakotyal:kg-blue-155-partial-bound-method-replay
Closed

fix(detector): detect partial bound method replay#193
prasannakotyal wants to merge 1 commit into
gpu-mode:mainfrom
prasannakotyal:kg-blue-155-partial-bound-method-replay

Conversation

@prasannakotyal

Copy link
Copy Markdown

KernelGuard-Red-Submission: 155

Detects functools.partial entrypoints that wrap a bound instance method which replays from mutated instance state.

The pass requires:

  • module-level custom_kernel = partial(instance.method, ...)
  • a resolvable module-level instance and class method
  • a no-compute fast path in that method that does not depend on live input
  • fast-path return from an instance attribute
  • mutation of that same instance attribute inside the method

Local validation:

  • uv run python -m py_compile kernelguard.py
  • uv run python /home/nino/repos/paradigma/kernelguard_bypasses/eval_blue_patch.py /home/nino/repos/paradigma/competition_state/kernelguard_mirror/kernelguard.py

Target red fixture: red_35_partial_bound_method_replay.py

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

github-actions Bot commented May 2, 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