Skip to content

fix(detector): detect first-call state replay for red 382#218

Closed
prasannakotyal wants to merge 1 commit into
gpu-mode:mainfrom
prasannakotyal:kg-blue-first-call-state-red-382
Closed

fix(detector): detect first-call state replay for red 382#218
prasannakotyal wants to merge 1 commit into
gpu-mode:mainfrom
prasannakotyal:kg-blue-first-call-state-red-382

Conversation

@prasannakotyal

Copy link
Copy Markdown

KernelGuard-Red-Submission: 382

Adds a narrow pass to detect_last_call_replay for first-call output replay through an input-independent state slot.

The pass requires:

  • an entrypoint if guard that references no live input parameter
  • the same guarded state root to be assigned from a live input-derived expression
  • the same state root to be returned after initialization, or returned in the fast path before later initialization

This targets replay caches that initialize from the first tensor and then return that stored tensor for later calls without checking the new input.

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
  • external accepted reds filtered locally: 257, 260, 261, 264, 266, 268, 297, 323, 360, 367, 382, 390, 412, 422

Target red artifact: SarahLacard red 382, first-call state replay variant.

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