Attacker

interleaved_shell_ring

rank #11Elo 1187house league, persona generalist2026-10-04_attacker_interleaved_shell_ring

Idea: Stage all thirty strikers on a slowly rotating three-shell ring, then release them together so they arrive in one wave in which no two strikers ever come within two blast radii of each other.

Name: interleaved_shell_ring

How it works ------------ Every striker gets a slot. Slots sit 12 degrees apart. Slot i also belongs to shell i % 3, and each shell is staged 24 units further out than the one before it. Bearing-neighbours therefore always sit in different shells. Two drones in the same shell are 36 degrees apart.

While the swarm is staging (radius 300 to 348, outside id range), the whole formation slowly rotates. On release every striker flies straight at the asset. Shells keep their 24-unit radial gap, which is 6 ticks of arrival spread, all the way in.

The geometry guarantee: any two strikers stay more than 20 units apart, which is twice the blast radius.

  • Bearing-neighbours are at least 24 apart radially.
  • Same-shell drones are at least 2*pi*r/10 apart, which is more than 20 for any r above 32, so until they are basically inside the asset radius.

No interceptor can ever kill more than one striker. Yet 30 threats still land inside a 12-tick window.

Why it holds against the field ------------------------------

  • convergence_blast_scheduler and loiter_then_collapse beat synchronized_ring only because a uniform ring compresses until three strikers share a blast. Here the ring never compresses below 20-unit spacing. Their held magazine buys at most one kill per interceptor, and waiting has cost them time. Loitering interceptors also age toward their 90-tick lifetime while the formation orbits.
  • backscheduled_blast_packer looks for the tick where threats pack tightest. No such tick exists, so it collapses into one-for-one shooting against a 12-tick saturation wave.
  • discriminating_ledger, miss_budget_scheduler, reveal_timed_prelaunch, annealed/greedy assigners and the other baselines all lost heavily to synchronized saturation, scoring about 0.14. This bot keeps that property: 30 all-striker threats, unidentified until 150, arriving almost together. Twenty interceptors at 0.85 and one gun shot per tick cannot stop three of them.
  • gun_only and nearest_first are throughput-limited, and a near-simultaneous wave overwhelms both.
70.4%win rate
0.63cost exchange
760matches
night 7first night (2026-10-04)
Best match
vs contracting_ring_blaster · its score 0.938 · seed 4 · open →
Worst match
vs decoy_carried_magazine_retarget_staging · its score 0.210 · seed 0 · open →

Against each opponent

its mean score
contracting_ring_blaster0.905
loiter_pool_convergence_volley0.899
hover_bank_double_lattice0.897
bait_cohort_blind_full_magazine_on_strik0.878
radar_edge_cohort_timing_full_magazine0.869
birth_cohort_lull_splitter0.862
id_gated_front_shell_magazine_rear_shell0.862
cohort_gap_shell_split_gun_window_stretc0.861
screen_skip_reusable_seeker_pool0.859
cohort_fingerprint_full_magazine_gun_swe0.858
reveal_timed_prelaunch0.858
ledger_backscheduled_idband_rehomer0.857
greedy_value_model0.856
layered0.856
gun_first_ledger_edf_reserve0.855
cohort_screen_skip_shell_balanced_gun0.853
shell_balanced_id_gated_gun_dedup0.842
cohort_gated_miss_reserve_deadline_gun0.837
bait_cohort_hover_blind_full_wave_magazi0.837
radar_entry_cohort_screen_writeoff0.837
id_gated_shell_breaker0.836
id_gated_magazine_hold0.836
defender_id_gate_magazine_vault0.835
identify_then_engage0.835
class_gated_magazine_keeper0.834
id_only_deadline_magazine_gun_releaser0.834
miss_budget_scheduler0.833
cohort_screen_blind_one_per_striker0.832
annealed_assignment_eager0.832
id_gated_striker_only_shell_breaker0.831
radar_cohort_presort_reserve_finisher0.821
discriminating_ledger0.821
loiter_then_collapse0.819
screen_cohort_skip_edge_full_magazine_de0.813
cohort_edge_picket_ledger0.812
bait_cohort_skip_rear_shell_first_gun_ha0.809
birth_cohort_prefire_deadline_reserve0.809
screen_reveal_rear_shell_first0.808
defender_ring_triplet_neighbor_blast0.800
depth_lag_band_precommit0.797
pooled_pingpong_cluster_committer0.795
cohort_screen_skip_deadline_reserve0.794
backscheduled_blast_packer0.777
birth_cohort_screen_writeoff_reserve_ref0.773
eta_balanced_leaker_split_gun_funnel0.772
dither_parked_magazine0.771
type_ledger_retarget_first0.770
arrival_cohort_fingerprint_edge_strike0.769
lull_cohort_shell_balanced_magazine0.767
cohort_gap_profiler0.752
convergence_hold_burst_packer0.750
magazine_staging_pingpong0.748
gun_ledger_deadline_reserve0.746
screen_writeoff_shell_parity_gun_slot_pl0.734
screen_cohort_writeoff_full_magazine_nea0.721
gun_only0.693
hover_bank_late_binder0.692
deadline_queue_id_gated_overlap_saver0.649
radar_cohort_screen_skip_edge_magazine0.648
trailing_cohort_full_magazine_deadline_g0.623
birth_cohort_edge_magazine_shell_balance0.621
annealed_assignment0.583
wave_adaptive_deadline_convergence_cocov0.502
origin_parked_jink_stall0.501
deadline_cluster_ledger0.483
convergent_deadline_packer0.481
first_cohort_screen_skip_balanced_magazi0.415
parked_hover_ring_doublecover0.401
radar_cohort_fingerprint_spread_gun_rema0.395
cluster_blast_column_breaker0.355
convergence_blast_scheduler0.337
origin_pingpong_salvo0.299
split_leftover_far_engage_gun_deadline0.293
decoy_carrier_retarget_shell_balancer0.293
nearest_first0.275
decoy_carried_magazine_retarget_staging0.224

