Skip to content

fix(gaia): keep a loaded skill alive across turns; stop a control resize from wrecking the screen - #2932

Merged
kovtcharov-amd merged 44 commits into
mainfrom
feat/gaia-flagship-agent-2804
Aug 18, 2026
Merged

kovtcharov-amd merged 44 commits into
mainfrom
feat/gaia-flagship-agent-2804

Conversation

@kovtcharov-amd

@kovtcharov-amd kovtcharov-amd commented Aug 12, 2026 •

Copy link
Copy Markdown
Collaborator

Why this matters

GAIA had no single agent you could just start and talk to — capability was spread across a dozen task-specific agents, and the general one in flight couldn't hold a conversation: activating a skill reported success and then vanished on the next turn, so a triage or research skill silently stopped applying while the chat carried on as if it were active. Turn 1 said "It's loaded up — you can start triaging whenever you want!"; turn 2 said "No skills are actively loaded right now." This ships that agent as gaia v0.1.0 — a hub package (Python + npm) that runs over stdio with no daemon in the path, keeps a skill loaded for the life of a session, and drives from the Go TUI with live narration, streaming and markdown instead of a bare spinner. Ten starter skills ship with it.

Threads

Each is independently reviewable:

  • Flagship agent package (hub/agents/gaia/) — Python and npm distributions with README/SPEC/SKILL/CHANGELOG, plus ten starter skills moved into the hub/skills/ lane.
  • Session retention — /query now resolves the agent by session_id, so a loaded skill outlives the turn. The sidecar had advertised schema 2.12 — the version that exists for exactly this — while still building a throwaway agent per call, shipping 2.11 semantics behind a 2.12 badge. Overlapping turns on one session get a 409 instead of racing.
  • stdio transport — the TUI spawns the agent over stdin/stdout JSONL, so a single user needs no daemon running.
  • Shell-grant consent model — a skill declares shell:execute:<binary> and that scoped grant is the consent, so the agent stops re-asking on every call. Along the way: three bypasses closed in the gh read-only gate, a bare pipe rejected instead of handed to the shell, a blocked command refused before the user is asked to approve it, and "always allow" scoped to the call rather than the whole tool.
  • TUI readability — yes/no/always permission prompts and a visible bypass mode; plain-language narration and one-line tool previews replacing the bare spinner; --dev as one switch across the TUI and the agent it spawns; status bar, help overlay and code blocks that fit the terminal; ctrl+y / ctrl+b to copy the answer or its last code block.
  • Streaming — the answer streams while tools are still on the table, and reasoning is released a line at a time rather than a token at a time.
  • Control-API resize guard — POST /control/v1/resize injects a synthetic window size but cannot make the terminal bigger. Asking for 200x55 on a 120x42 terminal emitted 200-column lines the terminal hard-wrapped, leaving a blank frame with the status line duplicated and the scrollback gone — while /screen kept returning a clean logical frame, so the corruption was invisible to the very API you'd test with. It now refuses.
  • pr-rereview workflow — resolved a stale conflict in .github/workflows/claude.yml so the lightweight re-review keeps Sonnet + 80 turns, matching its surrounding comments, and escalates to a full first review when the fork-approval gate meant no review ever ran. The full pr-review is untouched and still opus-5. Worth a second pair of eyes.

Test plan

  • pytest hub/agents/gaia/python/tests/ — 172 passed, including test_session_registry.py (retention, isolation, LRU cap, refusal when nothing is idle, reap skipping a mid-turn session, concurrent creates)
  • pytest tests/unit
  • cd tui && go build ./... && go vet ./... && go test ./...
  • Two /query calls sharing one session_id: load a skill in the first, skill_status in the second — the skill is still loaded. Fails before this change.
  • Two overlapping turns on one session_id — the second gets a 409 naming the conflict (verified live, not just mocked)
  • With a real terminal attached, POST /control/v1/resize larger than the window returns 409 resize_exceeds_terminal; shrinking still succeeds; headless runs are unaffected

Known gaps

  • Skill Audit is red by design, not by defect. hub/skills/coding and the bundled gaia-voice declare security_tier: verified, which the automated gate cannot grant on its own — both cleared the scan with zero security findings. They need downgrading to community or a maintainer sign-off before this merges.
  • mcp-github is not configured on the test machine and GITHUB_TOKEN is unset, so github-triage was exercised against real amd/gaia issue text pasted in via the gh CLI. The connector path is unverified.
  • Reasoning-only stretches between tool calls still show a bare spinner.

@github-actions github-actions Bot added documentation Documentation changes dependencies Dependency updates devops DevOps/infrastructure changes cli CLI changes tests Test changes agents tui Go terminal UI (gaia-tui) daemon Daemon supervisor / sidecar control plane sidecar Agent sidecar contract / harness chat Chat SDK changes llm LLM backend changes performance Performance-critical changes labels Aug 12, 2026
kovtcharov pushed a commit to kovtcharov/gaia that referenced this pull request Aug 13, 2026
Two fixtures assumed a Unix filesystem: TestASubprocessAgentIsNotGated used
/bin/echo as the agent binary and TestHubCatalogLoadSurvivesTheChatView
looked for the built mock without its .exe suffix, so both launches never
left the hub on Windows. The third, the smoke test for a direct chat
launch, still asserted the pre-amd#2932 contract that an idle Esc quits; it
now pins the current one — Esc neither quits nor dispatches ReturnToHubMsg,
and Ctrl+C remains the way out.
kovtcharov pushed a commit to kovtcharov/gaia that referenced this pull request Aug 14, 2026
Two fixtures assumed a Unix filesystem: TestASubprocessAgentIsNotGated used
/bin/echo as the agent binary and TestHubCatalogLoadSurvivesTheChatView
looked for the built mock without its .exe suffix, so both launches never
left the hub on Windows. The third, the smoke test for a direct chat
launch, still asserted the pre-amd#2932 contract that an idle Esc quits; it
now pins the current one — Esc neither quits nor dispatches ReturnToHubMsg,
and Ctrl+C remains the way out.
kovtcharov pushed a commit to kovtcharov/gaia that referenced this pull request Aug 14, 2026
- bidichk flagged the literal Trojan-Source characters devlog_test.go
  uses as test data (proving clean() scrubs them) as if they were a
  smuggling attempt; nolint the two lines with a reason.
