Repository navigation
Description
Every agent becomes an out-of-process sidecar under a headless custodian daemon; the Agent UI, CLI, and gaia api become thin clients of one agent contract, with the UI synced to the Agent Hub for one-click install/uninstall/run (npm + frozen binaries).
Authoritative plans:
- Design:
docs/plans/agent-ui-agent-capabilities-plan.md§0.0–§0.42 +docs/plans/agent-ui.mdx(v2 section) — merged in docs(plans): redesign Agent UI as a thin host over sidecar agents (v2) #1913 - Implementation decomposition:
docs/plans/agent-ui-v2-implementation-breakdown.md— merged in docs(plans): Agent UI v2 thin-host implementation breakdown #1915 (delta table, 19 sequenced proposals, first vertical slice)
Sign-off decisions:
- D1 — §0.4 confirmation model: ✅ RESOLVED — stateless stop-and-hand-off (the recommended option). Phase 0/1 shipped against it: V2-2/V2-10 emit
needs_confirmationand end the stream (no server-side resume). Interacts with per-agent confirmation tool-sets (refactor(agents): let agents declare their own confirmation-required tool sets (#1440) #1963). - D2 — §0.9 memory/RAG custody home: ✅ RESOLVED — daemon custody for the Agent UI deployment, pluggable
CustodyProvideron the sidecar side. Adopted for this build; realized by V2-12 (feat(daemon): /host/v1 custody API v1 with per-agent scoping (V2-12) #2153). - D3 — §0.24 third-party trust root + containment 🔒 — STILL OPEN. Signing ownership, egress enforcement, tier-gated OAuth forwarding. Gates third-party agents (V2-16) and the distribution track's signing issues; specifics best discussed privately. The one live gate remaining.
Phases (details + acceptance criteria in the breakdown doc):
- Phase 0 — contract first: /query SSE spec, email /query, superseded-doc banners.
- Phase 1 — daemon + vertical slice: daemon skeleton, AgentSidecarManager, streaming relay, CLI thin client, render→component map, email cutover to /query.
- Phase 2 — custody/broker/clock: /host/v1/*, model-slot broker, data migration, OAuth forward-out, scheduler relocation (must reconcile the email agent's in-sidecar schedulers from feat(email): scheduled daily inbox briefing (off by default) #1918/feat(email): scheduled send + snooze (one-shot scheduler, cancel handles) #1919).
- Phase 3 — fleet: manifest + model provisioning, /query on
gaia api, agent picker, eval harness. - Distribution track: the hub/install issues absorbed from milestone 52 ([Epic] Multi-Component Agent Hub + Agent UI Distribution #1731 and children) target the daemon-supervised model once Phase 1 lands.
Milestone: Agent UI v2: Thin Host + Sidecar Agents [OSS].
Implementation tracking (V2-N → issue)
Issues are filed just-in-time per chunk from agent-ui-v2-implementation-breakdown.md. Each carries Part of #2014 + milestone 55.
Phase 0 — contract first
- V2-1 freeze /query SSE contract — docs(spec): freeze the /query SSE event contract + sse_handler vocabulary translation map #2015
- V2-2 email POST /v1/email/query loop — feat(email): POST /v1/email/query — the SSE agent loop on the sidecar (contract 2.4) #2016
- V2-4 superseded-model banners — docs(plans): superseded-model banners on sibling plans + v2 breakdown refresh #2017
- V2-3 launch-secret via 0600 file (not bare env) — feat(daemon): deliver sidecar launch secret via 0600 file, not bare env (V2-3) #2149
Phase 1 — daemon + vertical slice
- V2-5 headless custody daemon skeleton — feat(daemon): headless custody daemon skeleton — single instance, client auth, gaia daemon CLI #2018
- V2-6 AgentSidecarManager registry — refactor(daemon): generalize EmailSidecarManager → AgentSidecarManager registry in the daemon (V2-6) #2142
- V2-9 render→component map + primitives — feat(webui): render→component map + generic render primitives (V2-9) #2108 (PR feat(webui): render→component map + generic render primitives (V2-9) #2131)
- V2-10 route email chat through /query — feat(ui): route email chat through the sidecar /v1/email/query loop (V2-10) #2109 (PR feat(ui): route email chat through the sidecar /v1/email/query loop (V2-10) #2136)
- V2-7 daemon streaming SSE relay — feat(daemon): streaming SSE reverse-proxy for agent routes (V2-7) #2150
- V2-8
gaia emaildaemon thin client — feat(cli): gaia email attaches to the daemon — thin client (V2-8) #2152
Phase 1 hardening (fast-follows on shipped v2 code)
- Relay cancels the sidecar generation on read-timeout/crash (V2-10 relay leak) — fix(ui): email /query relay leaks the sidecar generation on read-timeout — cancel only fires on user-stop #2158 (PR fix(ui): propagate cancel to the email sidecar on relay timeout/crash (#2158) #2167, merged)
- Stop aborts in-flight chat generation, not only at step boundaries — fix(ui): Stop doesn't abort in-flight chat generation — cancel only observed at step boundaries #2157 (PR fix(agent): abort in-flight streaming generation on Agent-UI Stop #2166, merged)
Phase 2 — custody / broker / clock
- V2-11 model-slot broker — feat(daemon): host-owned model-slot broker serializes loads (V2-11) #2151
- V2-12 /host/v1 custody API (per-agent scoping) — feat(daemon): /host/v1 custody API v1 with per-agent scoping (V2-12) #2153
- V2-13 one-time ~/.gaia migration — feat(daemon): one-time versioned migration of ~/.gaia state (V2-13) #2155
- V2-14 OAuth forward-out — feat(connectors): OAuth forward-out to sidecars (V2-14) #2154
- V2-15 reconcile all four clocks into the daemon — refactor(daemon): reconcile all four clocks into the daemon (V2-15) #2156
Phase 3 — fleet
- V2-16 agent manifest + install-time model provisioning — feat(hub): agent manifest schema + install-time model provisioning (V2-16) #2177 (gated on D3)
- V2-17 /query on
gaia apivia the daemon relay — feat(api): expose /v1/<agent>/query on gaia api via the daemon relay (V2-17) #2178 (in-process email mount removal tracked separately in refactor(api): [api] extra still auto-mounts gaia_agent_email in-process — last in-process mount post-#1896 #2176) - V2-18 per-session agent picker — feat(webui): explicit per-session agent picker — v1 dispatch (V2-18) #2179 (cross-links bug fix(webui): agent discovery/launch is broken on consumer installs — hub button opens nothing, no agent picker exists #2118: agent discovery/launch on consumer installs)
- V2-19 sidecar eval harness + seams suite — test(eval): sidecar eval harness + distributed-seams test suite (V2-19) #2180
Decision status (breakdown §4): D1 confirmation model ✅ resolved (stateless — shipped in V2-2/V2-10); D2 memory/RAG custody home ✅ resolved (daemon custody + pluggable CustodyProvider — realized by V2-12/#2153); D3 third-party trust root 🔒 still open — the one live gate (blocks V2-16 + the distribution track's signing).
Deferred / fast-follow — now FILED (parents have landed):
- Broker-wire the remaining model-load surfaces through V2-11 (UI backend startup, RAG embedder, eval/
gaia llmCLI) — feat(daemon): broker-wire the remaining direct model-load surfaces (V2-11 fast-follow) #2248 - Cut + publish a file-aware frozen email binary so V2-3's file-delivery reaches shipped installs (SHAs still
PENDING-1648) — release(email): file-aware frozen email binary so V2-3 secret file-delivery reaches shipped installs #2249 (needs a release cut; relates to [packaging] Fully-automated R2 publish + thin npm package #1648/plan(email): Milestone 49 (v0.23.0) — the route to ship the Email Agent Package #2126 and the publishing track Agent Hub: Publish Python agent wheels to PyPI #1179, milestone v0.24) - Windows DACL for the V2-3 secret file (
chmod 0600is inert on NTFS) + on-box verification — fix(daemon): Windows DACL for the V2-3 launch-secret file (chmod 0600 is inert on NTFS) #2250
Activity
github-actions commentedon Jul 10, 2026
Solid epic — the contract-first phasing (Phase 0 pins the
/querySSE spec before any daemon work) is the right sequencing, and the three plan docs it points to all exist and line up: the design plan, the v2 section ofagent-ui.mdx, and the 19-proposal implementation breakdown. Milestone 55 currently tracks 25 open / 0 closed, so the decomposition is fully filed.One flag on the open decisions: D3 (third-party trust root, signing, egress enforcement, tier-gated OAuth forwarding) 🔒 is security-sensitive — as the epic already notes, its specifics are best hashed out privately rather than in this public thread. Tagging @kovtcharov-amd to own that sign-off (and D1/D2, which are architecture calls above my pay grade).
Two things worth making explicit as Phase 2 gets scheduled, since the epic calls them out as reconciliation risks:
/query" is the load-bearing vertical slice; if the render→component map or streaming relay contract shifts, everything in Phase 3 (/queryongaia api, agent picker) inherits it. Worth an eval pass on the email agent before/after that cutover.🔍 Technical details
Verified against the checkout:
docs/plans/agent-ui-agent-capabilities-plan.md,docs/plans/agent-ui.mdx, anddocs/plans/agent-ui-v2-implementation-breakdown.mdall present underdocs/plans/.kovtcharov commentedon Jul 10, 2026
Cross-milestone impact note from the second-pass audit — four open items in milestone 40 (v0.22.0) get reshaped or absorbed by this epic; owners there should know before investing:
agent.pyis the wrong layer under v2 — model selection belongs to the Phase-3 manifestrequiredModels+ Phase-2 model-slot broker. Recommend parking it and solving in the manifest.@tool52 / manifest 6): Phase 0/1 makes/querythe primary agent contract; the alignment target becomes "align to /query + fixed-function" rather than reconciling four co-equal surfaces.requiredModels.min_ctxfield + broker concern in v2 — if the cluster stays unstarted until Phase 3, pin it there instead of in email-agent baselines.Also noted on the respective issues: #1721/#1722's install/run lifecycle re-targets the daemon (already stated in #2018), and #1723 freezes the backend v2 retires.
feat(email): POST /v1/email/query — the SSE agent loop on the sidecar…
feat(daemon): headless custody daemon skeleton — single instance, cli…
docs(plans): superseded-model banners on sibling plans + v2 breakdown…
docs(spec): freeze the /query SSE event contract + vocabulary transla…
kovtcharov commentedon Jul 16, 2026
Phase-1 build issues are now filed from the live E2E round: #2108 (V2-9 render→component map) and #2109 (V2-10 email chat via /query) — the two remaining prerequisites for the UI to reach the sidecar's full agent loop. The E2E round also produced the quality/UX batch #2110–#2120 (all in this milestone); of those, #2118 (agent discovery/launch on consumer installs) and #2117 (connect-flow grants) are the demo-polish items that pair with Phase 1.
itomek commentedon Jul 16, 2026
Milestone-55 housekeeping from a planning pass today: six issues moved in from milestone 49, plus two things worth acting on.
This epic is the milestone tracker. #1731 (multi-component Hub + Agent UI distribution — absorbed from milestone 52, children #1716–#1729) and #1896 (email in Agent UI via the frozen sidecar) are sub-tracks beneath it, not competing plans. Worth stating because it's easy to land on the wrong one.
Phase 0 is complete — all three named deliverables are closed: #2015 (
/querySSE contract), #2016 (email/query), #2017 (superseded-doc banners). Phase 1 is underway: #2018 (daemon skeleton) landed, and the two remaining prerequisites plus the E2E quality batch are already filed — see the comment above.Moved in from milestone 49 on 2026-07-16
Necessary for this milestone, not for v0.23:
_ensure_model_loaded. #2109 routes UI email chat through the agent-loop/querysurface this fixes; without it that surface fails generically.Two things worth acting on
[x], but both are still open (feat(email): restore inbox pre-scan in the Agent UI via the email REST surface #1778 and feat(email): expose inbox search on the email REST contract for the Agent UI #1781 are genuinely closed). Anyone reading that epic would conclude the REST capability build-out is finished. Worth an unchecking pass.Overlap to resolve: #1710 (here — sign/notarize all Hub artifacts, installers + agent binaries) is a superset of #1650 (still in milestone 49 — sign/notarize email agent binaries). One should absorb the other.
Milestone 49's own route is tracked in #2126; the C++ track (#1118 / #1517 / #1543) is parked there — not on target right now.
feat(ui): route email chat through the sidecar /v1/email/query loop (…
feat(webui): render→component map + generic render primitives (V2-9) (a…
refactor(daemon): daemon-supervised agent sidecars (V2-6) (amd#2144)
kovtcharov commentedon Jul 17, 2026
Milestone-55 audit sweep (2026-07-17, against head of main) — dependency spine for the remaining V2 items:
daemon/sidecars/manager.py:270) and it blocks feat(daemon): /host/v1 custody API v1 with per-agent scoping (V2-12) #2153/feat(connectors): OAuth forward-out to sidecars (V2-14) #2154, transitively feat(daemon): one-time versioned migration of ~/.gaia state (V2-13) #2155/refactor(daemon): reconcile all four clocks into the daemon (V2-15) #2156: four of the seven remaining issues. Nothing started. Resolve the version-negotiation question (spawn-time keying off installed binary version, not the runtime /version probe) before coding.tmi/fix-2157-cancel-abort— that branch is a single-machine point of failure; push and consolidate into fix(agent): abort in-flight streaming generation on Agent-UI Stop #2166.24 remaining items
feat(daemon): host-owned model-slot broker serializes loads (V2-11) (a…
feat(webui): group session sidebar by agent + session-state polish (a…
feat(daemon): /host/v1 custody API v1 with per-agent scoping (V2-12) (a…
refactor(daemon): reconcile the clocks into one daemon-owned schedule…
feat(connectors): OAuth forward-out to sidecars (V2-14) (amd#2203)
kovtcharov commentedon Jul 18, 2026
Epic status update — Phases 0–2 complete, Phase 3 all but D3
Sweeping the V2-N tracker against merged state, Phases 0, 1, and 2 are fully landed, and Phase 3 has only the D3-gated item left.
Phase 0 — contract first ✅ V2-1 (#2015), V2-2 (#2016), V2-4 (#2017), V2-3 (#2149) now merged.
Phase 1 — daemon + vertical slice ✅ V2-5 (#2018), V2-6 (#2142), V2-9 (#2108), V2-10 (#2109), V2-7 (#2150) merged, V2-8 (#2152) merged. Plus hardening #2157/#2158.
Phase 2 — custody/broker/clock ✅ V2-11 (#2151), V2-12 (#2153), V2-13 (#2155), V2-14 (#2154), V2-15 (#2156) all merged (#2176 in-process email mount removal also merged).
Phase 3 — fleet: V2-17 (#2178) ✅, V2-18 (#2179) ✅, V2-19 (#2180) ✅ merged. V2-16 (#2177) is the only open V2-N — gated on D3.
The remaining gates to full completion
New fast-follow issues filed (parents have landed)
The breakdown's deferred fast-follows are now unblocked and filed: # (broker-wire remaining model-load surfaces), # (file-aware frozen email binary for V2-3), # (Windows DACL for the V2-3 secret file).
Bottom line: Agent UI v2 core is done. Full completion = land #2192/#2060/#2240, resolve D3, then ship V2-16 (#2177) and the three fast-follows above.
kovtcharov commentedon Jul 18, 2026
Correction — the fast-follow issues referenced above are: #2248 (broker-wire remaining model-load surfaces), #2249 (file-aware frozen email binary for V2-3), #2250 (Windows DACL for the V2-3 secret file).
feat(email): quality + robustness batch (amd#2110/amd#2113/amd#2114/a…
kovtcharov commentedon Jul 19, 2026
Status update — Phase 1/2 fast-follows all landed; V2-16 + D3 remain the only open work.
Closed tonight:
gaia llmCLI) → feat(daemon): broker-wire the remaining direct model-load surfaces #2286, mergedhub/agents/<id>/<lang>→ refactor(hub): agent-first layout — hub/agents/<id>/<lang> #2060, mergedThat clears every deferred/fast-follow item in this epic except #2249 (file-aware frozen email binary, needs a release cut).
Milestone 55 now reads 62 closed / 1 open, where the 1 is this epic.
Why this epic stays open: V2-16 (#2177, agent manifest + install-time model provisioning) is still open and unchecked. It does not show in milestone 55's count because it sits in Multi-Component Agent Hub + Agent UI Distribution [OSS], but it is a Phase 3 item of this epic and remains gated on D3 — third-party trust root + containment (signing ownership, egress enforcement, tier-gated OAuth forwarding). D3 is the one live decision gate; it also blocks the distribution track's signing issues.
Follow-up worth tracking on #2250: the DACL fix merged without ever executing on Windows in CI —
test_unit.ymlrunsubuntu-latest+macos-latestonly, and the tests live intests/unit/test_agent_sidecar_manager.py, so thepywin32lockdown path is unexercised on the platform it exists for. A change is in flight to add that coverage and to fix the readback loop, which verifies vacuously whenGetAceCount()returns 0.