Skip to content

"Let hive decide" loops forever on capability-gap needs-human (App lacks workflows permission) #15099

Closed

Description

@clubanderson

Observed (hive's hive, #14976)

Labels: needs-human, stage/045-needs-decision, approved-direction, hive/partially-addressed, needs-signal — all at once.

Timeline:

  • 18:11Z post-merge sweep: 🐛 fix(ci): retry go mod download in Docker builder stages on transient proxy resets #14990 merged with Refs (partial fix: Dockerfiles only).
  • 18:17Z operator ran Let hive decide → hive un-parked ("approved-direction applied, needs-human cleared, returns to agent queue").
  • 18:37Z scanner verified: remaining retry wrappers live in .github/workflows/go-security-analysis.yml and .github/workflows/v2-ci.yml, "which the App token cannot push (no workflows permission); needs a human".
  • 19:33Z scanner re-applied needs-human with the same text.
  • 21:10Z operator: "I tried 'let hive decide' and it still needs human."

The delegated decision answered a question hive was not asking. The real blocker is a capability gap (the GitHub App has no workflows permission), which no "direction" decision can clear, so un-park → scanner re-park would repeat forever. stage/045-needs-decision and approved-direction also coexist, which is contradictory.

Fix

  1. Model blockers as a first-class structured blocker on the item (decision_needed.blocker, kinds capability:workflows-permission, capability:repo-write, capability:branch-protection, capability:secret, human-only:cla, …). Agents report it with a <!-- hive:blocker kind=… --> marker (gh-wrapper adds it when the prose says "the App cannot "); prose inference is the fallback for existing comments.
  2. Let hive decide on a capability blocker returns no-effect with plain words: "Hive can't do this one: the GitHub App has no workflows permission…" and options: (a) grant the permission + Re-check permissions (probes the installation and clears the blocker), (b) prepare the patch (disabled with reason unless an authorised identity path exists), (c) mark partially-addressed and close, (d) keep waiting.
  3. Loop guard: the same needs-human reason re-applied after a delegated un-park parks the item with that blocker and disables Let hive decide with reason text until the blocker changes.
  4. Label consistency: 045-needs-decision and approved-direction cannot coexist; the stage pass reconciles (blocker → 045 with blocker text; otherwise approved-direction wins).
  5. Tracker pill "Blocked · App lacks workflows permission"; ⚙ Security/Features shows missing App permissions with the count of blocked items; /api/status gains capabilities: {missing, blocked_items}.
  6. Tests (Go + node fixture), docs (dashboard-sections, labels-and-control-signals, operator-reference App permissions table).

Activity

  1. hivecommons-hive commented on Oct 28, 2026

    @hivecommons-hive
    Contributor

    🔒 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.

  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
    Contributor

    🔓 Claim by agent scanner released (holding agent relaunched).

  4. hivecommons-hive commented on Oct 28, 2026

    @hivecommons-hive
    Contributor

    Fixed by #15127 (merged 77d935f). Closing. Reply /reopen if the problem persists.

  5. github-actions commented on Oct 28, 2026

    @github-actions
    Contributor

    @clubanderson this issue was closed by @hivecommons-hive[bot] as completed.

    If this was closed by a merged PR, the fix only takes effect once it ships in a tagged release and your deployment updates to it — check your running version against the fix before concluding the fix failed.

    If you are still seeing the problem, comment /reopen and it will be reopened for you — you do not need write access. Please add what you are still observing (running version, logs, steps) so it is not closed the same way again.

  6. added 13 commits that reference this issue on Oct 28, 2026
    c302530
    c80f2cc
    e0132f7
    c830ca2
    bd76ca5
    f90a8b0
    c4c59dc
    a915cd3
    a342e04
    13b678b
    17d9c4e
    55189b9
    2dbd1fd
  7. added a commit that references this issue on Oct 29, 2026
    bf9b44e
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

    help 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