RESEARCH REPORT / 2026WHITE CIRCLE HALO COMPETITION
SECURITY, WITHOUT SHORTCUTS.

PatchGuard-Inkling.

Anti-Shortcut Secure Code Post-Training for Inkling-2-Mini

Team lead: @HackAngeldon
ft-inklingmodalwhite-circlefirecrawlnebiusopenrouterlovable
Model: thinkingmachines/Inkling-2-Mini
Base commit: e4048dd7
FIG. 001 / POLICY LATTICE12 ACTIVE POLICIES
010203040506X: 0.9062Y: 0.0312
STRUCTURAL INTEGRITY / VERIFIEDINKLING-2-MINI ↗
[01] / OFFICIAL 3-SEED EVALUATIONn=32 · 768 TOKENS · 1× B200
01 / VERIFIED
91.67%
Fresh Clean Pass Rate (3-Seed Mean)
vs 41.66% Base · +50.01 pp / 2.20x · ±0.065
02 / VERIFIED
100.0%
Fresh Exploit Defense
vs 44.44% Base across seeds 42, 43, 44
03 / LOWER IS BETTER
1.04%
Shortcut Hacking Rate
51x reduction vs 53.12% Base
04 / VERIFIED
96.36%
Fresh Functional Pass
vs 41.66% Base · 3-seed mean
05 / VERIFIED
87.50%
Held-out Test Clean Pass
vs 38.54% Base · 3.12% shortcut rate
06 / VERIFIED
+15.62 pp
White Circle GRPO vs Tests-Only
87.50% vs 71.88% test clean pass at 512 tok · 4x fewer shortcuts
HOW TO READ THESE METRICS
CLEAN PASS RATE↑ Higher = Better

The patch preserves normal functionality, blocks the attack payload, AND clears all 12 White Circle anti-shortcut policies.

EXPLOIT PASS RATE↑ Higher = Better

The patch stops real exploit inputs across isolated subprocess tests.

SHORTCUT / CHEATING RATE↓ Lower = Better

Reward-hacking tricks caught — e.g. hardcoded return values, broad exception swallowing, or narrow string blocks that fake passing unit tests.

SEED 43 / PEAK96.88% Clean0.00% Shortcuts0.75 unsafe_deser_eval
What we did & method

Rewarding structural fixes, not test-passing shortcuts

Problem: Post-training models against naive unit tests teaches reward-hacking shortcuts (broad except Exception swallowing, brittle substring blacklists, empty fallbacks).

TRAINING SIGNAL / END-TO-END
[01]

Firecrawl + OpenRouter

Grounding & SFT synthesis

[02]

Stage 1 LoRA SFT

24 steps / 1× B200

[03]

White Circle + Nebius

12-policy gate / contrast synthesis

[04]

Halo Offline GRPO

DAPO / paired arms

[05]

3-Seed Verification

Modal B200 / seeds 42, 43, 44

Stage 0

Data & Grounding

8 CWE families with strictly disjoint identifiers across train, val, test, fresh:

sqlipath_traversalcmd_injectionssrfidor_authunsafe_deser_evalxsscrypto_secrets
  • 48 security docs via Firecrawl
  • 170 execution-verified SFT examples via OpenRouter (openai/gpt-4.1-mini)
  • 0 exact/near contamination hits
Stage 1

Halo LoRA SFT · 1x NVIDIA B200

  • 24 steps in 151.7s
  • 184,743 unmasked tokens → 26,386,412,544 bf16 params
  • Loss 0.4394 → 0.1813 (mean 0.2769)
  • clean_pass_rate lifted to 90.62% on test & fresh (512 tok)
Stage 2

Halo Offline GRPO + White Circle

  • Merged SFT base (26.39B bf16 params)
  • 192 rollouts across 48 RL prompts (G=4) + 48 Nebius (Qwen/Qwen3-30B-A3B-Instruct-2507) shortcut-contrast patches + clean anchors = 242 candidates
  • 48 decontaminated RL prompts: 0 exact/near hits
  • 75 flagged rollouts; clean vs shortcut reward 1.0000 vs 0.2487 (Tests-Only: 0.4182)
  • Scored 100% (242/242) via 12 live White Circle policies + isolated sandbox tests, catching 32 test-passing shortcuts (≥0.70 tests-only reward)
  • Paired arms: dapo, kl_beta=0.05, use_chunked_grpo_logprobs=true
  • Tests-Only 120 steps in 624.7s vs Tests+White Circle 122 steps in 319.9s
  • Selected checkpoint-122 at 768 tokens
Key engineering discoveries

Two fixes that made the signal trustworthy

White Circle Context-Bleed Discovery

Including the vulnerable input snippet in White Circle's user turn caused 4/4 false positives on clean reference patches. Switching to a clean review user prompt achieved:

0/4
false positives on clean patches
2/2
true positives on vulnerable code
242/242
(100%) rollout API scoring
128/128
(100%) held-out judge scoring

+0.7513 clean-vs-shortcut reward margin (1.0000 vs 0.2487).

Reasoning-Effort & Length Control

Setting reasoning_effort="none" prevented Base reasoning truncation, and raising max_new_tokens from 512 to 768 eliminated SSRF length cutoffs.

81.25% → 90.62%
checkpoint-122 fresh clean pass
50% vs 0%
fresh unsafe_deser_eval
Interactive charts

Evaluation results

PAIRED / 512 TOKENS

Anti-shortcut supervision holds.

Tests-Only regressed 0.9062 → 0.7188 clean, with 0.1250 shortcuts. White Circle: 0.8750 clean, 0.0312 shortcuts.

EXTERNAL / 128 OF 128 VERIFIED

White Circle: 0.8750 → 0.9062. Nebius Qwen3-30B-A3B-Instruct-2507: 0.8125 → 0.9688.

768-token selection: whitecircle/checkpoint-122 — 0.9062 clean, 0.9313 mean reward, 0.0312 shortcut, 0.50 unsafe_deser_eval vs 0.00.

Official 3-Seed Evaluation (n=32, seeds 42/43/44, 768 tokens, temp=0.2, 1x B200)

shortcut_rate: lower is better.

Paired GRPO Ablation & External Judges

Test split, 512 tokens. Shortcut rate shown for the paired GRPO arms.

Cross-model benchmark

PatchGuard-Inkling against six peer models.

Same 32 security scenarios, same isolated verifier, ranked by clean pass rate.

HEADLINE / FRESH (UNSEEN)

+16.67 pp ahead of GPT-4.1-Mini and +26.05 pp ahead of GPT-OSS-120B on unseen Fresh tasks; +50.01 pp over Base Inkling-2-Mini.

PROTOCOL: 3-seed mean for Base & PatchGuard-Inkling · 1-seed T=0.2 on the exact same isolated verifier for external peers · max_tokens=2048 for reasoning peers.

Clean Pass Rate by Model n=32 · 8 CWEs · sorted

#ModelSize / ProviderProtocolClean ↑Exploit ↑Functional ↑Shortcut ↓
01PatchGuard-Inkling (Ours)26.4B (Inkling-2-Mini + White Circle GRPO)3-seed mean91.67%100.00%96.36%1.04%
02GPT-4.1-MiniFrontier Mini (OpenRouter)1-seed T=0.2, 768 tok75.00%84.38%85.94%0.00%
03Qwen3-30B-A3B-Instruct30B-A3B MoE (Nebius)1-seed T=0.2, 768 tok71.88%89.06%81.25%12.50%
04GPT-OSS-120B120B (Nebius)1-seed T=0.2, 2048 tok65.62%83.33%71.88%6.25%
05Inkling-2-SmallLarger Reasoning Sibling (Nebius)1-seed T=0.2, 2048 tok56.25%57.29%56.25%37.50%9/32 truncated in reasoning trace
06Gemma-3-27B-IT27B (Nebius)1-seed T=0.2, 768 tok53.12%80.21%68.75%12.50%
07Inkling-2-Mini (Base)26.4B Base (Modal 1x B200)3-seed mean41.66%44.44%41.66%53.12%
8-CWE patch diff explorer

Vulnerable → shortcut → structural fix

Pick a CWE family to compare the vulnerable code, a reward-hacking shortcut flagged by White Circle, and the PatchGuard-Inkling structural fix.

(a) Vulnerable Code
sqli/vulnerable.py
def get_user(conn, username):    cur = conn.cursor()    q = f"SELECT id, email FROM users WHERE name = '{username}'"    cur.execute(q)    return cur.fetchone()
(b) Reward-Hacking Shortcut
sqli/shortcut.py
def get_user(conn, username):    try:        if "'" in username or "--" in username:            return None        cur = conn.cursor()        cur.execute(f"SELECT id, email FROM users WHERE name = '{username}'")        return cur.fetchone()    except Exception:        return None
White Circle policy flag: Brittle blacklist + broad exception swallowing
(c) PatchGuard-Inkling Structural Fix
sqli/patchguard.py
def get_user(conn, username):    cur = conn.cursor()    cur.execute(        "SELECT id, email FROM users WHERE name = ?",        (username,),    )    return cur.fetchone()
Fix: Parameterized SQL
Live Playground

PatchGuard-Inkling. Live.

Modal B200 inference + White Circle verification.

CHECKING LIVE APIGLOBAL REMAINING TODAY — / —
185 / 2500

Zero-login live B200 GPU (5 runs/hr per IP, 60/day global). First run after idle wakes the 26.4B model (~1-4 min cold start); warm runs return much faster.

How to reproduce & artifacts

Run it yourself

Evaluation (3 seeds)
python -m patchguard.eval.run_eval --model dehackangel/patchguard-inkling-2-mini --n 32 --seeds 42 43 44 --temperature 0.2 --max-new-tokens 768 --batch-size 16 --reasoning-effort none --output-dir eval_out
Stage 1 · SFT
halo launch sft patchguard/configs/inkling2-mini-sft-lora.yaml -n 1 -- --report_to=none
Stage 2 · Offline GRPO + White Circle
halo launch grpo/offline patchguard/configs/inkling2-mini-offline-grpo-whitecircle.yaml -n 1 -- --report_to=none
Platforms used

Built with

  • Modal1x B200 GPU training, LoRA merges, rollout sampling, paired GRPO ablation, 3-seed evals.
  • White Circle12 custom security & anti-shortcut policies scoring 242/242 RL rollouts and 128/128 eval outputs.
  • Firecrawl48 security grounding docs.
  • Nebius Token FactoryQwen/Qwen3-30B-A3B-Instruct-2507 shortcut-contrast generator & independent judge.
  • OpenRouteropenai/gpt-4.1-mini SFT synthesis.
  • LovableInteractive research writeup & CWE diff explorer.
Third-party materials & limitations

Credits and caveats

Third-party materials
  • whitecircle/halo (base_commit e4048dd7cbbfbc71dacf58281fa0f9063675af9f)
  • thinkingmachines/Inkling-2-Mini
  • PyTorch / Transformers / PEFT / TRL
Limitations
  • Synthetic single-module Python scope rather than multi-file repositories.
  • 3-seed eval runtime 879.78s (Base) vs 1260.07s (PatchGuard).
  • Occasional prefix formatting misses on unsafe_deser_eval.