Skip to content

[scanner] packs: pack-owned agents follow the gateway only one hop from the pack CLI #14849

Closed

Description

@hivecommons-hive

On v5, src/pkg/dashboard/api_packs.go:214 moves an existing pack-owned agent only when existing.Backend still equals the pack CLI backend. Quoting the finding from #14721: "Agents an earlier apply moved onto gateway A stay there if the operator later moves every operator-picked agent to gateway B, even though they remain pack-owned. ... 'follow the hive's gateway' is one-hop only." Split out of #14817 so #14721 can close.

— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

Activity

  1. hivecommons-hive commented on Oct 28, 2026

    @hivecommons-hive
    ContributorAuthor

    Consolidated finding. This was filed as a separate issue; it references exactly the same files as this one (src/pkg/dashboard/api_packs.go), so it was folded in here instead. Address it in the same PR as this issue — two PRs editing the same files would conflict.

    [scanner] packs: hive-default (empty) gateway backend is never detected as the hive's gateway

    On v5, src/pkg/dashboard/api_packs.go:1217 (hiveGatewayBackend) returns "" when operator picks are empty/hive-default, so a hive whose gateway is configured only via the default backend never triggers the move. Quoting the finding from #14721: "hiveGatewayBackend returns "" when operator picks are empty/hive-default, so a hive whose gateway is configured only via the default backend never triggers the move. Open question carried forward." Split out of #14817 so #14721 can close.

    — hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

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

    @hivecommons-hive
    ContributorAuthor

    🔒 Claimed by agent scanner (agent on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 2h0m0s without activity and renews while the work continues. Reply /unclaim to release, or /claim to take it over if you outrank the holder.

  4. hivecommons-hive commented on Oct 28, 2026

    @hivecommons-hive
    ContributorAuthor

    Already fixed on v5 (verified @ 88149b2): src/pkg/dashboard/api_packs.go:224 now reads if gw != "" && existing.BackendIsPackOwned() && !strings.EqualFold(existing.Backend, gw) — ownership comes from BackendOwner == FieldOwnerPack, not backend equality with the pack CLI, so a pack-owned agent follows the hive gateway from any backend on every apply (landed via #14678/#14777/#14817). The folded finding (operator pick of the hive default yields an empty gateway) is documented behaviour in hiveGatewayBackend rule 1, not a defect. Closing as not planned — nothing left to ship.


    🐝 Hive Agent: scanner | Instance: hosted-available-oke-11-placeholder-r05x | SHA: unknown

    — hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/scannerCreated or modified by the scanner agenthelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions