Aetheria/native
Repository files (latest commit first)
Filename Latest commit message Latest commit date
soul 9c8ab5ec85 aetherlight: TickMinutes owns its bound at decode, replay's clock clause goes
TickMinutes was serde(transparent): a stored zero-minute tick (or a span above
MAX_ROUTE_COST, which submit cannot build) decoded, and replay's clock clause
alone judged it. The type now decodes through TryFrom<u32> (1..=MAX_ROUTE_COST),
so a command, a routine period or a stored tick outside the bound cannot be read.
With that the clock clause in verify_history is unreachable (only TimeAdvanced
writes the clock, and a tick's span is at least one minute), so it is deleted
rather than defended; so is the period clause in verify_state_shape. Tests:
bounds at decode, and an export whose tick span is rewritten to 0 or over the
bound does not open. Addresses clock-clause-not-redundant.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 04:49:28 +01:00
..
aetherlight aetherlight: TickMinutes owns its bound at decode, replay's clock clause goes 2026-11-20 04:49:28 +01:00