Pitch (what problem, for whom, why it matters)

  • What you see first. A 1v1 to 3v3 haunted-fence artillery duel where friends join from a QR code and external MCP AI agents take a seat at the exact same table. Wind and weather push every shot; the center fence can be shot down.
  • Problem. Flash-era artillery games vanished when browser plug-ins died, and a fair "human vs. agent" match is hard because an agent that reads hidden state or runs a perfect ballistic simulator is not a fair opponent. Here every seat — human or AI — gets only the same public view: positions, wind, and where earlier throws landed, with no random seed and no simulator (docs/mcp_agent_protocol.md).

Measured at a Glance

Check Verified Result Evidence
JS ↔ Python flight parity 67,456 shots, page = Python engine left-to-right and the page's own mirror right-to-left, 0 mismatches (wind & weather) docs/rear_rear_weather_wind_20261119.json
Hit judging (center fence broken) 425,861 flight steps, 0 false hits, 0 missed hits (14.7% area/returning exempt) docs/hit_coverage_20261119.svg
Team engine simulation 6,667 matches × 3 team sizes (1v1/2v2/3v3), 20 rule checks, 0 failures redteam/evidence/sim_team_full_run2_20261122_summary.txt
Full test suite 220 test_* scripts (112 JS + 1 MJS + 107 Python) + sim_team_headless.py: 206 PASS, 0 FAIL (run_full_suite.sh) + 14 skipped local-socket tests passing individually zsh scripts/run_full_suite.sh
External adversarial LLM audit 45 break-it cases, 0 breaks, 9 findings verified & fixed (two external AI agents) docs/llm/llm_findings_verdict_20261126.md
Built-in AI hit rates Easy 14.1%, Normal 31.9%, Hard 48.6% hits per throw node scripts/test_page_ai_hit_rates.js

What it does

  • 1v1 to 3v3 team battles & 8 Halloween heroes. Skeleton Spearman, Pumpkin Wizard, Bat-cat Assassin, Necromancer, Silver Cross Sister, Ghost Bride, Bell Tower Hunchback, and Heavy Pumpkin Guard — each with its own weapon arc, status effects, and ultimate (ULT_BUILT in index.html). Head hits crit and stun; three lit marks arm an ultimate. One throw takes at most half a health bar, except a deterministic 1-in-10 seed roll so rare one-hit KOs stay possible.
  • Thin Relay + zero-drift multiplayer rooms. Share a 6-character code or QR code to play in any browser with zero install. Both sides always play left-to-right via coordinate mapping (never a flipped canvas), and every device computes a per-round round_hash to verify lockstep sync. All 8 hero ultimates work in rooms. A dropped seat reconnects within 120 seconds; the host can end a stalled match cleanly as no-contest (End match).
  • Bring Your Own Agent (11 MCP tools + 12-second turn cap). In the Lobby (js/lobby_model.js), toggle Allow agents → Invite an agent to issue a one-use ticket for hosted Streamable HTTP /mcp (https://pumpkin.jace0423.com/mcp) or local stdio (scripts/mcp_stdio_server.py). Seven game tools (get_public_state, get_roster, get_history, submit_action, end_turn, set_notes, get_notes) + 4 room tools (join_room, lock_hero, leave_room, wait_for_turn) are judged on the real index.html VM via PageJudgeRelay (Node.js in deploy/Dockerfile.coolify). Each agent runs on the player's own model account (zero host LLM cost) under a hard 12-second turn cap, and can claim a full team or partial units (claim=1..units).
  • Real AI agents on the live site. In a 2v2 on pumpkin.jace0423.com, two AI agents each took a seat through /mcp and chose angle and power for every shot (25 agent shots, all 25 accepted, no fallback, identical result on both screens). An AI agent also played from /mcp against the author on a real Android phone, and an automated live run put a real Android phone, a desktop, two scripted MCP clients, and two computer seats through two full 3v3 matches with zero desync (redteam/evidence/sim_20261128/records/live/combos_llm/A_2v2_2web_2agent/, redteam/evidence/sim_20261128/records/phone/, redteam/evidence/v4_live_phone_mcp_20261126.txt).
  • Zero-cost Lobby AI Fill & Cross-Device PWA. Tick Computer fills open places to fill remaining lobby slots in the host browser at zero server cost. Landscape PWA with English & Traditional Chinese (⚙), 4 battlefields, 5 weather states, and 84 shipped audio files (assets/audio/CREDITS.md).

Potential Impact

  • Plug-in-era game preservation: Resurrects classic Flash artillery duels into a zero-login, cross-device PWA anyone can open from a QR code.
  • Zero-server-LLM-cost multiplayer AI: Players bring their own agent over standard /mcp so indie web games can host live AI teammates and opponents without burning host API credits.
  • Reproducible public-view learning check: Combines noisy physics (wind/weather), partial observability (public view only), bit-exact round_hash verification, and a 12-second turn clock — one scripted agent with no simulator, learning only from get_history, cuts its mean miss from 362 px (rounds 1–5) to 290 px (rounds 6–10) over 5 seeds against a fixed target, most of the drop from seed 303 (scripts/eval_agent_learning.py, offline through the real MCP tool handler).

How we used Kiro

The entire .kiro/ folder (121 tracked files) is committed with full audit logs (docs/KIRO_USAGE_20261116.md, JUDGES.md):

  1. Kiro surfaces (honest record): Kiro CLI was the primary build driver (kiro-cli chat via scripts/kiro_route.py and ACP via scripts/kiro_acp_route.py, 195 published briefs / 109 result reports) for the Python rule engine, relay, MCP server, and early tests — and in a live 2v2 shown in the demo video, a Kiro CLI agent takes over the whole white team over MCP. Kiro IDE wrote the ultimates spec .kiro/specs/ultimates-v2/ (requirements, design, tasks) from the design notes and page code, and also ran a save-triggered hook (docs/kiro_evidence/raw/ide_hook_run_20261115.txt). Kiro Crew 0.12.2 ran a read-only doc audit (docs/crew_audit_usage_doc_result.md). Kiro Web was not used. Additional AI coding assistants handled later page wiring, UI polish, and red-team fixes under owner direction.
  2. Specs & Steering: 32 specs (.kiro/specs/, 91 files) and 11 steering docs (.kiro/steering/), including single-writer ownership on index.html. With a spec + E2E test, Kiro Task 225 caught a relay bug that skipped one team's turn starting in round 2.
  3. Hooks & Custom Agents: 7 PostFileSave hooks (.kiro/hooks/) — the hook log (docs/kiro_evidence/raw/hook_runs.log.txt) records 500 runs across three hooks: the preload check ran on 176 saves of index.html and flagged 26 stale picture lists, and the constants check failed 9 times on missing shared constants — plus 8 scoped custom agents (.kiro/agents/), including pk-player restricted strictly to public MCP tools, which won a full match in Kiro CLI using only those tools (round 19; 49 actions accepted, 16 stale-round submissions refused; docs/kiro_evidence/raw/mcp_pk_player_match.jsonl).
  4. MCP & Power: 11-tool MCP server (.kiro/settings/mcp.json) plus a custom Kiro Power (.kiro/powers/pumpkin-killer-seat/) bundling the MCP config and play skill — installs cleanly with kiro-cli powers install (docs/kiro_evidence/raw/powers_install_20261115.txt); the working route is Kiro CLI and hosted /mcp.
  5. Seeded PBT & Verification Ledger: 6 seeded property invariants (scripts/test_properties.js) + cross-language golden vectors (shared/determinism_golden.json). Task 179 surfaced 4 failures (2 code/model defects in timeline ordering and Ghost Bride simulator balance, plus 2 flawed test assumptions on rounded-hash and fence flight; docs/kiro_179_result.md), all fixed and passing in Task 181 (docs/kiro_181_result.md). Kiro outputs were treated as reports rather than automatic proof: docs/kiro_verified.json records 38 audited verdicts (12 verified, 22 partly verified, 3 read-only, 1 not checked) across 109 published result reports (the remaining tasks do not have individual rows in that ledger).

Honest Scope & Known Limits

  • Local-only extras: All 8 hero ultimates work in rooms; items and floating shield placement remain local-match only (assets/i18n/en.json relay.noItems).
  • Room & seat caps: Hosted /mcp seats up to 10 concurrent agents; silent agent seats release after 3 minutes; rooms live in memory in one container (a restart ends them). Unstarted lobbies close after 900 seconds and idle rooms are reclaimed after 1800 seconds. Local agent judging requires Node.js (tests ran on 26.13).
  • Landscape-first: Built for landscape phones and desktop browsers (portrait phones show a rotate hint). Two independent rule implementations (JS + Python) stay in lockstep via shared golden vectors and hash-parity tests.
  • AI-generated media disclosure: The demo video's intro and 8 hero showcase clips were generated with Google Flow, and its music (plus the 2 active in-game background tracks bgm_title_phantom_v1.m4a and bgm_battle_ghoul_v1.m4a, non-CC0) with Google Flow Music; 22 in-game SFX files were also AI-generated (all disclosed in CREDITS.md, assets/audio/CREDITS.md, and docs/ASSET_PROVENANCE.md). All in-game physics and the live 3v3 and 2v2 match footage are real gameplay; player name tags of third-party AI models are relabeled "AI agent" in the video.

Built With

Share this project:

Updates

Submission history