Skip to content

Aravath showcase: bridge reroute, brush digs, integer columns - #329

Merged
lazyxeon merged 3 commits into
mainfrom
cursor/aravath-showcase-b844
Oct 16, 2026
Merged

lazyxeon merged 3 commits into
mainfrom
cursor/aravath-showcase-b844

Conversation

@lazyxeon

@lazyxeon lazyxeon commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Description

Aravath greybox slice for #261, #250, and #249, branched from 201b73c8.

  • Aravath showcase: bridge-collapse agent reroute #261 Greybox::step runs BridgeAgent::step after tick_controls. Collapse notices still update nav tiles inside the agent. motor.rs, climbing, and combat resolution are not edited. Traversal agent bc-005ab3af was not readable from this run, so the motor stays on its existing Motor::tick path.
  • destruction: call the demolition script from the Aravath runtime #250 Ground::dig_sphere enqueues a sphere Subtract DestructionCommand::Brush through DestructionWorld::apply_brush_now. The island mesh is carved by the occupancy drop (column_gen top minus surface_y) so the streamed island fill still shows the hole. A full command log returns before that carve.
  • destruction: adopt #215 integer columns after that PR merges #249 ColumnFns (top, material) is the integer-column hook. The greybox binds column_gen::surface_height and the seed material function. astraweave-destruction does not depend on astraweave-terrain. FlatColumnBase remains the terrain when the hook is unset, so the destruction replay hash stays put. rebuild_dag still records density overrides only; ColumnFns::material matches TerrainBase::column_material, which that rebuild does not call.

DestructionWorld and BridgeAgent are boxed. Putting either by value in Greybox overflowed the stack.

c2cfb7d2 keeps the author mutation scripts inside the working directory. run_author_script rejected the system temp paths (escapes mod root).

Golden

Intended. aravath_runtime/golden/replay.hash moves from b663da52ea1d566e to 0a576578512f25d2. 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 on replay_matches_golden_hash.

Replay

.github/workflows/determinism-replay.yml is 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

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Security enhancement

Security Considerations

  • Does this PR introduce new dependencies? If yes, have they been vetted for security issues? No new dependencies.
  • Does this PR modify how user input is handled? If yes, has it been validated/sanitized?
  • Does this PR change authentication or authorization mechanisms?
  • Does this PR access sensitive data or modify how it's stored?
  • Does this PR introduce new network communication or modify existing protocols? No. The greybox tokio-net check (Aravath greybox graph enables tokio net #326) is unchanged.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings
  • I have run security checks (cargo audit, cargo deny) locally
Open in Web Open in Cursor 

cursoragent and others added 2 commits October 16, 2026 13:46
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>
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 2a3f4180-4a21-4051-8790-3f2e95bd1653
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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>
@lazyxeon
lazyxeon marked this pull request as ready for review October 16, 2026 16:15
@lazyxeon
lazyxeon merged commit 84d3888 into main Oct 16, 2026
35 of 38 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T16:18:55.120094Z c2cfb7d Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lazyxeon
lazyxeon deleted the cursor/aravath-showcase-b844 branch October 16, 2026 16:16

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +256 to +258
let seed = column_gen::surface_height(x, z);
let dug = self.demolition.terrain().surface_y(x, z);
let drop = seed.saturating_sub(dug);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Comment on lines +210 to +214
let chunk = (
brush.origin[0].div_euclid(crate::octree::CHUNK_EXTENT),
brush.origin[2].div_euclid(crate::octree::CHUNK_EXTENT),
);
self.terrain.load(chunk);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

lazyxeon added a commit that referenced this pull request Oct 16, 2026
#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>
@cursor cursor Bot mentioned this pull request Oct 21, 2026
4 of 8 tasks
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.

2 participants