Skip to content

fix(phantasialand): keep the signage position inside the park outline - #672

Merged
cubehouse merged 1 commit into
mainfrom
fix/phantasialand-signage-location
Oct 16, 2026
Merged

cubehouse merged 1 commit into
mainfrom
fix/phantasialand-signage-location

Conversation

@cubehouse

Copy link
Copy Markdown
Member

/signage-snapshots takes the caller's position as loc=lat,lng and answers 403 FORBIDDEN for a position outside the park outline (a bad or missing token gets 401). The box the position was drawn from reached outside the outline at its south-west corner, and a retry re-sends the same position, so a poll that drew one failed after the full backoff window.

This draws from a box that stays inside the outline, and corrects the comments that blamed a rate limit.

Test plan

  • src/parks/phantasialand/__tests__/signageLocation.test.ts: the draw stays in the box at the extremes of the generator, fetchSignage sends what the generator produced, and the box stays clear of positions seen refused
  • Full suite passes
  • npm run probe:phantasialand is a live check that draws through the park's own fetch and exits 1 on any refusal. It passes on the new box and fails on the old one

🤖 Generated with Claude Code

/signage-snapshots takes the caller's position as loc=lat,lng and answers
403 FORBIDDEN for a position outside the park outline (a bad or missing
token gets 401). The box the position was drawn from reached outside the
outline at its south-west corner, and a retry re-sends the same position,
so a poll that drew one failed after the full backoff window.

Draw from a box that stays inside the outline instead. Adds
`npm run probe:phantasialand`, a live check that draws through the park's
own fetch and exits 1 on any refusal. The comments that blamed a rate limit
now describe what the endpoint does.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@cubehouse
cubehouse merged commit c07ab95 into main Oct 16, 2026
5 checks passed
@cubehouse
cubehouse deleted the fix/phantasialand-signage-location branch October 16, 2026 07:20
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