Skip to content

fix(detector): detect partial namespace replay#165

Closed
prasannakotyal wants to merge 1 commit into
gpu-mode:mainfrom
prasannakotyal:kg-blue-216-partial-namespace-replay
Closed

fix(detector): detect partial namespace replay#165
prasannakotyal wants to merge 1 commit into
gpu-mode:mainfrom
prasannakotyal:kg-blue-216-partial-namespace-replay

Conversation

@prasannakotyal

Copy link
Copy Markdown

KernelGuard-Red-Submission: 216

Adds PARTIAL_NAMESPACE_REPLAY for custom_kernel assigned from partial(_run, SimpleNamespace(...)) where the bound namespace holds replay state. The detector requires:

  • custom_kernel assigned from functools.partial/partial
  • the bound first argument is SimpleNamespace with a None-valued field
  • the helper mutates that namespace field from input-derived data
  • an input-independent guard over the same field
  • a no-compute fast path returning the same field

Local verification:

  • red_104_partial_namespace_replay.py -> hacked, PARTIAL_NAMESPACE_REPLAY
  • red_59_partial_storage_replay.py -> valid
  • red_35_partial_bound_method_replay.py -> valid
  • clean partial fixtures -> valid
  • clean fixtures -> valid
  • python -m py_compile kernelguard.py

@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 2, 2026 05:13 — 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.

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