Skip to content

Reject weave origins that overflow the millimetre conversion - #388

Merged
lazyxeon merged 9 commits into
mainfrom
cursor/weave-origin-island-b3de
Oct 21, 2026
Merged

lazyxeon merged 9 commits into
mainfrom
cursor/weave-origin-island-b3de

Conversation

@lazyxeon

Copy link
Copy Markdown
Owner

Description

Weave origins that cannot become millimetres without overflow are rejected. In-range casts keep the same cells and the same millimetre bounds.

queue_weave already refused a cell outside ±2048 (ISLAND_HALF_CELLS) and left the queue unchanged. That check stays. The remaining overflow was meters_to_cell: (m * 1000.0) as i32 saturates, and compile_legacy then multiplied the cell by CELL_MM.

  • meters_to_cell returns None when the metre value is not finite or the millimetre value does not fit in i32, before that cast.
  • compile_legacy drops the op when any origin cell is missing or outside the island. It does not clamp the origin into range.
  • Ice bounds in compile_legacy and push_ice use checked_mul. A product that does not fit is omitted, not wrapped.

origins_outside_the_island_are_rejected_without_saturation still locks the queue. far_origin_does_not_saturate_into_a_milli_aabb locks the metre path: 1e20 produces no ice bound, and the island edge 2048 still freezes at (2048 - 2) * 1000 mm. The weaving replay case still queues the same in-range cells ([0,0,0], [2,0,0], [0,1,0], [0,0,1]).

Fixes #295

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? 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? Weave origins outside the island, and metre values that do not fit in i32 millimetres, are rejected instead of saturating.
  • 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 20, 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: Repository: lazyxeon/AstraWeave/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 913a4bfd-03ed-4da7-8d04-5a431d9feca6
  • 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.

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

queue_weave already drops cells outside the island. meters_to_cell now refuses a non-finite or out-of-i32 metre value before the saturating cast, and compile_legacy drops that origin instead of building an ice bound. In-range casts still use the same cell and millimetre values.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/weave-origin-island-b3de branch from d782564 to 50dbf5a Compare October 20, 2026 22:03

@cursor cursor 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.

Adversarial review of the millimetre-overflow rejection. The direction is right: in-range freeze bytes stay on the old multiply, queue_weave already refuses origins outside ±2048, and weaving_case_bytes never calls meters_to_cell. No new unsafe, no tick allocation, no RNG, and the new f32 checks are IEEE multiply plus comparisons, so the reject set is cross-OS stable.

The new gate is not closed.

  1. meters_to_cell still saturates one finite input. i32::MAX as f32 is 2^31 (0x4f000000), so milli > i32::MAX as f32 lets that value through and as i32 saturates to i32::MAX. The f32 nearest 2^31 / 1000 (prints as 2147483.8) returns Some(2_147_483) instead of None. cell_origin then drops it, so compile_legacy is saved, but the public contract and invariant 13 are false. Use milli >= i32::MAX as f32 (every smaller finite f32 is at most 2147483392 and fits). The negative bound is exact; a scan found no negative hole.
  2. The only production caller, astraweave-gameplay::apply_weave_op, treats a dropped op as success. It still spends terrain or weather budget and returns the kind's consequence (faction_disposition: 5, weather_shift: Some("frozen")) when geometry was not applied.
  3. Only point a is bounded. Collapse still does bx as i32 / bz as i32. A finite in-island a plus b = [1e20, …] saturates to i32::MAX. draw_line_obs then walks one cell at a time. i32::MAX - negative_a overflows (debug panic, release wrap). A wrapped signum of -1 never reaches b, so the loop does not terminate.
  4. push_ice commits phase writes in push_command before the new early return. With ISLAND_HALF_CELLS = 2048, CELL_MM = 1000, and a u8 radius, the product tops out near 2.3e6 and the None arm is dead for every queue_weave command. If a later radius or cell size makes it live, replay bytes keep the stamps and drop sheet_count / nav_count, which breaks invariant 12. Fail the command before store_writes, or debug_assert the island invariant instead of returning.

