Skip to content

[scanner] Delegated plan for an advisory: would close / keep open while the hive works k/N items #15764

Closed

Description

@hivecommons-hive

Part of #15754 (Expected item 3, advisory branch).

The issue-type wording for default-approve on a plain issue ("Approve the direction of #N and let the hive pick it up.") ships in the #15754 PR. What remains is the advisory branch of POST /api/repos/{o}/{r}/items/{n}/decide-delegated/plan:

  • an advisory (dedupe checklist / triage/advisory) with all items resolved → would: close, "Close the advisory — its items are tracked by the hive."
  • with items still open → "Keep open; hive is working k/N items", no writes.

Why it is split: the plan's primary button runs decide-delegated, so the plan can only say "close" honestly if execution closes too. That needs a new delegated verdict + action in src/pkg/delegatedecision/policy.go and a case in executeDelegatedDecision (src/pkg/dashboard/api_repo_item_decide_delegated.go) — both files are under edit in open PRs #15741 and #15757. Rewording the plan alone would preview "close" and then execute an approve.

Mitigation already in the #15754 PR: an advisory row no longer carries decision_needed, so the tracker no longer offers "Let hive decide" on it; the advisory closes itself once its items resolve (dedupe.advisory_autoclose).

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

Activity

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

    @hivecommons-hive
    ContributorAuthor

    Deferred this cycle: src/pkg/delegatedecision/policy.go and src/pkg/dashboard/api_repo_item_decide_delegated.go are still under edit in open PR #15757 (being rebased now); the advisory would:close branch lands after it.


    🐝 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

  3. hivecommons-hive commented on Oct 30, 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 30, 2026

    @hivecommons-hive
    ContributorAuthor

    Already fixed on v5 by #15767 (merged 2026-10-30T13:45Z): the advisory branch of decide-delegated/plan returns would: close / "Close the advisory — its items are tracked by the hive." when all items are resolved (src/pkg/dashboard/api_repo_item_decide_delegated_plan.go:217), "Keep open; hive is working k/N items." otherwise (:220, k = resolved), with the matching delegated verdict/rule and execute case, covered by api_repo_item_decide_delegated_plan_test.go:280-315. Closing as completed by #15767.


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

    — 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