Skip to content

feat(agent): transcribe and summarize meeting recordings locally - #3597

Merged
kovtcharov-amd merged 33 commits into
mainfrom
kalin/transcription-pipeline
Sep 11, 2026
Merged

kovtcharov-amd merged 33 commits into
mainfrom
kalin/transcription-pipeline

Conversation

@kovtcharov-amd

@kovtcharov-amd kovtcharov-amd commented Sep 10, 2026 •

Copy link
Copy Markdown
Collaborator

Pointing GAIA at a meeting recording did nothing before this — there was no transcription tool at all, and the CLI back-door that existed downloaded 2.9 GB of Whisper weights and then died on a torch import while exiting 0. Now a user types "summarize this meeting: C:\recordings\standup.mp4" and gets a speaker-attributed transcript saved to disk, a brief with decisions and action items, and the ability to ask follow-up questions answered from the transcript with verbatim quotes. All local, no PyTorch, no gated model downloads.

Measured on a real 46-minute, 4-speaker meeting against a WhisperX + pyannote reference:

Result
Transcript vs WhisperX large-v3 94.1% word-level similarity, 60/60 top content terms
Speakers found (ground truth 4) 4 — one recovered as a participant's real name
Content surviving refinement 99.7%
End to end ~10 min (9.3 transcribe incl. diarization, 0.5 refine)

Threads worth reviewing separately

  • Speakers come from the audio, not from the model. Text carries no signal for who is talking, and every text-only attempt failed the same way — sixty labels in a four-person meeting, then six after pause-derived turns. Diarization now runs pyannote's segmentation network and a WeSpeaker embedding model, both ONNX via sherpa-onnx. Deliberately not pyannote.audio: its weights are gated behind an interactive HuggingFace licence an agent cannot clear mid-conversation, and it brings 1.5–2.5 GB of PyTorch. These are the same networks under their original MIT terms, ~33 MB, fetched on first use.
  • Seven agent bugs found only by running the real 46-minute file — each passed unit tests and broke in practice: a 180s tool timeout that abandoned a completed transcript; tool-result truncation that dropped two-thirds of the meeting before the summariser saw it; a tool orphaned from every bundle so the loader could never surface it; timed-out tools racing their own retry; a status tool causing a four-call loop; an LLM reply budget silently producing an empty transcript; and a consolidation pass that merged four measured voices back into two.
  • Content is now structurally safe. The model no longer re-emits the transcript to label it — it returns index ranges and the words are sliced from the original, so losing content is impossible rather than merely discouraged.
  • An agent tool ran sudo apt-get install on Linux with no confirmation. It now fails with the exact command; winget and brew stay automatic since neither needs root.
  • Tests now run against the checkout you are sitting in. A root conftest.py pins sys.path and fails loudly otherwise — the editable install had tests silently reading another worktree's source, which cost three debugging detours on this branch alone.

Known limits — stated, not hidden

  • Names are inferred, voices are measured. Voice separation is acoustic; the names attached to them come from self-introductions and direct address. Unnamed voices stay Speaker 1, Speaker 2.
  • Short interjections can be missed. On a 90-second clip where a second voice says three words, it reported one speaker.
  • The clustering threshold (0.65) was tuned on one recording. num_speakers is more accurate when the count is known.
  • openai-whisper stays in the talk extra; the live-microphone path still needs it (Add streaming transcription via Lemonade WebSocket realtime API #372).

Test plan

  • python -m pytest tests/unit/test_audio_tools.py tests/unit/test_diarize.py tests/unit/test_lemonade_asr.py tests/unit/test_media.py tests/unit/test_tool_cancellation.py tests/unit/test_asr.py tests/unit/test_chat_tool_bundles.py tests/unit/test_starter_skills.py -q — 299 passed locally, no PYTHONPATH needed
  • With Lemonade running, launch the TUI with GAIA_GAIA_AGENT_MODE=dev (without it the daemon runs the published sidecar, not this branch) and send Summarize this meeting: <path to an mp4>. Expect a saved transcript path, a speaker-labelled .transcript.md, and a brief with action items.
  • Ask two or three follow-up questions about details — answers should quote the transcript and cite the file.
  • First run downloads sherpa-onnx and ~33 MB of models; confirm a second run reuses them.
  • Cold machine without ffmpeg: Windows/macOS install it automatically, Linux fails with the exact command.

@github-actions github-actions Bot added documentation Documentation changes audio Audio (ASR/TTS) changes cli CLI changes tests Test changes agents labels Sep 10, 2026
@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Skill audit

Skill Verdict Claimed tier Cleared tiers Findings Rules
.claude/skills/driving-the-tui ✅ ALLOW experimental experimental, community none —
hub/skills/transcribe-meeting ✅ ALLOW community experimental, community none —

✅ All audited skills cleared the tier they claim.

Per-finding detail is withheld here on purpose. Read it in the Security > Code scanning tab, or download the skill-audit-reports artifact from this run. Offending source text is withheld from CI everywhere — reproduce it locally with gaia skill audit <dir> --show-snippets.

@github-advanced-security

Copy link
Copy Markdown
Contributor

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@github-actions

Copy link
Copy Markdown
Contributor

Request changes

This adds local meeting transcription end to end — an agent tool backed by Lemonade's speech-to-text, a skill that drives it, a lazy ffmpeg bootstrap, and the framework fixes (per-tool timeout, cooperative cancellation) that a multi-minute tool needs. The engineering is careful and the test suite is unusually good. Four things should be sorted before merge, all of them about what the user experiences on a cold first run.

The skill and the tool tell the model two different procedures. The shipped skill says to correct only the words the recognizer flagged and never touch the rest, and to name speakers by hand. The tool that actually ships does the opposite — it re-reads and rewrites the whole transcript in sections — and the user guide describes that behaviour too. The skill also never mentions the refine step it now depends on. Pick one procedure and make the skill, the guide, and the tool's own instructions agree.

On Linux, the first transcription can sit silently for fifteen minutes. The ffmpeg bootstrap shells out to sudo, and the password prompt is swallowed rather than shown, so a machine without passwordless sudo just appears to hang until the install timeout expires. Make it fail immediately with the command to run instead. Worth deciding separately whether an agent tool should be escalating to root at all without asking.

Progress reporting doesn't reach the surface you're targeting. The docs promise "each step reports progress rather than sitting on a spinner", but progress goes to the agent console, which is a no-op in the sidecar that backs the TUI and Agent UI. So the very path in your test plan is the one that shows nothing for 5–15 minutes.

One error message tells users to run a command that no longer exists — lemonade-server serve was removed from current Lemonade. The repo has a helper that resolves the right instruction per install; a new test currently pins the wrong string in place.

Real-world evidence

The automated evidence stage failed to run — evidence-bundle.md records that it errored before exercising anything, so no CLI, API, or UI surface was tested in this lane. The verdict above rests on static review alone.

The PR description reports a real 46-minute run at 94.1% similarity to a WhisperX reference, which is exactly the right validation, but the artifact isn't shown and every test-plan box is unchecked. This lands in the TUI and Agent UI, so before merge please attach the screenshot of a real run (and, given the finding above, one that shows what the user sees during the five silent minutes).

🔍 Technical details

🟡 Important

1. SKILL.md contradicts refine_transcript and the user guide (hub/skills/transcribe-meeting/SKILL.md:121)

Step 6 says "Correct only the low-confidence spans… Do not scan the rest of the transcript for other errors", and step 5 has the model do speaker naming itself. But _refine_section (src/gaia/agents/tools/audio_tools.py:1661 in the diff) sends every section to the LLM asking it to fix mis-hearings and label speakers across the whole text — and docs/guides/transcription.mdx documents that explicitly under "Corrections cover the whole transcript, not just the uncertain parts". transcribe_media's next_step string tells the model to call refine_transcript; SKILL.md never mentions it, and metadata.gaia.tools_required omits it.

Consequence: whichever of the two the model retrieves decides the pipeline, and low_confidence_spans — 25 spans plus context in every result — is payload nothing consumes. Per CLAUDE.md's "a functional change must update EVERY doc that describes it", the skill, the guide, and the tool docstrings need one story. transcribe_media's own docstring also skips the refine step ("index_document… then summarize_document") while its next_step requires it.

2. sudo install can block for the full 900s timeout (src/gaia/audio/media.py:58)

_install_ffmpeg runs sudo apt-get install -y ffmpeg with capture_output=True and no stdin redirect (media.py:125). On a box without passwordless sudo, sudo's prompt goes to captured stderr — invisible — and the call blocks until _INSTALL_TIMEOUT_SECONDS. This is precisely the cold-start path the PR targets, and the docs promise it "fails with the exact install command if it can't".

        ("apt-get", ("sudo", "-n", "apt-get", "install", "-y", "ffmpeg")),
        ("dnf", ("sudo", "-n", "dnf", "install", "-y", "ffmpeg")),
        ("pacman", ("sudo", "-n", "pacman", "-S", "--noconfirm", "ffmpeg")),

Also pass stdin=subprocess.DEVNULL to the subprocess.run at media.py:125 so no manager can wait on a prompt nobody sees. Separately worth a maintainer call: an agent tool auto-escalating to root to install a package is a policy decision, not just a UX one — the argv is fixed so there's no injection surface, but a confirmation step may be warranted.

3. Progress is invisible on the sidecar path (src/gaia/agents/tools/audio_tools.py:527)

_report_progress writes to self.console, but build_session_agent() constructs GaiaAgent(config=GaiaAgentConfig(silent_mode=True)) (hub/agents/gaia/python/gaia_agent/session_registry.py:47), and silent_mode selects SilentConsole, whose start_progress is a no-op (src/gaia/agents/base/console.py:2706). So on the TUI and Agent UI — the surfaces in the test plan — decode and transcription report nothing for the whole run.

docs/plans/transcription-skill.mdx in this same PR specifies the intended mechanism: "announced through the existing status SSE event". Either wire that up or soften the docs claim at docs/guides/transcription.mdx:250 ("Each step reports progress rather than sitting on a spinner"), which currently overstates what ships.

4. lemonade-server serve in a new error path (src/gaia/audio/lemonade_asr.py:411)

CLAUDE.md: "Never tell anyone to run lemonade-server serve" — Lemonade 10.7/10.8 removed the CLI. Use describe_start_hint(), which resolves the installed tooling and never names a binary the host lacks:

        from gaia.llm.lemonade_launcher import describe_start_hint

        return ConnectionError(
            f"Lemonade Server is not reachable at {self.base_url} ({error}). "
            f"{describe_start_hint().instruction} "
            f"Or set LEMONADE_BASE_URL to a running server. See {DOCS_URL}"
        )

tests/unit/test_lemonade_asr.py asserts "lemonade-server serve" in message, which pins the wrong string — that assertion needs to change with it. Same string in docs/guides/transcription.mdx ("Start Lemonade Server" step). Pre-existing copies in readiness.py and providers/lemonade.py are tech debt, not precedent.

🟢 Minor

5. Warm-up task can be garbage-collected (hub/agents/gaia/python/gaia_agent/server.py:856) — asyncio.create_task() keeps only a weak reference; hold a module-level ref so the warm-up can't vanish mid-flight. (@app.on_event is also deprecated in favour of lifespan handlers, but that's a separate sweep.)

6. Temp directory leaks per transcription (src/gaia/audio/media.py:256) — _default_dest creates a mkdtemp directory; _transcribe_media's finally unlinks the WAV but leaves the empty directory behind. Your own test_default_dest_is_a_fresh_temp_file rmdirs it manually, which shows the ownership gap.

7. docs/plans/transcription-skill.mdx isn't in docs/docs.json — 25 other plans/ pages are in the nav; this one won't render on the site.

8. New mixin missing from the documented tool tables — audio was added to KNOWN_TOOLS but not to docs/sdk/mixins/tool-mixins.mdx:45, docs/guides/custom-agent.mdx:135, or the KNOWN_TOOLS table in CLAUDE.md.

9. ffprobe runs twice per file — _transcribe_media calls probe_duration(source), then to_wav16k_mono(..., progress_callback=...) probes again internally. Threading the known duration through would halve it. Also transcription_status() is named without the underscore in the AudioToolsMixin docstring; the method is _transcription_status.

Strengths

  • The tests earn their keep. test_lemonade_asr.py intercepts Session.send and asserts the real multipart body — filename, audio/wav content type, actual RIFF bytes, response_format — which is exactly the "mocks prove we called it, not that the call is valid" bar CLAUDE.md sets after gaia init --profile npu fails with status 400 (missing user. prefix for model name) #1655. test_media.py runs real ffmpeg and reads the WAV header back, and proves in a clean subprocess that import never shells out.
  • test_long_meeting_result_stays_under_the_truncation_budget encodes the actual production failure (135K chars vs a 60K budget) as a size assertion against budget_for_ctx(NPU_CTX_SIZE) — a regression that unit tests would otherwise never catch.
  • Cooperative cancellation (tools.py + _call_tool_bounded) is a clean, correctly thread-local fix for abandoned workers racing their own retry, and it ships with tests covering the per-thread isolation and the flag reset.
  • Errors name the fix. Every failure path in media.py and lemonade_asr.py carries the exact install command and a docs link, and the FLM guard rejects a timestamp-less model before spending a request instead of returning a silently degraded transcript.

@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

The core feature is solid — the Lemonade-backed transcription path, the four framework bug fixes, and the test coverage are all well-executed. Two places in the new code hard-code a command that Lemonade 10.7/10.8 removed, which blocks new users before they can do anything. One temp-dir leak is worth cleaning up while the code is fresh.


🔴 lemonade-server serve appears in both the error message and the quickstart — it doesn't exist on any current Lemonade install

lemonade_asr.py:411 raises a ConnectionError that tells users to run lemonade-server serve. docs/guides/transcription.mdx:82 has the same command as Step 2 of the quickstart. CLAUDE.md explicitly prohibits this: "Never tell anyone to run lemonade-server serve — Lemonade 10.7/10.8 removed that CLI." A new user following the docs hits a dead end at step 2; any user who gets a Lemonade connectivity error gets an actionable-looking command that fails. The error message should use describe_start_hint() (already used in lemonade_client.py:4225); the doc step should be replaced with gaia init.

🟡 Each transcription leaks a temp directory

media._default_dest creates workdir via tempfile.mkdtemp and returns a path inside it. The finally block in audio_tools._transcribe_media calls Path(wav_path).unlink() to remove the WAV file but never removes the parent directory. Every transcription leaves an empty gaia-media-XXXXX/ directory in /tmp. The test at test_audio_tools.py:198 patches to_wav16k_mono to return a path that's already in tmp_path, so mkdtemp is never called and the leak isn't exercised. Fix: after unlink, call wav_path.parent.rmdir() (safe since the temp dir holds only the one WAV file) or use tempfile.TemporaryDirectory as a context manager inside to_wav16k_mono.


🔍 Technical details

🔴 lemonade-server serve

  • src/gaia/audio/lemonade_asr.py:408–413 — _unreachable() builds the error string with the removed CLI. Replace with describe_start_hint() imported from gaia.llm.lemonade_launcher:
    from gaia.llm.lemonade_launcher import describe_start_hint
    # ...
    f"Start it with: {describe_start_hint().instruction}, or run `gaia init` to install. See {DOCS_URL}"
  • docs/guides/transcription.mdx:79–88 — replace the lemonade-server serve step entirely; gaia init is the right instruction.

🟡 temp dir leak

  • src/gaia/audio/media.py:262–264 — _default_dest uses mkdtemp; the returned path's parent is an owned temp dir.
  • src/gaia/agents/tools/audio_tools.py:346–354 — cleanup unlinks the file only.

Minimal fix in audio_tools.py:

finally:
    if wav_path is not None:
        try:
            p = Path(wav_path)
            p.unlink(missing_ok=True)
            # Remove the mkdtemp parent only if it's now empty
            try:
                p.parent.rmdir()
            except OSError:
                pass
        except OSError as cleanup_error:
            logger.warning("Could not remove scratch WAV %s: %s", wav_path, cleanup_error)

The test_scratch_wav_is_removed_even_on_failure test should also be updated to not patch to_wav16k_mono so the actual mkdtemp-created directory path is exercised.

@github-actions

Copy link
Copy Markdown
Contributor

🟡 The new _consolidate_speakers method silently swallows any exception from the LLM consolidation pass and returns the un-consolidated speaker list. CLAUDE.md explicitly prohibits this pattern ("any handler that discards the error and returns a placeholder/empty/cached value"). The user still gets a transcript, but if Lemonade is unreachable at that point — a real failure, not a parse miss — the error disappears and refine_transcript returns "status": "success" with a fragmented speaker list and no indication of why.

This is new code introduced in the latest push (the speaker-from-pauses redesign that replaced _refine_section).

🔍 Technical details

audio_tools.py — _consolidate_speakers:

try:
    mapping = _parse_alias_map(self._llm_text(prompt), set(roster))
except Exception as e:  # noqa: BLE001 — consolidation is an improvement
    logger.info("Speaker consolidation skipped (%s)", e)
    return named

_llm_text raises ConnectionError / LemonadeASRError when the server is unreachable, and RuntimeError when the model returns empty content. Both land in Exception and are logged at INFO, so a user watching for errors sees nothing.

The fix is to catch only the narrow parse case (ValueError / KeyError from _parse_alias_map) and let infrastructure errors propagate — or, if the best-effort intent is deliberate, at least log at WARNING so an operator can distinguish "consolidation found no merges" from "Lemonade went away mid-call".

@github-actions

Copy link
Copy Markdown
Contributor

🔴 lemonade-server serve is still in the error message, the quickstart doc, and the test — it was flagged in the last re-review but not addressed

The previous re-review marked this critical. Three places in the current diff still hard-code the removed CLI:

  • src/gaia/audio/lemonade_asr.py — _unreachable() tells users to run lemonade-server serve
  • docs/guides/transcription.mdx — Step 2 of the quickstart is lemonade-server serve
  • tests/unit/test_lemonade_asr.py — asserts "lemonade-server serve" in message, pinning the wrong string

CLAUDE.md: "Never tell anyone to run lemonade-server serve — Lemonade 10.7/10.8 removed that CLI." Every new user following the doc or hitting a connectivity error gets a command that does not exist. Use describe_start_hint() (already imported in lemonade_client.py) in the error message; replace the doc step with gaia init.

🟡 Temp-dir leak is also still unfixed

audio_tools._transcribe_media finally block calls Path(wav_path).unlink() but never removes the gaia-media-XXXXX/ parent directory that media._default_dest creates via mkdtemp. Every transcription leaves an empty temp directory behind. The previous re-review gave a minimal one-liner fix (p.parent.rmdir() inside the except OSError guard); it wasn't applied.

🔍 Technical details

🔴 lemonade-server serve — three locations

src/gaia/audio/lemonade_asr.py (_unreachable):

from gaia.llm.lemonade_launcher import describe_start_hint

def _unreachable(self, error: Exception) -> ConnectionError:
    return ConnectionError(
        f"Lemonade Server is not reachable at {self.base_url} ({error}). "
        f"{describe_start_hint().instruction} "
        f"Or set LEMONADE_BASE_URL to a running server. See {DOCS_URL}"
    )

docs/guides/transcription.mdx — replace the lemonade-server serve step with gaia init (which starts the server and handles first-run setup).

tests/unit/test_lemonade_asr.py::test_unreachable_server_names_url_and_next_step — update the assertion to match whatever describe_start_hint() returns (or assert "lemonade-server serve" not in message as a guard).

🟡 temp-dir leak — audio_tools.py finally block

finally:
    if wav_path is not None:
        try:
            p = Path(wav_path)
            p.unlink(missing_ok=True)
            try:
                p.parent.rmdir()   # safe: mkdtemp dir holds only this one file
            except OSError:
                pass
        except OSError as cleanup_error:
            logger.warning("Could not remove scratch WAV %s: %s", wav_path, cleanup_error)

@github-actions github-actions Bot added the devops DevOps/infrastructure changes label Sep 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🟡 The new conftest.py adds the wrong directories to sys.path for hub agent packages, so it silently fails to shadow a stale editable install — the exact problem it was written to prevent.

The glob hub/agents/*/python/*/__init__.py yields paths like hub/agents/chat/python/gaia_agent_chat/__init__.py. Taking p.parent gives the package directory (gaia_agent_chat/), not its parent (python/) where import gaia_agent_chat would resolve. So on a machine with two worktrees the hub-package imports still come from whatever checkout last ran pip install -e, while tests appear green — which is the silent wrong-source-under-test scenario the conftest was meant to stop. Change p.parent to p.parent.parent.

🔍 Technical details

conftest.py:37:

    p.parent.parent for p in REPO_ROOT.glob("hub/agents/*/python/*/__init__.py")

With the current code, import gaia_agent_chat on a two-worktree machine resolves via the editable install (correct python/ in sys.path) rather than the newly prepended (wrong gaia_agent_chat/) entry — because the wrong entry adds nothing findable. Only gaia (from _ANCHOR_MODULES) is verified by _assert_local; hub packages aren't checked, so the stray import goes undetected.