far_origin_does_not_saturate_into_a_milli_aabb does not lock any of these. 1e20 is rejected by the coarse range check, and the island-edge case never builds m * 1000 == 2^31, a NaN/±inf origin, a negative edge, or a collapse endpoint. last_verified_commit is still fb1c8ec2 after the 1.9 restamp.

In-range weaving replay bytes are unchanged. I would not merge until the cast bound, the gameplay fail-open, and the collapse endpoint are fixed.

Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread astraweave-weaving/src/field.rs Resolved
Comment thread astraweave-weaving/src/legacy.rs Resolved
Comment thread astraweave-weaving/src/eval.rs Resolved
Comment thread docs/architecture/weaving.md Resolved
cursoragent and others added 2 commits October 20, 2026 23:53
meters_to_cell rejects millimetre values at or above 2^31. A dropped legacy op no longer spends budget or returns a consequence. Collapse endpoint b uses the same island check as a. push_ice asserts that bound and still emits the ice sheet after the writes.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>

@cursor cursor 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.

Adversarial re-review after bc553b45 and 65dee631. The four holes from the review on 50dbf5af are closed.

  • meters_to_cell rejects non-finite values, and millimetres at or above 2^31, before the cast. A scan of every mantissa in the f32 binades around ±2^31, both signs, found no accepted value that saturates in as i32. The negative edge the test locks, (i32::MIN as f32) / 1000, becomes cell -2147484, and cell_origin drops it because that cell is outside ±2048.
  • apply_weave_op bails on a dropped op before it spends budget, writes physics, or calls apply_director_plan. The kind check matches compile_legacy: fortify for 0/4, collapse for 1, write_count for 2/3, ice min for 5. A collapse with b == None still returns "Collapse needs A->B" first.
  • Collapse endpoint b uses the same finite-and-island check as a. A passing origin is within about ±2049 m, so the later as i32 cannot saturate. draw_line_obs therefore never sees i32::MAX, and b.x - a.x stays within a few thousand. The wrapped-signum loop is closed. Terrain amplitudes here are a few hundred metres, under the 2048 m cube, so the Y axis of that check does not reject current casts.
  • push_ice asserts the island cube and still emits the sheet after the writes. queue_weave is the only enqueue and rejects that cube first. With CELL_MM = 1000 and a u8 radius the largest corner is (2048 + 255 + 1) * 1000 = 2_304_000, which fits in i32, so the release multiply does not wrap for any queued command. Builtin freeze uses radius 2. weaving_case_bytes never calls meters_to_cell. In-range ice products from checked_mul match the old multiply.

Security and determinism: no new dependencies, astraweave-weaving still has forbid(unsafe_code), and the reject predicate is an IEEE multiply plus comparisons. No wall clock, no RNG, and no allocation on the weave tick. On Rust 1.89, float-to-int casts saturate: 1e20 as i32 is i32::MAX, inf as i8 is 127, NaN as i8 is 0. Wind's (b - a) as i8 is then clamped to -1..=1. A non-finite wind endpoint still passes legacy_geometry_kept for kind 2. PhysicsWorld::set_wind stores zero, because glam's normalize_or_zero rejects a non-finite reciprocal. That spends a weather op and reports windy with a zero vector. It does not write NaN into the wind vector and it does not loop.

compile_legacy has no production caller besides apply_weave_op. The playground still discards that Result with let _ =, so a rejected cast there stays silent. That discard predates this change.

Tests run here: astraweave-weaving legacy module (5) and meters_to_cell_rejects_non_finite_and_the_i32_edge; astraweave-gameplay weaving::tests (16). All passed.

