Skip to content

Traversal: tick sim, hybrid climb, and the Aravath course - #244

Merged
lazyxeon merged 12 commits into
mainfrom
feat/traversal-archaeology
Oct 16, 2026
Merged

lazyxeon merged 12 commits into
mainfrom
feat/traversal-archaeology

Conversation

@lazyxeon

@lazyxeon lazyxeon commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Description

Rebased onto main at cdea968c after PR #205 merged. The copied aravath_runtime tree is gone. This branch keeps main's demo and adds the traversal motor, the course, and foot/hand IK on top of it.

The diff is about 3,000 lines. Physics owns the tick sim (traversal.rs, deformed.rs). The greybox replay golden is b663da52ea1d566e because that motor now drives the island script.

The compare job keeps main's eleven cases and the two traversal cases:

  • planner_pure, perception_world, gameplay_rng, fixed64, combat_resolve, destruction, gameplay_qa_aravath_slice, nav_reroute, causal_bridge, scripted_system, weaving
  • traversal 5546a7c1244f37780c30704cd29537464281f9218403871f4e45d8f6576af214
  • traversal_deformed 48965cba19fa384a8989fc0e7bc58a303441118ea3c617aea5e03108def5149d

astraweave-destruction is main's crate. rock_wall_02_diff_1k.jpg is unused, so the file and its ASSET_MANIFEST.tsv row are both gone. The remaining manifest rows stay sorted and their sha256 values still match the LFS objects.

Advisory security failures tracked in #303 and #305–#311 are left as they are.

Do not merge this PR from here.

Milestones

  • Tick sim, hybrid climb, swim, and the rest of the traversal course stay in astraweave-physics.
  • deformed_step reads main's GeometryNotice and allows_climb. One-voxel seams ramp. A notice that covers the handhold detaches the climb and keeps velocity. The movement tick does not allocate.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • 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? No external crates.
  • Does this PR modify how user input is handled? Climb remains Action::Interact held, on main's PlayInput.
  • 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?

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 

@coderabbitai

coderabbitai Bot commented Oct 15, 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: 88e1f620-0c86-4543-a536-1a93c6b8bf2f
  • 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.

@cursor
cursor Bot force-pushed the feat/traversal-archaeology branch from 9ccae8b to e02dd99 Compare October 15, 2026 02:43
@cursor cursor Bot changed the title Traversal archaeology and review-gated upgrade plan Traversal: tick sim, hybrid climb, and the Aravath course Oct 15, 2026
@cursor
cursor Bot changed the base branch from main to cursor/aravath-greybox-b3de October 15, 2026 03:06
@cursor
cursor Bot force-pushed the feat/traversal-archaeology branch from f7fb3a5 to cee579c Compare October 15, 2026 17:50
@cursor
cursor Bot changed the base branch from cursor/aravath-greybox-b3de to main October 15, 2026 17:51
@cursor
cursor Bot force-pushed the feat/traversal-archaeology branch from 7cbdade to a62120a Compare October 15, 2026 20:02
cursoragent and others added 11 commits October 16, 2026 03:42
Record what actually moves a body, which climb and swim paths are stubs
or dormant, and the determinism gaps. The upgrade plan stops before any
feature code, including the traversal replay case.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Add the tick sim and the required traversal replay case. Reset
character_full_tick onto the finite ground without weakening the
y > -10 check. Slope, jump, and facing roots stay on libm.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Ground, air, crouch, sprint, and roll now step once per 60 Hz tick.
Roll i-frames are ticks 5 through 19. The demo replay golden matches
the new displacement.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Phases 2-6 share one tick stepper. Probes cover step, vault, and mantle.
Climb is hybrid: markup wins, otherwise flagged surfaces, with regen
locked and a collision-deviation lint. Swim reuses WaterPlayerState.
Slide, prone, wall-run, glide, ledge, and shimmy run in the course
script. Foot and hand IK stay on the presentation graph.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Consume GeometryNotice and allows_climb from the destruction crate.
One-voxel seams ramp instead of snagging, a destroyed handhold detaches
while keeping velocity, and the movement tick does not allocate. The
replay case walks and climbs terrain that a brush cuts mid-run.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
The gate's rustfmt check failed because the third-person module and
re-export were inserted out of alphabetical order.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Main's cell-position vertex cache did not match the marching-cubes
edge table, so the Aravath island trimesh did not hold the character.
One vertex per crossed edge restores the stand, the camera ray, and
the streamed chunk. The greybox golden returns to b663da52ea1d566e.
Traversal replay digests are unchanged.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
The push of 341e6d7 recorded CodeRabbit only. The pull-request workflows did not start.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Nothing in the demo loads rock_wall_02_diff_1k.jpg. The terrain trace now
names the rebased mesher commit.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
The island script now hashes to b663da52ea1d566e. Duplicate libm and
veil dependency lines from the rebase are gone, and the workspace
member list matches main.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
@cursor
cursor Bot force-pushed the feat/traversal-archaeology branch from a62120a to bf74dd0 Compare October 16, 2026 03:51
Nothing loads rock_wall_02_diff_1k.jpg. The manifest row was the only
remaining reference, so the hash check failed looking for the file.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
@lazyxeon
lazyxeon marked this pull request as ready for review October 16, 2026 05:47
@lazyxeon
lazyxeon merged commit a10780f into main Oct 16, 2026
29 of 32 checks passed
@lazyxeon
lazyxeon deleted the feat/traversal-archaeology branch October 16, 2026 05:47
@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-16T05:51:03.674037Z 7cc14be 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.