Matches

last night
OpponentSeedResultScore
discriminating_ledger9breached0.854watch
miss_budget_scheduler9breached0.850watch
reveal_timed_prelaunch9breached0.854watch
convergence_blast_scheduler9defended0.229watch
loiter_then_collapse9breached0.914watch
backscheduled_blast_packer9breached0.850watch
dither_parked_magazine9breached0.851watch
cluster_blast_column_breaker9defended0.641watch
contracting_ring_blaster9breached0.907watch
deadline_cluster_ledger9defended0.237watch
Record · 2026-10-04_attacker_interleaved_shell_ring.meta.json
backendcli
date2026-10-04
dry_runFalse
escalationFalse
evidencebudget: 3000, dropped: [], included: ['matrix', 'top_three'], used: 1943
modelopus
name2026-10-04_attacker_interleaved_shell_ring
personageneralist
prompt_version2026-10-03.1
raw_responseout/house_raw/2026-10-04T033120_cli_attacker_generalist.md
resultbeat_target: False, field_mean: 0.725, rank: 1
roleattacker
targetfield
tokensinput: 5207, output: 7317
Source · bots/house/2026-10-04_attacker_interleaved_shell_ring.py
"""Idea: Stage all thirty strikers on a slowly rotating three-shell ring, then release them together so they arrive in one wave in which no two strikers ever come within two blast radii of each other.

Name: interleaved_shell_ring

How it works
------------
Every striker gets a slot. Slots sit 12 degrees apart. Slot i also belongs to
shell i % 3, and each shell is staged 24 units further out than the one before
it. Bearing-neighbours therefore always sit in different shells. Two drones in
the same shell are 36 degrees apart.

While the swarm is staging (radius 300 to 348, outside id range), the whole
formation slowly rotates. On release every striker flies straight at the
asset. Shells keep their 24-unit radial gap, which is 6 ticks of arrival
spread, all the way in.

The geometry guarantee: any two strikers stay more than 20 units apart, which
is twice the blast radius.
* Bearing-neighbours are at least 24 apart radially.
* Same-shell drones are at least 2*pi*r/10 apart, which is more than 20 for
  any r above 32, so until they are basically inside the asset radius.
No interceptor can ever kill more than one striker. Yet 30 threats still land
inside a 12-tick window.

Why it holds against the field
------------------------------
* convergence_blast_scheduler and loiter_then_collapse beat
  synchronized_ring only because a uniform ring compresses until three
  strikers share a blast. Here the ring never compresses below 20-unit
  spacing. Their held magazine buys at most one kill per interceptor, and
  waiting has cost them time. Loitering interceptors also age toward their
  90-tick lifetime while the formation orbits.
* backscheduled_blast_packer looks for the tick where threats pack tightest.
  No such tick exists, so it collapses into one-for-one shooting against a
  12-tick saturation wave.
* discriminating_ledger, miss_budget_scheduler, reveal_timed_prelaunch,
  annealed/greedy assigners and the other baselines all lost heavily to
  synchronized saturation, scoring about 0.14. This bot keeps that property:
  30 all-striker threats, unidentified until 150, arriving almost together.
  Twenty interceptors at 0.85 and one gun shot per tick cannot stop three of
  them.
* gun_only and nearest_first are throughput-limited, and a near-simultaneous
  wave overwhelms both.
"""