One code fix still belongs on this branch: gravity_conversion_matches_9810 lost its #[test] attribute to the new boundary test, and the test binary warns that the function is never used. The trace restamp should also stop certifying the FreezeWater "no physics mutation" sentence.

Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread astraweave-weaving/src/field.rs Resolved
Comment thread astraweave-weaving/src/field.rs Resolved
Comment thread docs/architecture/gameplay.md Resolved
cursoragent and others added 2 commits October 21, 2026 01:15
gravity_conversion_matches_9810 is a test again. A non-finite wind endpoint drops the op before a weather spend. The gameplay trace no longer says FreezeWater leaves physics unchanged.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>

@cursor cursor 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.

Adversarial re-review of d318ebff (code at ff3724c1). The four holes from the review on 50dbf5af stay closed, and the two follow-ups from the review on 65dee631 are split.

Closed, re-checked against the callers:

  • meters_to_cell rejects non-finite values and any product >= 2^31 before the cast. The greatest finite f32 below 2^31 is 0x4effffff = 2147483520 (ulp 128, not 256). That value fits in i32, and every larger binade step is >= 2^31 and rejected. i32::MIN is exact; the next more-negative f32 is rejected. div_euclid of that edge is -2147484, then cell_origin drops it. No accepted value saturates.
  • apply_weave_op bails on a dropped op before budget, physics, and apply_director_plan. Kind 0/4 require fortify, kind 1 requires collapse, kind 5 requires ice_min_milli.
  • Collapse endpoint b uses the same island check as a. A kept metre is inside about ±2049, so as i32 stays inside ±2048. draw_line_obs then sees a delta of at most 4096. signum cannot wrap, and the loop terminates.
  • push_ice asserts the island cube and still emits the sheet after store_writes. queue_weave is the only enqueue. With CELL_MM = 1000 and a u8 radius the extreme corner is (2048 + 255 + 1) * 1000 = 2_304_000, which fits in i32. Builtin freeze uses radius 2. Loaded templates never reach push_ice.
  • gravity_conversion_matches_9810 has its #[test] again. Invariant 5 now says a kept FreezeWater inserts one static AABB.
  • weaving_case_on still queues integer cells ([0,0,0], [2,0,0], [0,1,0], [0,0,1]) and does not call meters_to_cell. In-range ice products match the old multiply. astraweave-weaving still has forbid(unsafe_code). No new dependencies, no wall clock, no RNG, no tick allocation. The reject predicate is one IEEE multiply plus comparisons, so the reject set is cross-OS stable.

Still open:

  1. Kind 2 only tests is_finite. A finite endpoint at or above about 1.9e19 overflows the square inside Vec3::normalize_or_zero (glam 0.30.8). apply_weave_op still spends a weather op, overwrites PhysicsWorld.wind with zero, and returns windy. The clamped SetWind write is not what physics reads. Details on legacy.rs.
  2. The comment on meters_to_cell still says the cell truncates toward zero, and that every smaller finite f32 is at most 2147483392. -1.5 is locked as Some(-2). The predecessor of 2^31 is 2147483520. The >= comparison is the right one; the sentences are not. Left the existing thread open.
  3. Invariant 5 is fixed. The stage-detail note, the §9 bullet, and the open question still say apply_weave_op bakes a navmesh at weaving.rs:113. That line is apply_director_plan. Line 20 discards nav_src. There is no NavMesh::bake in the function.

The playground still discards apply_weave_op's Result with let _ =. That discard predates this change, so a rejected cast there stays silent.

I would not merge until the wind magnitude hole is closed. The comment and the bake citation should be corrected in the same stamp; they do not block on their own.

This run did not re-execute cargo test. The workspace target directory is cold. The float bounds above were checked by decoding the f32 bit patterns, and the wind zero path was checked against glam 0.30.8 Vec3::normalize_or_zero.

Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread astraweave-weaving/src/legacy.rs Resolved
Comment thread docs/architecture/gameplay.md Resolved
cursoragent and others added 2 commits October 21, 2026 02:39
normalize is only called after the squared length is finite, and that check bails before the weather spend. meters_to_cell's comment now says the conversion floors, and that the f32 before 2^31 is 2147483520.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>

