Skip to content

fix(detector): detect function defaults replay#194

Closed
prasannakotyal wants to merge 1 commit into
gpu-mode:mainfrom
prasannakotyal:kg-blue-183-function-defaults-replay
Closed

fix(detector): detect function defaults replay#194
prasannakotyal wants to merge 1 commit into
gpu-mode:mainfrom
prasannakotyal:kg-blue-183-function-defaults-replay

Conversation

@prasannakotyal

Copy link
Copy Markdown

KernelGuard-Red-Submission: 183

Detects replay through mutable storage installed into custom_kernel.__defaults__ and loaded inside the entrypoint.

The pass requires:

  • module-level mutation of custom_kernel.__defaults__ with mutable storage
  • local alias loaded from that defaults tuple
  • a no-compute fast path whose test does not depend on live input
  • fast-path return by subscript from the alias
  • mutation of that same alias inside the entrypoint

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_67_function_defaults_replay.py

@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 2, 2026 14:38 — 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. We are not merging this narrow variant separately because the consolidated rule-family implementation in #273 is the merge path for this detector area.

@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