@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: 7cc14be28b

ℹ️ 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 +265 to +267
let half = capsule_half(physics, player.body);
let center = self.body.pos + Vec3::Y * half;
physics.place_character(player.body, center);

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 Route locomotion through collision resolution

During ordinary non-fly movement, TraversalBody advances its position and this call teleports the kinematic capsule directly there. Unlike the previous control_character path, place_character performs no forward cast or slide, while ground_probe only checks downward support. Consequently, walking or rolling toward walls and other colliders can move the player into or through them; the traversal displacement must be resolved against the world before publishing the capsule position.

Useful? React with 👍 / 👎.

Comment on lines +298 to +300
if let Some(center) = physics.body_transform(body).map(|m| m.w_axis.truncate()) {
probe.water_surface = physics.water_surface_at(center);
probe.climbability = physics.climbability_at(body, center);

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 Probe the contacted surface before starting climbs

In the live Aravath motor, holding Interact can never start a climb: this probe never populates climb_point or markup_point, and it asks climbability_at about player.body, whose ActorKind::Character is explicitly classified as NonClimbable, rather than about the contacted wall. The synthetic course supplies those fields manually, so its tests do not cover this integration failure; a forward contact probe needs to provide the anchor, normal, and hit geometry ID.

Useful? React with 👍 / 👎.

Comment on lines +458 to +463
let wish = wish_dir(input);
let mut delta = scale(wish, CLIMB_SPEED * TICK_DT);
if probe.climbability == Climbability::Slippery {
delta.y -= 0.4 * TICK_DT;
}
body.pos += delta;

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 Map forward climb input to vertical movement

Once a caller supplies a valid climb probe, holding forward still cannot ascend because wish_dir always returns an XZ vector and the climb step applies it directly to position. Thus delta.y remains zero for climbable surfaces (apart from the forced downward slip), leaving the character at the initial anchor until a ledge is injected externally; climbing input should be projected onto the wall's vertical/tangent basis.

Useful? React with 👍 / 👎.

Comment on lines +532 to +534
body.mode = TraversalMode::Swim;
body.pos.y = surface - 0.2;
body.vel.y = 0.0;

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 Keep swimmers below the exit-depth threshold

After entering Swim in sufficiently deep water, this branch places the feet only 0.2 m below the surface, but the next ticks use that same feet depth against the 1.1 m SWIM_DEPTH threshold. water_hold therefore counts down and forces Ground after two ticks even though the water query is unchanged, causing the character to repeatedly exit, fall, and re-enter the water. The swim placement and depth/exit reference must use consistent body points or thresholds.

Useful? React with 👍 / 👎.

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