@cursor cursor 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.

Adversarial re-review of f3abdf06 (code at fbd1d331). The overflow hole from the last review is closed. A squared length of zero is not.

Closed, re-checked against the callers and a standalone f32 probe (same operations as wind_delta_fits and glam 0.30.8 normalize_or):

  • 1.9e19 and 1e20 square to +inf and are rejected in both wind_delta_fits and wind_direction, before budget spend and before set_wind. 1e19 and the greatest finite square (1.8446743e19, len2 = 3.4028233e38) normalize to 1 and stay accepted. Three components of 1.2e19 overflow the sum and are rejected; three of 1e19 stay finite (3e38).
  • meters_to_cell still floors (-1.5 → -2) and rejects non-finite values and millimetres at or above 2^31 before the cast. The negative edge rounds to milli -2147483600 and cell -2147484, matching the test. The predicate comment now states that.
  • In-range collapse and fortify coordinates stay inside about ±2048, so draw_line_obs's b - a no longer hits the i32 overflow that wrapped signum and failed to terminate. queue_weave is still the only way into push_ice, and the weaving replay still does not call meters_to_cell or compile_legacy. No new unsafe, no RNG, no wall clock. The new rejects are IEEE multiply and is_finite, so the reject set does not fork across OS.

Still open:

  • A finite squared length of +0 is accepted. Exact zero and any component whose square underflows (0, 1e-45, 1e-30, 1e-23) take that path, normalize_or_zero returns zero, and set_wind clears the stored wind while the op spends weather_ops and reports windy. 1e-22 still normalizes and must stay accepted. Both gates have to reject the zero square; apply_weave_op does not read the SetWind write.
  • The fbd1d331 gameplay stamp still says apply_weave_op re-bakes a navmesh. It does not. nav_src is discarded on line 20. The cited weaving.rs:113 is the ice AABB max vector. The same sentence is still in the §9 bullet and the §11 question.
Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread astraweave-gameplay/src/weaving.rs Resolved
Comment thread astraweave-weaving/src/legacy.rs Resolved
cursoragent and others added 2 commits October 21, 2026 04:11
A zero step and squares that underflow to +0 no longer clear the wind or spend a weather op. 1e-22 still redirects. The gameplay trace no longer says apply_weave_op bakes a navmesh.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>

@cursor cursor 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.

Adversarial re-review of a4166d8c (code at 9403e3b6). The three open findings are closed. I would merge this.

Closed, re-checked against the callers, a standalone f32 probe of the same operations, and the crate tests:

  • Zero-square wind is rejected before budget and before set_wind. wind_delta_fits requires a finite square that is strictly positive. wind_direction also rejects a zero or non-finite normalize_or_zero. Probe: 0, -0, 1e-45, 1e-30, and 1e-23 have a zero square. 1e-22 stays finite and non-zero. 1.8446743e19 stays (square 3.4028233e38); 1.8446744e19 and 1.9e19 are +inf. Three components of 1e19 stay finite (3e38); three of 1.2e19 overflow the sum. 5e-23 is the first positive square (3e-45) and normalizes to about 0.94; PhysicsWorld::set_wind normalizes again and multiplies by 10, so the stored wind is not zero. apply_weave_op does not read the SetWind write.
  • The millimetre cast does not saturate. A full mantissa scan of the f32 binades around ±2^31 found no accepted value that saturates in as i32. (i32::MAX as f32) / 1000 multiplies back to bits 0x4f000000 (2^31) and is rejected by >=. The predecessor 0x4effffff casts to 2147483520 and fits. The negative edge is exactly -2^31, casts to i32::MIN, and div_euclid is -2147484. That cell is outside ±2048, so compile_legacy drops it. cell_to_milli(-2147484) is None. No current caller multiplies that cell.
  • A kept collapse endpoint truncates into [-2048, 2048]. draw_line_obs's b - a is at most 4096, signum cannot wrap, and the loop terminates. -2047.1 floors to cell -2048 (kept) and truncates to -2047. -2048.1 floors to -2049 and is dropped. Fortify and collapse still truncate; the island gate floors. In-range integers are unchanged.
  • The bake citation is gone. Invariant 5 is the ice AABB. nav_src is discarded. last_verified_commit is 9403e3b6.
  • No new dependency and no unsafe (forbid(unsafe_code) remains). queue_weave is still the only enqueue. push_ice multiplies inside that cube; the extreme corner (2048 + 255 + 1) * 1000 = 2_304_000 fits in i32. The weaving replay still queues integer cells ([0,0,0], [2,0,0], [0,1,0], [0,0,1]) and does not call meters_to_cell. The new rejects are IEEE multiply and compare, so the reject set does not fork across OS. Accepted wind still uses glam's libm sqrt, which was already the contract, and that path is not in the replay hash.

Tests run here: astraweave-weaving lib, the 6 named cast and wind tests, all passed (including gravity_conversion_matches_9810). astraweave-gameplay weaving::, 18 tests, all passed (including weave_op_edges_fail_closed and non_finite_wind_endpoint_does_not_spend_weather).

One diagnostic nit, not a merge block: a zero or overflowing wind still reports "weave origin is outside the island", and the weather test locks that sentence. The playground still discards apply_weave_op's Result with let _ = on the collapse and wind keys. That discard predates this change.

Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

let end = op.b.unwrap_or(op.a + vec3(1.0, 0.0, 0.0));
Some(
wind_direction(op.a, end)
.ok_or_else(|| anyhow::anyhow!("weave origin is outside the island"))?,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Non-blocking. This string is now the failure for every wind_direction reject, including a zero delta, a square that underflows (1e-23), and a square that overflows (1.9e19). None of those origins are outside ±2048.

non_finite_wind_endpoint_does_not_spend_weather locks contains("outside the island") for NaN and 1.9e19, so the false reason is part of the test contract. The world effect is still right: budget unchanged, previous wind unchanged (weave_op_edges_fail_closed passed, 18/18). A distinct message would only help the caller tell a bad direction from a bad origin. The same sentence on the geometry bail below is accurate for a dropped cell.

@lazyxeon
lazyxeon marked this pull request as ready for review October 21, 2026 05:33
@lazyxeon
lazyxeon merged commit 43b1b48 into main Oct 21, 2026
36 checks passed
@lazyxeon
lazyxeon deleted the cursor/weave-origin-island-b3de branch October 21, 2026 05:33
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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-21T05:35:32.181189Z a4166d8 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.

@cursor cursor 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.

Adversarial re-review of the squash 43b1b48f (the eight touched files match a4166d8c). The overflow, budget, collapse, and zero-square holes from the earlier threads are closed. The change is sound.

Checked against the callers, a full f32 scan of the landed predicate, and glam 0.30.8 normalize_or_zero:

  • Every finite f32 through meters_to_cell: 2,483,430,623 accepted values, 0 that saturate in as i32. (i32::MAX as f32) / 1000 (bits 0x4a03126f) is None. The negative edge is Some(-2147484). div_euclid of that cast does not hit i32::MIN. cell_to_milli(-2147484) does not fit, and that cell is outside ±2048, so compile_legacy drops it before a multiply. The finite f32 before 2^31 (2147483520) casts cleanly; as metres it is cell 2147483, which the island gate drops.
  • Wind squares match both gates and glam. 0, -0, 1e-45, 1e-30, and 1e-23 have a zero square and normalize to zero. 5e-23 (square 3e-45) normalizes to about 0.94, and set_wind of that direction is non-zero. 1e-22 stays. 1e19 and 1.8446743e19 stay (square 3.4028233e38). 1.8446744e19, 1.9e19, 1e20, f32::MAX, and (10, 1.9e19, 0) are rejected. Three components of 1e19 stay; three of 1.2e19 overflow the sum. Rejection is before set_wind and before the weather spend.
  • queue_weave still rejects an origin outside ±2048 before push_ice. The extreme corner (2048 + 255 + 1) * 1000 = 2_304_000 fits in i32. Builtin freeze radius is 2. Loaded templates do not call push_ice. Release builds strip the debug_assert; a queued origin still cannot wrap the product.
  • A kept collapse endpoint truncates into [-2048, 2048]. draw_line_obs's b - a is at most 4096, so signum cannot wrap and the loop terminates. apply_weave_op bails before the budget decrement and before add_static_aabb, set_wind, and apply_director_plan. nav_src is discarded. add_static_aabb inserts a fixed cuboid.
  • No new dependency and no unsafe (forbid(unsafe_code) remains on astraweave-weaving). No RNG and no wall clock on the new path. The reject predicates are IEEE multiply and compare, so the reject set does not fork across OS. The weaving replay still passes integer cells through queue_weave and does not call meters_to_cell. Accepted wind still uses glam's libm sqrt, which was already the contract, and that path is not in the replay hash. Replay hash on ubuntu, windows, and macos succeeded, as did fmt/clippy, cargo-audit, and cargo-deny.

Still open, and not a reason to revert:

  • The thread on weaving.rs:52 stands. A zero delta, an underflow (1e-23), and an overflowing square (1.9e19) still report "weave origin is outside the island". The tests lock that sentence. Budget and the previous wind stay unchanged.
  • docs/architecture/gameplay.md §10 still counts 14 #[test]s in weaving.rs. The file has 18.
  • last_verified_commit is 9403e3b6. That commit is not an ancestor of main after the squash. The landed bytes are 43b1b48f.
  • Fortify and collapse still truncate metres (as i32) after the floor gate. -1.5 is kept and the rect is centered on -1. Integers inside the island are unchanged. The edge tests do not read the obstacle set.

This run did not re-execute cargo test. The float scan and the glam 0.30.8 probe were local. The crate tests are the CI results on this commit.

Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

lazyxeon added a commit that referenced this pull request Oct 21, 2026
* docs: record the weave origin island on main

outside ±2048 cells and does not saturate, and the weaving replay
case still hashes NullField.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>

* docs: record #394, #396, and #397 on the status pages

#397 closed #260. The mod host rejects an out-of-island origin before
the cast is stored. #394 keeps the retired title out of player-facing
assets. The 0.323 ms figure is the cloud_shadow pass.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>

* docs: correct the weave-origin citations the audit flagged

A dropped wind returns from wind_direction before legacy_geometry_kept.
A failed mod run drops only that agent's casts. SEC-MOD-2 is the
range check already on main. The status pins name which sentences
were checked at 49d289e.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>

* docs: name both Hi-Z flags and the echoes scan

draw_into records the pyramid only when hiz_depth_load and sample_hiz
are both set. The name gate includes echoes.toml. #269 was
cross-referenced by #389. The close was not attributed. compile_legacy
drop sites are the empty returns, not cell_origin.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>

* docs: a failed weave run drops only that call

The tick walks scripts, then agents. An earlier Ok for the same agent
stays applied. The new test locks that. The scripting trace now says
nineteen replay cases, and sample_hiz is the flag that defaults off.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>

* docs: a later weave success still lands after a failed script

The test queues a cast, a failing origin, then another cast, and
compares two runs. #217 landed when the required replay set was
fifteen. The required set is now nineteen. Revision 1.6 is withdrawn.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>

* docs: stamp the scripting trace at the commit that has the test

last_verified_commit is 79122e7. That commit contains the three-source
weave test and invariant 9. 49d289e is trace 1.5 and does not.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
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.

Weave origin can overflow the millimetre conversion

2 participants