Skip to content

Add durable job-capacity admission before scale-set polling #961

Open

Description

@promptinprod

Outcome

Extend #955 with durable job-capacity ownership before scale-set session creation or positive polling. Depends on #960 and #959. Implementation: #962. Contribution owner: @promptinprod.

Proposed behavior

  • Explicit experimental opt-in; preserve default and VM-only protocol behavior.
  • Reserve a persistent capacity credit before advertising new capacity.
  • Record request identities and acquisition intent before external effects.
  • Keep ambiguous outcomes charged; do not blindly retry uncertain acquisition.
  • Process known lifecycle events while new admission is closed.
  • Bind the existing credit to VM creation, and require terminal evidence plus confirmed cleanup before reuse.

The first implementation supports one permanently owned slot per set and requires explicit fresh-set approval. It does not automatically transfer or retire credits. A lost positive poll can park further admission across restart pending authoritative reconciliation; zero capacity is not a proven immediate revocation barrier.

Synthetic broker/provider fixtures and isolated database tests cover concurrency, replay, stale health, drain, budget reduction and migration. Real-service assignment/recovery behavior remains a separate validation requirement.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions