Skip to content

mic: carry the measured low-frequency blend (newer Air designs) - #287

Merged
RyanTheTide merged 1 commit into
mainfrom
feat/mic-lwbo-measured
Nov 28, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
feat/mic-lwbo-measured

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: The low-frequency blend unit in the newer Air microphone designs (the beam blended with a reference beam below a moving crossover) was carried only in partial blobs. Its law came from a behaviour summary and had never been compared with the unit, so a default mic-compile refused these designs. Black-box renders of the unit's whole microphone graph are now available, and the existing law matches them. This PR marks the stage approximate, the same status as the suppressor, so a default compile carries it.

  • Behaviour comes from the strip data. There are no per-board tables, and the engine is unchanged.
  • Speaker sources are untouched, and the mic modules stay outside the voicing law hash.
  • Default compiles that now succeed: four designs in the pinned 27.2 images, including the J615 and J713 boards.

Tested:

  • At e6acc4e: aurora-speaker-tuning tests pass. The blend test now expects a whole default compile with the stage approximate. parity_law passes; cargo fmt --check, cargo clippy --workspace --all-targets -D warnings and tools/check-clean.sh are clean.

  • Offline parity, ours versus the unit's own engine running the whole graph (hosted black-box on a lab Mac), difference SNR:

    stimulus J615 design J713 design
    mismatched / independent noise 55.4 / 43.3 dB 60.7 / 53.4 dB
    wind-like (independent low-frequency) 46.8 dB 53.0 dB
    coherent, steered, imbalance, onset 43.9-46.6 dB 52.1-56.3 dB
    sweep 46.2 dB 47.5 dB
    real 3-mic room capture 35.6 dB 37.3 dB
    -65 / -75 / -85 / -95 dBFS 40 / 31 / 22 / 25 dB 46 / 33 / 25 / 26 dB
    tone in noise 19.0 dB 23.1 dB

    Lag 0, level within 0.05 dB on broadband input. Low-level and tone-in-noise input are the residuals (noted in the compile report); the impulse shows the known start-up transient.

  • The rendered output of the new default blob is bit-identical to the old partial blob's (J615 and J713 designs; room capture, wind-like and sweep input). The only blob change is the dropped partial flag and the identity placeholder that partial blobs carry.

  • Every design that compiled before has a byte-identical blob between main and this branch (19 designs, both pinned 27.2 images).

  • Hardware row at e6acc4e: J615 (Linux 7.3.0-aurora-fleet90-airs2, read-only, nothing installed or played): mic-compile of the Mac's own tuning bundle with aarch64 builds. On main it refuses ("not yet measured"). On this head it gives a whole blob: 3 microphones, 48 kHz, latency 1439, partial false, no refusals. Result: PASS.

Risk: two-way · on Macs with these designs, a default compile now produces a mic blob where it used to refuse. Other blobs are byte-for-byte unchanged. A plain revert undoes it.

