Commits
2026-08-19
🧹 fix(engine): the inverse admits its hole, the scale law lives onceAhmet Kaan Gümüş · 47c08dd
🧹 fix(engine): the inverse admits its hole, the scale law lives once invert fabricated an answer for the frames a shift-right piece never produces -- the hole between the identity run and the piece's own image -- against its own doc. It answers None there now, and a test walks the hole asserting so. The caption scale law lived twice, one copy clamped and one not, the exact duplication that drifted a frame before: scaled_caption_frame is now the single fn both write_speed and speeded_playhead call. The successor guard saturates instead of overflowing at the clamp ceiling, and the ungrouped-layer arm of whole_take is pinned by its own test again -- a layer is lifted, never rippled.
🐛 fix(engine): a shifted piece walks forward, a point collapse is realAhmet Kaan Gümüş · 84be3e4
🐛 fix(engine): a shifted piece walks forward, a point collapse is real A piece whose new run started before its old one collided with the identity run in front of it: apply(29)=29 then apply(30)=15, thirty frames of the domain not invertible -- against the module's own law. piece() now prepends an anchor knot at min(old.lo,new.lo), folding the band between the two los into the same collapse a removal makes, so apply stays one non-decreasing walk. new.lo==new.hi used to be refused as identity while the docs called it the removal shape; only an empty OLD run is identity now, and a literal point collapse is constructible. Docs rewritten to the truth: knots strictly increase on old, non-decreasing on new; one map per member; invert is a linear walk. The shape test now checks monotonicity and inversion over every shape: expansion, compression, both shifts, point collapse.
2026-08-16
🧹 fix(engine): the map's law is real, its inverse honest, its docs trueAhmet Kaan Gümüş · d2ac4e7
🧹 fix(engine): the map's law is real, its inverse honest, its docs true The sweep's survivor-continuity cell built its TimelineMap out of the playhead's own answer and then discarded it -- a law claimed and never asked. The map now comes from the member's own old geometry (old span, source length over the new rate) and the law is the clip's landed span against the map's ends, non-circular. invert() walked into a shifted piece's lerp from the wrong end below its first knot -- frames under min(old lo, new lo) are identity outright, and the shifted-piece test pins the whole run both ways. And the delete docs and one old test name still told the caption-lift story the ripple replaced; they tell the one-law story now.
✅ test(engine): the re-timing sweep, every op against the lawAhmet Kaan Gümüş · 5832d81
✅ test(engine): the re-timing sweep, every op against the law A table-driven property suite over every mutating op (delete from each anchor kind, speed at 2x and half, split, regroup, move, trim, paste) against four project shapes (ungrouped, grouped clips, aligned group with caption, the offset group) under the universal laws: links consistent, every lane sorted and disjoint on both its lists, the playhead's scene within the frame a rate can hold, and the undo round-trip byte-identical at one snapshot per op. Two harness findings on the way in, both of the harness and not the engine: a two-op cell must capture its pre-state between the ops, and a stretch the neighbours refuse is a valid cell -- the refusal names its wall and changed nothing. Paste is the named exception the suite pins directly: media lanes ripple, the words never move. TimelineMap's invert and the total shift answer the laws today and are gated test-only until the delete/paste migrations consume them in a build path.
🐛 fix(playback): the playhead follows the re-rate through the same mapAhmet Kaan Gümüş · 6d8f3a1
🐛 fix(playback): the playhead follows the re-rate through the same map A speed change left the playhead at its own timeline position while write_speed re-timed the group under it, so the scene changed with the rate -- at 2x from the middle of a clip the cursor jumped a clip's worth of content. Both the commit and every live sample of the bar now map the playhead through a TimelineMap built from the group's own old geometry: each clip member by its old rate against the new one about its own head, each caption member by the held clip's proportion about the held clip's head, and a playhead outside every member unmoved -- nothing ripples, so the difference is the gap's to absorb. TimelineMap (engine/src/map.rs) is the one piecewise-affine answer the re-timing ops will share; this is its read-side consumer, with the laws pinned (monotone, exact on the ends, invertible on the image) and the playhead its first user. The delete and paste migrations land next; until they do, invert and the total shift answer the laws tests alone.