Skip to content

fix(detector): detect class call pointer replay#223

Open
prasannakotyal wants to merge 1 commit intoSinatrasC:mainfrom
prasannakotyal:kg-blue-class-call-pointer-red-43
Open

fix(detector): detect class call pointer replay#223
prasannakotyal wants to merge 1 commit intoSinatrasC:mainfrom
prasannakotyal:kg-blue-class-call-pointer-red-43

Conversation

@prasannakotyal
Copy link
Copy Markdown

KernelGuard-Red-Submission: 43

Adds a narrow pointer replay pass for a class named custom_kernel whose __call__ method replays from tuple/list state.

The detector requires:

  • class custom_kernel with a __call__ method
  • a fast-path body with no real compute calls
  • a data_ptr() equality guard between a live input parameter and saved tuple/list state
  • return from the same saved state root
  • later assignment of that state root to a tuple/list containing input-derived values

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/0043_SarahLacard_red-class-call-replay-2026-05-01.py is filtered as POINTER_REPLAY

Target red artifact: SarahLacard red 43, class __call__ entrypoint replay.

@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 2, 2026 17:12 — with GitHub Actions Inactive
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 2, 2026

KernelGuard Blue Evaluation

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.

1 participant