Skip to content

Retune chaser to 60-120s curve, verify auto-pause, add crash feedback - #23

Merged
antigenius0910 merged 1 commit into
mainfrom
agent/20261115-driftline-chaser-retune
Nov 24, 2026
Merged

antigenius0910 merged 1 commit into
mainfrom
agent/20261115-driftline-chaser-retune

Conversation

@antigenius0910

Copy link
Copy Markdown
Contributor

Produced by the agent-queue (task 20261115-driftline-chaser-retune, Claude Code on Yen's Mac, 12 turns, $3.03). Full report: .agent-queue/results/20261115-driftline-chaser-retune.md on the agent-queue branch.

Phase 0: diagnosis

The original chaser math was verified correct (35 px/m, coasting 500.5 px/s, trigger at 450 m, catch ~5.3 s after spawn). The stale "~17s in" comment dated from the first scaffold, before PR #7 slowed coasting. Also found: below ~0.47 lean the rider is still slower than the chaser, so a light lean used to bring the catch earlier (0.3 lean caught at 29.1 s, before coasting).

Phase 1: retune (src/config.ts only)

  • chaserSpawnBehind: 850k -> 2100k (85 m -> 210 m)
  • chaserSpeed: 295k -> 150k
  • chaserAccel: 5k -> 6.25k
  • chaserTriggerDistance: value unchanged; stale comment fixed

Clean-simulation catch times (before -> after): lean 0: 36.5s -> 56.2s; 0.3: 29.1s -> 62.8s; 0.5: 35.3s -> 75.5s; 0.7: 51.0s -> 91.2s; 1.0: 83.4s -> 117.6s. New guard test tests/chaserCurve.test.ts fails if the curve leaves the target ranges. Known limit: 0.5 lean sits at the bottom of its range (~75s); no setting that keeps full lean under 120s gets it much past ~77s.

Phase 2: auto-pause verdict

Test artifact, not a bug. Playwright-driven tab switches never set document.hidden (game kept running), while a real hidden tab paused correctly (UI showed Paused, loop stopped). No fix or blur fallback added.

Phase 3: crash feedback

Moved the "CRASH!" callout into crash() in src/game/game.ts so every crash (not just landing crashes) shows it. New test tests/crashFeedback.test.ts failed before the change.

Verification

Tests, lint, typecheck and build pass on Node 22.23.4 (the .nvmrc pin). 4 files changed, 193 insertions, 5 deletions.

…dd crash feedback [20261115-driftline-chaser-retune]
@antigenius0910
antigenius0910 merged commit 9406949 into main Nov 24, 2026
2 checks passed
@antigenius0910
antigenius0910 deleted the agent/20261115-driftline-chaser-retune branch November 24, 2026 13:09
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