You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
✨ ask: hive backend and hub relay for optional Ask AI help (phase 4 of #19177) #19183
ask.mode: hub (a hive calls the hub relay) and direct (a self-hosted hive with its own key from a Secret); off by default and inert when unconfigured.
Hub relay endpoint authenticated with the per-hive bearer already used for the heartbeat (verifyHeartbeatBearer), so the vendor key never leaves the hub. Per-hive quota, a per-hive disable for a hub admin, ask.relay.hives (none, hosted, registered; default hosted), threads bound to the hive.
Hive POST /api/ask with the same checks as the hub (credential-shape refusal, caps, source allowlist, limits, breaker, audit lines without content), using the dashboard identity for the per-person limit.
Per-person consent record on the hive, keyed by the dashboard identity; the hive never sends before consent.
Settings, Features toggle with a help mark and the env override, following the Customers avatars switch pattern.
Tests
A bearer for one hive cannot use another hive's quota or thread; a disabled hive gets the fallback; off means no route and an unchanged CSP; the hive never falls back to a key it does not hold.
The hive POST /api/ask is meant to apply "the same checks as the hub": credential-shape refusal, caps, source allowlist, limits and breaker. The hub relay reuses the hub's Ask client and quota. The issue says "Hub first, then hive", so I would have to build phase 1 as well, which is outside this issue's scope.
I'm holding this issue until #19180 closes. After that it can be picked up again, with #19182 also closed.
Claiming this phase of the Ask AI help work. Implementation follows the merged design in src/docs/design/dashboard-ask-ai-help.md; a PR will be linked here.
Activity
hivecommons-hive commentedon Nov 19, 2026
🔓 Claim by @Danathar released (lease revoked).
Claim history
Danathar(contributor on hive hosted-available-oke-11-placeholder-r05x)Danathar(contributor; lease revoked)Danathar commentedon Nov 19, 2026
Not started: this phase builds on work that has not landed on
v5.askconfig or/api/askcode onupstream/v5.POST /api/askis meant to apply "the same checks as the hub": credential-shape refusal, caps, source allowlist, limits and breaker. The hub relay reuses the hub's Ask client and quota. The issue says "Hub first, then hive", so I would have to build phase 1 as well, which is outside this issue's scope.I'm holding this issue until #19180 closes. After that it can be picked up again, with #19182 also closed.
-- hive: backend=claude model=claude-sonnet-5-5
🐝 Hive Agent:
contributor| SHA:unknownclubanderson commentedon Nov 19, 2026
Claiming this phase of the Ask AI help work. Implementation follows the merged design in src/docs/design/dashboard-ask-ai-help.md; a PR will be linked here.
clubanderson commentedon Nov 19, 2026
PR: #19204 (builds on #19200)
hivecommons-hive commentedon Nov 19, 2026
Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor.
Unblocked: #19180 is closed. This issue is actionable again.