- CodeQL flagged `"cli.github.com" in message` as incomplete URL
  substring sanitization; the assertion now checks the real install
  hint verbatim instead of a bare domain literal.
- docs.json referenced "plans/email-inbox-cleanup", a page that was
  never created — a stray line pulled in by an unrelated commit.
- Mintlify's MDX parser reads a bare `<52` as an unterminated JSX tag;
  escape the three `<NN` comparisons in the TUI status-line survey.
kovtcharov pushed a commit to kovtcharov/gaia that referenced this pull request Aug 17, 2026
lint.yml only fires on PRs whose base is main, so black violations
accumulated invisibly on this feature branch — PR amd#2964 stayed green while
the identical tree would fail PR amd#2932's lint the moment it advanced. Black
26.5.1 (what CI resolves) reformatted; no semantic change.

util/lint.py --fix also crashed on Windows before reporting: bare text=True
decodes subprocess output with cp1252, and black's summary emoji killed the
reader thread, handing back None. It now decodes UTF-8 with replacement.
@github-actions github-actions Bot added mcp MCP integration changes eval Evaluation framework changes website GAIA website (amd-gaia.ai) agent::code Code agent changes labels Aug 17, 2026
kovtcharov-amd and others added 9 commits August 17, 2026 16:56
Checkpoint of the verified release pipeline before rebasing onto main.
… the turn

The sidecar advertised schema 2.12 — the contract version whose entire purpose
is letting /query resolve a conversation's agent by session_id — while still
building a throwaway agent on every call. Anything a turn put on the instance
died with it, most visibly Agent.loaded_skills: load_skill would succeed, the
model would tell the user the skill was ready, and the next turn would report
no skills loaded. Driving the live TUI, turn 1 said "It's loaded up" and turn 2
said "No skills are actively loaded right now."

A session_id now resolves a retained agent through a bounded registry mirroring
the email agent's (idle TTL, LRU cap, and the claim-the-lock eviction that
closes the TOCTOU window). Turns on one session serialise behind a run lock and
an overlapping turn gets a 409 naming the conflict rather than corrupting the
cached agent's state. A request with no session_id still gets a throwaway —
that is an honest one-shot, not a silent downgrade.
POST /control/v1/resize injects a synthetic WindowSizeMsg, which tells the model
a size but cannot make the terminal bigger. Asking for 200x55 on a 120x42
terminal made the model emit 200-column lines that the terminal hard-wrapped,
shredding the visible frame — blank screen, status line duplicated top and
bottom, scrollback gone.

The damage was invisible to the API you would test with: /screen captures the
logical frame, so it kept returning a clean 200-column render while the real
terminal was unreadable, and /status reported a settled frame. A test trusting
/screen would pass a visibly broken UI.

An enlarging resize now gets a 409 naming both sizes. Shrinking still works, and
headless runs are unaffected — with no tty there is no viewport to overflow, so
the guard only engages when stdout is a terminal.
… npm packaging

Checkpoint so nothing is lost while several workstreams are still running in
parallel. Not ready for review; the PR is a draft for exactly that reason.

In here:
- starter skills relocated from skills/starter/ to the hub/skills/ lane
- runtime skill-library tools (list/search/install/load/unload/status)
- user-facing progress narration: gaia.ui.event_narration derives a plain
  sentence for tool_call and a one-line preview for tool_result, rendered by
  the TUI's new chat/narrate.go
- gaia npm package: dual-binary launcher, binaries lock, docs
- resolves a stash conflict left in .github/workflows/claude.yml: the
  lightweight pr-rereview path keeps its Sonnet + 80-turn settings, matching
  the surrounding comments. The full pr-review is untouched and still opus-5.
…ing out the TTL

A sidecar killed mid-turn never releases its lease, so the slot stayed occupied
until the 900s TTL reclaimed it — while callers give up at 300s. One killed
sidecar therefore served roughly ten minutes of failures, and the error blamed
Lemonade ('check the Lemonade server log') when Lemonade was healthy with the
model already loaded. Two five-minute hangs today came from exactly this.

The daemon already detects when a sidecar's process is gone, so it now frees
that holder's lease there. Targeted and idempotent: it only drops the lease if
that holder owns it, so a live holder still blocks everyone else and the
serialization the slot exists to provide is unchanged.

Shortening the TTL instead would have been one line and wrong — a lease is held
across the whole generation, so a legitimately long turn would lose the slot
mid-load.
A 110-second turn used to show "Working 0:29 / connecting..." and nothing
else, so the only signal the agent was alive was a spinner. It now narrates
each step in plain language with the outcome underneath, the transcript
scrolls, and answers are styled instead of arriving as flat grey.