Not yet: the Neo design still refuses (a graph parameter link from its trackpad-noise box); it is the next change. The live processed source on these Macs comes with the provisioning change (#283).

The low-frequency blend unit of the newer Air microphone designs was
carried only in partial blobs, because its law came from the behaviour
summary and had never been compared with the unit. Black-box renders of
the unit's whole microphone graph are now available, and the existing
law matches them: 43 to 60 dB difference SNR on broadband, wind-like,
steered-source and onset input, 35 to 37 dB on a real room capture,
level within 0.05 dB, no lag. Low-level and tone-in-noise input match
less well (19 to 26 dB); that is noted as a residual.

Mark the stage approximate, like the suppressor, so a default compile
carries it. Four designs now compile whole. The rendered output is
bit-identical to the partial blob's; every blob that compiled before is
byte-identical.

Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
@RyanTheTide
RyanTheTide requested review from a team as code owners November 27, 2026 21:55
@github-actions github-actions Bot added door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 27, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at e6acc4ed: not ready yet

Check Detail
CI at head running running: Clean-publish check, Rust (ubuntu-24.04), Rust (ubuntu-24.04-arm), Rig tools, Session side (wiring derivation, self-check verdicts, helper)
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at e6acc4ed
Conflicts ok none
PR text ok Risk: two-way · on Macs with these designs, a default compile now produces a mic blob where it used to refuse. Other blobs are byte-for-byte unchanged. A plain revert undoes it.

Areas: none matched in CODEOWNERS

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Code-owner review requested: @aurora-silicon/core @aurora-silicon/omarchy-mac @aurora-silicon/aurora-maintainers. Microphone compiler only (speaker sources, engine and blob format untouched); CI and the hardware row at head are in the PR body. If no code-owner review arrives, this may be merged under the 6-point rule once a different-lane App approval is in, no earlier than one hour after this ping. Revert: a plain git revert of the merge commit (every other design's blob is byte-identical).

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The delta only reclassifies the existing low-frequency blend and allows it in a whole blob. The operator law and serialized coefficients are unchanged. The whole-graph comparison supports approximate status, with residuals still documented. Approved at this commit.

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: FINISH, then merge at e6acc4edd106f05f8517c44af75e3385c7c7e15a

Blockers: none in the code. One merge-gate item is open: a regression row at this head (below).

Checked:

  • What changes: the aufx/lwbo stage goes from Uncharacterised to Approximate, and its lwbo-only default refusal is dropped. The blend law itself (sgv2_core::mic::blend, lwbo_law) is unchanged. Every law parameter is still read from the Mac's own strip at compile time.
  • Taint: the diff adds no numeric constants, presets or coefficients. The only new numbers are difference SNRs (43-60 dB) from our own renders, in a doc comment and a report note. The PR text quotes no preset values. Nothing to block on.
  • The refusal path still holds. --allow-partial is still opt-in: the CLI defaults it to false, and so does Options::default(). An uncharacterised stage (ocns not bypassed) still refuses a default compile, including in a design with the blend unit, and only --allow-partial carries it as identity and flags the blob partial (probe). States outside the law still refuse, with the default options and with --allow-partial: another reference channel, crossover min above max ("out of range"), a missing law parameter, and a bypassed blend unit (probes).
  • The changed test fails without the src change. With src/mic.rs from main, a_low_frequency_blend_after_two_beamformers_compiles_and_runs fails (13 passed, 1 failed). At this head cargo test -p aurora-speaker-tuning passes in every binary, 0 failed (parity_law included).
  • The speaker path is untouched. The diff is src/mic.rs and tests/mic.rs only; only the mic-compile subcommand reaches mic::. The engine and the blob format are unchanged. It merges cleanly with #284.

Non-blocking: the law was compared with the unit on the J615, J713 and Neo designs only. Any other blend preset that passes BlendLaw::valid (wide sanity bounds) now compiles whole by default as well, the same trust model as the suppressor. If a later design has blend parameters far from those three, it would be worth a render before relying on it.

Remaining before merge: a read-only regression row at e6acc4e on a design this PR should not change (M1 Pro or J413, the mic-compile + LV2 enumeration recipe used for #277; main vs head blob byte-identical). Please also post the J615 row as a PR comment, so the readiness check picks it up; today it is only in the body. This is a compiler-only change, but it changes what gets produced on hardware, so the row stays.

Evidence

Buildbox, cargo 1.96, scratch worktree. cargo test -p aurora-speaker-tuning at e6acc4e: all pass. 3 extra probe tests appended to tests/mic.rs in a scratch worktree (allow_partial default off; a live ocns in a blend design refuses by default and is partial under --allow-partial; out-of-law blend states refuse under both options): all pass. Negative run with main's src/mic.rs: 1 failed (the blend test).

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Hardware row at e6acc4e: J615 (Linux 7.3.0-aurora-fleet90-airs2, read-only, nothing installed or played). mic-compile of the Mac's own tuning bundle with aarch64 builds:

  • main 5bd2d65 refuses ("AULWB (aufx/lwbo) is not yet measured against the unit");
  • this head gives a whole blob: 3 microphones, 48 kHz, latency 1439, partial false, no refusals.

Result: PASS.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Regression row at e6acc4e: M1 Pro (J316s, Linux 7.3.0-aurora-fleet89, read-only, nothing installed or played). Its design is one this PR must not change. mic-compile of the Mac's own tuning bundle with aarch64 builds of main 5bd2d65 and of this head: both whole blobs (3 microphones, 48 kHz, latency 1439), sha256 3ac4c768026cde6dd926b13dded0d8a8e80ceddf050aa72503dbaa94bd1a48e3 for both: BYTE-IDENTICAL. The engine and LV2 are unchanged by this PR. Afterwards the M1 Pro has 0 failed units and is Enforcing. Result: PASS.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the 6-point rule (COMMON-RULES 01:54, permanent 11-28 09:29), all six checked at e6acc4e:

  1. different-lane App APPROVE at this head (REVIEW6);
  2. CI green (build and test jobs; readiness is the review/row meta-check);
  3. hardware rows at head (J615: main refuses, head whole; M1 Pro regression: byte-identical);
  4. family regression rows: n/a (not kernel/DT/Mesa/aura/installer);
  5. no open blocking review (MERGE-BLITZ FINISH items done: the regression row and the J615 row as a comment);
  6. code-owner teams pinged 10:51 AEDT, more than 1 h ago.

Merges cleanly onto main after #284. Rationale: compiler-only reclassification of a measured stage; the rendered output equals the old partial blob's, and other blobs are byte-identical. Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit 9b241b8 into main Nov 28, 2026
12 of 14 checks passed
@RyanTheTide
RyanTheTide deleted the feat/mic-lwbo-measured branch November 28, 2026 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant