forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 978e6857d64772912559c8d8a4e6ee7cd309bdccFiltered to crates/engine/src/sweep.rsClear filter

2026-08-19

✨ feat(engine): clips can name a dissolve into their neighbor (edith 19, storage+format)Ahmet Kaan Gümüş · 8369d8e
✨ feat(engine): clips can name a dissolve into their neighbor (edith 19, storage+format)

transition_out frames on a video clip dissolve it into the adjacent
next clip; split keeps the tail's transition clamped and zeroes the
head; v18 files load with hard cuts, v19 round-trips bit-exactly.
Blending (playback and export) lands separately.
✨ feat(engine): per-clip audio fades, adjacency crossfade, and edith 18Ahmet Kaan Gümüş · 6d0747c
✨ feat(engine): per-clip audio fades, adjacency crossfade, and edith 18

Clip carries fade_in/fade_out, an equal-power gain envelope mixed into
playback and export, a crossfade() op that sets both edges of two
adjacent audio clips, and split's rule that only the kept edge keeps its
fade. The project file format bumps to edith 18 to carry the two new
fields; a v17 (or older) file loads with every clip's fades at zero.

Fixes a stray fade_in/fade_out struct-literal fragment left outside any
Clip literal in Player::trimmed (crates/app/src/player/timeline_edit.rs),
which was a syntax error breaking the whole app crate's build.

Adds unit coverage for Fade::gain_at's boundary/midpoint curve, the
split edge rule, crossfade's adjacency refusal, the Clip size-lock
test (40 -> 48 bytes), and a v17-loads-zero-fades / v18-round-trips
edith.rs test.
✅ test(engine): the sweep says what it covers, and asserts what it saysAhmet Kaan Gümüş · 3e1c94d
✅ test(engine): the sweep says what it covers, and asserts what it says

Two asserts were disjunctions under comments claiming conjunctions --
either half passing hid real failures. One was a true conjunction
(single's V1 and A1 are linked from creation, the span leaves both);
the other papered over two genuinely different per-shape outcomes, now
a match asserting each shape's exact state.

The header claimed every mutating op and swept 8 of 37. Six new sweeps
take ripple_delete, cut_regions, lift, lift_sub, move_sub, trim_sub,
place, place_take, place_sub, delete, set_speed_live and retime through
the laws; the ops that move no placement -- group bookkeeping, lane and
source tables -- are scoped out by name instead of silently missing.
retime costs no undo step by design and is swept order-only.

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.