minutes icon indicating copy to clipboard operation
minutes copied to clipboard

speaker mapping fails with "Unknown engine: apple" when summarization.engine = "apple" (v0.21.0 #439 follow-up)

Open jmh1313 opened this issue 4 months ago • 1 comments

Summary

With [summarization] engine = "apple" (new in v0.21.0, #439), summarization works but Level 1 LLM speaker mapping fails with Unknown engine: apple. Same bug class as #155 ("Unknown engine: auto"): the speaker-mapping dispatch has its own engine match that was not extended when the new engine landed.

Environment

  • Minutes 0.21.0 (Homebrew tap CLI; app also 0.21.0)
  • macOS 26.5.2 (25F84), Apple Silicon
  • Apple Intelligence enabled; the FM helper compiles and generates fine

Repro

  1. Set engine = "apple" under [summarization] in config.toml
  2. minutes process -t meeting <audio with 2+ detected attendees>
  3. Log output:
INFO running LLM summarization engine=apple
INFO summarization complete decisions=1 action_items=2 ...
INFO Level 1: LLM speaker mapping speakers=1 attendees=2
WARN Level 1: speaker mapping failed error=Unknown engine: apple

Root cause pointer

map_speakers routes non-agent engines to run_speaker_mapping_prompt (crates/core/src/summarize.rs:2800 on main @ f05aa87). Its engine match covers openai / mistral / openai-compatible / ollama and falls through to Err(Unknown engine) at summarize.rs:2882. No "apple" / "apple-fm" arm was added in #439, which only extended the summarize path.

Impact

  • engine = "apple" loses L1 speaker attribution entirely; speaker_map stays empty on multi-speaker meetings.
  • Because engine = "auto" now prefers Apple FM (#439), auto users on macOS 26 hit this too.
  • Downstream, the #393 diarization-collapse guard then withholds action-item and commitment assignees, so the practical cost is unattributed action items on real meetings.

Expected

Speaker mapping is a tiny text-to-JSON classification, which is a good fit for the FM helper, so ideally an "apple" arm calling the same helper. Failing that, an explicit fallback to another configured engine (or a loud config-validation warning) would beat the silent per-meeting WARN.

Happy to test a fix on this hardware.

jmh1313 avatar Jul 17 '26 02:07 jmh1313

Thanks for the precise report @jmh1313 — confirmed, and the root cause is exactly what it looks like: a missed callsite when the Apple engine was threaded through in #439.

engine = "apple" works for summarization but fails at speaker mapping because the speaker-mapping executor run_speaker_mapping_prompt (crates/core/src/summarize.rs:2800) is the one dispatch site that never got an "apple" arm — so it falls through to the catch-all Err("Unknown engine: {}") at summarize.rs:2882. #439 added "apple" | "apple-fm" to the summarization match (:168), the title-refinement match (:2467), and even the metadata hint speaker_mapping_model_hint (:769, which is why the hint claims apple works) — but not the actual speaker-mapping executor. So the hint says apple is supported while dispatch rejects it.

Fix (small and consistent with the existing apple arms): add the "apple" | "apple-fm" arm to run_speaker_mapping_prompt, routing to the same generic text-in/text-out provider the other arms use, crate::apple_fm::generate(...). Speaker mapping is a plain system+user→text call with no multimodal input, so no new capability is needed, and the macOS gating + graceful-degrade already work (map_speakers already logs-and-continues on any engine error, so even if Apple Intelligence were unavailable at runtime it degrades honestly rather than crashing).

We'll ship this. Appreciate you catching it — and the pointer to #439 made it a two-minute trace.

silverstein avatar Jul 17 '26 05:07 silverstein