import math

NAME = "interleaved_shell_ring"
ROLE = "attacker"

N_SLOTS = 30
N_SHELLS = 3
SHELL_GAP = 24.0
STAGE_R = 300.0
ORBIT_RATE = 0.004      # rad per tick formation rotation while staging
LOOKAHEAD = 10          # ticks of lookahead along the orbit
READY_TOL = 14.0
MAX_HOLD_TICK = 170

_state = {}


def reset(seed=0):
    _state.clear()
    _state["base"] = ((seed or 0) % 360) * math.pi / 180.0
    _state["launched"] = 0
    _state["slot_of"] = {}
    _state["free"] = list(range(N_SLOTS))
    _state["released"] = False
    _state["phi"] = 0.0


def _slot_angle(i, phi):
    return _state["base"] + i * 2.0 * math.pi / N_SLOTS + phi


def _stage_point(i, phi):
    a = _slot_angle(i, phi)
    r = STAGE_R + SHELL_GAP * (i % N_SHELLS)
    return [r * math.cos(a), r * math.sin(a)]


def _angdiff(a, b):
    d = (a - b) % (2.0 * math.pi)
    return min(d, 2.0 * math.pi - d)


def act(obs):
    try:
        return _act(obs)
    except Exception:
        return {"launch": [], "steer": {}}


def _act(obs):
    if "base" not in _state:
        reset(0)
    tick = int(obs.get("tick", 0) or 0)
    budget = float(obs.get("budget", 0.0) or 0.0)
    rules = obs.get("rules", {}) or {}
    cost = float(rules.get("striker_cost", 2.0) or 2.0)
    per_tick = int(rules.get("attacker_launches_per_tick", 4) or 4)
    ax, ay = 0.0, 0.0
    try:
        ap = obs.get("asset", {}).get("pos", [0.0, 0.0])
        ax, ay = float(ap[0]), float(ap[1])
    except Exception:
        pass

    drones = obs.get("drones", []) or []

    # Slot assignment for newly seen drones (nearest free slot bearing).
    slot_of = _state["slot_of"]
    new = [d for d in drones if d.get("id") not in slot_of]
    new.sort(key=lambda d: str(d.get("id")))
    for d in new:
        if not _state["free"]:
            slot_of[d.get("id")] = len(slot_of) % N_SLOTS
            continue
        p = d.get("pos", [0.0, 0.0])
        ang = math.atan2(float(p[1]) - ay, float(p[0]) - ax)
        best = min(_state["free"],
                   key=lambda i: _angdiff(ang, _slot_angle(i, _state["phi"])))
        _state["free"].remove(best)
        slot_of[d.get("id")] = best

    # Launches.
    launch = []
    if not _state["released"]:
        while (len(launch) < per_tick and _state["launched"] < N_SLOTS
               and budget >= cost - 1e-9):
            i = _state["launched"]
            launch.append({"type": "striker",
                           "bearing": float(_slot_angle(i, _state["phi"]) % (2.0 * math.pi))})
            _state["launched"] += 1
            budget -= cost

    steer = {}
    if not _state["released"]:
        all_launched = (_state["launched"] >= N_SLOTS) or budget < cost
        ready = all_launched and len(drones) > 0
        if ready:
            for d in drones:
                i = slot_of.get(d.get("id"), 0)
                sp = _stage_point(i, _state["phi"])
                p = d.get("pos", [0.0, 0.0])
                if math.hypot(float(p[0]) - ax - sp[0], float(p[1]) - ay - sp[1]) > READY_TOL:
                    ready = False
                    break
        if (ready or tick >= MAX_HOLD_TICK) and all_launched and drones:
            _state["released"] = True
        else:
            _state["phi"] += ORBIT_RATE
            ahead = _state["phi"] + ORBIT_RATE * LOOKAHEAD
            for d in drones:
                i = slot_of.get(d.get("id"), 0)
                p = d.get("pos", [0.0, 0.0])
                sp_now = _stage_point(i, _state["phi"])
                dist = math.hypot(float(p[0]) - ax - sp_now[0], float(p[1]) - ay - sp_now[1])
                tgt = _stage_point(i, ahead) if dist < 3 * READY_TOL else sp_now
                steer[d.get("id")] = [tgt[0] + ax, tgt[1] + ay]

    if _state["released"]:
        for d in drones:
            if d.get("waypoint") is not None:
                steer[d.get("id")] = None

    return {"launch": launch, "steer": steer}