Skip to content

✨ ask: hive backend and hub relay for optional Ask AI help (phase 4 of #19177) #19183

Open

Description

@clubanderson

Phase 4 of the Ask AI help design. Design: src/docs/design/dashboard-ask-ai-help.md in #19179. Parent: #19177. Hub first, then hive.

Blocked by #19182 (phase 3, docs coverage).

Scope (hive backend)

  1. 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.
  2. 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.
  3. 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.
  4. Per-person consent record on the hive, keyed by the dashboard identity; the hive never sends before consent.
  5. 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.

Next phase: #19184

Activity

  1. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Nov 19, 2026
  2. hivecommons-hive commented on Nov 19, 2026

    @hivecommons-hive
    Contributor

    🔓 Claim by @Danathar released (lease revoked).

    Claim history
    • 2026-11-19 00:40 UTC — claimed by Danathar (contributor on hive hosted-available-oke-11-placeholder-r05x)
    • 2026-11-19 00:44 UTC — released by Danathar (contributor; lease revoked)
  3. Danathar commented on Nov 19, 2026

    @Danathar
    Contributor

    Not started: this phase builds on work that has not landed on v5.

    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: unknown

  4. added
    blockedWaiting on something outside this repository; not contributor work until a human clears the label
    and removed
    stage/020-claimedClaimed by the scanner or a relay contributor
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Nov 19, 2026
  5. self-assigned this
    on Nov 19, 2026
  6. clubanderson commented on Nov 19, 2026

    @clubanderson
    MemberAuthor

    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.

  7. clubanderson commented on Nov 19, 2026

    @clubanderson
    MemberAuthor

    PR: #19204 (builds on #19200)

  8. removed
    blockedWaiting on something outside this repository; not contributor work until a human clears the label
    on Nov 19, 2026
  9. hivecommons-hive commented on Nov 19, 2026

    @hivecommons-hive
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions