Skip to content

[scanner] Governor: per-PR deferred fix-kick queue position + dashboard 'fixer queued, N ahead' #16537

Closed

Description

@hivecommons-hive

Part of #16526

Blocked by #16536 (fallback-routing child): it reports the deferred state that child introduces.

Symptom

Deferred fix kicks leave no trace. The dashboard shows nothing for PRs awaiting a fixer.

Code anchors

  • src/cmd/hive/eval_cycle_seams.go: dispatchAgentKicks (deferral point)
  • src/cmd/hive/review_kick_order.go: kickLaneFairness.Displaced / ObserveCycle (existing displacement bookkeeping to model on)
  • src/pkg/dashboard/api_governor.go (existing governor status endpoint, e.g. GET /api/governor/pr-models in src/pkg/dashboard/api.go) to expose queue state
  • Dashboard frontend component that renders PR stage/activity

Decision taken by hive

Record per-PR queue-position bookkeeping in the governor when a fix kick is deferred (ordered by first-deferred time, cleared on delivery/PR close). Expose it additively as optional fields (fixer_queue_position, fixer_queue_ahead) on the existing governor endpoint in api_governor.go, and add a dashboard hint fixer queued, N ahead. Existing consumers are unaffected.

Acceptance criteria

  • A deferred fix kick yields a queue position per PR; position drops as earlier kicks are delivered.
  • The hint is shown only when queued.
  • JSON stays backward compatible (omitempty).

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