Skip to content

fix(detector): detect helper guard state replay#228

Closed
prasannakotyal wants to merge 1 commit into
gpu-mode:mainfrom
prasannakotyal:kg-blue-helper-guard-state-red-309
Closed

fix(detector): detect helper guard state replay#228
prasannakotyal wants to merge 1 commit into
gpu-mode:mainfrom
prasannakotyal:kg-blue-helper-guard-state-red-309

Conversation

@prasannakotyal

Copy link
Copy Markdown

KernelGuard-Red-Submission: 309

Adds a narrow LAST_CALL_REPLAY pass for first-call replay hidden behind an input-independent helper guard.

The detector requires:

  • a nested helper in the entrypoint that returns a state-vs-None check
  • an entrypoint if that calls that helper
  • the guarded body assigning the same state from a live input-derived expression
  • a later return of that same state

Local validation:

  • UV_CACHE_DIR=/tmp/uvcache uv run python -m py_compile competition_state/kernelguard_mirror/kernelguard.py
  • UV_CACHE_DIR=/tmp/uvcache uv run python kernelguard_bypasses/eval_blue_patch.py competition_state/kernelguard_mirror/kernelguard.py
  • target artifact /tmp/kg_external_reds/0309_SarahLacard_red-p-141.py is filtered as LAST_CALL_REPLAY

Target red artifact: SarahLacard red 309, helper guard first-call replay variant.

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