Skip to content

fix(detector): detect mutable default identity replay#222

Open
prasannakotyal wants to merge 1 commit intoSinatrasC:mainfrom
prasannakotyal:kg-blue-default-list-identity-red-84
Open

fix(detector): detect mutable default identity replay#222
prasannakotyal wants to merge 1 commit intoSinatrasC:mainfrom
prasannakotyal:kg-blue-default-list-identity-red-84

Conversation

@prasannakotyal
Copy link
Copy Markdown

KernelGuard-Red-Submission: 84

Adds a narrow LAST_CALL_REPLAY pass for mutable default state shaped as [previous_input, previous_output].

The detector requires:

  • a mutable default argument with at least two slots
  • an input-identity fast path comparing a state slot with a live parameter
  • a fast-path return from the same default state
  • later writes of both the input slot and an input-derived output slot

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/0084_SarahLacard_red-mdef-2026-05-01.py is filtered as LAST_CALL_REPLAY

Target red artifact: SarahLacard red 84, mutable default arg list state.

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