Repository navigation
Render Aquilo in the preview (Stage 1 of #454) - #493
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
New module expressions/aquilo_resources.rs: the four starting cones, the starting mask, the three aquilo_spot_noise fields and the three well probabilities. All 11 fields match the game bit for bit at every position of all three lever cases (632, 452 and 626 positions). The spot cones needed the game's own arithmetic, read from the 2.1.23 binary: the peak is computed once in f64 with pi = 3.1416 (not the std pi), and the distance is f32. spot_field gains ConeArithmetic::GameBinary for this. Vulcanus keeps the ported arithmetic so its frozen counts do not move; switching it would raise its four region counts (measured, recorded in spot_field's docs, not applied). The size gate folds to +0 at size 0, as the game does. The three tier-1 tests join POISONED_TESTS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
Adds aquilo_terrain.rs (wobbles, aux, high-frequency peaks, snow/ice, tile variant, island peaks, elevation) and aquilo_stack.rs (AquiloCtx, AquiloStack, AquiloFields). Every field is a full house in all three lever cases of oracle-aquilo-entity-fields, and elevation and aux are 1024/1024 on oracle-aquilo-fields. random_island_peaks uses a new AmplitudeCorrectedGame: an f32 persistence plus the output_scale transform folded in f32 in the Lua's order. It scores 152/152 on the wrapper fixture where the shipped form is 81 (#254). Nauvis keeps the shipped form; moving it is its own change. Also the Task 3 doc carry-overs in spot_field.rs and fixtures.rs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
The catalog (tiles/aquilo_catalog.rs) scores 1,024/1,024 and 632/452/626 on all nine tiles and the winner. Carry-overs: AmplitudeCorrectedGame reuses the shared eval_at, the stack's grid test covers every raw field, the powf bits are pinned, and the resource scorer uses count_exact_bits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
Ruling R7: the iceberg overlay takes lithium-iceberg-huge's 3.7 x 2.5 box at every tile, the rule vulcanus_placement ships, since huge never wins the argmax. The census window now places 195 icebergs against the game's 180 (the argmax box placed 357). tile_at moves beside AquiloStack, and a measured seed pins the two-vent case at a chunk boundary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
… out-of-range field Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
Reads the three Aquilo resource controls (neutral 1/1 when absent), carries them through the panel and the render request, and dispatches Aquilo to the engine with the halo-widened placement sweep box. The capability row flips last. Gleba keeps its not-available note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
CI cost over three runs of this PR (the first run on open, then two re-runs of the same commit, since review asked for no changes), against the last three green pushes to
Neither median moved. The spread inside each column (about 4 to 5 minutes on 🤖 Generated with Claude Code |
Stage 1 of #454: Aquilo is now a full planet in the preview. Pick Aquilo and the terrain, resources, rocks and all views draw through the Rust/WASM engine, and the three resource sliders reshape the islands the way the game does. Gleba still shows "Client preview is not available for Gleba yet."
What changed
scripts/probes/aquilo-fields/): 30 Aquilo fields at three slider settings (default, all sizes 0, moved), plus a census of every well and iceberg the game placed in one region. Both carryPROVENANCE.jsonentries.crates/fmw-noise/src/spot_field.rs. Vulcanus is bit-identical after the move: its frozen fold did not change.REQUEST_BYTESstays 568.readAquiloResourceControls, the dispatch branch, and the capability row, flipped last.docs/rust-wasm-port.md, a shared-module section indocs/noise/spot-noise-NOTES.md, and a newdocs/noise/aquilo-NOTES.md.How it is graded
Tier 1 (game captures, exact f32 bit matches): every Aquilo field matches on every sample in all three cases. The 9 tile scores and the winning tile match at 1024, 632, 452 and 626 positions. The same fields were captured from 2.0.77 and 2.1.23.
Tier 2 (native against WASM, raw-bit folds): 28 fields in 4 windows, each at default and moved sliders, for 224 frozen rows. Every field takes more than one value in some case. Each of the six sliders changes at least one fold. An out-of-range field index folds 0.
Tier 3 (against the game's preview PNGs, derived seed 3111923328):
The 7 pixels outside the footprint at radius 1 are edges of large icebergs. The game draws them wider than our 3x3 mark.
The full-PNG check uses our terrain view, not the composite. Where the marks land is graded separately, by a per-colour count. The composite would differ on 1,102 pixels.
The
aquilo:renderdigests are a self-snapshot that catches changes. They are not a correctness grade.A planted swap of the crude oil and lithium bearings turned 12 of the 26 tier-3 tests red.
No frozen Nauvis, Vulcanus or Fulgora value moved at any tier.
Found along the way
amplitude_corrected_multioctave_noiseneeds f32 persistence and an f32output_scalein the Lua's order. That form is 152 of 152; the shipped form is 81. Aquilo uses the game's form, and Nauvis is unchanged here.Not done here
allview evaluates the whole Aquilo field stack about 4 times per tile, because each overlay query rebuilds it. Correctness is fine. The cost is not measured.Checks
pnpm run verifyexit 0 at b6eef13. Everything after that is docs and#[cfg(test)]code;bash scripts/verify-rust.shexit 0 at the head, andengine.wasmis unchanged by it.test/wasmAquiloRenderParity.spec.tstakes about 20s on a dev machine, against about 13s for the Fulgora spec.🤖 Generated with Claude Code
https://claude.ai/code/session_01LtSA5yo8C9AcqeSL8bQ3LT
Summary by CodeRabbit