Repository navigation
buzk: the unit's detector front end, its quadrature matrix read from the bundle - #138
RyanTheTide wants to merge 6 commits into
Conversation
Brings the BuzzKill detector to the installed unit's law (Daybreak t-5952 behaviour facts, t-5993 structural rule; no values): - the 12 kHz stream keeps the first of every four low-passed samples and passes through the amplitude-record cascade, the second output of the unit's two-output quadrature matrix; - the compared threshold of a cell is the Kill-shaped curve's minimum over the cell's span; - every over-threshold cell deepens the cell record (m in its cell, sqrt(m) in its neighbours); candidates are taken by released cell gain, and a duplicate line moves no second track (this replaces the earlier black-box merge rule). The matrix is a table in the Mac's own AudioDSP. The installer reads it by structure into the tuning bundle (aurora-installer#119), and this repository carries none of its values: the manifest's optional buzzkill_quadrature record is parsed and the bytes re-checked with the same structural rule (buzzmatrix.rs), Tuning carries the matrix, and the compiler refuses a Buzz box without one. SGV2_BUZZKILL_MATRIX gives rigs and the parity gate a matrix for raw tuning trees. Black-box against the installed 25G83 unit (with this Mac's own matrix): AID19 state, 125 Hz from silence, 10 ms onset within 0.3 dB and steady within 0.03 dB; AID6 state, steady tones 125 Hz-2 kHz, Kill points on and off, within 0.08 dB. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
Re-attested with the matrix each Mac's own AudioDSP yields; pass counts unchanged (25C56 42/48, 25G72 50/56, 25G83 56/63, 26A428 51/57). Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
Law eb547fe5, verdicts unchanged (25C56 42/48, 25G72 50/56, 25G83 57/63, 26A428 51/57). Worst louder cell against the FIR-free law: AID2/6/12 +2.51 -> +0.81 dB, AID4 +3.18 -> +0.51, AID26 +2.51 -> +0.61, AID19 +0.57 -> +0.68 (tone_400_-12). Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
The analyser no longer lets the first decision boundary after reset pass without a decision; the first complete block now produces the first bank. On the deep-onset probes (input 30 dB above Threshold) the rms error against the reference renders drops from -13.4/-13.7 dB to -27.4/-29.3 dB (AID19 400 Hz / AID26 160 Hz), and AID26 25 dB above Threshold from -26.6 to -30.6 dB. All other probe rows are unchanged. The 46-AID gate is unchanged cell for cell. parity.json regenerated at law 4eb1785c, verdicts unchanged (25C56 42/48, 25G72 50/56, 25G83 57/63, 26A428 51/57). Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
|
aurora-silicon/aurora-installer#119 (merged 2026-11-13) adds a The installer's own bundles come from the same writer ( |
|
A note from the field, since this PR is where the manifest field gets read. Since aurora-installer a252d0eb (11-09), a speaker-tuning collection made on macOS carries So Landing a parser that accepts the record before the detector front end is wired would unblock route 3 in the meantime: carry it and verify its 🤖 Generated with Claude Code |
|
Follow-up to the note above: here is the scope and two stopgaps, so this PR can land whole with its re-gate. Affected
Stopgaps, chosen so that nothing the voicing law hashes changes
When this PR lands with its re-gate:
🤖 Generated with Claude Code |
|
Early note on this draft (no full review yet):
Assisted-by: LLM (Claude:Opus 5.5) |
Since aurora-installer#119 (2026-11-13) the installer's collector writes a `buzzkill_quadrature` record, and buzzkill-quadrature.bin, into every bundle whose AudioDSP holds the BuzzKill matrix. The tuning reader parses a schema-2 manifest with deny_unknown_fields and does not read that record yet (aurora-silicon#138 adds it), so every such bundle is refused whole: manifest.json: not a schema-2 manifest: unknown field `buzzkill_quadrature` aurora-speaker-upgrade --collection then refuses the switch on any Mac collected with a current collector (seen on a J713, AID37, and an M4 Mac mini, J773g, AID36). The vendored collector predates the record: it keeps the manifest unchanged but leaves out the file, so even a reader that knew the key would refuse the bundle as incomplete. Drop the records this speakerguardd does not read (UNREAD_RECORDS) and the files they name before a bundle from any route is checked and stored, and say so. The manifest is written again as the collector writes it (sorted keys, two-space indent), so the stored bundle is the one the collector writes without those records. A bundle without them is stored as before. Nothing here is hashed by the voicing law, so the parity attestations stay valid. Remove the entry once the tuning reader reads the record. Signed-off-by: Diljit Singh <hey@djdev.me>
|
This now conflicts with main, and the base it stacked on (#136) has merged, so it needs a rebase onto main with the parity attestations re-gated. The replacement commits should carry only the author's Signed-off-by: 26a9d52, 4cabe34, 758fe1f, 84edfa9 and 54c911c have an Assisted-by trailer in the commit message. The two points from the earlier note (no SGV2_BUZZKILL_MATRIX override in the installed binary, and no task ids in the commit message) are still open. |
RyanTheTide
left a comment
There was a problem hiding this comment.
Independent source review at 54c911c7a709. The detector front end is selected from a validated per-machine bundle. Confirm the missing or malformed matrix path cannot grant an unsafe mono-desktop lease. The J473 wider voicing validation must pass the protected-path attestation before the speaker can be recorded as working. Reuse the board's own bundle and keep actual measurements and trips in the test record.
|
I compared the committed attestations for the J473's AID12 and the J413's AID13. For AID12, main after #243 ( When this is rebased, please regenerate the intermediate slider attestations alongside the full-scale rows. Main records all three sliders on three releases for these AIDs, while the current draft's records contain no slider rows. The J473's latest silent self-check used a 26B123 bundle and refused voicing against the available 25G83 reference after the mono sense-switch check passed. |
|
Rebased onto main with the review points addressed in #244 (draft). It replaces this PR and includes this PR's change as one commit, authorship unchanged. Changes on top: the installed binary takes the matrix only from the bundle, or from an explicit --buzzkill-matrix with --tunings-root. The detector reads only the cells that end below the operation limit, which removes the -3.15/-5.77 dB 2500 Hz cell on AID2/6/12/26. All four builds were re-gated with slider rows; verdicts are unchanged. I'll leave this one open until #244 is decided. |
Brings the BuzzKill detector to the installed unit's law. It stacks on #136 (no FIR), so merge that first.
2·linked, then a 2nd-order Butterworth low-pass at the operation limit, then phase-zero 4:1 decimation, then the amplitude-record cascade. That cascade is the second output of the unit's two-output quadrature matrix.min its own cell,sqrt(m)in its neighbours. Candidates are taken by released cell gain. A duplicate line (within 1/20 octave) moves no second track.No values in this repository. The matrix is a table inside the Mac's own AudioDSP. The installer finds it by structure alone (aurora-installer#119) and writes it into the tuning bundle as
buzzkill-quadrature.bin. Here,buzzmatrix.rsre-checks those bytes with the same structural rule and hands the compiler the cascade. A bundle without a valid matrix compiles no Buzz box.SGV2_BUZZKILL_MATRIXsupplies a matrix to rigs and the parity gate when they run on raw tuning trees. All tests use synthetic sections.Black-box against the installed 25G83 unit, using that Mac's own matrix:
gate2 against the no-FIR baseline: failing cells drop from 278 to 257, with no new regressions above macOS.
Parity. Re-attested for all four builds. Pass counts are unchanged: 25C56 42/48, 25G72 50/56, 25G83 56/63, 26A428 51/57.
Checks. fmt, clippy
-D warnings, workspace tests and no_std lv2 all pass.Merge order. #136, then this PR, then aurora-installer#119, then a vendored refresh here. This is held for the v2 law freeze until #130 merges, and v2 will be merged in before it lands.
Assisted-by: LLM (Claude:Opus 5.5)