The events were always on the wire — one turn carries seven `status`, two
`tool_call` and two `tool_result` frames. The client just wasn't drawing them.

- Work log: a `tool_call` becomes an imperative phrase plus the one argument
  that matters ("Loading the github-triage skill"); a shell tool shows the
  command itself. A `tool_result` hangs one `└` line under it with the
  outcome, size and latency. The sidecar's own `narration` / `preview` win
  when present.
- Harness internals ("Step 1/50", "Processing with <model>...", a bare
  "Thinking") are demoted to --debug rather than deleted, and a stage the
  sidecar re-sends every loop step is said once, not three times.
- The clock and spinner ride the line describing what is being timed, so a
  timer never stands alone. The "usually 60-90s" hint lasts until something
  actually completes.
- Scrolling: arrows, PgUp/PgDn, Home/End and the mouse wheel. In an alt-screen
  app the terminal has no scrollback of its own, so before this every earlier
  turn was unreachable. Scrolling away stops streamed tokens dragging the view
  back; a new question re-arms it.
- Readability: the green box round every answer is gone, the user's own turn
  is dimmed so the answer is the brightest thing on screen, turns get air
  between them, and prose is capped to a readable measure.
- Markdown: a GAIA glamour theme — coloured headings, list markers, table
  rules, inline-code tint, block quotes — replacing the stock dark style's
  flat grey. Chroma's syntax highlighting inside fenced code is untouched.
  An explicit GLAMOUR_STYLE is still honoured verbatim.
- "GAIA │ GAIA" over "Welcome to GAIA / Connected to: GAIA" is now just
  "GAIA".

Review fixes folded in: a `preview` no longer short-circuits the failure
classifier (a failed call could render red-only, with no word saying it
failed); the repeat counter is reserved before truncation instead of being cut
back off; agent-supplied text gets the same ANSI/control scrub the card path
applies; widths are measured in display columns, not runes; the log's height is
budgeted against the real pane; and cancelling no longer announces "Getting
started".
First step of collapsing to TUI <-> agent <-> Lemonade. The TUI already has a
subprocess transport that spawns a binary once and keeps it, trading
newline-delimited JSON over a pipe; the flagship agent had no way to speak it,
so it could only be reached through the daemon's HTTP sidecar.

Because the process is long-lived, two things fall out for free that the HTTP
path needed machinery to fake:

- the agent is constructed once, so a turn costs ~2.5s instead of ~44.6s
- anything it learns persists, so a skill loaded in one turn is still loaded in
  the next — no session registry, no session_id, no contract version

Deliberately emits the CANONICAL event vocabulary rather than the older
subprocess one, so the tool narration and result previews survive the move.

stdout is the wire and carries JSON events only. Logging handlers built at
import already hold the real stdout, so they are repointed and sys.stdout is
rebound — one unstructured line would desynchronise the reader's line scanner
for the life of the process.
The agent's logs were going to stdout, which under the stdio transport IS the
event wire: 14 log lines per start landed in the JSON stream, and one
unstructured line desynchronises the reader's scanner for the life of the
process.

Logs now go to ~/.gaia/logs/gaia-agent.log. User mode records errors only, so a
healthy run leaves a boring file and the TUI stays high-signal. --dev turns on
DEBUG for the whole tree, which is where the questions a developer actually
asks — which tool ran, how long it took, why that step — are answered.

Handlers built at import already held the real stdout, so they are removed
rather than repointed, and sys.stdout is rebound so a stray print in code we do
not control cannot reach the wire either. Verified: user mode emits 3 JSON lines
and 0 log lines; --dev writes 54 DEBUG records to the file.
…e path

The TUI now spawns the agent as a child process and speaks canonical JSON lines
over the pipe: TUI -> agent -> Lemonade, with no daemon, HTTP port, bearer
token, discovery file, contract negotiation or model-slot lease between them.
Verified with the daemon fully stopped — the answer comes back and the tool
narration still renders.

The subprocess client gains a canonical dialect. Same transport, different
vocabulary: only canonical events have somewhere to put tool narration and
result previews, so parsing this agent as legacy would drop its progress
reporting on the floor.

The console script is 'gaia-agent' rather than the stuttering
'gaia-agent-gaia-stdio' the package name would have implied.

Known gap, fixed next: the subprocess reader's end-of-turn check is still
legacy-only, so it waits for an 'answer' event that a canonical agent never
sends. Interactive turns are fine — they do not need the child to exit — but a
one-shot 'run --query' reads until its timeout and reaps the child at 300s
instead of returning as soon as 'final' arrives.
The embedder preflight has been red on sjlab-stx-halo-18 since it landed,
blocking every PR with a failure that says nothing about the PR.

The cause is a gap between two existing pieces. install-lemonade already
knows a stale cached llama.cpp backend cannot spawn and reports exactly
"llama-server failed to start" — and it wipes that cache to fix it. But the
wipe only runs when the action reconciles, and a runner whose version already
matches never reconciles. The failing run says so in one line: "Runner
version matches expected. No reconcile needed." A box with a correct version
and a corrupt backend is therefore stuck permanently; weights still download
fine, which is why the log shows registration succeeding and only the launch
failing.

The preflight now performs that same wipe when the probe fails, restarts
Lemonade, and re-probes once. The gate itself is unchanged: the probe must
still return a real embedding vector, and a retry that fails still exits 1 —
now saying the cache has been ruled out and pointing at the Application
Control policy from #2826 as the next suspect.

