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-20
fix(aac): run PNS noise substitution before M/S and intensity stereoAhmet Kaan Gümüş · 7efd1d7
fix(aac): run PNS noise substitution before M/S and intensity stereo ISO/IEC 14496-3 §4.6.13 fills a PNS band's spectral coefficients with scaled noise; §4.6.8.1 M/S and §4.6.8.2 intensity stereo then combine those coefficients like any other spectral data. BlockDecoder::finish ran M/S and intensity stereo first, then filled PNS bands afterward, so any band coded as PNS in one channel still read zero when the stereo tools combined it -- the pre-fill zero got mixed into the other channel's coefficient (M/S) or copied outright (intensity), corrupting a real channel's data whenever the encoder mixed PNS with stereo coding on the same band. Reordered to match every reference decoder's decode order: PNS -> M/S -> intensity stereo -> TNS. Diagnostic path: chased a consumer sweep's finding of 0.76-0.92 (and one 0.0) whole-file correlation on a set of AAC-in-mp4 screen recordings against ffmpeg. Direct ec-mp4-demux -> ec-aac-decode measurement (crates/ec-aac/tests/obs_real_content.rs), lag-searched per the existing sbr_real_library.rs pattern, reads corr=1.0000 on every non-silent file both before and after this fix -- these files' PNS usage (1-13 AUs) apparently never lands on a band the M/S mask also marks, so the reorder is a real spec-order bug but not what produced that sweep's numbers; the sweep's own method likely lacked a wide-enough lag search and caught this file family's ~1024-sample (~21ms, one AAC frame) container/decode alignment offset instead. The single 0.0000 file is genuine digital silence in both decoders. Also chased a second repro (a real AAC-LC-in-mp4 download, sequential single-decoder scan, crates/ec-aac/tests/reelh_per_frame.rs): per-AU correlation reads 1.0000 across the whole 10.4s file except one near-silent intro AU where both decoders read ~0 RMS and the correlation ratio is numerically meaningless -- no reproducible mid-stream collapse found in this file at this crate's decode layer, with or without this fix. Added crate-level tool-usage side info (EC_AAC_TOOL_SIDEINFO_DEBUG, mirroring sbr_chain's SbrSideInfoRow pattern) and five ffmpeg tool-isolation fixtures (-aac_pns/-aac_is/-aac_ms/-aac_tns, one at a time and one with all four) wired into oracle.rs, all passing at >=0.999 correlation, to pin the fixed decode order and give any future PNS/IS/M-S/TNS regression a per-tool fixture to land on.