Repository navigation
Aquilo: wells and icebergs, placed as a real surface places them (#553) - #585
Conversation
The all, resources and rocks views drew the game's map preview, which reads the raw tiles and skips the apply step. The game's own counts at map seed 123456: 1,501 queued by the preview over -512..511 against 635 on a real surface (551 against 198 over -256..255), almost all big icebergs. Following the Gleba recipe, the entity stream now reads the corrected tiles, each chunk's queue is applied row-major with touching boxes colliding on a shared layer, and the render places the window's chunks plus one ring (placement::aquilo::real_surface_window). Other zooms draw no entity. New fixture oracle-aquilo-real-surface-entities.seed123456.json (probe scripts/probes/aquilo-real-surface-entities): the map a player gets over the default window. The shipped path places all 635 at the game's positions; the three views match it at every pixel; the 640 surface replays 209 of 209 on our corrected tiles. The full preview PNG is a reference now. 11 of 14 aquilo:render digests re-frozen. The all view costs 257 -> 347 ms in the browser (terrain unchanged). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1d34pJNr7M9RVWCV2c
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1d34pJNr7M9RVWCV2c
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
Closes #553.
What changes
Aquilo's
all,resourcesandrocksviews now draw the wells and icebergs a real surface places, not the game's map preview. Eric's rule: accuracy to what the map will actually look like beats matching the preview.The gap was real, and almost all of it was icebergs. The game's own counts at map seed 123456 (preview by
--report-quantities, real by a force-generated surface):Big icebergs alone were 1,310 against 460 in the 1024 window.
The port follows the Gleba recipe:
Grades
oracle-aquilo-real-surface-entities.seed123456.json(scripts/probes/aquilo-real-surface-entities): every well and iceberg on the map a player gets over -512..511. Re-running it wrote the same bytes.Planted breaks
Each was run through the rebuilt module and the Rust tests, then reverted.
all1,107 px,resources30,rocks1,088; whole window 1,493 placedall168,rocks169; whole window 607 of 651all1,960,resources338,rocks1,685; whole window 345 of 650all10,resources3,rocks7; the 128-px tiles stop stitchingall72 px and the overlap testThe last row is a gap. Neither capture tells row-major from column-major (Gleba's could not either). Row-major stays because #492 measured it against a spiral and the reverse order.
Cost
The app's preview, Aquilo at seed 123456, headless Chrome with no DevTools client, the 15-worker pool on hammond, median of 7 interleaved runs. Both arms are the same production build with only
engine.wasmswapped, since nothing else undersrc/changed.mainterrainallThe
allranges do not overlap (250 to 264 against 333 to 353). The cost is the ring of chunks, which the planted break shows is needed. The module grew from 548,809 to 554,359 bytes.Not done
created_effectturns nearby water into snow and ice: 2,756 tiles of the default window, up to 5 tiles from a well. Part of it is a randomcluster, so a tile of the preview cannot reproduce it. It moves no entity (a stripped run placed the same entities).Gate
On hammond:
pnpm run verify:lintpassed. The fullpnpm vp testpassed (120 files, 1,405 tests, 3 skipped).bash scripts/verify-rust.shpassed: 623 + 60 + 2 Rust tests, the poison phase, theengine.wasmbyte check andcargo deny. The poison list gainsfixtures::aquilo_real_surface::aquilo_entities_replay_the_real_surface, which places 0 of 69 and 0 of 43 when poisoned.🤖 Generated with Claude Code
https://claude.ai/code/session_01Kd6o1d34pJNr7M9RVWCV2c
Summary by CodeRabbit