Refs #2920
Any web page the user visited could drive the flagship agent. The sidecar
served POST /v1/gaia/query with no authentication of any kind, and it is the
agent with shell and file tools plus a bypass-permissions mode. Loopback is not
access control here: DNS rebinding (a page resolving evil.com to 127.0.0.1) and
a plain drive-by fetch both reach it from the browser, needing no local
foothold at all. `npx @amd-gaia/gaia serve` is a documented command, so this is
not daemon-only.

The daemon already mints a per-session token for this agent and passes it as
GAIA_GAIA_SIDECAR_TOKEN(_FILE) — spec.py even claims "first release already
reads the token file". The sidecar simply never read it. This finishes that
contract rather than inventing a new one.

The mechanism email proved is now shared, in gaia.sidecar.caller_auth, so the
two sidecars cannot drift: bearer token, loopback Host allowlist, and
non-loopback Origin rejection. Each sidecar binds only its env-var names and
exempt paths. With no token configured the token check goes off with a loud
warning, but Host/Origin stay on — a hand-run dev sidecar keeps the control
that stops a web page driving it.

Tests: 16 against the real app over real HTTP, not a mocked dependency —
verified they fail without the fix (8 of 16 fail when the middleware and route
dependency are removed). 31 more on the shared layer cover constant-time token
comparison, IPv6/port/case Host parsing, and the fail-loud contract on a
missing or empty secret file. A drift guard pins the daemon's literals against
the wheel's, since a mismatch would silently fall back to no auth.

Also drops the metadata block from the testing-the-gaia-agent skill and moves
its helper to util/tui_driver.py. Declaring filesystem:read satisfied the skill
audit but made the skill unloadable — refuse_unbridged_permissions rejects
local-capability domains — and simply removing the line put the audit back to
REVIEW, because the audit scans every .py in a skill dir by design. Moving the
helper out satisfies both gates.
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Aug 18, 2026
Merged via the queue into main with commit 47e6bc9 Aug 18, 2026
122 of 124 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the feat/gaia-flagship-agent-2804 branch August 18, 2026 06:41
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator Author

Fixed the 🔴 and both 🟡s that were code, and one of them was a bug I introduced while fixing CI. Two doc items are still open.

Caller auth is in. You were right that it needed a decision rather than a doc footnote — and the sharper argument turned out to be the browser, not another local process. A page the user visits can reach the port via DNS rebinding or a plain drive-by fetch, needing no local foothold, and this is the agent with shell and file tools. The daemon was already minting a per-session token for it and passing it; the sidecar just never read it, so this finishes that contract rather than inventing one.

The testing-the-gaia-agent skill is fixed, though not with the suggested edit — that one swaps a broken skill for a red gate. Details below.

Finding Status
🔴 No caller authentication Fixed — token + Host + Origin, shared with email
🟡 Skill declares a refused permission Fixed
🟡 Re-review posts twice Fixed earlier in 04192f60
🟡 Security spec says shell:execute is refused Open
🟡 gaia eval code undocumented Open
🟢 Bare except Exception: pass Fixed earlier in 696e3e1f
🔍 Technical details

Caller auth (043d5e33). The mechanism email proved is now shared at gaia.sidecar.caller_auth so the two sidecars cannot drift; each binds only its env-var names and exempt paths. gaia_agent.caller_auth supplies GAIA_GAIA_SIDECAR_TOKEN(_FILE) — the literals spec.py already declares, whose comment claimed "first release already reads the token file". It does now.

With no token configured the token check goes off with a loud startup warning, but Host/Origin stay on, so a hand-run dev sidecar keeps the control that stops a web page driving it.

Tests: 16 through the real build_app() over real HTTP, not a mocked dependency. I verified they are not vacuous — removing the middleware and the route dependency fails 8 of the 16, covering missing/wrong/malformed token, ungated cancel/respond, rebound Host, cross-origin, and the dev-mode case. 31 more on the shared layer cover constant-time comparison, IPv6/port/case Host parsing, and the fail-loud contract on a missing or empty secret file. A drift guard pins the daemon's literals against the wheel's, since a mismatch would silently fall back to no auth. gaia.sidecar is added to setup.py or it would not ship in the wheel.

The skill. The suggested one-line deletion trades one failure for another: drop filesystem:read and the Skill Audit goes back to REVIEW, because driver.py calls open() and the audit scans every *.py in a skill dir by design ("so a skill cannot escape the scan by hiding the payload in helper.py"). Declaring it satisfies the audit and makes the skill unloadable, exactly as you found. Both verified empirically.

The conflict is driver.py living in a directory that also has a SKILL.md. gaia-presentation-assets/ ships Python and is fine precisely because it has no SKILL.md. So the helper moved to util/tui_driver.py and the metadata block is gone: audit ALLOW with zero findings, and refuse_unbridged_permissions passes.

Still open. The stale shell:execute text in docs/spec/agent-skills.mdx and docs/reference/cli.mdx is the one I would not merge without — it is a security claim that is now false. gaia eval code docs are lower stakes.

Evidence gap — fair hit, and still true for the npm CLI and gaia eval code. The auth change is the one surface now covered by executable evidence rather than static review.

@github-actions

Copy link
Copy Markdown
Contributor

