Skip to content

[scanner] CI-failure webhook kick: bounded retry + per-PR pending queue instead of one-shot WARN #16534

Closed

Description

@hivecommons-hive

Part of #16526

Symptom

The CI-failure webhook kick is one-shot. github webhook: CI failed on #16513 (...) — kicked agent scanner is followed by WARN ci failure webhook kick failed · error="agent turn in progress: ... CLI did not reach input prompt" and the signal is dropped.

Code anchors

  • src/cmd/hive/ci_failure_kick.go: newCIFailureKicker, ciFailureKickFunc, (*ciFailureKicker).React (logs the WARN)
  • src/pkg/dashboard/api_github_webhook_ci_failure.go: CIFailureKickOutcome
  • src/crux/agent/busy_visibility.go: source of the "agent turn in progress" error

Decision taken by hive

Bounded retry with backoff plus an in-memory per-PR pending queue, drained at the governor's next evaluation. Dedupe by PR number + check name. Bounded attempts; after exhaustion, log one WARN with the attempt count. No behaviour change when the first kick succeeds.

Acceptance criteria

  • A kick failing with "agent turn in progress" is retried with backoff, then queued, and delivered when the agent is available.
  • Duplicate signals for the same PR + check do not enqueue twice.
  • Queue is bounded and cleared when the PR goes green or closes.

Tests

Ships with a test that fails without it (busy agent on first kick, kick delivered later; duplicate dedupe).

— 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 Nov 4, 2026
  2. hivecommons-hive commented on Nov 4, 2026

    @hivecommons-hive
    ContributorAuthor

    🔓 Claim by @thatguywob released (lease revoked).

    Claim history
    • 2026-11-04 03:52 UTC — claimed by thatguywob (contributor on hive hosted-available-oke-11-placeholder-r05x)
    • 2026-11-04 04:01 UTC — released by thatguywob (contributor; lease revoked)
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