Repository navigation
Aravath showcase: bridge reroute, brush digs, integer columns - #329
Conversation
The greybox steps the bridge agent after the motor tick and does not edit the motor. Player digs enqueue a DestructionCommand brush and carve from that occupancy. Column tops come from the terrain seed through ColumnFns, leaving FlatColumnBase as the test double. The greybox golden moves from b663da52ea1d566e to 0a576578512f25d2 because the scripted dig and the bridge route are now in the hash. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
ColumnFns is the integer-column adapter, and the Aravath dig enqueues a sphere Subtract brush. FlatColumnBase stays the unbound terrain so the destruction replay case is unchanged. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
run_author_script rejects files outside the process directory. The mutation tests wrote those scripts under the system temp dir, so every retry failed with an escape error. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c2cfb7d293
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let seed = column_gen::surface_height(x, z); | ||
| let dug = self.demolition.terrain().surface_y(x, z); | ||
| let drop = seed.saturating_sub(dug); |
There was a problem hiding this comment.
Restore brush history when loading terrain edits
When a checkpoint containing earlier digs is loaded, Ground::restore_edits recreates the voxel grid but does not restore this new DestructionWorld, so drop is computed from an empty brush log after a restart or a stale log when loading an older checkpoint in-process. A subsequent dig can therefore remove nothing until the log catches up, or over-dig relative to the restored terrain; persist/replay the demolition commands or rebuild its occupancy alongside the voxel edits.
Useful? React with 👍 / 👎.
| let chunk = ( | ||
| brush.origin[0].div_euclid(crate::octree::CHUNK_EXTENT), | ||
| brush.origin[2].div_euclid(crate::octree::CHUNK_EXTENT), | ||
| ); | ||
| self.terrain.load(chunk); |
There was a problem hiding this comment.
Load every chunk touched by an immediate brush
When a sphere overlaps a 32-unit destruction-chunk boundary, this loads only the chunk containing the origin. Terrain::apply_brush records the brush for all touched chunks but rebuilds only loaded slots, and surface_y ignores unloaded slots, so Ground::dig_sphere observes zero drop on the neighboring side and leaves the hole clipped at the seam. Load all touched chunks before ticking the brush, or make the recorded delta queryable without requiring the slot to be loaded.
Useful? React with 👍 / 👎.
#329 is on main. ColumnFns binds the integer columns. The Linux and Windows golden is 0a576578512f25d2. The destruction replay case stays on FlatColumnBase. Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Description
Aravath greybox slice for #261, #250, and #249, branched from
201b73c8.Greybox::steprunsBridgeAgent::stepaftertick_controls. Collapse notices still update nav tiles inside the agent.motor.rs, climbing, and combat resolution are not edited. Traversal agentbc-005ab3afwas not readable from this run, so the motor stays on its existingMotor::tickpath.Ground::dig_sphereenqueues a sphereSubtractDestructionCommand::BrushthroughDestructionWorld::apply_brush_now. The island mesh is carved by the occupancy drop (column_gentop minussurface_y) so the streamed island fill still shows the hole. A full command log returns before that carve.ColumnFns(top,material) is the integer-column hook. The greybox bindscolumn_gen::surface_heightand the seed material function.astraweave-destructiondoes not depend onastraweave-terrain.FlatColumnBaseremains the terrain when the hook is unset, so thedestructionreplay hash stays put.rebuild_dagstill records density overrides only;ColumnFns::materialmatchesTerrainBase::column_material, which that rebuild does not call.DestructionWorldandBridgeAgentare boxed. Putting either by value inGreyboxoverflowed the stack.c2cfb7d2keeps the author mutation scripts inside the working directory.run_author_scriptrejected the system temp paths (escapes mod root).Golden
Intended.
aravath_runtime/golden/replay.hashmoves fromb663da52ea1d566eto0a576578512f25d2. The recorded script digs, and the hash now includes the brush edits plus the bridge route (route_x_milli,setup_ok,cut_milli). The motor state in that hash is unchanged. Noted onreplay_matches_golden_hash.Replay
.github/workflows/determinism-replay.ymlis untouched. All 15 required cases stay:planner_pure,perception_world,gameplay_rng,fixed64,combat_resolve,destruction,gameplay_qa_aravath_slice,nav_reroute,causal_bridge,scripted_system,weaving,traversal,traversal_deformed,worldgen_columns,deformed_chunk.No new assets. No GPU sim. Player-facing text stays Aravath. The 1660 Ti frame budget was not measured on this machine.
Do not merge.
Type of change
Security Considerations
Checklist