🟡 The new caller-auth requirement contradicts the docs shipping alongside it. The flagship sidecar now 401s any /v1/gaia/* request without a per-session bearer token, but the npm package's spec, its AI-assistant playbook, and its changelog all still tell integrators there is no token at 0.1.0 and to not send an Authorization header. All four publish in the same release, so the package would ship instructions that guarantee a 401 against the daemon-spawned sidecar — and no documented way to obtain the token.

Two things to fix before merge: update those three docs to describe the token, and decide what gaia serve should do — it spawns the sidecar with no token, so the one command that opens the port for integrators still boots with authentication disabled (only the Host/Origin checks apply).

🔍 Technical details

Code now requiring the bearer:

  • hub/agents/gaia/python/gaia_agent/server.py:357 — router = APIRouter(..., dependencies=[Depends(require_caller_token)]), mounted at /v1/gaia. Only /health, /version, /v1/gaia/version are exempt.
  • src/gaia/daemon/sidecars/spec.py:342-359 — the gaia spec declares secret_file_min_version="0.1.0", so the daemon always delivers a token via the 0600 file leg. Every daemon-spawned sidecar is therefore token-gated from the first release.

Docs still saying the opposite:

  • hub/agents/gaia/npm/SPEC.md:269-275 — "### 5.4 No caller-auth token … gaia_agent has no equivalent at 0.1.0, so this package mints and sends nothing."
  • hub/agents/gaia/npm/SKILL.md:417-420 — "There is no caller-auth token at 0.1.0 … don't add an Authorization header looking for one."
  • hub/agents/gaia/npm/CHANGELOG.md:90-91 — "gaia_agent 0.1.0 has no caller-auth token."

This is the CLAUDE.md §"A functional change must update EVERY doc that describes it" case (the #1841 pattern): README/SPEC/SKILL/CHANGELOG bundled in one release, corrected in one place only.

gaia serve:

  • hub/agents/gaia/npm/src/cli.ts:310-314 calls startSidecar({ binaryPath, port, autoCleanup: false }); spawnSidecar (src/lifecycle.ts:236-242) merges only opts.env over process.env, and none is passed. With neither GAIA_GAIA_SIDECAR_TOKEN_FILE nor GAIA_GAIA_SIDECAR_TOKEN set, config_from_env yields token=None and require_caller_token no-ops — the "caller authentication DISABLED" branch at server.py:707.
  • If that is intentional for a hand-run integrator port, say so in SPEC §5.4 rather than leaving it implicit; if not, mint a token in cmdServe, pass it through opts.env, and print it (or a token file path) so the caller can use it.

pull Bot pushed a commit to bhardwajRahul/gaia that referenced this pull request Aug 19, 2026
…gnosable (amd#3015)

Closes amd#2920

The Gemma-4-E4B agent eval gate has **never passed — 55 failures, 0
successes** — and nobody could say why, because every failure printed
`(none found)` where the reason should be. Its red X has been landing on
unrelated PRs for weeks, so people re-run it, and a real eval regression
would look identical to the noise.

This does not make the gate pass. It makes it **say what is wrong**. The
preflight now proves llama-server works on the box before blaming the
embedder, escalates through the recoveries that had never actually been
tried, and ends with a verdict naming what has been ruled out instead of
pointing at whichever PR triggered it.

**What that produced, on the real runner:** the embedder cannot be
served there under any condition — while the chat model loads and
completes over the *same* llama-server binary. So the fault is the
machine's llama.cpp backend, not this repo, and not the PR under test.
Two sibling jobs load the identical model via the identical helper on a
different runner and stay green.

Along the way it also established that **Lemonade's `delete` never
removes model files** — 318 MB of GGUF survived it — so the delete +
re-pull that every retry relied on could never re-fetch anything. Only
an OS-level delete frees the bytes.

<details>
<summary>🔍 The elimination ladder, and one thing that does not
work</summary>

```
[ci] chat OK (choices=1, content='OK')        <- chat model loads AND serves
rung 1  embedder + --ubatch-size 2048          -> fail
rung 2  llama.cpp backend cache wiped, restart -> fail
rung 3  318 MB purged from disk, restart       -> fail
rung 4  bare load, no llama.cpp args           -> fail
rung 5  ALL models unloaded, embedder ALONE    -> fail
```

| Candidate | Verdict |
|---|---|
| The PR under test | ruled out — fails on every branch, 0 passes in
gate history |
| Registration / embeddings label | ruled out — re-registered before
every attempt |
| Corrupt GGUF on disk | ruled out — 318 MB purged, re-pulled, same
failure |
| Stale llama.cpp backend cache | ruled out — wiped + restart (amd#2932) |
| `--ubatch-size 2048` | ruled out — bare load fails identically;
production RAG's flag is fine |
| llama-server blocked (amd#2826) | ruled out — chat model loads + serves
on the same binary |
| Co-residency with the chat model (amd#1544) | ruled out — fails with
everything unloaded |

**Be honest about the log capture: it does not work.** The Scheduled
Task now redirects the server's streams, but both come back 0 bytes
across four runs, after `PYTHONUNBUFFERED` and a `-ForceRestart`
re-register. Measured on PowerShell 5.1: the flag does fix stdout (0 ->
39 bytes), but stderr was never buffered, so an empty stderr means the
server writes nothing to handles a parent can inherit — llama-server's
text is not reachable this way. Kept because it costs nothing and a
future Lemonade may log there, but **the diagnosis came from the chat
probe, not from it.**

Getting llama-server's own error needs console access on the box:

```
python tests/ci_lemonade_check.py --model user.embeddinggemma-300m-GGUF \
  --checkpoint ggml-org/embeddinggemma-300M-GGUF:Q8_0 --recipe llamacpp \
  --register-embedding --embeddings --llamacpp-args "--ubatch-size 2048"
```

**Follow-ups, deliberately not in this PR:** this gate cannot pass on
its current runner, so it should either be scheduled on one that
demonstrably serves this embedder (the sibling jobs prove one exists) or
have the backend fixed — that decides which shared pool a 3.5 h job
occupies, so it is not mine to make. And the on-disk purge probably
belongs in `tests/ci_lemonade_check.py` alongside the other three
workflows rather than inline here.
</details>

## Test plan

- [x] Workflow YAML parses; all 12 steps intact
- [x] Every `run:` body parses under **Windows PowerShell 5.1** from a
**BOM-less file** via `ParseFile` — the way Actions invokes it. A
stdin-piped check is not equivalent: it decodes as UTF-8 and cannot
catch an encoding fault (one em dash killed run `32274575191` at parse
time before any line ran). All `run:` bodies are now asserted pure
ASCII, with the constraint documented at the `shell: powershell` pin.
- [x] Scheduled-task redirect proven end-to-end — argument built from
the real file text, launched as Task Scheduler does, captured
`llama-server failed to start` into the stderr log (with a space in the
exe path)
- [x] `PYTHONUNBUFFERED` A/B measured on a long-running Python child:
stdout 0 -> 39 bytes; stderr 38 either way
- [x] Purge function against a faked HF layout with a decoy — removed
the embedder only, left the chat model untouched
- [x] Chat probe exercised across all three branches: pass,
load-failure, and the exit-0-without-an-OK-line trap
- [x] Full ladder executed on the real runner (run `32277801464`),
reaching a named verdict
kovtcharov pushed a commit to kovtcharov/gaia that referenced this pull request Aug 24, 2026
The flagship GAIA agent could not be installed by anyone who followed the
website. It has been published on the Agent Hub since 0.1.1 and the site tells
you to download the terminal hub and run it, but v0.23.0's daemon decides what
is installable from builtin_specs(), and that release's copy listed only
"email". `gaia install gaia` answered HTTP 404 and `gaia list` hid the agent
outright. The sidecar spec landed in amd#2932, right after v0.23.0 shipped, so it
has never been in a release.

Verified end to end against the published artifacts: with a core carrying the
spec, the downloaded terminal hub lists gaia 0.1.1, installs it, and starts its
sidecar (/health ok, apiVersion 2.12).

Also bumps RELEASED_DAEMON_API for 0.23.0 and LATEST_CORE_RELEASE. Without it
release_components.yml fails this tag at the component guard, which runs
--verify-released: PyPI has 0.23.0 while the table still said 0.22.0 was the
latest. Confirmed by running CI's exact invocation both ways.

The terminal-hub minimum test moves off LATEST_CORE_RELEASE and onto the
released table. It asserted the minimum must name a future release, which was
only true while no shipped core served host API v1.1; 0.23.0 does. The rule it
actually guards -- never name a release whose daemon cannot serve the hub --
is unchanged and still rejects 0.22.0 and 0.21.2.
AmirF194 pushed a commit to AmirF194/gaia that referenced this pull request Aug 26, 2026
…3076)

An integrator following these docs would have shipped an unauthenticated
integration and mis-scoped what the agent can do. Three of the four docs
stated the sidecar has **no** caller-auth token; it has an enforced one
— a per-session bearer, a loopback `Host` allowlist, and `Origin`
rejection — so anyone building against them sent no `Authorization`
header, hit a 401 with no explanation, and treated loopback binding as a
security boundary on an agent that has shell and file tools. The token
landed in amd#2932; the email agent's docs were corrected in amd#3002 and the
flagship's never were.

The same file also said the bundled skill library is empty while
`gaia-voice` ships always-on and is paid on every LLM call, and
undercounted both the registry (55 → 67) and the confirmation-gated
tools (3 → 6).

🔒 For @kovtcharov-amd: §5.4 now documents, accurately, that a sidecar
this package spawns comes up in dev mode because `spawnSidecar` mints no
token. That is existing shipped behaviour, not a change here — but it is
worth a decision on whether `gaia serve` should mint one by default.
Happy to follow up either way.

## Test plan

- [ ] `grep -rn "no caller-auth\|mints none\|library is empty\|55 tools"
hub/agents/gaia/npm/` returns nothing
- [ ] Tool counts match the registry: build the agent and intersect it
with the confirmation set — 67 registered, and exactly six gated
(`edit_file`, `execute_python_file`, `install_skill`, `remove_skill`,
`run_shell_command`, `write_file`).
`hub/agents/gaia/python/tests/test_gaia_agent.py` already guards the 67.
- [ ] `gaia-voice` body measures 676 cl100k tokens, matching
`gaia-agent.yaml` (the CHANGELOG's 692 is a past release's record and is
deliberately left alone)
- [ ] Relative links and anchors in the four files resolve

---------

Co-authored-by: Ovtcharov <[email protected]>
AmirF194 pushed a commit to AmirF194/gaia that referenced this pull request Aug 26, 2026
On a wide terminal the work log stopped drawing at the same column an
80-column terminal did, so every extra column of window was wasted on
the one thing a user stares at for a 25-160s turn. A 240-column window
now draws a 238-column tool line instead of 78. Prose is deliberately
excluded: an answer still lays out at 88 columns, because for a
paragraph the extra width just loses the eye on the carriage return,
while for a single row it is simply more of that row — and for the rows
whose tail carries the reason or the remedy, the tail is the point.

Stacked on amd#3005 and amd#3004, in that order. Until both merge, the diff
here shows their commits too; mine are the two on top.

<details>
<summary>🔍 Technical details</summary>

**Functions changed**

- `logWidth()` — dropped the `narrationWidth` (74) ceiling, so the
measure is `m.width - 6`, clamped to `m.width - logGutter` so the floor
of 16 cannot overrun a cramped window.
- `narrate.go` constants — `narrationWidth = 74` became
`widestLogMeasure`, derived from the widest window the TUI accepts
anywhere (`control/server.go`'s `"cols must be 20-500"`). amd#3004 already
derives `narrationMax`/`detailMax` from the row measure; that reasoning
is kept, but the basis has to be the widest window the text might
*later* be rendered into, since capture happens before any width is
known and the user can widen mid-turn.
- `devPayloadWidth` — same basis, for the same reason.
- `wrapLog()` — its floor raised any measure under 8 back to 8,
overriding the caller's budget, so a 20-column terminal drew a 21-column
row. A measure is what the caller can afford; floored at 1 now, never
raised.
- `renderLiveRegion()` — two rows went through no measure at all: the
"still working" hint (a fixed 50 columns) and the idle live line. The
latter is the *opening frame of every turn*, and `"Thinking about the
next step"` drew 39 columns, shearing anything narrower.
- `resize()` — releases amd#3004's peak-height hold on a **width** change.
A resize reflows the log, which it could not before this branch; holding
a peak measured at another width stranded blank rows for the rest of the
turn. Guarded on width so the composer growing a row does not release
it.
- `handleCanonicalEvent` — `setLiveStatus` was the one agent-supplied
string with no capture bound at all.

`answerWidth()`, `wrapForPane()`, `wrapProse()`, `cardWidth()` and
`answerMeasure` are unchanged. `answerMeasure` and `logWidth` now
cross-reference each other so the split reads as chosen rather than
overlooked.

**Assumptions about the other two branches**

- amd#3004 owns the wrapping. Its `wrapLog`, `logHeadRows`/`logDetailRows`,
`elapsedReserve` and `liveRegionView` are taken as-is. The two compose:
amd#3004 wraps a tail that does not fit, this makes it less likely to need
to. Rebased onto its current head (`54a80d3d`), including its own review
follow-up.
- amd#3005 touches disjoint parts of `model.go`.
- Verified rather than assumed: merging `amd#3005 → amd#3004 → this` onto
`9c89cb47` in a scratch worktree merges with no conflicts, builds, vets,
and passes.

**The root cause, for the record**

`logWidth` was the visible suspect but not the cause.
`toolNarration`/`toolResultDetail` cut text to 74/66 columns *when the
event arrived*, before any width was known, so widening the layout alone
would have shown nothing new. Capture bounds now exist only to stop a
runaway agent payload living in the model; layout decides what prints.
</details>

## Test plan

- [ ] `cd tui && go build ./... && go vet ./... && go test
./internal/...`
- [ ] `widthlayout_test.go` is table-driven over **24, 40, 60, 80, 120,
160 and 240** columns, plus a per-width sweep from the declared minimum
of 20 up. It asserts at every size that no rendered row exceeds the
terminal, that `logWidth` grows with the window, and that `answerWidth`
never exceeds 88.
- [ ] The cramped-terminal test **renders** every row type — idle, live,
wrapped, outcome, `--dev` payload, repeat counter — rather than checking
`logWidth`'s arithmetic. An earlier version did the arithmetic only, and
certified a property the rendered rows did not have.
- [ ] Every fix was confirmed by reverting it and watching the suite
fail: reverting the `wrapLog` floor gives `21 columns wide on a
20-column terminal`; reverting the idle-line measure gives `39 columns
wide on a 20-column terminal`.
- [ ] amd#3004's `worklogwrap_test.go` passes unchanged against the dynamic
measure — the check that the wrapping and the width work compose rather
than fight.
- [ ] `internal/control` passes, so the `resize_exceeds_terminal` guard
from amd#2932 is intact; that file is untouched.
- [ ] Eyeball on a wide window: run a turn with a long shell command and
confirm the log line runs to the window edge while the answer below it
stays at 88.

Not run: `tui/test` (daemon integration). It needs a live GAIA daemon
and the machine was running demos.

---------

Co-authored-by: Ovtcharov <[email protected]>
kovtcharov-amd pushed a commit to kovtcharov/gaia that referenced this pull request Aug 28, 2026
gaia-agent.yaml declared min_gaia_version 0.23.0, but 0.23.0 is precisely the
release whose daemon cannot run this agent: builtin_specs() there lists only
"email", so the terminal hub hides the agent and `gaia install gaia` answers
HTTP 404. The floor promised a version that fails.

0.23.1 is the first core carrying the sidecar spec (amd#2932), so that is the
floor. Only the host floor moves; the `dependencies:` entry stays at
amd-gaia>=0.23.0 because that one is the import floor and is unaffected.
kovtcharov-amd added a commit to kovtcharov/gaia that referenced this pull request Sep 2, 2026
The flagship GAIA agent cannot be installed by anyone who follows the
website. It has been published on the Agent Hub since 0.1.1, and the
site tells you to download the terminal hub and run it — but v0.23.0's
background service decides what is installable from `builtin_specs()`,
and that release's copy lists only `email`. So `gaia install gaia`
answers HTTP 404 and `gaia list` hides the agent outright. The code that
fixes this landed in amd#2932, right after v0.23.0 shipped, and has never
been in a release. This cuts the patch that carries it.

Two changes ride along because the release fails without them:

- **The component guard would fail this tag.** `release_components.yml`
runs `check_component_core_api.py --verify-released`, which errors when
PyPI has a release newer than `LATEST_CORE_RELEASE` — it still said
0.22.0 while 0.23.0 was out. Adding 0.23.0's row (`"1.1"`, read from the
published wheel) and bumping the pointer is what its own maintenance
note asks for after a release.
- **One test encoded a premise that expired.** It asserted
terminal-hub's `min_gaia_version` must name a *future* release, which
held only while no shipped core served host API v1.1. 0.23.0 does. It
now asserts the rule it was really guarding — never name a release whose
daemon cannot serve the hub — and still rejects 0.22.0 and 0.21.2.

## Test plan

- [ ] `python util/check_component_core_api.py --verify-released
--release-version 0.23.1` exits 0 (on `main` it exits 1:
*"LATEST_CORE_RELEASE is stale"*)
- [ ] `pytest tests/unit/test_check_component_core_api.py` — 41 pass
- [ ] After publish, on a machine with the released core: download the
terminal hub from https://amd-gaia.ai, then `gaia install gaia` →
installs, and `gaia daemon start-agent gaia` → sidecar `/health` returns
ok

Verified end to end before cutting: with a core carrying the sidecar
spec, the downloaded terminal hub lists `gaia 0.1.1 available 116.4 MB
verified`, installs it, and starts the sidecar (`/health` ok,
`apiVersion 2.12`). The published win32 sidecar is the with-RAG build —
faiss, pypdf and the office readers are all in the binary.

---------

Co-authored-by: Ovtcharov <[email protected]>
Co-authored-by: kovtcharov-amd <[email protected]>
kovtcharov-amd pushed a commit to kovtcharov/gaia that referenced this pull request Sep 8, 2026
gaia-agent.yaml declared min_gaia_version 0.23.0, but 0.23.0 is precisely the
release whose daemon cannot run this agent: builtin_specs() there lists only
"email", so the terminal hub hides the agent and `gaia install gaia` answers
HTTP 404. The floor promised a version that fails.

0.23.1 is the first core carrying the sidecar spec (amd#2932), so that is the
floor. Only the host floor moves; the `dependencies:` entry stays at
amd-gaia>=0.23.0 because that one is the import floor and is unaffected.
@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]>
kovtcharov-amd pushed a commit to kovtcharov/gaia that referenced this pull request Oct 23, 2026
…md#5643)

When a document failed to index, the Agent UI showed only "Server error.
Please try again.", even when the backend said exactly why (in amd#2741, a
missing spreadsheet library). Users had nothing to act on. A 500 now
shows the backend's reason. The generic text stays only when the body
carries no real cause: an empty body, a bare "Internal server error", an
HTML page, or raw JSON.

Refs amd#2741. The root cause there (`openpyxl` missing) was already fixed
by amd#2932.

## Test plan
- [x] `npx vitest run src/services/__tests__/api.test.ts
src/services/__tests__/api.sendError.test.ts`: 21 pass, including
500-with-detail through fetch and upload, and the fallback cases
- [x] `npx tsc --noEmit` is clean
- [x] In the Agent UI, upload a corrupt `.xlsx`: the error names the
indexing failure instead of "Server error"
tylerbea pushed a commit to tylerbea/gaia that referenced this pull request Oct 26, 2026
…heets right (amd#5812)

Uploading a damaged `.xlsx`, a legacy `.xls` or password-protected
workbook, or one with no data used to fail with a 500 carrying
openpyxl's raw text ("File is not a zip file"). An empty workbook
"indexed" as nothing but sheet names. Each now shows a clear "can't be
read" message saying what to do, the same way damaged PDFs do.
Spreadsheets with a merged title row above the table, like a lab report,
lost their column names (LDL, HDL), so questions about a column found
nothing. Those now index with the right labels.

The crash in amd#2741 itself no longer reproduces on main: `openpyxl` was
added to the `ui` extra in amd#2932, and amd#5643 made the UI show the
backend's reason. On a cold `GAIA_HOME`, a simple sheet and a
multi-sheet workbook with formulas and merged cells both upload and
index. This PR fixes what was still wrong with Excel files after that.

Closes amd#2741

## Test plan
- [x] `pytest tests/unit/rag/test_xlsx_extraction.py`: real
LibreOffice-saved fixtures (formulas with cached values, merged title
row, merged note, empty sheet, real `.xls`), plus corrupt, empty,
`.xls`-named and missing-openpyxl cases, through both RAG and `POST
/api/documents/upload`
- [x] `pytest tests/unit/rag
tests/unit/chat/ui/test_library_index_errors.py
tests/unit/chat/ui/test_server.py`: 535 passed
- [x] `npx vitest run
src/components/__tests__/UnsupportedFeature.test.tsx
src/components/__tests__/DocumentLibrary.test.tsx` and `npx tsc
--noEmit`
- [x] `python util/lint.py --all` passes
- [x] Real server on an empty `GAIA_HOME` with live Lemonade embeddings:
valid workbooks return 200; a corrupt, a blank and a renamed `.xls`
workbook each return 422 with `corrupted` / `empty_file` /
`unsupported_workbook` and a remedy, on both `/upload` and
`/upload-path`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

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

Labels

agent::code Code agent changes agents chat Chat SDK changes cli CLI changes daemon Daemon supervisor / sidecar control plane dependencies Dependency updates devops DevOps/infrastructure changes documentation Documentation changes eval Evaluation framework changes llm LLM backend changes mcp MCP integration changes performance Performance-critical changes sidecar Agent sidecar contract / harness tests Test changes tui Go terminal UI (gaia-tui) website GAIA website (amd-gaia.ai)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants