Commits
2026-10-23
Restore edith_codecs after local data loss (2026-10-23)Ahmet Kaan Gümüş · b7434a2
Restore edith_codecs after local data loss (2026-10-23) On 2026-10-23 an automated agent ran `rm -rf $HOME` and deleted the local repository with all of its history. This commit restores the working tree from the newest surviving copy, the host-c server lane mirror. That mirror matches local main as of the testcut Phase 2 reports, including the tool cache, the nextest fast profile and changed-crates.sh. The history before this commit was not recovered.
2026-09-29
tests: close the rest of the real-media-library class (4 sites)Ahmet Kaan Gümüş · b1bc5d6
tests: close the rest of the real-media-library class (4 sites)
Follow-ups to the shape sweep, all approved. Each was red on a runner for a
reason that had nothing to do with a decoder.
ec-probe/tests/library.rs:490 -- REMOVE the minimum-count assert rather than
ignore the test. The file's own header is the spec, and it says so at lines
5-6: "Files that have since moved are skipped and reported, never failed --
the manifest is a snapshot of a moving library." An empty `chosen` IS the
moved-files case, so the assert contradicted the contract the file declares:
the contract is the spec, not the assert. Replaced with a named SKIP and a
return, which is what "skipped and reported" asks for.
before: red-on-runner whenever every manifest path had moved
after: 1 passed; 0 failed; 0 ignored
ec-aac/tests/sbr_real_library.rs:4797 and ec-aac/tests/obs_real_content.rs:151
-- bare env::var("HOME").unwrap() -> unwrap_or_default(), the shape the five
sibling HOME reads in sbr_real_library.rs already use (:2710, :3426, :4109,
:4182, :4575). A HOME-less host is a fleet runner, so this was a panic there;
the batch has now hit that class from three directions.
before: FAILED. 0 passed; 1 failed
called `Result::unwrap()` on an `Err` value: NotPresent
after: 1 passed; 0 failed; 0 ignored (both, under `env -u HOME`)
ec-matroska/tests/matroska.rs:966 -- the manifest was read from a hardcoded
absolute path into the primary checkout, unlike every sibling. That defeats
worktree isolation even while the test is ignored: a run in a worktree or a
gate tree read the MAIN checkout's manifest, so it measured a different
tree's library than the one it was compiled from. Now `fixtures()`, i.e.
CARGO_MANIFEST_DIR-relative.
The two HOME fixes were proved by running them under `env -u HOME` -- the
runner shape -- before and after; the before-state panic is quoted above.
Class disposition after this commit: 6 fixed, 0 remaining red-on-runner,
14 already correct, the rest already ignored or false positives.2026-08-25
fix(probe): skip the AVI test when the AVI files have left the libraryAhmet Kaan Gümüş · 283d445
fix(probe): skip the AVI test when the AVI files have left the library `avi_audio_chunks_end_cleanly_on_real_files` asserted that at least one of the two hard-coded AVI paths was present, so deleting that download failed the workspace run. Its two siblings already skip; sweeping the five test files that name paths under Downloads or Videos found this to be the only one that asserted presence rather than skipping.
2026-08-21
2026-08-20
feat(ec-probe,ec-matroska): register the TrueHD decoder in the unified readerAhmet Kaan Gümüş · 4026107
feat(ec-probe,ec-matroska): register the TrueHD decoder in the unified reader ec-probe's AudioDecoder now carries a TrueHd arm (mirrors Ac3: send_packet/ receive_frame/flush/reset through the generic Decoder trait), so a TrueHD track decodes through Reader/AudioDecoder like any other codec instead of only being named in Reader::unsupported. ec-matroska's muxer writes CodecId::TrueHd back out as A_TRUEHD (demux already read it in); the symphonia shim needed no change since it wraps ec_probe::AudioDecoder generically. Library test updated from "TrueHD is listed unsupported" to "the TrueHD track in his 7.1 remux decodes, 8ch/48kHz, alongside the AC-3 track"; added a demux->mux->demux codec-id round-trip test in ec-matroska.
fix(mp3): propagate real decode errors from Mp3Reader::take, and fix a test comparison that never saw themAhmet Kaan Gümüş · cc3e0e3
fix(mp3): propagate real decode errors from Mp3Reader::take, and fix a test comparison that never saw them Root cause of the "open: NeedMore" symptom on this file was never in ec-mp3's per-packet frame/reservoir bookkeeping — that already decodes this cover-art-tagged, CRC-less 192kbps/48kHz stream correctly one frame per packet, matching ffmpeg sample-for-sample once the LAME encoder's lead-in is accounted for (measured lag 2210 interleaved samples = 1105 stereo frames = exactly StreamInfo::initial_padding). Two real bugs, both now fixed: - Mp3Decoder::take() used `while let Ok(frame) = self.reader.next_frame()`, so any real decode error (corrupt CRC, unsupported layer) — not just the expected "nothing more yet" NeedMore/Eof — was silently dropped instead of reaching send_packet's caller. take() now returns Result and only swallows NeedMore/Eof. - The new real-file regression test compared decoded audio against ffmpeg without accounting for initial_padding: ffmpeg trims the LAME/Xing encoder's lead-in from its PCM output; ec-mp3's raw decoder intentionally does not (registry.rs: callers must count and drop it themselves). The mismatch alone produced corr=0.53; trimming `initial_padding * channels` off the front before comparing gets corr>0.999.
2026-08-14
feat(probe): one sniffing reader and one decoder registry for every audio fileAhmet Kaan Gümüş · 51de303
feat(probe): one sniffing reader and one decoder registry for every audio file Content decides the format, never the extension: RIFF, fLaC, OggS, EBML and ftyp by magic, MP3 and ADTS by three chaining frames after any ID3 tag (a lone MPEG audio header turns up inside AAC payload often enough that a single sync is not evidence). WAV, MP3, FLAC and ADTS are demuxed here — one walk, four framings, a frame index built on the first seek so a landing is sample-accurate. Ogg, mp4 and Matroska are delegated to their own crates: there is one EBML parser in this family and it is ec-matroska (cargo tree -p ec-probe shows the edge). Everything is served on the one reader the file was opened with, however many times it is seeked. Reader::seek answers where it actually landed, which is the number a segment start is trimmed against. Reader::unsupported names every audio track with no decoder and why. Cover art is not a video track and never appears as one. Tags: ID3v1/v2 and Vorbis comments; mp4 ilst is not read (edith reads no metadata today) and says so in the module docs. Verified: 26-file fixture matrix (format, codec, channels, packet counts against ffprobe, sample counts against ffmpeg), 100 random seeks per file each landing at or before its target within the container's own granularity, and a 9-file sweep of the real library covering aac, ac3, eac3, opus, mp3 and a TrueHD remux whose unplayable track is listed.