diff --git a/docs/audio-field.md b/docs/audio-field.md index e5d4a93..dce34b9 100644 --- a/docs/audio-field.md +++ b/docs/audio-field.md @@ -139,11 +139,15 @@ must be tied to the same emitted timeline, not three separately invented probes. The symbol layer is intentionally redundant. It does not rely on one fixed frequency shelf: timing gaps, chirp duration, start band, and glide shape all -contribute so poor mic frequency response does not erase the whole code. A -synthetic runtime check rendered two seconds of canonical timeline audio and -decoded a coherent path containing events 0 through 9 plus event 16. Real device -runs still depend on loopback capture staying live; the local Scarlett loopback -has intermittently stopped advancing during short headless sniffs. +contribute so poor mic frequency response does not erase the whole code. +`MimirChirpletSymbolCodebook` owns the symbol definitions so timeline ordering +does not smuggle acoustic shape decisions into bit arithmetic. Every symbol has +a unique chirp shape; rhythm remains additional evidence, not a substitute for +symbol separability. A synthetic runtime check rendered two seconds of canonical +timeline audio and decoded all 15 emitted chirps into 13 possible triplet +anchors, events 0 through 12, with a fitted clock near 48 kHz. Real device runs +still depend on loopback capture staying live; the local Scarlett loopback has +intermittently stopped advancing during short headless sniffs. Next, replace the diagnostic bridge with native audio capture workers that append typed blocks into `Mimir.Runtime`, then expose buffer depth, clock state, diff --git a/docs/implementation-plan.md b/docs/implementation-plan.md index 331f16d..f1819ba 100644 --- a/docs/implementation-plan.md +++ b/docs/implementation-plan.md @@ -49,11 +49,13 @@ a named invariant that the native runtime cannot protect yet. detected symbols identify a timeline event inside the current operating horizon. Symbol identity is carried by start band, glide shape, duration, and following inter-chirp gap. +- `MimirChirpletSymbolCodebook` owns the 32 symbol definitions. Each symbol has + a unique chirp shape, with inter-chirp rhythm as additional code evidence. - `MimirChirpletStreamDecoder` is the first constrained chirplet-transform receiver. It owns a bounded PCM window, emits transform frames with multiple - symbol candidates, decodes code-valid triplet anchors through a local trellis - that requires gap and clock coherence, and fits a per-source sample clock from - those anchors. + symbol candidates and per-candidate refined sample offsets, decodes code-valid + triplet anchors through a local trellis that requires gap and clock coherence, + and fits a per-source sample clock from those anchors. - `MimirAudioSynchronizationAnalyzer` ports the first live sync measurement: sample-bearing audio blocks are resampled into the Scarlett loopback timeline. The analyzer derives delay only from matched decoded triplet timeline anchors. diff --git a/notes/current-system-map.md b/notes/current-system-map.md index 3c45a02..bc9c72a 100644 --- a/notes/current-system-map.md +++ b/notes/current-system-map.md @@ -98,11 +98,13 @@ current operating horizon. Mimir continuously queues that timeline through Aquarium audio and decodes timing through the constrained chirplet-transform path. Reports now carry fractional delay and per-band matched energy. The first -`MimirChirpletStreamDecoder` exists as the constrained chirplet-transform -receiver: it turns a bounded PCM window into transform frames with multiple -symbol candidates, code-valid triplet anchors selected through gap/clock -coherence, and an affine source clock fit. The analyzer only emits timing -reports from matched canonical anchors. The hub also owns cached reports plus smoothed +`MimirChirpletSymbolCodebook` owns separable symbol definitions; every symbol +has a unique chirp shape, with rhythm as additional evidence. `MimirChirpletStreamDecoder` +is the constrained chirplet-transform receiver: it turns a bounded PCM window +into transform frames with multiple symbol candidates and refined per-candidate +sample offsets, code-valid triplet anchors selected through gap/clock coherence, +and an affine source clock fit. The analyzer only emits timing reports from +matched canonical anchors. The hub also owns cached reports plus smoothed per-source sync state with delay-slope/SRO in ppm. `MimirRuntime` runs analysis online as a bounded rotating service and can print live telemetry with `MIMIR_SYNC_TELEMETRY_SECONDS`. UI and telemetry are passive readers of cached diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index a5c1531..3461bc5 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -70,11 +70,12 @@ Get-Content .\state\evidence.jsonl -Tail 8 timeline owns Aquarium PCM segment rendering, transform-frame decoding, triplet anchor decoding, and per-band response hooks. Sync reports now include fractional delay and per-band matched energy. `MimirAudioSynchronizationState` - now tracks smoothed delay and delay-slope/SRO ppm. `MimirChirpletStreamDecoder` - is the first constrained chirplet-transform receiver: it emits transform - frames with multiple symbol candidates, selects code-valid triplet anchors - through gap/clock coherence, and fits a source clock from a bounded PCM - window. `MimirRuntime` runs sync analysis as a bounded rotating + now tracks smoothed delay and delay-slope/SRO ppm. `MimirChirpletSymbolCodebook` + owns separable symbol definitions, and `MimirChirpletStreamDecoder` is the + constrained chirplet-transform receiver: it emits transform frames with + multiple symbol candidates and refined per-candidate sample offsets, selects + code-valid triplet anchors through gap/clock coherence, and fits a source + clock from a bounded PCM window. `MimirRuntime` runs sync analysis as a bounded rotating service and caches reports/states for UI and telemetry; readouts must stay passive. Actual Mimir.App testing proves Aquarium audio wakes Scarlett loopback, keeps mic buffers live, and produces confident online sync states, diff --git a/src/Mimir.Runtime/Synchronization/MimirChirpletStreamDecode.cs b/src/Mimir.Runtime/Synchronization/MimirChirpletStreamDecode.cs index 8720e97..318cab6 100644 --- a/src/Mimir.Runtime/Synchronization/MimirChirpletStreamDecode.cs +++ b/src/Mimir.Runtime/Synchronization/MimirChirpletStreamDecode.cs @@ -2,6 +2,7 @@ namespace Mimir.Runtime.Synchronization; public sealed record MimirChirpletSymbolCandidate( int SymbolId, + double SampleOffset, double Energy); public sealed record MimirChirpletTransformFrame( diff --git a/src/Mimir.Runtime/Synchronization/MimirChirpletStreamDecoder.cs b/src/Mimir.Runtime/Synchronization/MimirChirpletStreamDecoder.cs index 83de69f..26c9dc0 100644 --- a/src/Mimir.Runtime/Synchronization/MimirChirpletStreamDecoder.cs +++ b/src/Mimir.Runtime/Synchronization/MimirChirpletStreamDecoder.cs @@ -75,7 +75,13 @@ public sealed class MimirChirpletStreamDecoder ? null : decode.ClockFit with { SourceOffsetSamples = decode.ClockFit.SourceOffsetSamples + originSample }; var frames = decode.Frames - .Select(frame => frame with { SampleOffset = frame.SampleOffset + originSample }) + .Select(frame => frame with + { + SampleOffset = frame.SampleOffset + originSample, + Candidates = frame.Candidates + .Select(candidate => candidate with { SampleOffset = candidate.SampleOffset + originSample }) + .ToArray(), + }) .ToArray(); return new MimirChirpletStreamDecode(frames, symbols, anchors, clock); } diff --git a/src/Mimir.Runtime/Synchronization/MimirChirpletSymbolCodebook.cs b/src/Mimir.Runtime/Synchronization/MimirChirpletSymbolCodebook.cs new file mode 100644 index 0000000..da51fbc --- /dev/null +++ b/src/Mimir.Runtime/Synchronization/MimirChirpletSymbolCodebook.cs @@ -0,0 +1,78 @@ +namespace Mimir.Runtime.Synchronization; + +public sealed record MimirChirpletSymbolDefinition( + int SymbolId, + MimirChirpletTone Tone, + double GapSeconds); + +public sealed class MimirChirpletSymbolCodebook +{ + private const int CandidateBandCount = 8; + private const int CandidateDurationCount = 5; + private const int CandidateGlideCount = 4; + private const int CandidateGapCount = 5; + + private readonly MimirChirpletSymbolDefinition[] symbols; + + private MimirChirpletSymbolCodebook() + { + symbols = BuildSymbols(); + } + + public static MimirChirpletSymbolCodebook Default { get; } = new(); + + public IReadOnlyList Symbols => symbols; + + public MimirChirpletSymbolDefinition this[int symbolId] => symbols[symbolId]; + + private static MimirChirpletSymbolDefinition[] BuildSymbols() + { + var symbols = new MimirChirpletSymbolDefinition[MimirChirpletTimeline.SymbolCount]; + for (var symbol = 0; symbol < symbols.Length; symbol++) + { + var band = symbol % CandidateBandCount; + var glide = symbol / CandidateBandCount; + var duration = (band + 2 * glide) % CandidateDurationCount; + var gap = (3 * band + glide) % CandidateGapCount; + symbols[symbol] = new MimirChirpletSymbolDefinition( + symbol, + new MimirChirpletTone( + 0.0, + DurationForClass(duration), + StartHzForBand(band), + EndHzFor(StartHzForBand(band), glide), + 0.82), + GapForClass(gap)); + } + + return symbols; + } + + private static double StartHzForBand(int band) => + 6_300.0 * Math.Pow(16_200.0 / 6_300.0, band / (double)(CandidateBandCount - 1)); + + private static double DurationForClass(int durationClass) => + 0.040 + durationClass * 0.0095; + + private static double GapForClass(int gapClass) => + gapClass switch + { + 0 => 0.092, + 1 => 0.109, + 2 => 0.128, + 3 => 0.146, + _ => 0.163, + }; + + private static double EndHzFor(double startHz, int glideClass) + { + var glideSemitones = glideClass switch + { + 0 => -4.75, + 1 => -1.50, + 2 => 2.25, + _ => 5.75, + }; + return Math.Clamp(startHz * Math.Pow(2.0, glideSemitones / 12.0), 6_000.0, 17_200.0); + } +} diff --git a/src/Mimir.Runtime/Synchronization/MimirChirpletTimeline.cs b/src/Mimir.Runtime/Synchronization/MimirChirpletTimeline.cs index 90f2f02..e8b05a2 100644 --- a/src/Mimir.Runtime/Synchronization/MimirChirpletTimeline.cs +++ b/src/Mimir.Runtime/Synchronization/MimirChirpletTimeline.cs @@ -31,21 +31,21 @@ public sealed class MimirChirpletTimeline private const double FirstEventSeconds = 0.08; private const double MinEventGapSeconds = 0.088; - private const double MaxEventGapSeconds = 0.162; + private const double MaxEventGapSeconds = 0.170; private const double MaxEventDurationSeconds = 0.078; private const double Gain = 0.090; private const int MaxSymbolCandidatesPerFrame = 8; private static readonly int[] TimelineSymbols = RotateToDistinctOpening(BuildDeBruijn(SymbolCount, TimelineOrder)); private static readonly Dictionary TripleToIndex = BuildTripleIndex(TimelineSymbols); + private static readonly MimirChirpletSymbolCodebook Codebook = MimirChirpletSymbolCodebook.Default; private static readonly double[] PeriodEventStarts = BuildPeriodEventStarts(TimelineSymbols); - private static readonly double PeriodDurationSeconds = PeriodEventStarts[^1] + GapSecondsForSymbol(TimelineSymbols[^1]); - private static readonly MimirChirpletTone[] SymbolTones = BuildSymbolTones(); + private static readonly double PeriodDurationSeconds = PeriodEventStarts[^1] + Codebook[TimelineSymbols[^1]].GapSeconds; private readonly IReadOnlyList symbolKernels; private MimirChirpletTimeline() { - symbolKernels = SymbolTones.Select(symbol => RenderToneKernel(symbol, SampleRate)).ToArray(); + symbolKernels = Codebook.Symbols.Select(symbol => RenderToneKernel(symbol.Tone, SampleRate)).ToArray(); } public static MimirChirpletTimeline Default { get; } = new(); @@ -95,10 +95,10 @@ public sealed class MimirChirpletTimeline return []; } - var responses = new List(SymbolTones.Length); - for (var symbol = 0; symbol < SymbolTones.Length; symbol++) + var responses = new List(Codebook.Symbols.Count); + for (var symbol = 0; symbol < Codebook.Symbols.Count; symbol++) { - var tone = SymbolTones[symbol]; + var tone = Codebook[symbol].Tone; var kernel = sampleRate == SampleRate ? symbolKernels[symbol] : RenderToneKernel(tone, sampleRate); var energy = MaxMatchedEnergy(samples, kernel, Math.Max(1, sampleRate / 1_000)); responses.Add(new MimirChirpletBandResponse(tone.CenterHz, energy)); @@ -129,7 +129,7 @@ public sealed class MimirChirpletTimeline public MimirChirpletTimelineEvent EventForIndex(ulong eventIndex) { var symbolId = SymbolForEvent(eventIndex); - var tone = SymbolTones[symbolId] with { StartSeconds = EventStartSeconds(eventIndex) }; + var tone = Codebook[symbolId].Tone with { StartSeconds = EventStartSeconds(eventIndex) }; return new MimirChirpletTimelineEvent(eventIndex, symbolId, tone.StartSeconds, tone); } @@ -198,10 +198,10 @@ public sealed class MimirChirpletTimeline int predictedOffset, int searchRadiusSamples) { - var candidates = new List<(MimirChirpletSymbolCandidate Candidate, int Offset)>(SymbolTones.Length); - for (var symbol = 0; symbol < SymbolTones.Length; symbol++) + var candidates = new List(Codebook.Symbols.Count); + for (var symbol = 0; symbol < Codebook.Symbols.Count; symbol++) { - var tone = SymbolTones[symbol]; + var tone = Codebook[symbol].Tone; var kernel = sampleRate == SampleRate ? symbolKernels[symbol] : RenderToneKernel(tone, sampleRate); if (kernel.Length == 0 || samples.Length < kernel.Length) { @@ -212,7 +212,7 @@ public sealed class MimirChirpletTimeline var end = Math.Min(samples.Length - kernel.Length, predictedOffset + searchRadiusSamples); var bestEnergy = 0.0; var bestOffset = predictedOffset; - var step = Math.Max(1, searchRadiusSamples / 8); + var step = Math.Max(4, searchRadiusSamples / 16); for (var offset = start; offset <= end; offset += step) { var energy = DirectionalMatchedEnergy(samples.Slice(offset, kernel.Length), kernel); @@ -223,9 +223,25 @@ public sealed class MimirChirpletTimeline } } + var localStart = Math.Max(start, bestOffset - step); + var localEnd = Math.Min(end, bestOffset + step); + for (var offset = localStart; offset <= localEnd; offset++) + { + var energy = DirectionalMatchedEnergy(samples.Slice(offset, kernel.Length), kernel); + if (energy > bestEnergy) + { + bestEnergy = energy; + bestOffset = offset; + } + } + if (bestEnergy >= 0.08) { - candidates.Add((new MimirChirpletSymbolCandidate(symbol, bestEnergy), bestOffset)); + var refinedOffset = RefineMatchedOffset(samples, kernel, bestOffset, start, end); + var refinedEnergy = DirectionalMatchedEnergy( + samples.Slice((int)Math.Round(refinedOffset), kernel.Length), + kernel); + candidates.Add(new MimirChirpletSymbolCandidate(symbol, refinedOffset, Math.Max(bestEnergy, refinedEnergy))); } } @@ -235,17 +251,42 @@ public sealed class MimirChirpletTimeline } var ordered = candidates - .OrderByDescending(candidate => candidate.Candidate.Energy) + .OrderByDescending(candidate => candidate.Energy) .Take(MaxSymbolCandidatesPerFrame) .ToArray(); - if (ordered[0].Candidate.Energy < 0.25) + if (ordered[0].Energy < 0.25) { return null; } return new MimirChirpletTransformFrame( - ordered[0].Offset, - ordered.Select(candidate => candidate.Candidate).ToArray()); + ordered[0].SampleOffset, + ordered); + } + + private static double RefineMatchedOffset( + ReadOnlySpan samples, + ReadOnlySpan kernel, + int offset, + int start, + int end) + { + var center = Math.Clamp(offset, start, end); + if (center <= start || center >= end) + { + return center; + } + + var left = DirectionalMatchedEnergy(samples.Slice(center - 1, kernel.Length), kernel); + var middle = DirectionalMatchedEnergy(samples.Slice(center, kernel.Length), kernel); + var right = DirectionalMatchedEnergy(samples.Slice(center + 1, kernel.Length), kernel); + var denominator = left - 2.0 * middle + right; + if (Math.Abs(denominator) <= 1.0e-12) + { + return center; + } + + return center + Math.Clamp(0.5 * (left - right) / denominator, -0.5, 0.5); } private static IReadOnlyList SuppressNearbyFrames( @@ -306,8 +347,8 @@ public sealed class MimirChirpletTimeline var firstEvent = Default.EventForIndex((ulong)eventIndex); var secondEvent = Default.EventForIndex((ulong)eventIndex + 1UL); var thirdEvent = Default.EventForIndex((ulong)eventIndex + 2UL); - var measuredGapA = (secondFrame.SampleOffset - firstFrame.SampleOffset) / sampleRate; - var measuredGapB = (thirdFrame.SampleOffset - secondFrame.SampleOffset) / sampleRate; + var measuredGapA = (second.SampleOffset - first.SampleOffset) / sampleRate; + var measuredGapB = (third.SampleOffset - second.SampleOffset) / sampleRate; var expectedGapA = secondEvent.StartSeconds - firstEvent.StartSeconds; var expectedGapB = thirdEvent.StartSeconds - secondEvent.StartSeconds; var gapError = Math.Abs(measuredGapA - expectedGapA) + Math.Abs(measuredGapB - expectedGapB); @@ -321,12 +362,12 @@ public sealed class MimirChirpletTimeline candidates.Add(new MimirChirpletTimelineAnchor( (ulong)eventIndex, firstEvent.StartSeconds, - firstFrame.SampleOffset, + first.SampleOffset, gapConfidence * 0.70 + energyConfidence * 0.30, [ - new MimirChirpletSymbolObservation(first.SymbolId, firstFrame.SampleOffset, first.Energy), - new MimirChirpletSymbolObservation(second.SymbolId, secondFrame.SampleOffset, second.Energy), - new MimirChirpletSymbolObservation(third.SymbolId, thirdFrame.SampleOffset, third.Energy), + new MimirChirpletSymbolObservation(first.SymbolId, first.SampleOffset, first.Energy), + new MimirChirpletSymbolObservation(second.SymbolId, second.SampleOffset, second.Energy), + new MimirChirpletSymbolObservation(third.SymbolId, third.SampleOffset, third.Energy), ])); } } @@ -475,32 +516,6 @@ public sealed class MimirChirpletTimeline (eventIndex / (ulong)TimelineSymbols.Length) * PeriodDurationSeconds + PeriodEventStarts[(int)(eventIndex % (ulong)TimelineSymbols.Length)]; - private static MimirChirpletTone[] BuildSymbolTones() - { - var tones = new MimirChirpletTone[SymbolCount]; - for (var symbol = 0; symbol < tones.Length; symbol++) - { - var startBand = symbol & 7; - var glideClass = (symbol >> 3) & 3; - var durationClass = (symbol >> 1) & 3; - var startHz = 6_500.0 * Math.Pow(15_800.0 / 6_500.0, startBand / 7.0); - var duration = 0.042 + durationClass * 0.009; - var glideSemitones = glideClass switch - { - 0 => 1.75, - 1 => -2.25, - 2 => 3.50, - _ => -4.00, - }; - var endHz = startHz * Math.Pow(2.0, glideSemitones / 12.0); - startHz = Math.Clamp(startHz, 6_300.0, 16_500.0); - endHz = Math.Clamp(endHz, 6_300.0, 16_500.0); - tones[symbol] = new MimirChirpletTone(0.0, duration, startHz, endHz, 0.82); - } - - return tones; - } - private static int[] BuildDeBruijn(int alphabetSize, int order) { var a = new int[alphabetSize * order]; @@ -541,24 +556,12 @@ public sealed class MimirChirpletTimeline for (var index = 0; index < symbols.Count; index++) { starts[index] = cursor; - cursor += GapSecondsForSymbol(symbols[index]); + cursor += Codebook[symbols[index]].GapSeconds; } return starts; } - private static double GapSecondsForSymbol(int symbol) - { - var gapClass = (symbol >> 2) & 3; - return gapClass switch - { - 0 => 0.094, - 1 => 0.112, - 2 => 0.137, - _ => 0.158, - }; - } - private static int[] RotateToDistinctOpening(int[] sequence) { for (var index = 0; index < sequence.Length; index++) diff --git a/state/evidence.jsonl b/state/evidence.jsonl index ed517dc..c483287 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -46,3 +46,4 @@ {"ts":"2026-05-22T16:05:00+01:00","type":"implementation","status":"partial","note":"Documented the intended decoder as a constrained chirplet transform: known dictionary projection to symbol observations, code-valid de Bruijn triplets to canonical timeline anchors, anchors to affine source clock fits, and delay/SRO from comparing loopback and mic clock fits. Added MimirChirpletStreamDecode records and MimirChirpletStreamDecoder with a bounded PCM window, absolute sample offsets, triplet anchors, and clock fits. MimirAudioSynchronizationAnalyzer now prefers matched decoded timeline anchors before falling back to the older chirplet-energy lag search. Synthetic self-test over two seconds of emitted timeline audio currently decodes 12 symbols and one correct anchor for event 9 at sample 47520 with clock 48000 Hz; this proves the new spine but also proves the symbol likelihood/codebook layer is not finished enough to place every triplet yet."} {"ts":"2026-05-22T16:35:00+01:00","type":"implementation","status":"partial","note":"Replaced one-best-symbol triplet placement with a constrained transform/trellis pass. DecodeStreamWindow now emits transform frames with multiple symbol candidates per chirp, enumerates candidate triplets through the de Bruijn map, scores measured inter-chirp gaps, and keeps the coherent local clock path rather than accepting any random valid triplet. Synthetic two-second emitted timeline check improved from one anchor to 11 coherent anchors, including events 0-9, with fitted clock 47978.350 Hz, confidence 0.885, and 8.741 sample MAE. This is the right decoder shape; remaining work is symbol/codebook separation and sub-frame timing precision so the fit lands exactly at 48000 Hz and covers every emitted triplet."} {"ts":"2026-05-22T17:05:00+01:00","type":"implementation","status":"ok","note":"Removed the legacy synchronization pipelines from live code. MimirAudioSynchronizationAnalyzer no longer contains chirplet-energy lag search, normalized cross-correlation, approximate runtime clock placement, known-event observation, or integer aligned-frame construction; it only emits timing reports from at least three matched decoded timeline anchors. Deleted MimirAlignedAudioFrame and removed BuildAlignedAudioFrame from MimirSynchronizationHub and BufferSmoke. MimirChirpletTimeline no longer exposes DecodeReferenceWindow, ObserveKnownEvents, BuildTimelineEnergyTrace, or one-best-symbol triplet placement. approximateTimelineSeconds was removed from sync analysis signatures because canonical chirplet anchors now own placement."} +{"ts":"2026-05-22T17:35:00+01:00","type":"implementation","status":"ok","note":"Separated chirplet symbol ownership into MimirChirpletSymbolCodebook and added per-candidate refined sample offsets to transform frames. The codebook now guarantees each of the 32 symbols has a unique chirp shape; rhythm is additional code evidence rather than an acoustic alias. ClassifySymbolsAt now does coarse dictionary search, local sample-resolution search, and parabolic sub-sample refinement per symbol candidate. Synthetic two-second emitted timeline check now detects all 15 emitted chirps, decodes 13 possible triplet anchors for events 0-12, and fits clock=48001.819 Hz with confidence=0.952 and MAE=5.171 samples, improved from 11 anchors / 47978.350 Hz / MAE=8.741."} diff --git a/state/map.yaml b/state/map.yaml index 2d34c62..041356d 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -71,10 +71,12 @@ accepted_design: timing atoms, symbol/event decoding, and per-band response kernels. Symbol identity is carried by start band, glide shape, duration, and following inter-chirp gap. Any three consecutive correctly detected symbols identify a - timeline event within the current operating horizon. `MimirChirpletStreamDecoder` - is the first constrained chirplet-transform receiver: it owns a bounded PCM - window, emits transform frames with multiple symbol candidates, decodes - code-valid triplet anchors through gap/clock coherence, and fits a + timeline event within the current operating horizon. `MimirChirpletSymbolCodebook` + owns the 32 symbol definitions so every symbol has a unique chirp shape, with + rhythm as additional evidence. `MimirChirpletStreamDecoder` is the first + constrained chirplet-transform receiver: it owns a bounded PCM window, emits + transform frames with multiple symbol candidates and refined per-candidate + sample offsets, decodes code-valid triplet anchors through gap/clock coherence, and fits a per-source sample clock from those anchors. `MimirAudioSynchronizationAnalyzer` now treats `loopback-scarlett-speakers` as timing authority and derives delay only from matched decoded timeline anchors. Positive delay means