p.parent.parent gives e.g. hub/agents/chat/python/, which is the directory Python needs to find gaia_agent_chat as a package.

@github-actions

Copy link
Copy Markdown
Contributor

🟡 The new conftest.py adds the wrong directories to sys.path for hub agent packages — the protection it promises in CLAUDE.md doesn't work for them.

_SOURCE_ROOTS is built with p.parent for p in REPO_ROOT.glob("hub/agents/*/python/*/__init__.py"). For hub/agents/chat/python/gaia_agent_chat/__init__.py, p.parent is hub/agents/chat/python/gaia_agent_chat — the package directory itself. Python's import system needs the directory that contains that package on sys.path, i.e. hub/agents/chat/python. The code needs p.parent.parent.

Because the editable install already provides the right path, tests still pass. But the conftest's stated goal — ensuring import gaia_agent_chat resolves from this checkout rather than another worktree's install — is silently unmet for every hub agent package. CLAUDE.md's new paragraph explicitly says the conftest puts hub/agents/*/python on sys.path, which describes the intended (not the actual) behaviour.

🔍 Technical details

conftest.py:61-63:

_SOURCE_ROOTS = [REPO_ROOT / "src"] + sorted(
    p.parent for p in REPO_ROOT.glob("hub/agents/*/python/*/__init__.py")
)

p.parent for hub/agents/chat/python/gaia_agent_chat/__init__.py → hub/agents/chat/python/gaia_agent_chat

That directory, added to sys.path, lets nothing new be imported — there is no gaia_agent_chat/gaia_agent_chat package inside it.

Fix:

_SOURCE_ROOTS = [REPO_ROOT / "src"] + sorted(
    {p.parent.parent for p in REPO_ROOT.glob("hub/agents/*/python/*/__init__.py")}
)

(set deduplicates in case a python/ dir has multiple packages.) _ANCHOR_MODULES only checks "gaia", so this doesn't break the session-fail guard — but the hub agent path entries are dead weight until the off-by-one is fixed.

CLAUDE.md line 11-12 documents the intended behaviour correctly (hub/agents/*/python); the implementation doesn't match it.

Comment thread tests/unit/test_diarize.py Fixed
@github-actions

Copy link
Copy Markdown
Contributor

🟡 The previous review flagged lemonade-server serve as a banned command (Lemonade 10.7/10.8 removed the CLI), but this push adds three new occurrences rather than fixing the one that was already there. New users following the Quick Start guide will hit a "command not found" before they can try the feature.

The user-facing guide (docs/guides/transcription.mdx, "Start Lemonade Server" step) now shows lemonade-server serve as a runnable command in a code block. The runtime error message in _unreachable repeats it. The test pins the wrong string in place.

Use describe_start_hint() from gaia.llm.lemonade_launcher for the runtime message (the previous review posted an exact suggestion), remove the code block from the guide, and update the test assertion to match.

🔍 Technical details

Three sites to fix, all introduced in this diff:

  1. docs/guides/transcription.mdx:283 — code block in the "Start Lemonade Server" step; replace with gaia init or inline prose that calls describe_start_hint() at render time.
  2. src/gaia/audio/lemonade_asr.py _unreachable() — "Start it with \lemonade-server serve`..."→ usedescribe_start_hint().instruction`.
  3. tests/unit/test_lemonade_asr.py:5136 — assert "lemonade-server serve" in message will need to change once the message does.

CLAUDE.md: "Never tell anyone to run lemonade-server serve — Lemonade 10.7/10.8 removed that CLI" and "Use describe_start_hint() … instead of hard-coding a command."

Pre-existing copies in readiness.py and providers/lemonade.py are acknowledged tech debt; the point here is that three new occurrences were added when the prior review explicitly called this out as a blocker.

@github-actions

Copy link
Copy Markdown
Contributor

Two previously-flagged problems remain unaddressed in this push.

🔴 lemonade-server serve is still hard-coded in three new places — the Lemonade 10.7/10.8 CLI was removed, so new users following the Quick Start guide and anyone who hits the ASR connection error will get a "command not found" immediately. The error message in lemonade_asr.py, the docs Quick Start step, and the unit test that asserts the error text all need to be updated to use describe_start_hint() (or gaia init) instead.

🟡 conftest.py puts hub agent packages at the wrong sys.path level — the glob hub/agents/*/python/*/__init__.py yields __init__.py files inside each package directory (e.g. .../python/gaia_agent_chat/__init__.py). Taking p.parent adds the package folder itself to sys.path, but Python needs the containing folder (.../python/) for import gaia_agent_chat to work. The protection the conftest promises is silently inoperative for all hub packages. Fix: change p.parent to p.parent.parent.

🔍 Technical details

lemonade-server serve:

  • src/gaia/audio/lemonade_asr.py — _unreachable() error message: "Start it with 'lemonade-server serve'" → replace with a describe_start_hint() call from gaia.llm.lemonade_launcher.
  • docs/guides/transcribe-meeting.mdx (Quick Start step) — remove the lemonade-server serve code block; the correct start path depends on the install, and gaia init is the only portable command.
  • tests/unit/audio/test_lemonade_asr_client.py — assert "lemonade-server serve" in message will need updating once the error message is fixed.

conftest.py sys.path:

# current (wrong): adds hub/agents/chat/python/gaia_agent_chat/ to sys.path
p.parent for p in REPO_ROOT.glob("hub/agents/*/python/*/__init__.py")

# fix: adds hub/agents/chat/python/ to sys.path — the actual import root
p.parent.parent for p in REPO_ROOT.glob("hub/agents/*/python/*/__init__.py")

_ANCHOR_MODULES only checks "gaia", so the stray-detection also won't catch a hub package pointing at the wrong checkout — worth extending to at least one hub module once the path is fixed.

@github-actions

Copy link
Copy Markdown
Contributor

🟡 The new diarization path adds a broad except Exception catch that masks real bugs in newly written code — the exact pattern CLAUDE.md calls tech debt and says not to add.

_diarize_if_possible catches every exception so diarization failure doesn't abort the transcription. The intent is correct, but using except Exception means a bug inside diarize.py (a ValueError, an AttributeError, a missing attribute on a newly created config) will be silently absorbed, logged only as "Speaker identification unavailable", and the caller will receive an empty spans list as if diarization simply wasn't installed. Real failures will look identical to expected ones.

The diarization can fail for three distinguishable reasons: the components are missing or corrupt (DiarizationError), the sherpa_onnx wheel can't be imported after install (ImportError), or the audio file has a low-level read problem (OSError). A catch over those three types keeps the non-fatal design intact while letting programming errors propagate.

🔍 Technical details

src/gaia/agents/tools/audio_tools.py — _diarize_if_possible:

        except (diarization.DiarizationError, ImportError, OSError) as e:  # diarization is non-fatal
            logger.warning("Speaker identification unavailable: %s", e)
            self._diarization_error = str(e)
            return []

CLAUDE.md: "On existing violations… They are tech debt, not precedent. When you touch a file that has one, fix it in the same commit — add a specific exception type…" This is new code, so the rule applies in full.

The # noqa: BLE001 suppression confirms the author was aware; the fix is to narrow the catch rather than suppress the lint.

@github-actions

Copy link
Copy Markdown
Contributor

🟡 The new root conftest.py adds the wrong directories to sys.path for hub agent packages, so the "test from this checkout" guarantee it promises doesn't actually work for them.

🔍 Technical details

conftest.py:63 — _SOURCE_ROOTS is built from p.parent for p in REPO_ROOT.glob("hub/agents/*/python/*/__init__.py"). For hub/agents/chat/python/gaia_agent_chat/__init__.py, p.parent resolves to hub/agents/chat/python/gaia_agent_chat/ — the package directory itself, not its containing directory. Adding that to sys.path lets you do import agent (a top-level file inside the package) but not import gaia_agent_chat. The correct path is p.parent.parent (e.g., hub/agents/chat/python/).

# conftest.py:63 — should be p.parent.parent
_SOURCE_ROOTS = [REPO_ROOT / "src"] + sorted(
    p.parent.parent for p in REPO_ROOT.glob("hub/agents/*/python/*/__init__.py")
)

Because _ANCHOR_MODULES = ("gaia",) only checks the core package, this won't produce a test failure — the session will start and the bad path entries will be silently ignored. But the protection the conftest was written to provide (ensuring hub agent tests use this checkout's source) never fires.

@github-actions

Copy link
Copy Markdown
Contributor

🟡 The new conftest.py adds the wrong directories to sys.path for hub agent packages, silently defeating the feature it was written to provide.

The glob hub/agents/*/python/*/__init__.py yields paths like hub/agents/chat/python/gaia_agent_chat/__init__.py. p.parent is then hub/agents/chat/python/gaia_agent_chat/ — the package contents directory — which is inserted into sys.path. For import gaia_agent_chat to work, hub/agents/chat/python/ (one level up) must be on the path, not the package directory itself. The inserted entries are valid directories, so if root.is_dir() passes, but they make the package's contents importable at top level, not the package. In practice tests still run because hub agents are editable-installed and found via that install — the conftest's wrong entries just don't help. The silence is what makes this dangerous: the goal ("ensure hub agent imports come from this checkout") is never achieved for those packages, with no error.

The fix is one word — p.parent.parent instead of p.parent in the _SOURCE_ROOTS comprehension.

🔍 Technical details

conftest.py:74:

# current (wrong)
_SOURCE_ROOTS = [REPO_ROOT / "src"] + sorted(
    p.parent for p in REPO_ROOT.glob("hub/agents/*/python/*/__init__.py")
)

# fixed
_SOURCE_ROOTS = [REPO_ROOT / "src"] + sorted(
    p.parent.parent for p in REPO_ROOT.glob("hub/agents/*/python/*/__init__.py")
)

With the fix, the paths added are hub/agents/chat/python/, hub/agents/email/python/, etc. — the directories that actually make import gaia_agent_chat resolve to this checkout.

The _ANCHOR_MODULES = ("gaia",) check catches the src/gaia/ case correctly. Hub agent modules aren't in that list, so even after the fix the guard only verifies gaia — consider adding "gaia_agent_chat" (or any one hub-agent package) to _ANCHOR_MODULES so a stale editable install on a hub agent is also caught.

@github-actions

Copy link
Copy Markdown
Contributor

🟡 The new root conftest.py adds one directory level too deep to sys.path, so it doesn't actually pin hub agent packages to the current checkout — which is its stated purpose.

Line 31 uses p.parent for each hub/agents/*/python/*/__init__.py match. That yields the package directory itself (e.g., hub/agents/gaia/python/gaia_agent/), not the python/ directory that Python needs in order to resolve import gaia_agent. The _assert_local check only verifies the gaia core package, so this mistake goes undetected. CLAUDE.md's new note says "running pytest from the repo root is enough" — that's only true for src/gaia/, not hub agent packages.

The test in this same PR (test_audio_tools.py) works around the problem with a manual spec_from_file_location for gaia_agent_chat profiles, which shows the author noticed that normal import would pick up the wrong version.

Fix: use p.parent.parent instead of p.parent on line 31, and add at least one hub package (e.g. gaia_agent) to _ANCHOR_MODULES so the session-start check would catch a future regression.

🔍 Technical details

conftest.py:31:

# current — wrong level
_SOURCE_ROOTS = [REPO_ROOT / "src"] + sorted(
    p.parent for p in REPO_ROOT.glob("hub/agents/*/python/*/__init__.py")
)
_SOURCE_ROOTS = [REPO_ROOT / "src"] + sorted(
    {p.parent.parent for p in REPO_ROOT.glob("hub/agents/*/python/*/__init__.py")}
)

The set de-duplication is free insurance against a package with multiple __init__.py levels adding the same python/ dir twice.

Also extend the anchor check so a future off-worktree editable install is caught:

_ANCHOR_MODULES = ("gaia", "gaia_agent", "gaia_agent_chat")

Evidence: running python3 -c "..." against the actual glob confirms p.parent resolves to e.g. hub/agents/gaia/python/gaia_agent/, not hub/agents/gaia/python/.

@github-actions github-actions Bot added installer Installer changes sidecar Agent sidecar contract / harness labels Sep 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔴 lemonade-server serve is still present in three places — this has been flagged in two prior reviews and is still unaddressed.

  • src/gaia/audio/lemonade_asr.py _unreachable() tells users to run the removed CLI
  • docs/guides/transcription.mdx Step 2 of the quickstart names the same non-existent command
  • tests/unit/test_lemonade_asr.py asserts the wrong string in place, pinning the bug

CLAUDE.md: "Never tell anyone to run lemonade-server serve — Lemonade 10.7/10.8 removed that CLI." Every new user following the quickstart or hitting a connectivity error gets a command that does not exist.

🟡 Temp-dir leak remains unfixed — _transcribe_media's finally block unlinks the WAV but never removes the gaia-media-XXXXX/ parent created by _default_dest's mkdtemp. Both findings were in the previous re-review with a one-liner fix; neither was applied.

🔍 Technical details

🔴 lemonade-server serve — three locations

src/gaia/audio/lemonade_asr.py:5106–5111 (_unreachable):

from gaia.llm.lemonade_launcher import describe_start_hint

def _unreachable(self, error: Exception) -> ConnectionError:
    return ConnectionError(
        f"Lemonade Server is not reachable at {self.base_url} ({error}). "
        f"{describe_start_hint().instruction} "
        f"Or set LEMONADE_BASE_URL to a running server. See {DOCS_URL}"
    )

docs/guides/transcription.mdx Step 2: replace lemonade-server serve code block with gaia init.

tests/unit/test_lemonade_asr.py:7234: update the assertion to match whatever describe_start_hint() produces.

🟡 Temp dir — minimal fix in audio_tools.py

After the existing Path(wav_path).unlink(missing_ok=True), add:

try:
    Path(wav_path).parent.rmdir()  # empty mkdtemp dir
except OSError:
    pass

@github-actions github-actions Bot added the dependencies Dependency updates label Sep 11, 2026
Pointing the agent at a recording did nothing before this: there was no
transcription tool at all, and the CLI back-door that existed downloaded
2.9 GB of Whisper weights and then died on a torch import while exiting 0.
Now "summarize this meeting: <file>.mp4" transcribes it through Lemonade,
labels the speakers, saves the transcript, indexes it for follow-up
questions, and returns a brief with action items — all local.

Speech-to-text moves to Lemonade's /api/v1/audio/transcriptions, so no
torch and no gated model downloads. On a 46-minute meeting the transcript
matches a WhisperX large-v3 reference at 94.1% word-level similarity with
all 60 top content terms present.

Four bugs found by running it on a real 46-minute recording, all fixed
here:

- The agent abandoned the tool at its 180s default while the transcript
  had already completed on disk, reporting a timeout for work that
  succeeded. transcribe_media now declares its own timeout.
- The tool returned the transcript inline: 135K chars against a 60K
  truncation budget, so two-thirds of the meeting was silently dropped
  before the summariser ever saw it. The transcript now travels by path.
- transcribe_media was in no tool bundle and not in CORE, so the dynamic
  loader could never surface it and the model fell back to
  summarize_document on the raw .mp4.
- A tool that timed out kept running, so a retry put a second copy of the
  same multi-minute job on the same hardware. Tools now get a cancellation
  signal they can poll.

The sidecar also warms the model and its system prompt at startup, which
takes the first-question wait from a cold 30s to 12s.

Closes #215. Fixes #3440, #3180.
It only existed in installer/README.md, so the one artifact meant to be handed
to someone outside the team was the one thing undocumented on the site. Adds
the verification step that matters most and had no home: run the frozen agent
the way the recipient will — no repo on PATH, no PYTHONPATH — and confirm it
reports the model server reachable. A binary frozen from a stale tree looks
identical and fails on their machine, not yours.

README now links rather than restates.
@github-actions

Copy link
Copy Markdown
Contributor

🔴 Three previously flagged issues remain unaddressed in this push.

1. lemonade-server serve is still in the error message, the quickstart, and the test. Lemonade 10.7/10.8 removed that CLI; every new user who follows the quickstart or gets a connectivity error hits a dead-end command. Use describe_start_hint() in the error string; replace the doc step with gaia init.

2. The temp-dir leak is still there. _transcribe_media's finally block unlinks the WAV but never removes the gaia-media-XXXXX/ parent directory that _default_dest creates with mkdtemp. Every transcription leaves an empty directory in /tmp.

3. _consolidate_speakers still swallows infrastructure errors at INFO. A ConnectionError (Lemonade down mid-call) or RuntimeError (empty model response) lands in except Exception and is logged at INFO, so refine_transcript returns "status": "success" with a fragmented speaker list and no user-visible indication that anything went wrong. CLAUDE.md prohibits this pattern ("any handler that discards the error and returns a placeholder"). Catch only ValueError/KeyError from _parse_alias_map; let infrastructure errors propagate — or at minimum log at WARNING.

🔍 Technical details

🔴 lemonade-server serve — three locations

  • src/gaia/audio/lemonade_asr.py:441 — _unreachable() builds the error string with the removed CLI. Replace:
    from gaia.llm.lemonade_launcher import describe_start_hint
    # …
    f"{describe_start_hint().instruction} or run `gaia init` to install. See {DOCS_URL}"
  • docs/guides/transcription.mdx:87 — replace lemonade-server serve with gaia init (or the describe_start_hint() output).
  • tests/unit/test_lemonade_asr.py:658 — assert "lemonade-server serve" in message pins the wrong string and must change with the error message.

🟡 temp-dir leak

src/gaia/agents/tools/audio_tools.py:574–584 — after Path(wav_path).unlink(missing_ok=True), add:

try:
    Path(wav_path).parent.rmdir()
except OSError:
    pass

Safe: _default_dest (src/gaia/audio/media.py:267) creates the temp dir to hold only the one WAV file, so rmdir fails loudly only if something else wrote there.

🟡 _consolidate_speakers broad except

src/gaia/agents/tools/audio_tools.py:901 — catch only the parse failure:

try:
    mapping = _parse_alias_map(self._llm_text(prompt), set(roster))
except (ValueError, KeyError) as e:
    logger.warning("Speaker consolidation skipped — parse failed: %s", e)
    return named

_llm_text raises ConnectionError / RuntimeError for infrastructure failures; those should surface rather than disappear into a silent success.

amd-pworfolk and others added 4 commits September 11, 2026 09:17
… Lemonade's 413

Lemonade's live server hard-rejects any request body over 104,857,600
bytes (100 MiB), confirmed by probing /api/v1/audio/transcriptions
directly. A 16kHz mono WAV crosses that wall past ~54 minutes, so any
longer recording failed outright with an HTTP 413 partway through the
pipeline, no matter how long you waited.

transcribe() now splits anything over ~40 minutes into overlapping
chunks (15s overlap, so a word is never cut in half at a seam), uploads
each separately, and reassembles one continuous transcript with
correctly offset timestamps. Files under the limit are byte-for-byte
unchanged: same single request, same original bytes.

Verified end to end against a real 84-minute recording through the live
Lemonade Server: 3 chunks, no 413, merged transcript covers the full
duration with no dropped content at the seams.
The lint gate failed on four no-member errors in _write_chunk_wav. The code
is correct — `wave.open(path, "wb")` returns a Wave_write, which has all four
methods — but pylint reads `wave.open` as always returning Wave_read and so
flags every write call on the handle.

Scoped to that block rather than the function, so the reader half above still
gets checked. Same class of stub gap as the os.startfile disables in
agents/base/console.py.
Bumped CHUNK_OVERLAP_SECONDS to 30s after testing against a real 84-minute
recording, but the comment I wrote for it overclaimed: 30s did not eliminate
the seam artifact seen at 15s, it relocated it to the other seam. Rewrote the
comment to say what was actually measured — this is a mitigation, not a fix,
and an occasional dropped word at a chunk boundary is a known, accepted
imperfection, not a bug to keep chasing by tuning this constant further.
The readiness screen stopped dead on "Lemonade not running" and waited for a
keypress — on a machine where it had already resolved the exact command that
would fix it, and printed that command on screen for the user to copy. For the
commonest case, installed but not running, that is a prompt to do something the
program can do itself, and it is the screen people hit most.

Now it starts it and carries on. Verified by killing every Lemonade process and
relaunching: the TUI went straight to chat, and LemonadeServer.exe was running
four seconds later with gaia-tui as its parent. A full transcribe → speaker
label → summarize run then completed against that server.

The line this does not cross is installing. Nothing is downloaded: a machine
with no Lemonade keeps the `f` key, because pulling gigabytes needs a human to
agree. Nor is it a silent retry — a start that fails leaves the row red and
halting exactly as before, with the command and the error in `d details`. A
LEMONADE_SERVER_PATH pointing at nothing still refuses to start anything else
and still says to unset it, since a user who named a binary meant that binary.

Starting needs a spawnable argv, which the resolver did not keep: Start is
prose, quoted for a shell and prefixed with an env assignment so a human can
paste it. Splitting that back apart to exec it is a quoting bug waiting to
happen, so each branch now records both forms where it still knows the real
path, and the context window is set on the child's environment rather than
mixed into a command string. Service-managed launchers get neither — their unit
file owns it, and setting it on the systemctl client would change nothing while
looking like it did.

probeLemonade becomes injectable in the same move. Three of these tests passed
against the real server on my box and skipped the whole new path; stubbing it
is what makes them test anything on a developer machine that has Lemonade up.
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Sep 11, 2026
Merged via the queue into main with commit 4d47ae9 Sep 11, 2026
98 of 102 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the kalin/transcription-pipeline branch September 11, 2026 19:22
kovtcharov added a commit to kovtcharov/gaia that referenced this pull request Sep 12, 2026
…3672)

GAIA’s TUI can now choose Local, Fireworks AI, or AMD LLM Gateway
through Lemonade, with masked runtime-key entry and model discovery.
Cloud chat avoids local chat downloads and model loading; Gemma 4 31B IT
is suggested when the provider exposes it. Searchable models, clearer
progress, compact layouts, and cancellable setup make provider changes
easier to follow.

Based on current main, including amd#3597’s TUI and transcription changes.

## Test plan

- [x] Full `cd tui && go test ./...`, `go vet ./...`, and targeted race
checks.
- [x] Focused Python tests, changed-file lint, and internal
documentation links.
- [x] Real Lemonade 11.8.1 + TUI `--dev --control`: Fireworks streaming,
native `read_file`, cancellation, and switching to local Gemma while
preserving the conversation.
- [x] Masked paste, narrow layouts, provider failures, and AMD
custom-header/key lifecycle contract tests.
- [ ] Live AMD gateway validation with an organization endpoint.
- [ ] Broader agent evaluation against the committed baseline before
merge.

Gemma 4 31B was absent from the test account’s discovered catalog; live
Fireworks checks used its GLM fast router. No deployment was
provisioned.

---------

Co-authored-by: Kalin Ovtcharov <[email protected]>
Co-authored-by: Ovtcharov <[email protected]>
kovtcharov-amd pushed a commit that referenced this pull request Sep 12, 2026
Three conflicts, all bookkeeping from tools landing on main in parallel:

- tools_count: main reached 70 after #3597 added transcribe_media and
  refine_transcript; the three Stable Diffusion tools this branch registers
  put the real total at 73. Corrected in the manifest, the registry entry,
  and the changelog line that quoted the old 68 -> 71.
- CHANGELOG: kept both new entries; they describe unrelated features.
- min_gaia_version: took main's 0.23.1 floor and the note explaining it.
kovtcharov-amd pushed a commit that referenced this pull request Sep 12, 2026
Tool-count bookkeeping, after transcription (#3597) and image generation
(#3073) both landed on main while this branch was open:

- tools_count 76. ChatAgent's "full" profile is now 60 — 55 plus
  transcribe_media/refine_transcript from main and the three CLI-setup tools
  from this branch — over 7 skill-library, 4 code-index, 3 Stable Diffusion,
  remember_skill_lesson and load_tools.
- The changelog entry quoted the old 68 -> 71; it is 73 -> 76.
- SKILL.md and docs/guides/gaia.mdx: kept this branch's gated-tool counts
  (nine gated, seven of them in the base set) and main's image-generation
  line, both restated against the new total.
kovtcharov-amd pushed a commit that referenced this pull request Sep 12, 2026
Closes the review's 🔴: `gaia-agent.yaml` and `gaia_agent/__init__.py` now
agree at 74, which is main's 73 plus this branch's `wait_for_condition`.
ChatAgent's "full" profile is 58 — 55, plus transcribe_media/refine_transcript
from #3597 and wait_for_condition from here.

The shell_tools conflict was not really a conflict. #3252 made `@tool` reject
unknown keyword arguments and #3583 taught it to derive the tool's name,
description and per-argument schema from the function and its docstring, so
main deleted the hand-written `name=`, `description=` and `parameters=` blocks
everywhere. This branch still passed them on `run_shell_command` and
`wait_for_condition`, which is now a TypeError at import. Both functions
already carry full docstrings with `Args:` covering every parameter, so the
arguments are dropped rather than migrated — they had been silently ignored,
and nothing the model sees changes. `timeout=` stays on both: it is a
supported argument and it is what keeps the agent-level guard outliving the
longest command class.

`_shell_tools()` in the adaptive-timeout spec keyed its captured tools on the
`name=` argument, so every lookup returned None once it was gone; it reads
`fn.__name__` now, the same place the decorator does.
@kovtcharov-amd kovtcharov-amd mentioned this pull request Sep 14, 2026
11 of 12 tasks
github-merge-queue Bot pushed a commit that referenced this pull request Sep 16, 2026
# GAIA v0.24.0 Release Notes

## Breaking Changes

- **Thirteen per-task agents were removed** — `analyst`, `blender`,
`browser`, `code`, `doc-search`, `docker`, `docqa`, `emr`, `fileio`,
`jira`, `routing`, `sd`, `summarize`; it's a `SKILL.md` in `hub/skills/`
on the flagship now. Installing one by id fails — use `gaia hub install
gaia --trust` and load the matching skill. (PR
[#2995](#2995))
- **The TUI control API dropped its hub-browser fields** — `view` is now
`splash | preflight | chat`; `hub_tab`, `hub_tab_index`,
`selected_agent_id`, `visible_agent_ids`, `filtering`,
`can_return_to_hub` are gone, replaced by `blocker`. Anyone driving the
TUI over this API needs to update. (PR
[#3120](#3120))
- **`@tool(name=..., description=...)` no longer works** — the decorator
rejects unrecognized keywords instead of silently discarding them. Use
`@tool()`; name and description come from the function. (PR
[#3252](#3252))
- **`gaia telegram start` now requires `--allowed-users`**, no opt-out —
it used to start (and reply to anyone) without one. (PR
[#3306](#3306))
- **`gaia api --host` beyond loopback with no key now refuses to
start**, and `GAIA_API_KEY` gates chat completions too. (PR
[#3612](#3612))

## What's New

- **`gaia hub install gaia --trust` actually installs and runs the
flagship agent** — the daemon had no sidecar entry for it, the
installers didn't ship its binary, and `gaia init` set up the wrong
agent. All three are fixed. (PRs
[#3031](#3031),
[#3146](#3146),
[#3330](#3330),
[#3125](#3125),
[#3120](#3120))

- **The agent draws pictures, summarizes meetings, and orients itself
first** — "draw me a red bicycle" reaches the image tools; `summarize
this meeting: standup.mp4` returns a transcript with action items; and
every task scans the project first. Skills load themselves, and
corrections are learned into memory, not hand-edited into `SKILL.md`.
(PRs [#3073](#3073),
[#3597](#3597),
[#3405](#3405),
[#3010](#3010),
[#3023](#3023))

- **Every answer states whether it was checked** — the agent names what
it ran and what passed, not just reporting success. `--trace` in the TUI
records every tool call so a wrong answer can be replayed. (PRs
[#3397](#3397),
[#3579](#3579))

- **The TUI takes the mouse, draws to full width, and can go cloud** —
wheel-scroll, clickable links, no more 80-column wrapping, and a local,
Fireworks, or AMD Gateway model via Lemonade. (PRs
[#3699](#3699),
[#3006](#3006),
[#3672](#3672))

- **Run Lemonade without the machine-wide installer** — `gaia lemonade
embedded start` runs your own Lemonade Server, no admin rights needed.
(PR [#3121](#3121))

- **Mine your own Claude Code sessions for usage stats** — a
deterministic, LLM-free pipeline turns your `~/.claude/projects/`
transcripts into tool-usage, failure, and cost reports. See the [Session
Analytics guide](https://amd-gaia.ai/docs/reference/session-analytics).
(PRs [#3111](#3111),
[#3782](#3782))

## Security

- **Any web page you visited could drive GAIA's local servers** — a
cross-origin request could start a tunnel, poison your RAG store, or
send mail; a document link could make the chat agent fetch cloud
metadata or the daemon's loopback API. Middleware now enforces
`Origin`/`Host` checks everywhere, and web tools refuse private/loopback
redirects. (PRs [#3366](#3366),
[#3612](#3612))
- **A Telegram bot with no allowlist replied to anyone on the platform**
(the documented default) — off-allowlist users are now refused before a
session or model call; the bot's tool surface is chat-only. (PR
[#3306](#3306))
- **Attaching a document could silently widen the agent's read scope to
its whole parent directory** — the grant is now the file itself; reads
gained a credential denylist, and writes refuse shell rc files,
PowerShell profiles, and git hooks. (PR
[#3594](#3594))
- **A chat turn could plant `system`/`permission` rows into every future
prompt** — only onboarding/admin paths can write them now. (PR
[#3614](#3614))

## Bug Fixes

A selection of the user-visible fixes this release — the full list is in
the changelog below.

- **The flagship agent's core model floor now matches what can actually
run it** (PR [#3055](#3055)) — installs
no longer point at a Lemonade version too old to serve the agent.
- **A one-shot `/query` run no longer leaks an agent process** (PR
[#3079](#3079)).
- **The npm sidecar no longer attaches to a foreign server** (PR
[#3078](#3078)) — it now verifies the
server it finds is actually its own before using it.
- **A turn parked on a confirmation prompt no longer hangs when stdin
closes** (PR [#3080](#3080)) — the agent
ends the turn instead of waiting forever.
- **Telegram's background polling survives** (PR
[#3272](#3272)) — the adapter no longer
silently stops receiving messages.
- **`gaia uninstall --purge` removes the embedded Lemonade runtime it
installed** (PR [#3277](#3277)) —
previously a full purge left `~/.gaia/lemonade` behind entirely; a live
embedded daemon must be stopped first.
- **Outlook and Gmail search operators translate correctly for the email
agent** (PRs [#3042](#3042),
[#3562](#3562),
[#3619](#3619)) — a query that used to
fail silently or match the wrong messages against Outlook's Graph API
now works or fails loudly.
- **RAG indexing honors a document's actual success flag** (PR
[#3678](#3678)) — a failed index no
longer gets reported as indexed at every call site that checked it.
- **Claude tool-call history survives across turns** (PR
[#3410](#3410)) — a multi-turn tool
conversation no longer loses earlier tool results.
- **An ambiguous edit is refused instead of silently changing the first
match** (PR [#3396](#3396)) —
`edit_file` asks for a more specific match rather than guessing which
occurrence you meant.
- **A port collision between the MCP bridge, Agent UI, TUI, and Telegram
is resolved** (PR [#3604](#3604)) — the
four no longer fight over the same default port.
- **Telegram reports unsupported media types instead of failing
silently** (PR [#3263](#3263)).
- **`GET /health` reports real component status** (PR
[#2601](#2601)) — it used to report `ok`
even with a dead Lemonade backend; it now reports LLM and RAG status
too.
- **A `.bak` backup file could be imported as the module it backed up**
(PR [#3748](#3748)) — `.bak` now goes
last in the filename, so pytest no longer tries to collect a test file's
own backup.
- **A PowerShell sink could execute untrusted text instead of just
displaying it** (PR [#3359](#3359)) — an
apostrophe in an indexed document name, or in a `notify_desktop`
message, ran as code; both now pass values out-of-band.
- **`--scopes` could request an OAuth scope outside a connector's
declared ceiling** (PR [#3247](#3247)) —
the CLI's verbatim-scopes path skipped the check the Agent UI already
had; both now enforce it.

## Contributors

Thanks to the community members who contributed to this release:

- [@mikemikimike](https://github.com/mikemikimike) — Telegram
background-polling and media-handling fixes, embedded-Lemonade uninstall
cleanup, and TUI init-process reaping (PRs
[#3272](#3272),
[#3277](#3277),
[#3271](#3271))
- [@itomek](https://github.com/itomek) — custom-agent guide fixes and CI
reliability work, including provisioning the dev install in Claude Code
cloud sessions (PRs [#3317](#3317),
[#3033](#3033))
- [@Hashim1999164](https://github.com/Hashim1999164) — hub agent pages
showing the GAIA install path alongside npm, structured JSON for
unexpected email API errors, and Outlook Graph query-escaping fixes (PRs
[#3151](#3151),
[#3046](#3046),
[#3021](#3021))
- [@AmirF194](https://github.com/AmirF194) — Outlook/Gmail
search-operator translation for the email agent (PRs
[#3042](#3042),
[#3562](#3562),
[#3619](#3619))
- [@sujikathir](https://github.com/sujikathir) — the `/health`
component-status endpoint and a Claude tool-history preservation fix
(PRs [#2601](#2601),
[#3410](#3410))
- [@SIBTAIN-ASAD](https://github.com/SIBTAIN-ASAD) — Telegram
unsupported-media-type reporting and test coverage (PR
[#3263](#3263))
- [@wangzhengzhuo05](https://github.com/wangzhengzhuo05) —
MCP/Telegram/TUI port-collision fix across the bridge, Agent UI, and
daemon (PR [#3604](#3604))
- [@amd-pworfolk](https://github.com/amd-pworfolk) — stopped a non-LLM
model's `ctx_size` from leaking into `get_status()` (PR
[#3595](#3595))

## Full Changelog

**230 commits** since v0.23.0:

<details>
<summary>Expand full changelog (230 commits)</summary>

- `40e0dd89d` — docs(reference): add a user guide for Claude Code
session analytics (#3782)
- `f90fa5aae` — fix(docs): stop misclassifying GitHub anti-abuse resets
as broken links (#3800)
- `87313af75` — fix(daemon): reject a repo-root --dev-src-dir with a
corrected path (#3796)
- `cad3363f7` — fix(agents): isolate log records from abandoned
tool-timeout workers (#3795)
- `43dbce921` — fix(connectors): forward_connection uses the shared
scope resolver (#3792)
- `0c301bae3` — fix(tui): abandon queued follow-up on second Esc, add
stall nudge (#3798)
- `99caeaaf7` — fix(email-agent): close draft/RSVP/event gap in
fabricated-success guard (#3797)
- `8eb53c6b7` — fix(tui): name the buckets behind email pre-scan's +N
more (#3794)
- `5597e6a57` — fix(connectors): turn on include_granted_scopes for
Google OAuth (#3786)
- `76a7cde29` — fix(webui): show agent version in Hub Details modal
(#3784)
- `1474b12e9` — fix(tests): assert no render card for pre_scan_inbox
(#3785)
- `70de05022` — fix(email-agent): assert SCHEMA_VERSION, not a hardcoded
literal (#3787)
- `ddfdcabea` — fix(tests): skip live release-asset test on transient
network drops (#3788)
- `4740ec97f` — fix(email): point README at gaia init instead of removed
CLI (#3783)
- `ff62b4d54` — fix(agent): strip whitespace from tool names before
dispatch (#3744)
- `f39ead7ad` — fix(agent_loop): stop spending hourly budget on idle
no-op ticks (#3745)
- `1a93f3e20` — fix: apply reviewed maintenance repairs for #3372
(#3713)
- `fe863b5d9` — fix: apply reviewed maintenance repairs for #3613
(#3717)
- `fa02dc063` — fix: apply reviewed maintenance repairs for #3375
(#3714)
- `3c32386ce` — fix(security): put .bak last so a backup stops looking
like a Python module (#3748)
- `c11e2bf85` — test(installer): expect the not-executed flag on a
refused MCP tool call (#3736)
- `2cbde094b` — fix(vlm): raise when vision extraction fails instead of
indexing the error (#3722)
- `8c4661c38` — fix(agent,memory): let a bare recall() browse instead of
erroring (#3705)
- `7bd576723` — fix(agent): stop the verification footer claiming a
rejected command ran (#3703)
- `5bb9e53f0` — fix(tools): keep a finished edit reported as finished
when the diff won't render (#3702)
- `044a741b3` — fix(tools): search the user's project, not the directory
the sidecar was spawned in (#3711)
- `9fc740074` — fix(tools): describe the edit and write tools by what
agents actually edit (#3712)
- `eefd33dde` — fix(rag): stop indexing a damaged PDF page as a blank
one (#3723)
- `3d0dfbee1` — fix(ui): let a document on a reconnected drive come back
(#3727)
- `cd3dbe6de` — fix(talk): say when the microphone fails instead of
printing "Listening…" (#3724)
- `7c733bb01` — fix(hub): stop recording a failed first install as
installed (#3726)
- `140619559` — feat(tui): scroll with the wheel, click links, and print
only measured ttft/tok-s (#3699)
- `8113fd043` — fix(code-index): let a session index more than one
repository (#3728)
- `d311ac39e` — fix(tools): describe tool arguments at the slot the
model fills (#3583)
- `62e52f8e5` — fix(ui): let the operator declare document roots beyond
$HOME (#3586)
- `c57db1f0d` — fix(tools): honor find_files scope on the index path and
stop doubling "error:" (#3671)
- `cb77a334f` — fix(agents): retry instead of answering with raw
tool-call JSON (#3598)
- `41cd64ec2` — fix(llm): keep tool calls on a truncated assistant turn
during overflow retry (#3582)
- `36b8aa55d` — feat(skills): make image generation reachable from the
flagship (#3073)
- `600831f9e` — ci(vscode): drop the base-branch filter that now fails
the lint gate (#3719)
- `1c23713bd` — fix(ci): run the full suite on stacked PRs, not just PRs
into main (#3372)
- `b8e0496b1` — fix(eval): capture stdout when a scenario subprocess
fails (#3375)
- `d5d4a815c` — fix(tui,webui): stop the real agent on cancel; keep
answer content (#3627)
- `24c0ee4fd` — fix(agent-gaia): name a core floor that can actually run
the agent (#3055)
- `eee4666cd` — fix(security): make the file boundary the file, and hold
it on reads (#3594)
- `46a41f9ec` — fix(chat): restore recent context in long sessions
(#3651)
- `0d82616a9` — fix(tui): reject unsupported daemon permission bypass
(#3654)
- `c3284b464` — fix(npm): resolve Windows shims before launching the TUI
(#3653)
- `a07b87e40` — feat(skills): let a gh write ask instead of fail (#3009)
- `1070ed226` — fix(api,mcp,web): refuse foreign origins and internal
fetch targets (#3612)
- `e373a19df` — chore(lemonade): remove the dead `lemonade-server serve`
CLI from the last surfaces (#3617)
- `305ae88e9` — fix(rag): preserve indexed documents when persistence
fails (#3652)
- `b76647e72` — fix(mcp): retrieve complete Agent UI transcripts (#3667)
- `b7884b46d` — fix(rag): honor index_document's success flag at every
truthy call site (#3678)
- `1d3b2b415` — feat(tools): tell the agent its edit tools exist (#3602)
- `86071110a` — fix(eval): make the agent eval gate's report mode
actually report (#3613)
- `404107919` — fix(memory): refuse chat-minted privileged rows and
distil before pruning (#3614)
- `2fc19e5ee` — feat(tui): choose local, Fireworks, or AMD Gateway via
Lemonade (#3672)
- `a5e16d0b9` — test(lemonade): assert four external contracts the mocks
were faking (#3615)
- `947d05225` — fix(schedule): honor day constraints in recurring timers
(#3655)
- `5155591ad` — fix(chat): retain admission slots for detached runs
(#3657)
- `13f61aebc` — fix(broker): wake queued requests at lease expiry
(#3660)
- `cb8c847a7` — fix(vscode): preserve split streaming tool calls (#3661)
- `65499dabf` — fix(chat): load complete transcripts across message
pages (#3664)
- `d84f98474` — ci(eval): give the persistent Lemonade task the same
launch env as every other start path (#3577)
- `42377da7a` — fix(llm): don't let a non-LLM model's ctx_size leak into
get_status() (#3595)
- `e6a9efcf5` — Error when a named find_files folder is missing (#3580)
- `4d47ae9a9` — feat(agent): transcribe and summarize meeting recordings
locally (#3597)
- `cfc3d2959` — fix(email): don't treat a colon word inside a quoted
phrase as an Outlook operator (#3619)
- `e8f5bc898` — fix(mcp,telegram): resolve port 8765 collision across
bridge, agent-ui, tui and telegram health (#3604)
- `a2df094e3` — fix(llm): preserve Claude tool history (#3410)
- `d9e381b9d` — fix(tui): reap cancelled init processes (#3271)
- `d7cadd3e0` — fix(telegram): keep background polling alive (#3272)
- `b81f9e1b0` — fix: uninstall embedded Lemonade runtime (#3277)
- `146dd63cc` — fix(tui): send caller checkout to daemon ensure (#3268)
- `4ce7c2662` — fix(email): allow move_to_label to restore inbox (#3267)
- `36cab66de` — fix(connectors): preserve grants in device login (#3266)
- `176faf8eb` — fix(email): report calendar listing truncation (#3264)
- `ca2a5086d` — fix(email): honor sender preference ordering (#3257)
- `659cb0cde` — fix(email): surface briefing cache age (#3256)
- `7304f5e86` — ci(release): let the backend test step fail the release
(#3573)
- `07a3749c0` — fix(ci): report runner outages in minutes, not as a
silent cancel a day later (#3411)
- `68f10a8fa` — fix(agents): reject unknown @tool keyword arguments
(#3252)
- `c45593aed` — fix(email-tests): prevent headless keyring hangs (#3249)
- `543b11ec6` — fix(skills): make skill tools work on the Claude
provider (#3143)
- `f83e96c14` — feat(agent): materialize a project map at task start
(#3405)
- `29e5d977c` — feat(tui): add --trace to record what the agent actually
did (#3579)
- `38bc3669b` — docs(troubleshooting): explain the audit-module
antivirus false positive (#3348)
- `f3d739485` — fix(email): fail loudly on Outlook operators Graph
cannot translate (#3562)
- `af7d492ed` — fix(eval): drive the agent eval with the OAuth token,
and probe it for real (#3403)
- `0c23e13a9` — fix(tools): refuse an ambiguous edit instead of changing
the first match (#3396)
- `4ccaa0738` — feat(agent): state whether an answer was verified, on
every exit path (#3397)
- `4c229d434` — fix(api,web): repair gaia api chat completions, HTTPS
SNI, and download overwrite (#3364)
- `456aef994` — chore(deps): bump anthropics/claude-code-action from
1.0.210 to 1.0.216 in the github-actions group across 1 directory
(#3409)
- `a87c3f631` — chore(deps-dev): bump the agent-ui-dependencies group in
/src/gaia/apps/webui with 5 updates (#3407)
- `7e7a2684d` — docs(plans): measure GAIA's agent-loop gaps against 345
real sessions (#3391)
- `d09a7a64e` — feat(skills): learn a skill's corrections into memory,
never into the file (#3023)
- `c53918b75` — docs(claude): correct stale commands, the GaiaAgent
status, and the CLI list (#3311)
- `e274986a1` — fix(skills,tools): stop two tools deleting data while
reporting success (#3358)
- `74916c5f5` — fix(cli): stop uninstall and kill --port destroying what
they do not own (#3361)
- `0ec6ee13e` — fix(connectors): make the per-agent grant check real and
bounded (#3363)
- `9bd6bbadd` — chore(deps-dev): bump the python-dependencies group with
2 updates (#3408)
- `a65bc4556` — chore(deps-dev): bump electron from 44.0.0 to 44.1.1 in
the root-npm-dependencies group (#3406)
- `b4f2c096f` — fix(telegram): scope the bot's tool surface and stop the
allowlist failing open (#3306)
- `d7470a8fc` — fix(ci): stop the Claude audits re-filing the same
finding every run (#3310)
- `dd98c0ff4` — fix(security): stop PowerShell sinks from executing
untrusted text (#3359)
- `833ca3d06` — fix(ui): stop any web page from driving the Agent UI
backend (#3366)
- `e9f28b311` — fix(release): make the v0.23.1 tag pass its own publish
gates (#3354)
- `abe87edc3` — Devlab/dispatch passing (#3344)
- `5b284b4da` — feat(init): make `gaia init` the one setup path for the
flagship (#3330)
- `1ae7dad84` — fix(connectors): enforce catalog scope ceiling for
authorization (#3247)
- `0525d5b0a` — fix(chat): surface unavailable memory at startup (#3153)
- `695e92c58` — docs(custom-agent): make the guide's agent examples
actually run (#3317)
- `a75904de1` — chore(deps-dev): bump the agent-ui-dependencies group in
/src/gaia/apps/webui with 2 updates (#3314)
- `a6a25f29c` — chore(deps): bump zod from 4.4.3 to 4.5.4 in the
root-npm-dependencies group (#3313)
- `ed32a2d4d` — fix(daemon): treat an unreaped sidecar as stopped, not
as a survivor (#3229)
- `211f08c5b` — Use the workspace root lockfile for the example Electron
app (#3301)
- `1886dd363` — test(conftest): stop the unit suite opening the
developer's real browser (#3305)
- `72241b2f2` — Release v0.23.1 (#3054)
- `9b26827ca` — fix: keep source-less agents compatible with skill
discovery (#3244)
- `0fb49f1d6` — fix: preserve forwards across transient mint failures
(#3245)
- `1dec2462f` — fix(connectors): record only granted agent scopes
(#3248)
- `3e90f15d5` — fix(agent): use device profile for context overflow
(#3253)
- `18a8bcb89` — fix: guide daemon version skew upgrades (#3246)
- `39af8ef9f` — fix(ui): report Lemonade probe failures accurately
(#3250)
- `0db152ebc` — fix(daemon): honor extended agent query timeouts (#3251)
- `2dedc7654` — fix(tui): preserve partial-success batch outcomes
(#3255)
- `c5b00e85b` — fix(telegram): report unsupported media types (#3263)
- `bc613dc85` — fix(hub): stop calling an app's npm package a frozen
agent sidecar (#3299)
- `821667c76` — fix(skills): normalize common plural stems (#3270)
- `8ad4ee469` — fix(email): parse grouped Outlook duration queries
(#3269)
- `30b8246ad` — test: cover registered Telegram handlers (#3273)
- `80cf9eb00` — test: verify embedded backend install contract (#3274)
- `9b40c3522` — ci: run embedded Lemonade checksum guard (#3275)
- `5b45a7c11` — fix: keep skill discovery loader available (#3276)
- `1ff94ae6c` — fix: report RAG indexing failures accurately (#3278)
- `0c4d725a0` — fix: report missing API server on stop (#3279)
- `811e0bc04` — fix(talk): honor restart voice command (#3280)
- `869f0bf41` — fix: fail Telegram startup when dependency is missing
(#3283)
- `31fcdd03c` — fix(mcp): expose TUI state wait matcher (#3284)
- `f2dfcd8cb` — fix(hub): stop offering a GAIA install a non-agent card
rules out (#3232)
- `6ffee9e02` — chore(deps-dev): bump the agent-ui-dependencies group in
/src/gaia/apps/webui with 5 updates (#3156)
- `671000d8e` — chore(deps): bump the root-npm-dependencies group with 3
updates (#3155)
- `438733605` — chore(deps): bump anthropics/claude-code-action from
1.0.206 to 1.0.210 in the github-actions group (#3157)
- `0c28442a9` — fix(tui): preserve seeded transport for wheel agents
(#3285)
- `41a00915b` — fix(tui): gate Claude launches on credentials (#3286)
- `25dd767da` — fix(ci): the eval gate skipped every category when the
embedder failed (#3158)
- `fdcdbff4c` — fix(website): Mac visitors on Safari got no install
button (#3144)
- `95f874817` — perf(gaia): send the flagship only the tools a turn
needs (#3008)
- `eb764bf5a` — feat(installer): the one-line install now brings the
agent with it (#3146)
- `ea0e5d924` — feat(cpp): skill sets and gaia-agent.yaml wiring (#2931)
- `5b37cb138` — Route the Strix Halo jobs to the Ryzen Dev Lab pool
(#3262)
- `0047af97d` — ci(claude): skip Claude PR review for Dependabot PRs
(#3259)
- `11039b64e` — test(daemon): stop the hub stray-process test orphaning
a sleep child (#3230)
- `a338b94f4` — test(telegram): cover media ingest paths (#3150)
- `a7bcf5e11` — Show GAIA install alongside npm on hub agent pages
(#3151)
- `ecae8f183` — test(telegram): pin the _allowed truth table including
the fail-open (#3051)
- `8e57b5197` — docs(readme): note the Email agent's CLI install path
(#3041)
- `b9330deba` — fix(email): translate Gmail-style operators for Outlook
Graph search (#3042)
- `3b23ac2b3` — feat(skills): load the right skill without the user
knowing its name (#3010)
- `d4666b8bd` — feat(lemonade): run a private, self-contained Lemonade
Server (#3121)
- `793fb4d42` — perf(ci): cut the C++ dependency cache from 407 MB to
~109 MB (#3142)
- `2cd894579` — fix(telegram): apply the allowlist to every handler, not
just messages (#3148)
- `c128b18f6` — fix(cpp): unblock the C++ gate — split the third-party
skill corpus from the conformance one (#3129)
- `55c977006` — feat(factory): harvest Claude Code sessions into usage
statistics (#3111)
- `6db50643d` — chore(deps): bump the github-actions group across 1
directory with 3 updates (#3049)
- `c7989b953` — fix(mcp): port servers to MCP SDK 2 (#3047)
- `ee61b74fe` — Return structured JSON for unexpected email API errors
(#3046)
- `f2d8291c3` — feat(installer): double-click installers for the
terminal hub (#3125)
- `f601621d1` — fix(agent-gaia): stop one-shot /query runs leaking an
agent each (#3079)
- `4a6561c86` — chore(lemonade): pin Lemonade 11.8.1 (#3117)
- `c51a1c520` — test(telegram): cover access and session isolation
(#3052)
- `98043fb56` — feat(tui): boot straight into the flagship agent, retire
the hub browser (#3120)
- `5bb64a6ba` — chore(deps-dev): bump the agent-ui-dependencies group
across 1 directory with 8 updates (#3048)
- `51c298e1a` — fix(tui): stop --use-claude from starting Lemonade, and
name the Claude model (#3005)
- `38423c84c` — fix(ci): unblock the walkthrough's wheel install, rein
in the authz lens's subagents (#3109)
- `abb8ddea8` — ci(release): require GAIA_HUB_PUBLISH_URL for hub
publish, drop dead fallback (#3032)
- `88299ea49` — feat(website): lead with the flagship agent, and say
what it actually does (#3093)
- `eda11b778` — fix(llm): suggest gaia init on macOS (#3027)
- `11f4da758` — Escape quotes inside Outlook Graph search queries
(#3021)
- `1a3d0f0bd` — fix(packaging): add realtime dependencies to talk extra
(#2954)
- `ae0b64e9f` — chore(deps-dev): bump electron from 43.2.0 to 43.4.1 in
the root-npm-dependencies group across 1 directory (#2871)
- `b95c66dff` — test(memory): assert the reconcile 503 branch in every
environment (#2868)
- `708f806a0` — docs(playbooks): simplify index page (#2957)
- `4ac8f1075` — fix(cli): drop non-constructor CLI flags before creating
GaiaCliClient (#2976)
- `191a317f2` — feat(api): report component health (#2601)
- `40ed1513b` — chore(deps-dev): bump electron from 43.2.0 to 43.4.1 in
/src/gaia/apps/example/webui in the example-app-dependencies group
across 1 directory (#2869)
- `dac81b60c` — docs(tui): tell people how to install the terminal hub
(#3039)
- `643f78432` — feat(tui): lay out to the real terminal width (#3006)
- `ba64ed1e3` — fix(installer): install the extras the daemon needs to
start (#3056)
- `25c137275` — fix(ci): make the Claude audits produce output, not just
run green (#3063)
- `ee64d5cd2` — docs(agent-gaia): correct the npm sidecar docs against
the code (#3076)
- `625478393` — fix(tui): don't run an unverified binary from the hub
install root (#3075)
- `a6c68c8a4` — fix(agent-email): fail closed when a request omits its
Host header (#3077)
- `4b4de3a89` — fix(agent-gaia): stop the npm sidecar attaching to a
foreign server (#3078)
- `6692361d6` — fix(agent-gaia): end a turn parked on a confirmation
when stdin closes (#3080)
- `3ec80f141` — fix(tui): run an installed hub agent over the daemon,
not stdio (#3062)
- `c7c4cff17` — fix(agent): bill tool-approval time to the human, not
the tool (#3007)
- `b388562cc` — ci(installers): add job timeouts (#3020)
- `c4a4fef42` — fix(ci): the README CI badge is permanently red and
reports (#3050)
- `e2ec50523` — docs(cli): remove duplicate terminal hub section (#3045)
- `215477ab6` — ci: fix stale triggers and timeout left by the agent
collapse (#3067)
- `90c3132db` — docs: remove the Blender workshop left dead by the agent
collapse (#3068)
- `a4b84fae7` — perf(claude): cache the fixed prefill, and report the
cache counters (#3026)
- `fdd9f18c3` — refactor(agents): collapse per-task agents into flagship
skills (#2995)
- `5b4f1381d` — fix(ci): scheduled Claude audits were green but never
ran (#3053)
- `78bbc3076` — feat(website): TUI-first redesign — download the
terminal hub, lead with the flagship agent (#3030)
- `6faec485e` — ci(release): make the TUI binaries reproducible, drop
the R2 probe (#3040)
- `02691245e` — fix(hub): strip R2 credentials, and diagnose why R2
refuses them (#3037)
- `aae4a50ce` — ci(hub): require component manifests to match the
release tag again (#3036)
- `8ca0f7d98` — fix(hub): give the website redeploy a repo to dispatch
against (#3038)
- `20e081909` — fix(hub): unblock large-artifact publishing, and version
components independently (#3035)
- `9ad1cee3e` — ci(cloud): provision the dev install in Claude Code
cloud sessions (#3033)
- `0befe27ce` — ci(linux): install Lemonade from the PPA, not deleted
PyPI package (#3034)
- `db170b8a2` — fix(agent-gaia): make the flagship agent releasable —
RAG in the binary, 0.1.1 on npm (#3031)
- `85ba09230` — fix(hub): stop boto3's default checksums breaking every
R2 upload (#3029)
- `5f3e7bbf1` — feat(hub): publish oversized artifacts direct to R2,
bypassing the Worker body cap (#3025)
- `b254708f1` — ci(hub): one approval per component release, not two
(#3018)
- `a0ecb0f68` — ci(eval): pin the agent eval to Strix Halo, and record
which box measured (#3017)
- `672cd1c5f` — fix(init): fail loudly when the Agent UI build can't
produce a usable frontend (#2887)
- `29a87fd87` — ci(eval): capture llama-server's error so the embedder
failure is diagnosable (#3015)
- `c8987ca67` — fix(email): declare the sidecar bearer gate in the
OpenAPI contract (#3002)
- `62e5611d9` — fix(email): "0 messages" for mail that exists —
unsupported newer_than: duration unit (#2981)
- `746468274` — fix(cli): exit non-zero from gaia agent status \<id>,
add --json (#3001)
- `9c89cb472` — ci(hub): deploy the Agent Hub Worker before publishing
to it (#2991)
- `47e6bc908` — fix(gaia): keep a loaded skill alive across turns; stop
a control resize from wrecking the screen (#2932)
- `9ed3c3523` — test(telegram): isolate HOME so the pid test can't
clobber a live adapter (#2895)
- `225c69377` — test(init): stop init tests overwriting the real
~/.gaia/config.json (#2891)
- `8ed5b783d` — fix(release): emit release notes as short bullets, not
prose (#2967)
- `1beb714f3` — release(agent-email): 0.6.0 (#2933)
</details>

Full Changelog:
[v0.23.0...v0.24.0](v0.23.0...v0.24.0)

## Release checklist
- [x] `util/validate_release_notes.py` passes
- [x] `docs && npx mintlify validate` — could not run `mintlify
validate` locally (npm TLS cert error in this environment), but
`util/check_doc_links.py` passes internal + external link checks now
that #3782 is merged
- [x] `src/gaia/version.py` → `0.24.0`; `LEMONADE_VERSION` unchanged at
`11.8.1`
- [x] webui `package.json` / `package-lock.json` → `0.24.0`
- [x] Navbar label → `v0.24.0 · Lemonade 11.8.1`
- [x] Hub component manifests (`terminal-hub`, `agent-ui`) → `0.24.0`;
`check_component_core_api.py --release-version 0.24.0` passes
- [x] `hub/agents/gaia/python/{gaia-agent.yaml,pyproject.toml}`
min-version floor bumped 0.23.1 → 0.24.0 (0.23.1 was never tagged)
- [x] `docs/releases/index.mdx` corrected: 3 files → 5 (was missing the
hub-manifest and webui-package files)
- [x] Rebased onto current `main`; changelog regenerated from the real
range — 230 commits, no phantom SHAs, no missing merges
- [x] Every PR citation and contributor handle verified against `gh pr
view` (33 PRs + 8 contributor logins)
- [x] Full commit range swept for security/breaking markers not caught
by title alone
- [ ] Review from @kovtcharov-amd addressed

---------

Co-authored-by: Ovtcharov <[email protected]>
Sanjay-jat pushed a commit to Sanjay-jat/gaia that referenced this pull request Sep 16, 2026
…m unit-test matrix (amd#3913)

This release merged before three follow-ups landed. Bundling them per
request so they ship together ahead of tagging.

## What's here

1. **v0.24.0 release-notes fix** — the meeting-transcription pipeline
(amd#3597) was buried inside a combined capability bullet. It now gets its
own What's New entry with the measured accuracy numbers (94.1%
word-level match vs a WhisperX+pyannote reference, all 4 speakers
correctly identified, fully local with no PyTorch or gated downloads).
General pass to tighten the rest of the notes for signal.

2. **Flagship agent package bump to 0.2.0** — `agent-pkg-gaia-v0.1.1`
(published 2026-08-21) predates 29 commits of agent-code changes merged
since v0.23.0: meeting transcription, read-only email triage, image
generation, and the always-loaded edit tools fix. None of that reaches
users installing via `gaia hub install gaia --trust` until a new agent
package is published. This PR bumps the stamped version
(`gaia_agent/__init__.py` is the source of truth; `stamp_version.py`
synced `gaia-agent.yaml`, `pyproject.toml`, npm `package.json`, and
`binaries.lock.json`'s agent-side fields).

**Sequencing note:** `binaries.lock.json`'s `tui` lane is pinned to
`terminal-hub` `0.24.0` — that component doesn't exist yet until
v0.24.0's tag publishes it. **Don't push the `agent-pkg-gaia-v0.2.0` tag
until `v0.24.0` has published `terminal-hub` at that version**, or
`release_agent_gaia.yml`'s tui-verification stage will fail loudly (by
design — it downloads and hash-checks the pinned terminal-hub artifacts
before publishing).

3. **Trim `test_unit.yml`'s matrix to floor+ceiling** (3.10, 3.12) —
drops 3.11, matching the pattern `test_email_agent_unit.yml` and
`test_distributed_seams.yml` already use. 3.11 sits between two versions
already tested and has never caught an incompatibility neither boundary
did.

## Test plan

- [x] `python util/validate_release_notes.py docs/releases/v0.24.0.mdx
--tag v0.24.0` passes
- [x] `python hub/agents/gaia/python/packaging/stamp_version.py --check`
— all targets agree at 0.2.0
- [x] `binaries.lock.json`'s `tui` lane confirmed untouched by the stamp
script (it only manages the agent's own version, not the terminal-hub
pin — verified by inspection of `stamp_version.py`)
- [ ] CI green on this PR

Co-authored-by: Ovtcharov <[email protected]>
@joanna-chantel

Copy link
Copy Markdown

This immediately made me smile. Earlier this month I published a hands-on review of local AI workflows on an AMD Ryzen AI Max PRO 390 system, where I ended up building a very similar pipeline from separate tools: local meeting transcription, structured decisions and action items, saved outputs, and keeping the original phrasing so you could check what was actually said.

What I found was that transcription on its own wasn't especially useful. The useful part was carrying it through into decisions and actions while still being able to trace those back to the original wording and context.

The speaker diarisation, saved transcript and verbatim-quote follow-up here address a lot of that very neatly. I'm really interested to run GAIA on the same HP ZBook and see how the integrated version compares.

Great work on bringing this together as a feature.

https://www.digitalreviews.net/reviews/networking-and-smart-home/hp-zbook-ultra-g1a-14-review-local-ai/

kovtcharov added a commit to kovtcharov/gaia that referenced this pull request Sep 24, 2026
Failed transcription now cleans up its temporary audio without deleting
the source, and speaker refinement reports model failures instead of
returning incomplete work as success. This follows the already merged
amd#3597 and also corrects the Lemonade startup guidance.

Compared with the open provider work in amd#3672: its audio edits change
endpoint/auth resolution, while this patch changes cleanup and failure
reporting.

## Test plan

- [x] `pytest tests/unit/test_audio_tools.py
tests/unit/test_lemonade_asr.py -q`: 115 passed on current main; one
existing live Lemonade test skipped because no server was available.
- [x] Black and isort checks on the four affected Python files; staged
diff check.
- [x] Independent review of the maintenance patch before publication.
- [ ] Fresh CI, live transcription/refinement and human review.

---------

Co-authored-by: Kalin Ovtcharov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents audio Audio (ASR/TTS) changes cli CLI changes dependencies Dependency updates devops DevOps/infrastructure changes documentation Documentation changes installer Installer changes llm LLM backend changes performance Performance-critical changes sidecar Agent sidecar contract / harness tests Test changes tui Go terminal UI (gaia-tui)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants