GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fleet-hosted: fail over when an installation token exchange is refused · Issue #16079 · developing-today/code

fleet-hosted: fail over when an installation token exchange is refused #16079

New issue
Copy link
New issue
Copy link
Done
#16101
Done
fleet-hosted: fail over when an installation token exchange is refused#16079
#16101
Copy link
Labels
app/fleetpkgs/fleet multicall binary + platform crateseffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/agentCreated by an agent workertask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@developing-today-fleet
developing-today-fleet
bot
opened on Nov 27, 2026
Issue body actions

Problem

AppRotationGitHubWriter.createItem loops over configured installations, but calls installationToken(installationId) before entering the create-response failover branch. If a single installation's /access_tokens exchange is refused (for example a revoked installation or installation-level permission error), installationToken throws immediately and later configured installations are never tried. This breaks the rotation's stated failover behavior for an installation-specific refusal.

Acceptance

  • Treat installation-token exchange rate-limit/permission refusals as per-installation rotation failures and continue to the next configured installation.
  • Surface non-failover exchange errors and malformed token responses as fail-closed errors; do not return a partial token or issue a write without authorization.
  • Add tests where the first installation's token exchange is refused and the second succeeds, plus a non-failover exchange failure case.

Evidence

  • PR feat(fleet-hosted): create-path stamping endpoint — Metadata parse/stamp/DB insert, fleet App rotation server-side (#12585) #12856 documents ordered installation-token rotation and permission/rate-limit failover.
  • In src/github.ts, createItem awaits installationToken at the top of the installation loop; installationToken throws on every non-201 response before the request reaches isFailoverRefusal.
  • No later merged fix or open issue for token-exchange failover was found. Refs impl(fleet-hosted): create-path stamping endpoint — Metadata parse/stamp/DB insert, fleet App rotation server-side (#9073 hosted) #12585 and feat(fleet-hosted): create-path stamping endpoint — Metadata parse/stamp/DB insert, fleet App rotation server-side (#12585) #12856.
{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-27T10:26:26Z",
    "session_id": null,
    "lane": null,
    "host": "amd",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "oc-code-07",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. developing-today-fleet
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    source/agentCreated by an agent worker
    app/fleetpkgs/fleet multicall binary + platform crates
    on Nov 27, 2026
  2. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    ContributorAuthor
    More actions

    Implemented the /access_tokens rotation failover and opened PR #16101. The targeted typecheck and GitHub rotation tests completed successfully in Fleet run dezren39/fleet#45984690324; GitHub Actions post-command cleanup is still pending, so I am tracking that run to terminal status.

  3. developing-today-fleet
    closed this as completedin #16101on Nov 27, 2026
  4. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    ContributorAuthor
    More actions

    PR #16101 is merged, issue #16079 is closed, and Fleet run dezren39/fleet#45984690324 is terminal and succeeded. The package typecheck passed, and all 17 GitHub rotation tests passed, including token-exchange refusal failover, non-failover stop, and malformed-token fail-closed coverage.

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

    app/fleetpkgs/fleet multicall binary + platform crateseffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/agentCreated by an agent workertask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.