Repository navigation
feat(email): recover the attention view and waiting-on-you detector onto main - #2604
Merged
Merged
Conversation
Encodes the acceptance criteria for the pre-scan needs_review bucket, budget-reclaim in merge_pre_scan_backends, and Gmail/Outlook coverage honesty (total_unread) ahead of the implementation.
An unconfident heuristic result (confident=False) is a placeholder guess, not a real classification -- pre_scan_inbox_impl was bucketing on category alone and never read it, so a direct question that fell through every heuristic rule to the terminal fallback was silently filed under informational (and an unconfident PROMOTIONAL guess landed in suggested archives, recommending an untrustworthy classification for archival). confident=False now always routes to a new needs_review bucket instead, regardless of the guessed category, after the existing spam/phishing safety override. Capped like the other three buckets (a real corpus is ~97% unconfident with no label signal) with the uncapped count still reported in totals, so this doesn't trade one bad UX for a worse one. merge_pre_scan_backends also stops losing a failed mailbox's scan budget: the per-backend split is now recomputed from what's actually left after each attempt, so a dead connection's share rolls forward to the surviving mailboxes instead of being lost to an even split computed before any backend was tried. total_unread/scanned/degraded fields report how much of the mailbox a scan actually covered -- Gmail's estimate is now scoped to unread mail (it previously described total inbox size), and Outlook's fabricated per-page count is replaced with an honest null rather than a lying number. The prompt and tool docstring now require the model to disclose scan coverage and never phrase a partial scan as if it covered the whole inbox.
Every model in contract.py sets extra="forbid", and the REST endpoint validates the tool's output dict against EmailPreScanResult -- adding needs_review/scanned/total_unread/degraded/mailbox_errors to the tool output without updating the contract would 500 every /v1/email/prescan call. Updates all the surfaces that share this field list: the Pydantic models (plus a new MailboxError type), the regenerated OpenAPI artifact, CONTRACT.md's prose, the hand-maintained Go TUI card struct (including its scanned() helper, which now counts needs_review toward coverage -- Go silently drops unknown JSON fields, so skipping this would make the TUI undercount and drop needs-review messages from the card entirely), and the npm TypeScript mirror. The REST prescan endpoint also stops stripping mailbox_errors from the response now that it's part of the contract. specification.html is regenerated from the introspecting spec_html.py generator (not hand-edited) to match.
The 7-message pre-scan fixture in test_pre_scan_counts.py carries two confident=False messages -- an IMPORTANT-labeled one and a bare no-match question structurally identical to the reported incident -- that both moved out of their old buckets (actionable and informational respectively) into needs_review. TestPreScanCounts.test_counts_match_fixture is updated to match; the three #1265 cheap-scan contract tests in the same file are untouched. test_briefing_job_produces_email_pre_scan_envelope's exact-set assertion picks up the same envelope fields since the scheduled briefing reuses pre_scan_inbox_impl directly. Also includes black/isort-only reformatting of the pre-existing test_pre_scan_budget_reclaim.py / test_pre_scan_coverage_disclosure.py files from the lint pass -- no assertions changed.
An IMPORTANT/STARRED message the heuristic calls NEEDS_RESPONSE-but- unconfident (rule 8: it can tell this needs a reply, just not yet whether it's urgent) was being pulled out of actionable and into needs_review alongside everything else confident=False. With actionable holding as few as 1 rendered row and needs_review capped to 5 out of what can be hundreds of candidates in arbitrary scan order, that starred message went from "the only rendered row" to one of 5 slots contested by everything else the heuristic wasn't sure about -- a worse version of the exact bug this issue exists to fix. confident=False now only overrides routing into the two LOW-SIGNAL buckets -- informational and suggested_archives, which assert "you can ignore this" from what is often a placeholder guess. It no longer pulls a message out of urgent or actionable: an unconfident guess toward a high-signal category already errs toward surfacing, which is the direction to err in. needs_review is also now ordered newest-first (human senders before automated ones on a same-timestamp tie, reusing triage_heuristics' existing automated-sender keyword list read-only rather than adding a new phrase list) instead of an arbitrary slice of backend scan order -- which N of a large uncapped bucket surface is now a stated policy. The 305-message vendor corpus has no X-Gmail-Labels, so rule 8 never fires there and its measured bucket sizes are unchanged by this fix -- the regression this closes is only visible on a real labelled mailbox, covered here by two direct fixture tests (an IMPORTANT-labeled message staying in actionable, and the ordering itself).
…imate Gmail's list_messages resultSizeEstimate -- the field total_unread was originally sourced from -- is documented by Google as approximate. On a real mailbox it reported 201 for an INBOX+UNREAD query while full pagination of the identical query found 523 real message ids: a 2.6x undercount. Reporting that as the pre-scan coverage denominator would reproduce this issue's own bug (an overstated coverage claim) inside its own fix. total_unread is now sourced from Gmail's labels().get(id="INBOX") label resource, whose messagesUnread field is an exact integer -- one call per scan, not per message, so pre-scan stays cheap. list_labels() (already used elsewhere) returns the label's MINIMAL form with no counts, so this needed a new get_label() method on the GmailBackend protocol; both LiveGmailBackend (real HTTP call) and FakeGmailBackend (computed from the in-memory message store) implement it. LiveOutlookBackend gets a structural stand-in returning None -- Graph has no equivalent honest source, same principle as its resultSizeEstimate fix, no HTTP call. Reading total_unread via getattr keeps any minimal test double that doesn't implement get_label degrading to unknown (None) rather than raising -- this is supplementary coverage metadata, never allowed to abort a pre-scan that would otherwise succeed.
…g "call"s The meeting-detection heuristic missed the #2580 incident wording ("any chance to meet this Thursday at 9am?") -- _MEETING_NOUNS held the noun "meeting" but not the verb "meet", and no _INVITE_PHRASES entry matched "any chance to ...". Fixed by adding the verb form and a small set of "any chance ..." phrases. Extending coverage exposed a real precision bug in the existing noun+time rule: it fires on any co-occurrence of a meeting noun ("call") and a time-shaped token anywhere in the email, so marketing copy mentioning a "quick call" alongside an unrelated offer-deadline clock ("valid only through 4PM PT today") already false-positived. Measured against the 104-row PROMOTIONAL slice of the vendor corpus: 10 rows flagged before this fix (including the two adversarial ids this issue names), 3 after -- the two named ids are both negative now. The fix requires the noun and the time token to appear within 60 characters of each other (empirically anchored to the closest real false positive at 82 chars) rather than anywhere in the same email.
Adds list_waiting_on_you, the inbound counterpart to check_followups (#1606): check_followups flags sent mail nobody answered, this flags inbound mail the user hasn't answered yet (e.g. "did you get a chance to look at this? can we meet Thursday?"). Precision is the whole difficulty here. Measured against the adversarial PROMOTIONAL corpus, a sender-shape gate is nearly useless (only 1 of 42 adversarial rows has an automated-sender keyword) and 47 of 104 PROMOTIONAL rows carry a bare "?" from a human-looking sender. Qualification therefore requires BOTH a direct-ask or meeting-time signal AND corroboration that the message is genuine correspondence (an earlier reply already in the thread, or a sender the user has emailed before) -- sender shape and recipient-count alone are deliberately not used as corroboration, since the adversarial corpus is crafted precisely to defeat those. New dependency-free leaf module tools/text_signals.py holds the direct-ask and informal-meeting-time predicates so nothing importing it (now or later) risks closing a cycle through triage_heuristics.py, which stays untouched. The existing calendar meeting heuristic is reused but gated on is_meeting_request and confidence == "high", never confidence alone, since it returns confidence="high" on its own no-signal branch too. Bulk/automated senders are excluded via the existing triage_heuristics automated-sender keyword list (no new list); threads the user already replied to are excluded; the tool is read-only. Regenerates CAPABILITY_MATRIX.md and bumps the agent's tools_count (59 -> 60) for the new tool.
…2581) hub/agents/email/python/tests/test_waiting_on_you_tools.py -- impl and tool-surface tests: direct-ask + meeting-time qualification with corroboration, the two named adversarial corpus ids that must never qualify, the PERSONAL-category gap #2584 can't close, already-replied exclusion, automated-sender exclusion, meeting-signal confidence gating, read-only guarantee, and the full 104-row corpus scored end-to-end. tests/unit/email/test_text_signals.py -- the leaf module's phrase predicates in isolation, plus an AST + source-text check that it imports nothing from gaia_agent_email. tests/unit/email/test_waiting_on_you_precision.py -- mirrors test_phishing_precision.py's corpus-driven style: locks in the panel's stated corpus measurements (104 PROMOTIONAL rows, 47 with a "?" from a non-automated sender, 42 adversarial) and asserts zero false positives over both the full corpus and the 47-row subset, scored as isolated first-contact messages (every corpus row is a thread root with no prior correspondence, so that is the correct, conservative reading of the fixture -- not an assumption imposed by the test).
Updates the npm package's README (feature list), SPEC (agent-loop-only capability section), SKILL (integration playbook's agent-loop-only bullet), and CHANGELOG (Unreleased), plus the python package's own CHANGELOG, so the new tool doesn't ship documented in only one place.
detect_meeting_request_heuristic (#1272) shipped over a year ago but was never called from triage_inbox_impl/pre_scan_inbox_impl -- it only ran when a caller pointed at one specific message and asked. A colleague proposing a time sailed through a scan uninspected, which is what happened in the #2580 incident. Wired into triage_inbox_impl's per-message loop, reading the same already-fetched snippet the category heuristic uses -- no extra body fetch, no LLM call, so the scan stays cheap (#1265's contract is untouched; test_pre_scan_counts.py passes unmodified). Gated on is_meeting_request AND confidence == "high": the heuristic's no-signal branch also returns confidence == "high" for a confident negative, so confidence alone is not a safe gate. pre_scan_inbox_impl carries the flag through onto every PreScanItem-shaped row it emits, including the FYI-category-default archive-promotion path that rebuilds its own dict. The import of calendar_tools is function-local inside triage_inbox_impl: calendar_tools already imports from read_tools at module scope, so a module-level import back would close a real cycle.
Every model in contract.py sets extra="forbid", and the REST endpoint validates the tool's output dict against EmailPreScanResult -- adding is_meeting_request to PreScanItem without updating the contract 500s every /v1/email/prescan call (confirmed: test_prescan_returns_card_ envelope_shape and the /v1/email/briefing route both failed with "Extra inputs are not permitted" before this commit). Updates every surface that shares this field list: the pydantic model, the regenerated OpenAPI artifact and specification.html, CONTRACT.md (field description, schema-version header, and a new 2.7 history row), the hand-maintained Go TUI card struct, the npm TypeScript mirror, the version-bump tripwire test in test_contract_schema.py, and the one stale "schema_version": "2.6" example in docs/guides/email-integration.mdx.
…tact (#2581) An adversarial verifier confirmed the committed-corpus zero-false-positive number was vacuous: every corpus row is an isolated thread root with no prior correspondence, so the corroboration gate never actually ran against it. When corroboration was manufactured for real, both "an earlier outbound message exists in the thread" and "the sender is a known correspondent" were content-blind -- a single injected one-liner ("Please remove me from this list.", or an unrelated "what's the pricing?" in a different thread) was enough to qualify 15 of 15 marketing messages that fire a direct-ask or meeting-time signal, including both named regression corpus ids. Three changes close this: - Corroboration now requires more than one prior exchange, or a single prior message with real substance (new text_signals.is_substantive_text, a word-count floor against one-line dismissals/inquiries) -- "a message exists" is no longer sufficient on its own. - A prior message where the user told the sender to stop contacting them (new text_signals.is_opt_out_reply) never counts as corroboration and instead suppresses that sender unconditionally -- it is evidence of wanting less contact, not more. - An independent veto: if the existing, unmodified triage_heuristics.classify_category_heuristic confidently classifies the candidate as PROMOTIONAL, it never qualifies regardless of corroboration. Corroboration proves prior contact; it must not be read as proof this specific message is personal. Re-ran the corpus measurement the way the verifier did -- corroboration synthesized both ways against the 25 PROMOTIONAL rows whose text alone fires a signal -- and both now show 0/25, down from 15/15 before this fix.
…ses (#2581) Second checkpoint fix. A further adversarial probe (6c) showed the first fix's hardening wasn't enough: one genuine, substantive prior message to a vendor in a DIFFERENT thread ("could you send pricing for the enterprise tier?") still corroborated 24 of 25 signal-firing rows via the known_correspondent path, because "has this person ever sent me a real message" is not evidence THIS message needs a reply -- sender identity was the wrong thing to corroborate on. The known_correspondent cross-thread corroboration path is removed entirely, not tightened further. "Waiting on your reply" now means: this thread has genuine back-and-forth already in it and it's the user's turn -- corroboration is scoped to a single thread's own history. A prior message to the same address in any other thread no longer corroborates anything, regardless of its content. Also normalizes the address used for opt-out suppression (casefold + strip plus-tag), so a sender can't dodge a recorded "stop contacting me" by varying the tag on an otherwise-identical mailbox. Kept, unchanged: the genuine-exchange requirement within a thread (more than one exchange, or one substantive message), the opt-out suppression itself, and the independent PROMOTIONAL-classifier veto -- none of those were implicated. Re-measured with the verifier's own three constructions plus recall: - 6a (in-thread prior outbound, opt-out-shaped): 0/25 - 6b (unrelated prior SENT thread, weak "what's the pricing?"): 0/25 - 6c (unrelated prior SENT thread, genuinely substantive vendor inquiry): 0/25 - Recall on the surviving in-thread path: both hand-authored positive scenarios (direct-ask reply, #2580 incident wording) still qualify.
…he thread total (#2581) Third checkpoint fix. The in-thread corroboration threshold (">=2 prior messages OR one substantive one") was counting every message in the thread regardless of direction. A vendor's cold intro plus a one-word "Thanks!" reply from the user is two total messages, so the count-based branch short-circuited before the substance check on that single, non-substantive outbound ever ran -- the substance requirement was built correctly but bypassed by the sender's own message volume. The threshold now counts only the user's own prior messages (prior_outbound_bodies), which is what _is_genuine_exchange already operates on -- removing the redundant, buggy thread-total branch entirely rather than patching it. Added the exact regression shape: vendor intro + one-word user reply + signal-bearing follow-up must not qualify, plus a contrast case (two genuine user replies, even short ones, still qualifies) proving this didn't overcorrect into requiring substance on every message. Re-measured: 6a/6b/6c all still 0/25; recall unchanged (2/2 hand-authored positive cases, both prior tests using the substantive default outbound body still pass). Documented two accepted, out-of-scope residual findings in the module docstring: a PROMOTIONAL message sent into a thread that has already earned genuine corroboration can still qualify (needs a message-level promotional judgement stronger than the existing label-driven heuristic; tightening corroboration further would only cost recall on real conversations), and prior messages are trusted by their backend-supplied From header with no authentication check (real spoofing defenses belong upstream, at the mail provider/backend level).
…nto tmi/2580-attention-int
…dent phrasing (#2581) Cross-branch interaction, not a defect in this branch's own logic: #2583 deliberately adds "any chance to meet" to the calendar heuristic's invite phrases to close the exact gap this issue's has_meeting_time_signal was built to cover. Both changes are correct, but two tests here asserted the now-false precondition that detect_meeting_request_heuristic does NOT catch that phrasing -- true when written, false the moment a branch carries both changes. Fixed both: - hub/agents/email/python/tests/test_waiting_on_you_tools.py: dropped the precondition from test_incident_wording_qualifies_with_corroboration and kept only what the detector itself does. Added a new test (test_direct_ask_signal_catches_what_the_meeting_heuristic_still_does_not) using a phrasing with no meeting noun, invite phrase, or time token at all -- "Did you have a chance to look through the code?" -- to honestly preserve the original intent (two genuinely distinct signal paths) without depending on the other heuristic's phrase list staying static. - tests/unit/email/test_text_signals.py: removed the equivalent guard (test_existing_heuristic_does_not_catch_incident_wording) outright -- this module's own suite has no reason to assert anything about calendar_tools.py's behavior at all. Grepped both test files plus test_waiting_on_you_precision.py for any other assertion depending on detect_meeting_request_heuristic NOT matching something; these were the only two. Full email suite green (1953 passed); lint clean.
…nto tmi/2580-attention-int
Closes #2582 Everything else in this epic is plumbing. The agent can now work out what needs you — a colleague waiting on a reply, a proposed meeting, an unreviewed message, an open action item — and until this PR there was nowhere for any of it to appear. `grep -ril briefing tui/` returned zero; the TUI is chat plus an agent catalog, with no home surface at all. You still had to open a chat and ask, which is the thing #2580 set out to remove. Now opening the email agent renders what needs you, unprompted. **The design constraint that shaped this came from a live measurement, not a guess.** The obvious implementation is to render the pre-scan envelope. That would have been wrong: the envelope carries per-message rows only for `urgent`, `actionable`, `suggested_archives` and `needs_review`, while `informational` — **98 of 100 messages on a real mailbox** — collapses to a bare count. A meeting proposal in confidently-informational mail would have been computed and then silently dropped at the envelope boundary. The aggregator therefore calls `triage_inbox_impl` and `detect_waiting_on_you_impl` directly, and there is a test for exactly that case. **The honesty rules are the substance here, not polish.** This surface is the last place the epic's founding bug could reappear, so: the empty state states what was actually scanned and admits truncation rather than claiming the mailbox is clear; a cached result always shows its age, and the server's `stale` flag upgrades that to a failed-refresh warning; a partial mailbox failure surfaces the connector error instead of rendering a short list as complete; and a malformed payload degrades to a *visible* invalid card rather than collapsing into the honest empty state, where it would be indistinguishable from a genuinely quiet inbox. ## Test plan - [ ] `python -m pytest tests/unit/agents/email/ hub/agents/email/python/tests/` — 1747 passed - [ ] `cd tui && go build ./... && go vet ./... && go test ./...` — all packages ok, including the integration suite - [ ] `python util/lint.py --all` — clean - [ ] Constraint-2 case: a meeting proposal inside a confidently-informational message still reaches the view — `test_meeting_in_confidently_informational_message_is_surfaced` - [ ] Go render paths: populated, honest-empty, stale, fresh-cache, partial-failure, section-cap, malformed payload - [ ] Renders on open with no prompt, and does not race an initial query — `TestFetchAttentionOnOpenForEmailAgentWithNoInitialQuery` - [ ] **Live TUI evidence — screenshots of the populated, honest-empty and disconnected-mailbox states, plus an id-set diff proving zero mutation. Not yet run; tracked as the remaining gate.** <details> <summary>A stated deviation from the acceptance criteria</summary> The issue's checklist names the merged signals as "briefing, action items, meeting requests, and the inbound waiting-on-you detector". This ships four item kinds: `meeting_request`, `waiting_on_you`, `needs_review`, `action_item` — **`needs_review` in place of a distinct briefing headline**. That is deliberate. The briefing is its own surface (#2525, already merged) and reproducing its summary here would be a second summary of the same data; the coverage line already carries the honest denominator. `needs_review` — messages the classifier was not confident about, from #2584 — is genuinely something that needs you and had nowhere to appear. Recording it as a decision rather than letting a superset read as full compliance. </details> <details> <summary>Notes for the reviewer</summary> - **Data-only contract.** The endpoint returns items plus coverage facts and a server-computed `stale` flag; wording is composed in Go. Truncation phrasing is driven by the server's `scan_truncated`, never inferred client-side by comparing counts — inference would make the renderer's honesty depend on arithmetic that can be wrong. - **`needs_review_decision()` was extracted, not copied.** That routing rule has already changed once in this stack (#2584 narrowed it so an unconfident guess no longer demotes urgent mail), so a second copy would have drifted. Both callers now share one function; the existing pre-scan suite confirms no behaviour change. - **`renderMailboxErrorBanner` is shared** between this card and the pre-scan card so their connector-failure wording cannot diverge. - **No scheduler dependency.** #2379 landed the daemon clock with no jobs attached (that adapter is #2585), so this computes on open and caches for 120s rather than reading something pre-computed. - **Zero mutation** is asserted two ways at unit level — a transport-call assertion that no mutating backend method is invoked, and a source-grep guard over the renderer. The real-mailbox id-set diff is still owed. - **Base branch `tmi/2580-attention-int` is temporary scratch**, merging #2581 and #2583 (both of which contain #2584). It must be deleted and this PR retargeted once that stack lands. </details>
# Conflicts: # docs/guides/email-integration.mdx # hub/agents/email/python/CAPABILITY_MATRIX.md # hub/agents/email/python/CONTRACT.md # hub/agents/email/python/gaia-agent.yaml # hub/agents/email/python/gaia_agent_email/__init__.py # hub/agents/email/python/gaia_agent_email/agent.py # hub/agents/email/python/gaia_agent_email/contract.py # hub/agents/email/python/gaia_agent_email/tools/read_tools.py # hub/agents/email/python/openapi.email.json # hub/agents/email/python/specification.html # hub/agents/email/python/tests/test_capability_matrix.py # tests/unit/agents/email/test_contract_schema.py
All three predate this merge (verified against branch tip e3b3ed4 directly) but were only caught once the wider test paths ran together: - test_signal_firing_subset_is_25_rows: the denominator was stale. #2589's noun+time proximity fix (60-char window) correctly dropped 6 PROMOTIONAL rows that only ever fired the meeting-request heuristic via an unrelated noun+time co-occurrence (marketing "call" + an unrelated deadline clock, e.g. "ACTION REQUIRED ... expires 4PM"). Verified by diffing _fires_signal against the pre-fix heuristic: all 6 dropped rows' sole firing reason was the noun+time rule, and zero rows newly fired. Renamed to test_signal_firing_subset_is_19_rows with the denominator's provenance recorded in the module comment. - test_all_documented_paths_covered: GET /v1/email/attention (#2582) had no conformance test. Added test_attention_conforms_to_spec and test_attention_without_mailbox_returns_503, following the existing /briefing and /search patterns. - TestToolRegistry::test_no_unexpected_tool_set: list_waiting_on_you (#2581) was never added to this file's EXPECTED_TOOLS set.
itomek-amd
marked this pull request as ready for review
July 29, 2026 15:22
4 tasks
itomek-amd
approved these changes
Jul 29, 2026
5 tasks
pull Bot
pushed a commit
to bhardwajRahul/gaia
that referenced
this pull request
Aug 4, 2026
…onger vanishes from needs_you (amd#2779) Closes amd#2580 Follow-up: amd#2770 (first-contact direct-question gap, filed separately by design) Opening the email agent is supposed to show what needs a reply, unprompted — that's the whole point of amd#2580. It doesn't, for one specific and real shape of message: on 2026-07-28, a colleague's "Did you have a chance to look through the code and get a pull request? Any chance to meet this Thursday at 9am?" was classified confidently FYI and reported under "0 actionable items", while a promotional newsletter was surfaced as a suggested archive. amd#2589 already taught the scan to detect the meeting proposal (`is_meeting_request`), but the worklist the TUI actually renders on open (`needs_you`, built by amd#2743) only kept that flag for messages already routed into urgent/actionable by category — a confidently-FYI/PERSONAL message lost it, reproducing the incident verbatim on current `main`. This restores it: `is_meeting_request` now vetoes the informational/archive routing the same way an unconfident guess already does, and it survives the needs_review path instead of being downgraded to a generic "check this" row. The fix reaches every reader of `needs_you` — the on-open card and the `pre_scan_inbox` tool the model calls mid-conversation. Confirmed live: asking "did anyone email me proposing to meet, that I haven't replied to?" calls `pre_scan_inbox` → `triage_inbox` → `detect_waiting_on_you`, the exact call graph this PR touches. Asking "what meetings are coming up?" instead calls `list_calendar_events` — a different tool, real Google Calendar data, untouched by this fix — confirmed from the sidecar log, not assumed. **One known gap, stated plainly:** this closes the incident via its meeting-proposal half. A message with only a direct question — no meeting proposal, no prior thread history — still has no path to `needs_you`; the inbound waiting-on-you detector (amd#2604) requires corroborating thread history by design, which a first-contact message can never have. Filed as amd#2770 to decide on purpose, not silently assumed away. ## Test plan - [ ] `pytest tests/unit/agents/email/test_pre_scan_meeting_detection.py -v` — new `TestGroundingIncidentSurfacesAsNeedingReply` (4 tests) replays the incident's exact wording end to end through `pre_scan_inbox_impl` and `build_attention_view_impl`; `test_incident_message_needs_no_llm_classifier` pins the fix to the zero-LLM-escalation condition the real incident logged (12 by heuristic, 0 to the LLM) - [ ] `pytest tests/unit/agents/email/ tests/unit/email/ hub/agents/email/python/tests/ tests/unit/agents/test_email_agent.py tests/test_email_openapi_conformance.py -q` — 2613 passed, no regressions - [ ] `pytest hub/agents/email/python/tests/ tests/unit/ -q` — full suite per the repo testing contract: 10511 passed, 8 pre-existing failures unrelated to this change (missing optional `fitz` dep, CLI-binary-on-PATH checks, a documented pre-existing `.env` artifact, hub-installer wheel tests) — none touch `read_tools.py` or the email agent - [ ] `python util/lint.py --all` — clean (black/isort/pylint/flake8/bandit all pass; 1 pre-existing non-blocking MyPy warning category, unrelated files) - [ ] Live TUI evidence on a real, dual-provider mailbox (Google + Microsoft) — see below ## Evidence Driven on a Ryzen AI NPU box, source build (`gaia daemon start-agent email --mode dev`, `src:` verified pointed at this branch's commit). Runtime-resolved condition, stated plainly, not a fallback: `gemma4-it-e2b-FLM` on the NPU at ctx 32768 — the default this hardware resolves to (`resolve_default_email_model`, amd#1439). **The fixed call graph is exercised live by a natural question, not just the on-open card** — "did anyone email me proposing to meet or schedule a call, that I haven't replied to?": ``` Here are the messages in your inbox that are waiting on a reply from you: • From [email protected] — "Re: Partnership intro — moving this across" • From [email protected] — "Re: Revised deck — need your numbers by Tuesday" • From [email protected] — "Re: Northgate migration — phase 2 sequencing" • From [email protected] — "Re: 30 minutes next week?" • From [email protected] — "Re: Fieldstone MSA — counter-signature needed before Friday" 46.1s · ttft 0.5s · ~191 tokens · 4.2 tok/s · 2 steps · 1 tools ``` Sidecar log for this turn: `tool_call name=pre_scan_inbox` → `tool_call name=triage_inbox` → `tool_call name=detect_waiting_on_you` — the exact call graph this PR fixes, confirmed from the log rather than inferred from the answer. It also surfaced a message ("Re: 30 minutes next week?") outside the visible top-5 card, confirming the call reaches beyond the capped display. By contrast, asking "what meetings are coming up?" instead calls `list_calendar_events` — a different tool, real Google Calendar data, untouched by this fix (see the collapsed note below). **On-open attention card — unprompted, no query sent:** ``` ┌─ Inbox ──────────────────────────────────────────────────────────────────┐ │ NEEDS YOU 5 of 38│ │ 1 REPLY tomasz.testingiewicz@ou… Re: Partnership intro — moving this across │ 0s ago · waiting 0d on your reply │ 2 REPLY tomasz.testingiewicz@ou… Re: Revised deck — need your numbers by Tuesday │ 0s ago · waiting 0d on your reply │ 3 REPLY tomasz.testingiewicz@ou… Re: Northgate migration — phase 2 sequencing │ 0s ago · waiting 0d on your reply │ 4 REPLY tomasz.testingiewicz@ou… Re: Fieldstone MSA — counter-signature needed before Friday │ 0s ago · waiting 0d on your reply │ 5 REPLY Tomasz Testingiewicz Your account has been suspended — click here to verify │ 1h ago · flagged as phishing — Looks like personal correspondence │ +33 more │ 21 filtered — none of them proposed a meeting. │ 50 inbox messages scanned. └────────────────────────────────────────────────────────────────────────┘ ``` The waiting-on-you detector (amd#2604) is live and correctly naming real inbound threads. This mailbox's natural top-50 scan window didn't contain a live `is_meeting_request=True` example to additionally show surfacing here. <!-- PLANTED-INCIDENT-CAPTURE-PLACEHOLDER --> **Zero-mutation id-set diff — both connected providers, full session:** ``` [google] <primary account> — 16 buckets (inbox 1408, starred 4, unread 729, drafts 0, + 12 labels incl. SENT/IMPORTANT/TRASH/SPAM/CATEGORY_*): every one identical id-set before → after [microsoft] <account> — inbox 543, unread 21, sent 40: identical before → after RESULT: ZERO DRIFT across every connected provider and bucket ``` Between snapshots: 4 on-open attention-card renders + 5 chat turns (calendar query ×3, waiting-on-you query, one more), all read-only. <details> <summary>Note on a related, separately-tracked finding (not from this fix)</summary> While probing "what meetings are coming up?" (3 repeated runs, `list_calendar_events`, identical each time), every meeting was reported with `Organizer: <primary account>` — the user's own address, on all three. That's a real, correctly-read field being mislabeled in prose, not an invented value — a different mechanism and a different code path (`list_calendar_events`, untouched by this PR) than anything here. Passed along for amd#2766's investigation; not fixed or claimed as fixed in this PR. </details>
This was referenced Aug 4, 2026
Closed
Merged
pull Bot
pushed a commit
to bhardwajRahul/gaia
that referenced
this pull request
Aug 13, 2026
# GAIA v0.23.0 Release Notes GAIA v0.23.0 makes the agents easier to get, safer to run, and easier to extend. You can now browse, install, and run agents straight from the terminal with `gaia hub`, and add new capabilities to an agent as signed, auditable skills. Under the surface it's a security release: the local API and MCP bridge no longer expose themselves to the network by default, the confirmation prompt that pauses an agent before it sends mail, writes a file, or runs a command now works from the terminal and over the local API and MCP — not just inside the graphical app — and an agent can no longer quietly reach into your `~/.gaia` config or slip crafted SQL into the database agent. Connecting a Microsoft account is now an explicit Personal-or-Work/School choice with a zero-setup sign-in. **Why upgrade:** - **Get agents from the terminal** — `gaia hub` browses, installs (behind a trust prompt for unverified agents), runs, and removes agents without leaving the shell. - **Every agent asks before it acts** — the confirmation gate for sending mail, writing files, and running commands now works in the terminal, over the local API, and across MCP tools, not only in the Agent UI. - **Safer by default** — the MCP bridge binds to localhost, the local API refuses credentialed cross-origin requests from arbitrary sites, MCP servers launch without a shell, and an agent can't write into `~/.gaia` or reach the database with crafted SQL. - **Build and share skills safely** — `gaia skill` makes skills first-class: create, import, sign with trust tiers, and audit them before sharing. They're opt-in — you add the ones you want. - **Connect a Microsoft account without a secret** — Personal and Work/School are now separate connectors with device-code sign-in and no client secret required. <Note> **The email agent is beta and CLI-first this release.** It runs locally and never sends, forwards, or deletes without your confirmation — that safety gate is verified. This cycle was mostly robustness and correctness: sturdier Outlook and calendar handling, honest reporting when a scan is truncated, and a long list of fixes (see Bug Fixes). It's still early — a full inbox triage can currently time out on larger mailboxes, and autonomy is experimental and not yet wired up in the packaged sidecar. Treat its output as a draft to review, and please report what you run into. </Note> ## Breaking Changes ### `GAIA_MICROSOFT_TENANT` is gone The Microsoft connector was split into two explicit connectors — Personal and Work/School — each with its own hard-coded tenant, so the `GAIA_MICROSOFT_TENANT` environment variable no longer does anything and has been removed (PR [amd#2729](amd#2729)). If you set it to work around the old single-connector tenant guessing, drop it and pick the connector that matches your account instead (see *Microsoft accounts* below). ## What's New ### Install and run agents from the terminal — `gaia hub` Getting an agent used to mean the graphical app or a manual pip install. Now the hub is in your shell: `gaia hub list` shows the catalog, `gaia hub install <agent> --trust` installs one (the `--trust` is required for an unverified agent — it will not install silently), and `gaia hub uninstall <agent>` removes it. The install → run → uninstall round-trip works end to end against the live catalog, with the trust prompt actually enforced (PRs [amd#2484](amd#2484), [amd#2530](amd#2530), [amd#2708](amd#2708)). Try it: `gaia hub list`. ### Every agent asks before it acts — beyond the Agent UI The confirmation prompt that pauses an agent before a consequential action — sending or deleting mail, writing a file, running a shell command — used to work only inside the Agent UI; from a terminal, the local API, or an MCP tool call those actions could run unprompted. This release closes those paths: the gate now fires from a plain terminal, through the `gaia api` server, and across MCP tool calls, classifying a tool as read-only or mutating and failing closed when unsure. The agent stops and asks before the action, declining leaves nothing changed, and setting `GAIA_AUTO_APPROVE_TOOLS=1` in your environment is the explicit way to opt out (PRs [amd#2475](amd#2475), [amd#2544](amd#2544), [amd#2846](amd#2846), [amd#2854](amd#2854)). ### Safer by default — a security-focused release Several local exposures are closed this release. The MCP bridge binds to `127.0.0.1` by default instead of every interface, so it isn't reachable from other machines on your network unless you pass a bind-all host, and it can now require an `--auth-token` that is actually enforced rather than ignored. The local API server no longer echoes an arbitrary origin back with credentials allowed — a cross-origin request from a site that isn't allow-listed is refused. MCP servers are launched without going through a shell, so a server name can't smuggle shell metacharacters; an agent can no longer write into your `~/.gaia` configuration; and SQL supplied by the model is blocked from reaching the database agent's statements rather than being executed (PRs [amd#2246](amd#2246), [amd#2238](amd#2238), [amd#2344](amd#2344), [amd#2844](amd#2844), [amd#2847](amd#2847), [amd#2860](amd#2860)). ### Build and share skills — `gaia skill` A skill gives an agent a new capability from a folder with a manifest — no new Python, no forking the agent. `gaia skill create <name>` scaffolds one, `gaia skill import` adds a skill so an agent can discover it, and `gaia skill list` / `info` show what's installed and the permissions each one declares. Sharing is guarded: skills carry signatures with trust tiers — an unsigned or untrusted skill is capped at the lowest tier, and tampering is caught by checksum — a pre-publish audit rejects a skill that attempts prompt injection or `shell=True`/`eval`, and `gaia skill migrate` converts skills authored in other formats. Skills are opt-in: no agent loads them automatically yet, so you add the ones you want (PRs [amd#2669](amd#2669), [amd#2692](amd#2692), [amd#2702](amd#2702), [amd#2693](amd#2693)). Try it: `gaia skill list`. ### Microsoft accounts: Personal and Work/School, no secret required Connecting a Microsoft account is now two clear choices instead of one connector guessing your tenant. `gaia connectors list` shows Microsoft as two distinct connectors — Personal and Work/School — each with a zero-setup device-code sign-in (a code and a URL to visit) and no client secret required for a public app registration (PRs [amd#2718](amd#2718), [amd#2364](amd#2364)). ### Lemonade Server 11.5.0 This release runs against Lemonade Server 11.5.0 — the version installed by `gaia init` and pinned across CI and the installer. ## Bug Fixes A selection of the user-visible fixes this release — the full list is in the changelog below. - **Triage now paginates large inboxes and reports truncation honestly** (PR [amd#2646](amd#2646)) — no more silently dropping mail past a hidden limit. - **Thread messages come back sorted and numbered** (PR [amd#2570](amd#2570)) — "reply to 3" hits the message shown at position 3, not raw backend order. - **The inbox pre-scan stops reporting a guess as a verdict** (PR [amd#2587](amd#2587)) — an uncertain classification is surfaced as uncertain. - **An email conversation survives its turns** (PR [amd#2837](amd#2837)) — a follow-up question keeps the session context instead of starting over. - **A bare reconnect no longer guts a mailbox** (PR [amd#2733](amd#2733)) — reconnecting an account keeps its existing grants instead of wiping them. - **Restore from Trash anytime** (PR [amd#2542](amd#2542)) — undo an archive/trash without a narrow time window; the dead permanent-delete path was removed. - **A low-priority sender no longer forces a promotional label** (PR [amd#2774](amd#2774)) — sender priority stops overriding the actual content classification. - **The agent survives an OpenMP double-init** (PR [amd#2508](amd#2508)) — a mid-conversation native-library clash no longer kills the run. - **Large tool results are truncated to valid JSON** (PR [amd#2645](amd#2645)) — an oversized result no longer produces unparseable output. - **A missing model surfaces as a real 404** (PR [amd#2245](amd#2245)) — the builder names the missing model instead of a generic placeholder. - **GPU is detected on all platforms and default_device is honoured** (PR [amd#2244](amd#2244)). - **A sidecar that is alive but has stopped serving is now detected** (PR [amd#2707](amd#2707)) — a wedged agent process is caught instead of hanging. - **The model-slot lease is held across inference, not just the load** (PR [amd#2394](amd#2394)) — a second agent can't evict the model mid-generation. - **A browser that never launched is surfaced** (PR [amd#2507](amd#2507)) — a failed OAuth browser open reports an actionable error instead of hanging. - **Stop actually aborts in-flight streaming** (PR [amd#2166](amd#2166)) — the Agent UI Stop button ends generation immediately. ## Full Changelog **331 commits** since v0.22.0: <details> <summary>Expand full changelog (331 commits)</summary> - `96ce0d1e` — feat(email): recognize the third mailbox connector — Gmail, Outlook personal, Microsoft work (amd#2896) - `88ecc18e` — fix(email): scoped 'anything suspicious?' query no longer dumps the full triage report (amd#2910) - `1c75ccee` — fix(skills): reject version pins GAIA cannot read instead of matching them (amd#2928) - `29a5c364` — docs(plans): assess readiness for the generic gaia-agent (amd#2926) - `e3b28653` — fix(tui): stop cancel-then-resend from racing the daemon's session lock (amd#2912) - `b38f5e60` — fix(tui): anchor TTFT on first inference token, use real token counts (amd#2911) - `779d7b00` — fix(email): reply/draft/send actions no longer report failure after they already succeeded (amd#2908) - `f8d4610c` — ci(eval): queue eval runs instead of cancelling the pending one (amd#2921) - `611b1928` — feat(hub,skills): pre-publish security audit gate for marketplace skills (amd#2702) - `c83047b9` — feat(skills): gaia skill migrate — OpenClaw/Hermes skills to GAIA format (amd#2693) - `ca17067a` — test(skills,hub): cover the signing and lane checks amd#2668/amd#2692 shipped untested (amd#2907) - `a951567a` — fix(eval): drop the judge temperature pin the model now rejects (amd#2905) - `236f8a58` — feat(skills): gaia skill publish/install with signature-backed security tiers (amd#2692) - `d26b15da` — ci(eval): trigger the Gemma eval on the PR diff, not the push (amd#2897) - `be15258a` — fix(cpp): normalize CRLF so Windows-authored skills parse identically (amd#2906) - `84415b06` — feat(cpp): text extraction and chunking (amd#2822) - `6352f264` — fix(database): make the SQL read-only authorizer disarm on Python 3.10 (amd#2904) - `4709a728` — feat(hub,skills): publish and serve skills as a first-class hub catalog lane (amd#2668) - `245cb72e` — fix(api): refuse approval-gated tools instead of auto-approving them (amd#2854) - `e803103a` — fix(mcp): enforce --auth-token on the MCP bridge instead of ignoring it (amd#2844) - `a6dc1fa3` — fix(ci): run the Gemma-4-E4B agent eval in PowerShell on its Windows pool (amd#2773) - `75b61f4f` — feat(cpp): SKILL.md format parser and validation (amd#2824) - `b89c6414` — feat(cpp): gaia::HttpClient — a general HTTP client abstraction (amd#2809) - `5e6b1d43` — fix(security): launch MCP servers without a shell, protect ~/.gaia from agent writes (amd#2847) - `768be2e2` — feat(skills): ship a ten-skill starter pack with a guide and honesty guards (amd#2697) - `340bf2c2` — feat(cpp): interactive TUI — event loop, streaming render, modals (amd#2825) - `acaad161` — feat(cpp): native OpenAI tool calling and conversational response mode (amd#2821) - `23ae5d63` — feat(cpp): SQLite integration and gaia::Database (amd#2816) - `4f2a6686` — feat(cpp): gaia::VectorIndex — flat vector index with persistence (amd#2807) - `b1a7e8df` — fix(email): ship with Agent Skills off until the eval gate covers them (amd#2848) - `34c26577` — ci(webui): run the Agent UI Vitest job on Node 22 so the suite executes (amd#2898) - `20036474` — docs: escape MDX-breaking literals so Mintlify validation passes (amd#2903) - `07b0858e` — ci(tui): run on stacked PRs, add -race, lint, and a per-OS test matrix (amd#2696) - `e19d46be` — feat(cpp): harden the coding toolbelt — stale-write rejection, ignore-aware search, persistent shell (amd#2823) - `7621b223` — ci(claude): move every Claude workflow to Opus 5 and run the audits nightly (amd#2859) - `d086faa4` — fix(claude): correct the agent/skill prompts and make plain language the default (amd#2862) - `990d19ff` — fix(cpp): gate MCP tools behind user confirmation in the C++ SDK (amd#2851) - `878d473f` — fix(mcp): gate MCP write tools behind the user confirmation prompt (amd#2846) - `c2c68064` — fix(security): stop LLM-supplied SQL reaching DatabaseAgent statements (CWE-89) (amd#2860) - `e936d3d9` — docs(release): rebuild v0.23.0 notes to hardware-verified features only - `be03c7c8` — fix(init): stop reporting success gaia init did not deliver (amd#2889) - `75804a15` — docs(dev): require --extra-index-url for every uv pip install on Linux (amd#2878) - `4a24d663` — ci(email): run the triage eval on PRs that touch the email agent (amd#2849) - `c3d9ec11` — fix(code): route orchestrated tool calls through the confirmation gate (amd#2853) - `c59e5d8a` — fix(hub): stop the terminal hub publishing against a core that cannot serve it (amd#2712) - `04f18294` — chore(deps-dev): bump the agent-ui-dependencies group in /src/gaia/apps/webui with 6 updates (amd#2750) - `ce4fcbf3` — fix(web): bracket pinned IPv6 addresses in URLs (amd#2739) - `e7e93287` — fix(installer): install the terminal hub on macOS and Windows (amd#2708) - `3cda9f77` — feat(cpp): MCP server registry — resolve server ids from mcp.json (amd#2820) - `c09764da` — fix(ci): validate the STX CMake cache instead of trusting bin/cmake.exe (amd#2818) - `616014d7` — docs(plans): scope C++ framework parity for domain-specific agents (amd#2806) - `f6433039` — ci(security): audit allowlist soundness + add PSIRT/CVSS triage skill (amd#2752) - `5c9f2b60` — chore(deps): bump the github-actions group with 2 updates (amd#2751) - `c103f6cd` — feat(discovery): real macOS and Linux branches for day-zero scanners (amd#1956) (amd#2747) - `e7e362e1` — chore(deps-dev): update mcp requirement from \<2.0,>=1.1.0 to >=1.1.0,\<3.0 in the python-dependencies group (amd#2749) - `ca9e5461` — chore(deps): bump the root-npm-dependencies group with 2 updates (amd#2748) - `f62ca240` — fix(website): unbreak the Railway deploy, red since July 31 (amd#2855) - `88d130ec` — feat(email): render the triage list from the scan, not from the model (amd#2858) - `bf9eb183` — ci(windows): pin ffmpeg version to drop the gyan.dev dependency (amd#2852) - `c531ca69` — fix(email): a conversation now survives its turns — session_id on /query (amd#2837) - `bcde95ee` — fix(email-agent): stop meeting/invite answers from inventing what tools never said (amd#2833) - `162274a5` — fix(tui): 'triage my inbox' draws its card under the question again (amd#2845) - `bbf69fd6` — feat(email,skills): bundled skills + account-keyed skill-set selection (amd#2695) - `abed9f1c` — fix(security): close find -exec / write side-doors in shell command whitelist (CWE-184) (amd#2740) - `0d1258a1` — fix(email-agent): get_thread renders a table card instead of relying on model prose (amd#2788) - `300163dd` — fix(email-agent): search_messages defaults to metadata-only, fixing context overflow on counting questions (amd#2782) - `cc331b78` — fix(email): low-priority-sender match no longer forces PROMOTIONAL (amd#2774) - `68736511` — fix(email): meeting proposal in a confidently-classified message no longer vanishes from needs_you (amd#2779) - `e135b8ef` — fix(ci): post PR reviews from the workflow instead of hoping the model does (amd#2719) - `efd3812b` — feat(email/tui): resolve "reply to 1" to the message the card actually shows (amd#2761) - `ed70db73` — fix(email-agent): search_messages states an exact, stable message count (amd#2760) - `42fdfdcd` — fix(email/tui): one triage card that tells you what to do, not what was classified (amd#2757) - `3803aa06` — fix(email): stop leaking classifier internals into triage card rationale (amd#2754) - `2c11ac0b` — fix(tui): sanitize agent error text (amd#2753) - `9bf0042a` — docs(tui): rewrite the terminal hub README for newcomers (amd#2717) - `1cdd9746` — docs(skills): implementation spec for Agent Skills v2 adaptive skills (amd#2685) - `50a5b862` — fix(website): pin the deploy toolchain so CI and production build alike (amd#2691) - `500cdac6` — fix(mcp): cap the mcp dependency below 2.0 (amd#2694) - `3686e069` — docs(guides): document the terminal hub, and how to actually get it (amd#2698) - `99508ec5` — docs(plans): preserve the TUI packaging design and binary-distribution plan (amd#2699) - `21c02f69` — fix(hub): mark the email agent verified so first install is not refused (amd#2703) - `8d07ee3d` — docs(website): correct every deployment instruction in the README (amd#2689) - `dff8f1b2` — refactor(memory): rename synthesis Skill dataclass to DistilledProcedure (amd#2684) - `d2832fd5` — # feat(email): opt-in on-device SLM classifiers for phishing and triage category (amd#2568) - `a02f2f0c` — fix(connectors,email): a bare reconnect no longer guts a mailbox (amd#2733) - `bc0d4632` — fix(website): reach the hero terminal, marquee, and code blocks by keyboard (amd#2706) - `82635362` — fix(website-router): track apex Worker, fail loudly on origin errors (amd#2688) - `5d269094` — feat(skills): SKILL.md loader, validator, discovery + gaia skill CLI core (amd#2669) - `0ae019c8` — fix(daemon): detect a sidecar that is alive but has stopped serving (amd#2707) - `4551ec5b` — fix(website): stop offering Intel Macs a DMG they cannot run (amd#2701) - `bc8a7e29` — docs(spec): Gatekeeper blocks the browser download, not curl | sh (amd#2732) - `0d170869` — fix(website): make the hub agent rows readable in both themes (amd#2711) - `d5ae430d` — fix(tui): a consequential readiness check now holds the screen (amd#2731) - `d6bd047f` — fix(email): stop Gmail 429-ing every scan — chunk at 25 and retry the rate limit (amd#2727) - `93216bc0` — chore(connectors): remove GAIA_MICROSOFT_TENANT — dead since the connector split (amd#2729) - `e3a6958a` — fix(tui): show a failed tool's own error instead of an "Invalid card" box (amd#2726) - `6efc520b` — fix(email-agent): surface connector errors from autonomy runs instead of a bare HTTP 500 (amd#2640) - `f0543406` — feat(connectors): split Microsoft into Personal + Work/School connectors (amd#2718) - `b8a97cbb` — fix(connectors): stop requiring a client secret from secretless public PKCE clients (amd#2630) - `70e4eb12` — fix(website): stop a published agent rendering twice on the hub page (amd#2690) - `282e30e0` — fix(tui): name the binary the user actually invoked, and fix the setup hint (amd#2700) - `d95866ff` — fix(installer): repair the Lemonade download URLs and add macOS support (amd#2704) - `3bc0b612` — fix(hub): stop components publishing against a core that cannot serve them (amd#2705) - `c068166d` — Email Triage draft/proposal SDK (amd#2551) - `cb90bab3` — fix(email): priority senders never force urgent; informational tail auditable (amd#2658) - `ab41b115` — fix(email): stop the assistant from narrating what the turn's tools don't support (amd#2659) - `7a93bfbe` — fix(email-agent): propagate the autonomy kill switch to the scheduler (amd#2657) - `4de65cff` — fix(email-agent): require the conflict tool for conflict verdicts (amd#2656) - `84404a6e` — perf(email): metadata-first scan + read-mail pre-scan coverage (amd#2661) - `733822e2` — fix(tui): restore the attention card on direct chat --agent launches (amd#2655) - `d4d5a7cc` — fix(mcp): cap the mcp dependency below 2.0 - `1d867eed` — fix(email): strip infrastructure banners from bodies before the prompt (amd#2650) - `22d8b2d4` — fix(email-agent): kill a running autonomy cycle and keep partial reports (amd#2652) - `a4f4b39b` — fix(email): paginate the triage scan and report truncation honestly (amd#2646) - `7adc4882` — fix(tui): dedup attention rows and stop the card interrupting turns (amd#2648) - `24e8d5ab` — fix(email): thread summaries keep the newest message's open asks (amd#2644) - `c3ef3796` — fix(agents): truncate large tool results to valid JSON (amd#2645) - `d633b387` — docs(connectors): document which Google scopes to declare in the Console (amd#2612) - `4ad367a9` — fix(connectors): derive --grant-agent scopes from the agent's own declaration (amd#2610) - `f7d5d7d9` — chore(deps): bump the root-npm-dependencies group across 1 directory with 3 updates (amd#2503) - `c84d9a79` — fix(tui): make the terminal hub readable on a light terminal background (amd#2611) - `bcffbc8d` — feat(email): recover the attention view and waiting-on-you detector onto main (amd#2604) - `b63a9f0d` — feat(email): guided Outlook mailbox setup — walk, verify, and answer questions in chat (amd#2598) - `e0d5014c` — fix(daemon): dev-mode start-agent refuses a checkout mismatch instead of silently serving a stale build (amd#2592) - `29dc0f9f` — feat(email): find meeting proposals during the inbox scan (amd#2589) - `22b0fa04` — fix(email): pre-scan stops reporting a guess as a verdict (amd#2587) - `c211e870` — fix(daemon): start the daemon clock so scheduled work can fire (amd#2586) - `358fd6e1` — fix(email-agent): add preference removal tools and a truthful read-back (amd#2520) (amd#2541) - `d01b9d43` — fix(email): don't cancel a retrying agent for a recoverable tool error (amd#2572) - `7fdcd6b2` — fix(email): surface degraded memory state and diagnose the real cause (amd#2577) - `1c42d842` — fix(email): autonomy /run refuses while off; add gaia email autonomy CLI (amd#2578) - `25b6cacd` — fix(email): draft_reply/draft_forward compose the body, don't ask for it (amd#2576) - `a050c64d` — fix(email): briefing carries a structured breakdown, not one sentence (amd#2575) - `8da002f0` — fix(email): resolve relative snooze/schedule times agent-side (amd#2574) - `ee4af04b` — fix(email): get_thread returns messages sorted and numbered, not raw backend order (amd#2570) - `9269a306` — fix(email): give list_inbox/search_messages a combined envelope budget (amd#2546) - `c4495a0f` — fix(agents): dispatch Python-call-style embedded tool syntax (amd#2573) - `f6103a03` — feat(email-agent): broaden autonomy candidates, add undo surface and per-message decisions (amd#2545) - `d975853c` — fix(email): normalize calendar time bounds to RFC 3339 before Google (amd#2579) - `fdf665f0` — feat(website): redesign landing, Agent Hub, and agent detail pages (amd#2566) - `000ab88e` — fix(ui): reject null bytes in upload-path; unrot 8 stale UI/journey tests (amd#2565) - `0d6ca966` — feat(tui): tool-confirmation modal for destructive/external actions (amd#2544) - `4131420a` — fix(agent): recover from context overflow on NPU/FastFlowLM (amd#2543) - `35062526` — fix(email): restore from Trash anytime, drop dead permanent_delete (amd#2542) - `2a1767e0` — chore(release): bump the hub component manifests to 0.23.0 - `b5d5bf54` — feat(hub): publish the terminal hub and Agent UI as R2 hub packages (amd#2530) - `014cbcbc` — fix(email): catch the contract guards up to schema 2.6, and de-race the heartbeat test (amd#2549) - `9f70be13` — fix(ui): serve the Lemonade start hint instead of hardcoding a dead command (amd#2510) - `26127e80` — feat(release): publish the terminal hub binary and install it (amd#2522) - `59374508` — fix(tui): unbreak build_tui on main — allowlist the bare-host remedy (amd#2548) - `1b189215` — fix(daemon): unbreak Unit Tests on main — remedy docstring names an unparseable command (amd#2534) - `9bdd7eb3` — docs(release): name the Lemonade version v0.23.0 actually ships (amd#2509) - `21d40c33` — fix(llm): detect Lemonade on macOS; stop printing commands that don't work (amd#2497) - `e272fbae` — fix(tui): keep a valid hub selection when switching tabs (amd#2482) - `1d0454b6` — fix(tui): prove the mailbox is usable before the gate clears a launch (amd#2494) - `ee54b779` — feat(email): agent-led mailbox onboarding — the agent sets up its own access (amd#2496) - `cc73e244` — fix(tui): stop the hub offering agents it cannot run or launch (amd#2492) - `5b378ebe` — fix(tests): make unit suite hermetic by blocking real network connections (amd#2500) - `238fe9ac` — feat(tui): install, run and uninstall agents from the TUI (amd#2484) - `ce730876` — feat(tui): draw tool_result render cards, starting with the inbox pre-scan (amd#2485) - `7fdd43ea` — chore(deps-dev): bump electron from 43.1.1 to 43.2.0 in /src/gaia/apps/jira/webui in the jira-app-dependencies group (amd#2501) - `c940fd0a` — chore(deps-dev): bump electron from 43.1.1 to 43.2.0 in /src/gaia/apps/example/webui in the example-app-dependencies group (amd#2502) - `7f569605` — feat(daemon): install, uninstall and catalog hub agents from the daemon (amd#2477) - `61ac101c` — docs(plans): design the TUI user journey around the email agent (amd#2480) - `fd66ba95` — fix(email): fail loudly on a dead worker and reconcile the package docs (amd#2479) - `1340b3b7` — fix(agents): actually ask before running confirmation-gated tools (amd#2475) - `5f283e10` — feat(tui): control API + MCP server for driving the live TUI (amd#2478) - `12016d5d` — feat(tui): stream agents over the daemon HTTP/SSE relay (amd#2476) - `554ef27c` — chore(deps): bump electron from 43.1.1 to 43.2.0 in /hub/agents/emr/python/gaia_agent_emr/dashboard/electron in the emr-dashboard-dependencies group (amd#2504) - `4822e2ed` — chore(deps-dev): bump the agent-ui-dependencies group in /src/gaia/apps/webui with 6 updates (amd#2505) - `3fc0d2e1` — chore(deps): bump the github-actions group with 4 updates (amd#2506) - `47c2d1b2` — fix(connectors): surface a browser that never launched (amd#2507) - `1763606f` — fix(agents): stop the OpenMP double-init from killing the agent mid-conversation (amd#2508) - `56215070` — fix(hub): carry requirements.min_lemonade_version through the manifest parser (amd#2493) - `02cf9984` — fix(mcp): keep console logs off stdout in stdio transports (amd#2473) - `d6c02c2f` — chore(deps): bump Lemonade Server to v11.5.0 (amd#2424) - `2898f1b5` — fix(agents): don't dedup errored mutation retries (amd#2464 batch dead-end) (amd#2465) - `867bc677` — fix(email): recall last archive batch so undo reaches across turns (amd#2458) - `9073ec20` — fix(email): strip LLM quoting from ARCHIVE_MESSAGE_BATCH ids (amd#2457) - `529d11b1` — ci(review): allow fork-PR checkout under pull_request_target (checkout@v7) (amd#2461) - `524d3282` — fix(email-agent): make undo window configurable for chat-speed bulk ops (amd#2449) - `61dc3a1f` — fix(email-agent): surface actionable Lemonade-down copy in gaia email -q (amd#2453) - `d78115a9` — fix(memory): guard against self-supersede hiding recalled preferences (amd#2452) - `6bf96e56` — fix(email-agent): isolate per-provider failures in read fan-out (amd#2451) - `acd20400` — fix(agents): reject unexpected tool kwargs with a structured error (amd#2450) - `f99ccaea` — fix(daemon): drop --reload from dev-mode email sidecar spawn (macOS) (amd#2442) - `c2337178` — fix(email-agent): verify archive left inbox + fix same-day search miss (amd#2438) - `3f6af0ff` — fix(email): don't misclassify timeouts as Lemonade-down (amd#2139 follow-up) (amd#2454) - `9386e1b1` — fix(email-agent): resolve draft/reply target from sender or topic (amd#2403) (amd#2437) - `229e61da` — fix(email-agent): never auto-archive IMPORTANT / security-sender mail (amd#2426) (amd#2435) - `e6ac57f9` — fix(email-agent): persist preferences to state.db so they survive without the embedder (amd#2427) (amd#2434) - `4301c897` — fix(agent-email): actionable copy for Lemonade-down /query errors (amd#2432) - `1bb2cccd` — fix(daemon/email-agent): dev-mode sidecar 'Empty module name' on macOS (bad PYTHON_KEYRING_BACKEND) (amd#2443) - `7a44bfd5` — fix(email): bulk-archive undo survives the whole run via a per-turn batch handle (amd#2439) - `5101b853` — fix(daemon): re-forward OAuth tokens on expiry so sidecars self-recover (amd#2436) - `55010368` — fix(email-agent): applying an existing label fails with 'Invalid label' (T14) (amd#2433) - `ce83feb9` — fix(email-agent/ui): de-jargon the send confirmation surface (amd#2407) - `4bb196fb` — fix(connectors): name consumers-tenant migration on personal-account app rejection (amd#2391) - `6b29a4d6` — fix(email-agent): construct with zero connectors instead of 502 (amd#2423) - `f3af7bff` — fix(agent-ui): treat ctx_size=0 as unknown, not a too-small window (amd#2402) - `f22b0f4a` — fix(ci): run evidence stage via direct claude CLI, not the GitHub-coupled action (amd#2430) - `60334202` — fix(email-agent): add live mailbox connection-status tool (amd#2405) - `4c370b23` — fix(ui): surface actionable sidecar HTTP errors instead of generic crash card (amd#2422) - `7fc559af` — test(ci): evidence lane exercises UI-backed routes + spot-regresses adjacent ops (amd#2421) - `9be31036` — security(ci): harden the evidence stage against env dumps / credential flows (amd#2417) - `0f709733` — fix(daemon): validate custody rag/query 'k' to a bounded positive int (amd#2390) - `ca50bf8a` — ci(review): broaden evidence gate + require a verdict-linked evidence section (amd#2415) - `59c736df` — ci(review): fold gaia-testing evidence into the PR review comment (Phase 1: CLI/API/MCP) (amd#2414) - `1a233d94` — test(connectors): fix main red — amd#2408 install test vs amd#2410 trust gate (amd#2412) - `78de5bfd` — fix(electron): resume periodic update checks after a no-feed start (amd#2389) - `a20c04b4` — fix(agent-ui): left-align installed-agent hub cards on home screen (amd#2398) - `236ba233` — fix(connectors): register hub-installed sidecar agents so email grant works on fresh install (amd#2411) - `b343f396` — fix(security): harden install trust gate and analyze_data_file sandbox (amd#2410) - `765cb544` — fix(daemon): hold the model-slot lease across inference, not just the load (amd#2394) - `27be002e` — fix(onboarding): neutral NPU wording in first-run Hardware check (amd#2399) - `c86a46e5` — docs(release): note email is Linux + API/CLI only this release (Windows amd#1648) - `e658cb15` — docs(testing): bind real-world evidence contract to the changed surface (amd#2376) - `feb00155` — docs(email): correct earn-trust claim — positive-outcome accrual not yet wired (amd#2392) - `7aee219a` — fix(email): commit autonomy dedup INSERT so it survives headless teardown (amd#2393) - `6b6a8dab` — fix(daemon): map NotGrantedError to 403 in forward_all route (amd#2395) - `5b2e6be8` — docs(release): keep only verified user-facing features in What's New - `e11740e7` — docs(release): fix Agent UI heading — drop 'update' (auto-update was trimmed) - `a011e33d` — docs(release): trim v0.23.0 notes to features verified working - `ce5ddd84` — docs(release): correct v0.23.0 notes to match verified behavior - `c62a3e27` — Release v0.23.0 - `5f624706` — fix(hub): importable CLI wheel agents + chat distribution via gaia init (amd#2373) - `3ad39e60` — fix(sidecar): actionable user-mode binary error (amd#2347) (amd#2357) - `bfc0f5b8` — fix(lemonade): recognize grouped amd_gpu/nvidia_gpu device keys in validation (amd#2368) - `0553c8b0` — feat(email): full autonomy — earn-trust engine, learning loop, scheduled driver (amd#2363) - `0284300b` — feat(connectors): support work/school Outlook + zero-setup device-code sign-in (amd#2364) - `1aaba5cc` — feat(lint): require security suppressions to be reviewed in an allowlist (amd#2343) - `19b1a4c5` — test(daemon): de-flake sidecar stop test on the pid-liveness check (amd#2349) - `174e9d0c` — refactor(chat): extract ProfileSpec, honest manifest, lazy RAG — one class → separable profiles (amd#2323) (amd#2362) - `57f970b0` — chore(audit): drop the security dimension from the weekly audit (amd#2348) - `23181040` — feat(security): proactive Claude security-audit workflow + CVSS/SARIF tooling (amd#2346) - `d605caec` — fix(security): enforce --allowed-paths sandbox on file read tools (amd#2344) - `1c8a91c9` — fix(security): remove pre-existing bandit HIGH findings and enable the HIGH gate (amd#2350) - `4b5c16b7` — ci(labeler): add tui/daemon/sidecar auto-label rules (amd#2356) - `a905b057` — chore(deps): bump the github-actions group with 2 updates (amd#2341) - `b3f793af` — fix(routing): default unknown language to TypeScript, not a process kill (amd#2337) - `48286dbd` — fix(init): stop Rich eating bracketed tokens in gaia init output (amd#2340) - `638a7643` — docs(skills): add porting-agent-to-hub — the legacy-agent port flow (amd#2338) - `d2c00b55` — fix(hub): harden agent-archive extraction against path traversal (amd#2342) - `a4417656` — fix(ci): repair the startup-failing GAIA CLI aggregate workflow (amd#2307) - `0835a250` — fix(ci): make the weekly eval and runner heartbeat monitor actually run (amd#2306) - `977c158f` — fix(cli): add --layout hub to gaia agent init for the agent-first hub tree (amd#2295) - `558a73e6` — chore(deps): bump the github-actions group with 3 updates (amd#2294) - `f8bff000` — chore(deps-dev): bump electron from 43.1.0 to 43.1.1 in the root-npm-dependencies group (amd#2292) - `fb179e32` — ci(eval): gate the Gemma-4-E4B consolidation on agent evals (amd#2283) - `6b2aa2db` — chore(deps-dev): bump electron from 43.1.0 to 43.1.1 in /src/gaia/apps/jira/webui in the jira-app-dependencies group (amd#2291) - `5837bdac` — chore(deps-dev): bump electron from 43.1.0 to 43.1.1 in /src/gaia/apps/example/webui in the example-app-dependencies group (amd#2290) - `3ce4f790` — test(agents): stub live Lemonade probe in context-overflow tests (amd#2288) - `1886a92f` — chore(deps): bump electron from 43.1.0 to 43.1.1 in /hub/agents/emr/python/gaia_agent_emr/dashboard/electron in the emr-dashboard-dependencies group (amd#2289) - `0a308449` — feat(agents): consolidate every agent onto Gemma-4-E4B at one context size (amd#2284) - `4392e06a` — chore(deps-dev): bump the agent-ui-dependencies group in /src/gaia/apps/webui with 3 updates (amd#2293) - `d9b11ec7` — refactor(hub): agent-first layout — hub/agents/\<id>/\<lang> (amd#2060) - `5f15b333` — feat(daemon): broker-wire the remaining direct model-load surfaces (amd#2286) - `3affe149` — fix(ui): detect GPU from real Lemonade payload shapes (amd#2285) - `4f888b78` — fix(hub): report file-based custom agents' real health, not always 'error' (amd#2277) - `36c29873` — fix(cli): detect GPU on all platforms and honour default_device (amd#2244) - `6c6f8a34` — test(audit): coverage for schedule CLI, perf-vis, VLM extraction, PDF gen/export; fix silent table-row loss (amd#2259) - `2425afe8` — fix(builder): surface model-not-found (404) instead of a generic placeholder (amd#2245) - `3a0eebe7` — ci(hub): wire nine hub package test suites into CI; fix .cjs docs-link guard gap (amd#2258) - `3e82ca61` — docs(connectors): correct the client_id_hash claim in the OAuth runbook (amd#2264) - `9f7dca84` — fix(ci): fix Lemonade startup and bash-on-PATH in the doc walkthrough (amd#2281) - `53f4b529` — fix(daemon): owner-only DACL for the Windows launch secret (amd#2250) (amd#2282) - `ee8825fa` — fix(security): require allowed_dir in compute_file_hash (amd#2280) - `46fb7687` — spec(factory): define the dogfooding loop — Claudia as live validation runtime (amd#2234) - `1a679f02` — feat(ui): always-available OAuth client field in Settings (amd#2104 interim) (amd#2265) - `45c796b1` — test(jira): unit tests for JiraAgent HTTP boundary and config discovery (amd#1991) (amd#2263) - `bed702eb` — feat(ci): execution-based weekly doc walkthrough (amd#2278) - `f8f309e6` — fix(ui): stop silently accepting unimplemented agent_mode 'autonomous' (amd#2257) - `3b0938ed` — fix(ci): weekly audit cross-links the prior parent instead of auto-closing it (amd#2254) - `78306480` — test(audit): risk-bearing coverage — jira, trust-gate, flag-precedence, amd#1655 boundaries (amd#2253) - `1aa39ca2` — fix(observability): real system-metrics polling + real rollbackAction (amd#2251) - `384b3ca8` — fix(security): bind MCP bridge to loopback, not all interfaces (amd#2246) - `037f4370` — fix(cli): implement/gate stubbed api-status, eval flags, schedule --skill (amd#2247) - `2b6ed53e` — fix(security): rate-limit exposed routes, harden JS ReDoS/XSS/cleartext-logging (amd#2237) - `6c6b3baf` — fix(packaging): stop the amd-gaia[agents] extra from downgrading the core wheel (amd#2262) - `8744a51a` — fix(security): validate user-influenced file paths (py/path-injection) (amd#2252) - `c921fa7b` — feat(email): quality + robustness batch (amd#2110/amd#2113/amd#2114/amd#2115/amd#2116) (amd#2192) - `b9391ec2` — fix(security): parameterize SQL, redact sensitive logs, harden ReDoS regexes (amd#2239) - `09e0bac4` — fix(security): stop leaking stack traces at API boundaries + least-privilege workflow permissions (amd#2236) - `3df5a3db` — fix(security): tighten API CORS — no wildcard origin with credentials (amd#2238) - `a3db04ef` — feat(connectors): OAuth forward-out to sidecars (V2-14) (amd#2203) - `e0886cbf` — refactor(daemon): reconcile the clocks into one daemon-owned scheduler (V2-15) (amd#2199) - `15459153` — feat(daemon): /host/v1 custody API v1 with per-agent scoping (V2-12) (amd#2197) - `e226d584` — feat(webui): group session sidebar by agent + session-state polish (amd#2193) - `6e48cb22` — feat(daemon): host-owned model-slot broker serializes loads (V2-11) (amd#2194) - `c42bb354` — fix(website): correct hub install command and clarify agent availability (amd#2207) - `2f18de85` — fix(tests): align email CLI dispatch test with amd#2191 thin-client contract (amd#2209) - `a2ad4eff` — fix(tests): repair stale gaia.ui.email_sidecar.manager import after amd#2144 (amd#2208) - `2b89643c` — fix(webui): repair broken main — AgentHubView imported deleted AgentHubGrid (amd#2206) - `68773d46` — test(eval): sidecar eval harness + distributed-seams suite (V2-19) (amd#2202) - `d7cffc72` — feat(agent-ui): first-run onboarding wizard — hardware pre-flight, in-app model download, connect-on-install (amd#2204) - `5bc7d325` — feat(electron): in-app install, R2 auto-update feed, gaia:// deep links (amd#2196) - `eb6b34bf` — feat(daemon): one-time versioned migration of ~/.gaia state (V2-13) (amd#2200) - `73b8f98c` — refactor(api): remove the last in-process email mount; relay via daemon (amd#2176) (amd#2205) - `e4ea0e33` — feat(connectors): grant the mailbox to the email agent in the same connect flow (amd#2195) - `2bf405db` — feat(webui): in-app Hub page with catalog lanes + install trust gate (amd#2201) - `459efba9` — feat(api): relay /v1/\<agent>/query through the daemon (V2-17) (amd#2198) - `ada5b95a` — feat(cli): gaia email attaches to the daemon — thin client (V2-8) (amd#2191) - `a49d257d` — fix(webui): reachable Agent Hub + installed-agent discovery and per-session picker (amd#2190) - `7c98b51a` — docs(connectors): rewrite the Google client-ID walkthrough for the current console (amd#2189) - `a94a8126` — feat(daemon): deliver sidecar launch secret via 0600 file, not bare env (amd#2149) (amd#2186) - `5601e2a5` — feat(daemon): streaming SSE reverse-proxy for agent routes (amd#2150) (amd#2188) - `1465bc73` — feat(agents): proactive lifecycle hooks with approval-gated proposals (amd#1484) (amd#2187) - `2c4ff395` — test(chat): mirror the amd-gaia floor guard from amd#2169; harden version parsing (amd#2184) - `2271278c` — fix(llm): make swallowed model-load failures loud in _ensure_model_loaded (amd#2185) - `2e0294f9` — feat(hub): add multi-component type discriminator to the manifest (amd#1716) (amd#2183) - `b78b71d1` — test(chat): guard the amd-gaia dependency floor against amd#2112 regression (amd#2174) - `33caec54` — refactor(ui): extract _best_effort_cancel helper for the relay cancel paths (amd#2173) - `ba58e31a` — feat(email): fast dev-iteration loop for the email agent SDK (amd#2083) - `f79c4177` — fix(webui): pin explicitly-set session titles — stop auto-retitle churn (amd#2165) (amd#2171) - `ae741690` — fix(email): error on an explicitly-targeted unconnected mailbox instead of substituting (amd#2164) (amd#2172) - `4dafa091` — fix(email): normalize date operators in search_messages (amd#2161) (amd#2170) - `dd2fa328` — fix(email): raise amd-gaia floor to match get_embedding_model_for_device (amd#2112) (amd#2169) - `011b6e3c` — fix(email): default calendar list to a forward window when range args are absent (amd#2162) (amd#2168) - `ed7d2969` — fix(ui): propagate cancel to the email sidecar on relay timeout/crash (amd#2158) (amd#2167) - `d8daf66d` — fix(agent): abort in-flight streaming generation on Agent-UI Stop (amd#2166) - `c907f6c4` — feat(memory): adaptive, review-gated onboarding conversation (amd#1955) (amd#2143) - `def5e979` — fix(ui): stop blaming Lemonade for cancelled/empty chat turns (amd#2141) - `553cb541` — fix(email): consolidate Agent UI pre-scan across every connected mailbox (amd#2129) - `5446af2c` — fix(agent-email): drop $orderby from Outlook get_thread to avoid Graph InefficientFilter (amd#2140) - `8ba66f4d` — fix(email): REST triage honors the LLM's is_spam verdict (amd#2125) - `aa44c2c8` — refactor(daemon): daemon-supervised agent sidecars (V2-6) (amd#2144) - `ac3cc4cd` — fix(eval): fail the briefing eval loudly on a zero-case/zero-judged run (amd#2123) - `c9566b19` — chore(deps): bump Lemonade Server to v11.0.0 (amd#2130) - `47c1142a` — feat(ui): route email chat through the sidecar /v1/email/query loop (V2-10) (amd#2136) - `b340427d` — docs(skill): correct the release skill against what v0.22.0 actually did (amd#2133) - `9f1ece0f` — feat(webui): render→component map + generic render primitives (V2-9) (amd#2131) </details> Full Changelog: [v0.22.0...v0.23.0](amd/gaia@v0.22.0...v0.23.0) --- ## How these notes were verified Every **What's New** entry was exercised on real hardware, not inferred from green CI. Re-verified end to end after merging current `main` (334 commits since v0.22.0), because the delta touched the MCP bridge, hub, skills, and connectors — the exact surfaces the notes assert. <details> <summary>Verification results, what broadened, and what was excluded</summary> **Re-verified against the current pin and kept:** `gaia hub` install/run/uninstall (trust gate enforced); the confirmation gate now covering terminal + `gaia api` + MCP tool calls (fail-closed classifier proven model-free — amd#2846/amd#2854); localhost binding + stricter CORS + enforced MCP `--auth-token` + shell-less MCP launch + `~/.gaia` write guard + CWE-89 SQL block (amd#2844/amd#2847/amd#2860, live probes); `gaia skill` create/import/list/info plus signed-tier + pre-publish-audit + migrate (amd#2692/amd#2702/amd#2693); the Microsoft connector split (two connectors, secretless PKCE — amd#2896's third connector is Gmail, so the wording is not stale). **Broadened this cycle:** the confirmation-gate claim (blocking gap amd#2846 merged) and the security section (four verified hardening items). The skills section is stated **opt-in** (amd#2848: no shipped agent loads skills by default). **Removed:** the onboarding / day-zero discovery headline — the scanner works on macOS, but the first-run onboarding flow it feeds is not ready to ship, so it is not claimed (the underlying commit amd#2747 remains in the changelog). **Excluded (not claimable):** a skills-by-default claim (false — amd#2848); the C++ SDK (real and CI-green but ships no user-facing artifact and predates this release); the prebuilt terminal-hub binary ("not yet distributed"). Claims that failed live verification remain filed as open bugs, not shipped: amd#2883, amd#2884, amd#2885, amd#2893, amd#2894. Email ships as a beta note whose only asserted behavior — never sending or deleting without confirmation — is verified. </details> ## Release checklist - [x] `util/validate_release_notes.py` passes - [x] `docs && npx mintlify validate` passes - [x] `src/gaia/version.py` → `0.23.0`; `LEMONADE_VERSION` → `11.5.0` - [x] webui `package.json` / `package-lock.json` → `0.23.0` - [x] Navbar label → `v0.23.0 · Lemonade 11.5.0` - [x] All 334 commits in range represented in the changelog - [x] Branch merged current with `main`; `setup.py` keeps `mcp<2.0` - [ ] Review from @kovtcharov-amd addressed --------- Co-authored-by: Kalin Ovtcharov <[email protected]> Co-authored-by: k <k@e>
5 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2581
Closes #2582
Recovers two pieces of the #2580 epic that never reached
main.What happened. #2582's attention view was reviewed and merged as PR #2599 — but into
tmi/2580-attention-int, a temporary integration branch, rather than intomain. It reads as MERGED on the PR list, so it looked shipped; it wasn't. That branch also carried #2581's waiting-on-you detector, whose own PR (#2593) was left open and conflicting. This brings both tomaintogether, updated against everything that has landed since.Nothing here is new work. Every line was already reviewed and passed a live-mailbox testing gate as #2593 and #2599 — including three rounds of adversarial verification on the detector's precision, and TUI captures of the populated, honest-empty and disconnected-mailbox states. This is a re-delivery of stranded work, not a fresh change.
Together these complete the epic: the agent works out what needs you, and the TUI shows it on open, unprompted.
Test plan
python -m pytest tests/unit/agents/email/ tests/unit/email/ hub/agents/email/python/tests/ tests/test_email_openapi_conformance.py tests/unit/agents/test_email_agent.py— 2176 passedpython util/lint.py --all— all blocking gates passcd tui && go build ./... && go vet ./... && go test ./...— cleanneeds_reviewrouting andis_meeting_requeststill work together —test_meeting_item_carries_flag_through_pre_scanMerge notes — what was resolved and how
Twelve files conflicted. Generated artifacts (
CAPABILITY_MATRIX.md,openapi.email.json,specification.html) were regenerated and then diffed against the hand-resolution to confirm agreement, rather than hand-merged. The rest were resolved to the combined state — never--ours/--theirs.Two things worth a reviewer's eye:
read_tools.pycombined this branch's sharedneeds_review_decision()extraction with main's inline routing, which encoded the same rule. Git's auto-merge left a dead local and a duplicated import behind — non-conflicting but wrong — both removed.contract.py/CONTRACT.md/read_tools.pycame out byte-identical to the pre-merge tip, because this branch had already written its ownis_meeting_requestfield independently before main's version landed.Three stale tests fixed, one of them carefully
test_signal_firing_subset_is_25_rows→ 19. That 25 was the denominator behind three rounds of adversarial precision work on the detector, so it was not updated on faith. The pre-#2589 heuristic was reconstructed as a standalone module and diffed across all 104 promotional corpus rows: exactly 6 rows dropped, 0 newly fired. All six matchedmeeting noun 'call' with concrete timebefore andwithout a concrete time or inviteafter — the "ACTION REQUIRED … expires 4PM" marketing template (1677f2af,28226131,5f720d3d,9c0cdaf3,c7a9b9eb,d964ff4d). None involved the direct-ask signals. This is #2589's proximity rule working as designed. The provenance is recorded in the module comment, and the historical 25 / 15-of-15 / 24-of-25 figures in the surrounding commentary are deliberately left intact — they document a real prior verifier run at that denominator.GET /v1/email/attentionhad no conformance test — added, following the existing/briefingand/searchpatterns, plus the 503-without-mailbox case.list_waiting_on_youwas missing fromEXPECTED_TOOLS— added.Known limitations, carried forward unchanged
From #2581, documented in the module docstring rather than only in review: marketing sent into a thread you have genuinely corresponded in can still qualify as awaiting your reply, roughly one time in four. The thread history is real, so corroboration cannot reject it; only a message-level promotional judgement could, and the existing one is label-driven and near-inert on unlabelled mail. Tightening corroboration further costs recall on genuine correspondence. Shipped knowingly.
Also unchanged: the module trusts the backend-supplied
Fromheader on prior messages with no authentication check. Real spoofing defences sit upstream at the provider.Separately observed, not fixed here:
tests/test_email_openapi_conformance.pysits outside thetests/unit/network guard, so on a machine with a live Lemonade server a real embedding call succeeds and poisons a process-global cache, making 5 memory tools register in a later test. Confirmed pre-existing and environment-dependent by pointingLEMONADE_BASE_URLat an unreachable host — the failure vanishes. Same family as #2600.