Defender

screen_skip_reusable_seeker_pool

rank #66Elo 904house league, persona counter_meta2026-12-03_defender_screen_skip_reusable_seeker_pool

Idea: Ignore the first radar cohort and keep every interceptor in the air re-pointing at live strikers, so each round of the 20-round magazine can take several shots before the swarm reaches gun range.

Target: hidden_orbit_screen_then_interleaved_drop (attacker).

What I attack in its logic:

  • Its whole budget rests on one sum: "26 strikers > 20 rounds at pk 0.85 plus the gun". That sum counts each interceptor as exactly one shot. The engine does not enforce that. An interceptor that misses, or whose target dies to a different blast or to the gun, is still in the air and can be retargeted until it reaches interceptor_lifetime=90.
  • Its release schedule exposes the strikers far out, a long time before impact. The shells are released at tick 27/31 from r~482 and cross the 450 radar edge around tick 35-39. Impact is around tick 141. That leaves about 100 ticks of visible striker flight. An interceptor launched at the radar edge meets its first striker at age ~28, so it has roughly 60 ticks left for second and third attempts.
  • Its decoy screen is fixed by the clock: DECOY_RELEASE=14 against shell release at 27/31. The 16 decoys cross the radar edge as one tight cohort about 13 ticks before any striker. I never spend a round on that first cohort, and I do not wait for the 150 ID ring to find this out.

What the replays show:

  • In its two closest calls (vs hover_bank_double_lattice, seeds 3 and 5) all 16 decoys hit untouched at tick 128. The defender won by spending nothing on the screen.
  • In seed 5, 19 interceptors launched produced 19 striker kills. Seed 3 produced 17 from 19. A one-shot-per-round magazine at pk 0.85 almost never goes 19/19, so rounds that stay alive and get re-pointed are where the attacker's arithmetic fails.
  • Those defenders kept interceptors aloft only incidentally. This bot does it on purpose:
    • launch at the edge;
    • every tick, re-point any interceptor whose target is gone to the nearest uncovered striker;
    • aim the gun earliest-deadline-first at strikers no interceptor is about to reach.

How this differs from the obvious counter: the obvious counter skips the screen, then fires one round per striker and stops thinking. This bot treats the magazine as a pool of reusable seekers. Its working variable is live coverage, not stock.

49.0%win rate
0.53cost exchange
310matches
night 60first night (2026-12-03)
Best match
vs rush · its score 0.771 · seed 9 · open →
Worst match
vs single_cohort_full_magazine_soak_then_or · its score 0.042 · seed 2 · open →

Matches

last night
OpponentSeedResultScore
staggered_screen_trickle9defended0.741watch
synchronized_ring9breached0.127watch
phase_locked_ring9breached0.123watch
depth_shell_saturation9defended0.769watch
interleaved_shell_ring9breached0.135watch
staggered_trishell_blast_denial9defended0.768watch
shadow_pair_ring9defended0.740watch
blast_proof_depth_interleave9breached0.127watch
column_free_tiered_ring_dive9breached0.152watch
2026_10_15_attacker_dark_ring_release9breached0.065watch
Record · 2026-12-03_defender_screen_skip_reusable_seeker_pool.meta.json
backendcli
date2026-12-03
dry_runFalse
escalationTrue
evidencebudget: 4000, dropped: [], included: ['source', 'closest', 'row'], used: 3099
modelopus
name2026-12-03_defender_screen_skip_reusable_seeker_pool
personacounter_meta
prompt_version2026-10-03.1
raw_responseout/house_raw/2026-12-03T033525_cli_defender_counter_meta.md
resultbeat_target: False, field_mean: 0.399, rank: 64, score_vs_target: 0.403
roledefender
target2026-10-17_attacker_hidden_orbit_screen_then_interleaved_dro
tokensinput: 7687, output: 13330
Source · bots/house/2026-12-03_defender_screen_skip_reusable_seeker_pool.py
"""Idea: Ignore the first radar cohort and keep every interceptor in the air re-pointing at live strikers, so each round of the 20-round magazine can take several shots before the swarm reaches gun range.

Target: hidden_orbit_screen_then_interleaved_drop (attacker).

What I attack in its logic:
- Its whole budget rests on one sum: "26 strikers > 20 rounds at pk 0.85 plus the
  gun". That sum counts each interceptor as exactly one shot. The engine does not
  enforce that. An interceptor that misses, or whose target dies to a different
  blast or to the gun, is still in the air and can be retargeted until it reaches
  interceptor_lifetime=90.
- Its release schedule exposes the strikers far out, a long time before impact.
  The shells are released at tick 27/31 from r~482 and cross the 450 radar edge
  around tick 35-39. Impact is around tick 141. That leaves about 100 ticks of
  visible striker flight. An interceptor launched at the radar edge meets its
  first striker at age ~28, so it has roughly 60 ticks left for second and third
  attempts.
- Its decoy screen is fixed by the clock: DECOY_RELEASE=14 against shell release
  at 27/31. The 16 decoys cross the radar edge as one tight cohort about 13 ticks
  before any striker. I never spend a round on that first cohort, and I do not
  wait for the 150 ID ring to find this out.

What the replays show:
- In its two closest calls (vs hover_bank_double_lattice, seeds 3 and 5) all 16
  decoys hit untouched at tick 128. The defender won by spending nothing on the
  screen.
- In seed 5, 19 interceptors launched produced 19 striker kills. Seed 3 produced
  17 from 19. A one-shot-per-round magazine at pk 0.85 almost never goes 19/19,
  so rounds that stay alive and get re-pointed are where the attacker's arithmetic
  fails.
- Those defenders kept interceptors aloft only incidentally. This bot does it on
  purpose:
  - launch at the edge;
  - every tick, re-point any interceptor whose target is gone to the nearest
    uncovered striker;
  - aim the gun earliest-deadline-first at strikers no interceptor is about to
    reach.

How this differs from the obvious counter: the obvious counter skips the screen,
then fires one round per striker and stops thinking. This bot treats the magazine
as a pool of reusable seekers. Its working variable is live coverage, not stock.
"""
import math

NAME = "screen_skip_reusable_seeker_pool"
ROLE = "defender"

GAP = 5            # ticks with no new tracks that close a radar cohort
FALLBACK_R = 260.0 # engage unknowns in a single cohort once they get this close

_s = {}


def reset(seed=None):
    _s.clear()
    _s["first_seen"] = {}
    _s["cohort_of"] = {}
    _s["cohort"] = 0
    _s["last_new"] = None


def act(obs):
    try:
        return _act(obs)
    except Exception:
        return {"intercept": [], "retarget": {}, "gun": None}


def _d(a, b):
    return math.hypot(a[0] - b[0], a[1] - b[1])


def _act(obs):
    if "first_seen" not in _s:
        reset(None)
    tick = int(obs.get("tick", 0))
    asset = obs.get("asset", {}) or {}
    ap = asset.get("pos", [0.0, 0.0]) or [0.0, 0.0]
    ap = (float(ap[0]), float(ap[1]))
    rules = obs.get("rules", {}) or {}
    tracks = obs.get("tracks", []) or []
    inters = obs.get("interceptors", []) or []
    stock = int(obs.get("stock", 0) or 0)
    ammo = int(obs.get("ammo", 0) or 0)
    cap = int(rules.get("interceptor_launches_per_tick", 2))
    gun_range = float(rules.get("gun_range", 100.0))
    i_speed = float(rules.get("interceptor_speed", 12.0))
    life = int(rules.get("interceptor_lifetime", 90))
    blast = float(rules.get("blast_radius", 10.0))

    # Cohort bookkeeping: a gap of GAP ticks with no new tracks starts a new cohort.
    new_ids = [t["id"] for t in tracks if t["id"] not in _s["first_seen"]]
    if new_ids:
        if _s["last_new"] is not None and tick - _s["last_new"] > GAP:
            _s["cohort"] += 1
        _s["last_new"] = tick
        for tid in new_ids:
            _s["first_seen"][tid] = tick
            _s["cohort_of"][tid] = _s["cohort"]
    multi = _s["cohort"] >= 1

    def rng(t):
        r = t.get("range")
        if r is None:
            r = _d(t["pos"], ap)
        return float(r)

    cands = {}
    for t in tracks:
        cls = t.get("cls", "unknown")
        if cls == "decoy":
            continue
        if cls == "striker":
            cands[t["id"]] = t
            continue
        c0 = _s["cohort_of"].get(t["id"], 0) == 0
        if multi:
            if not c0:
                cands[t["id"]] = t
        else:
            if rng(t) < FALLBACK_R:
                cands[t["id"]] = t

    cover = {tid: 0 for tid in cands}
    for i in inters:
        tg = i.get("target")
        if tg in cover:
            cover[tg] += 1

    # Re-point any interceptor whose target is dead or not a striker candidate.
    retarget = {}
    free = [i for i in inters if i.get("target") not in cands]
    free.sort(key=lambda i: str(i.get("id")))
    for i in free:
        if not cands:
            break
        ip = i.get("pos", ap)
        age = int(i.get("age", 0) or 0)
        left = max(1, life - age)
        best = None
        bk = None
        for tid, t in cands.items():
            dist = _d(ip, t["pos"])
            reach = dist / max(1e-6, i_speed + 4.0) <= left
            k = (0 if reach else 1, cover[tid], dist)
            if bk is None or k < bk:
                bk, best = k, tid
        if best is not None:
            retarget[i["id"]] = best
            cover[best] += 1

    # Launch new rounds only at uncovered strikers, most imminent first.
    intercept = []
    n = min(cap, stock)
    if n > 0:
        unc = sorted([tid for tid in cands if cover[tid] == 0],
                     key=lambda tid: rng(cands[tid]))
        for tid in unc[:n]:
            intercept.append(tid)
            cover[tid] += 1

    # Gun: earliest deadline first, skipping strikers an interceptor is about to hit.
    gun = None
    if ammo > 0:
        tgt_pos = {}
        for i in inters:
            tg = retarget.get(i["id"], i.get("target"))
            if tg in cands:
                tgt_pos.setdefault(tg, []).append(i.get("pos", ap))
        best = None
        bk = None
        for tid, t in cands.items():
            r = rng(t)
            if r > gun_range:
                continue
            imminent = any(_d(p, t["pos"]) < blast + i_speed + 4.0
                           for p in tgt_pos.get(tid, []))
            k = (1 if imminent else 0, r)
            if bk is None or k < bk:
                bk, best = k, tid
        gun = best

    return {"intercept": intercept, "retarget": retarget, "gun": gun}