Skip to content

[scanner] Fixer lane: route fix kicks to fallback agent when primary fixer is undeliverable #16536

Closed

Description

@hivecommons-hive

Part of #16526

Symptom

With review.fixer_agent (default scanner) wedged in a long turn, the governor logs kick undeliverable while agent turn in progress (kicks_undeliverable 1→10) and agent busy: deferring kick every cycle. FIX-BEFORE-NEW fix kicks are never delivered, leaving red hive PRs unowned for 30–90 min.

Code anchors

  • src/cmd/hive/eval_cycle_seams.go: dispatchAgentKicks (logs agent busy: deferring kick)
  • src/cmd/hive/main_sweeps.go: resolveRedPRFixer, redPRFixOwner (candidate selection)
  • src/cmd/hive/review_kick_order.go: orderReviewFixKicksFirst, kickLaneFairness
  • src/cmd/hive/main_eval_cycle.go: FIX-BEFORE-NEW kick assembly
  • src/pkg/config/config.go: Review.FixerAgent; src/pkg/dashboard/api_config_review.go
  • src/crux/agent/busy_visibility.go: markKickUndeliverableLocked, kickUndeliverableTranscriptLiveness
  • src/crux/api/api.go: KicksUndeliverable field
  • src/hive.yaml.example, src/docs/review-swarm.md

Decision taken by hive

Add a new optional review.fixer_fallback_agents list (unset = today's behaviour). When the primary fixer's kicks_undeliverable reaches a threshold (new optional review.fixer_fallback_after_undeliverable, with a sensible default only applied when the list is set) or its transcript has been silent past a threshold, route the fix kick to the next available fallback agent via resolveRedPRFixer. Do NOT interrupt the stuck turn, since that destroys in-flight work. Document the knobs in hive.yaml.example and review-swarm.md.

Acceptance criteria

  • Unset config: behaviour unchanged.
  • With fallbacks set and primary undeliverable past the threshold, the fix kick goes to the first available fallback; the primary regains the work when it recovers.
  • The routing is logged.

Tests

Ships with a test that fails without it.

— 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 04:01 UTC — claimed by thatguywob (contributor on hive hosted-available-oke-11-placeholder-r05x)
    • 2026-11-04 04:08 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