Skip to content

fix(scheduler): terminalize permanently invalid targets - #1436

Open
mnkj0021 wants to merge 5 commits into
microsoft:mainfrom
mnkj0021:fix/1395-terminalize-unavailable-targets
Open

mnkj0021 wants to merge 5 commits into
microsoft:mainfrom
mnkj0021:fix/1395-terminalize-unavailable-targets

Conversation

@mnkj0021

@mnkj0021 mnkj0021 commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1395

Summary

  • terminalize pending requests pinned to deleted agents or missing/retired exact agent versions
  • preserve pending recovery for missing agents, temporary agent unavailability, queue-less targets, and versionless requests
  • keep queue-movement recovery intact and never substitute a different active agent version
  • persist a clear failure message plus the existing machine-readable agent_deleted / agent_version_unavailable error codes
  • add scheduler regression coverage for permanent invalidity, temporary unavailability, queue movement, and exact-version affinity

Validation

  • corepack pnpm --filter scheduler build — passed on a fresh recheck
  • corepack pnpm exec vitest run apps/scheduler/src/request-scheduler.test.ts — 18/18 passed
  • git diff --check — passed
  • upstream Scope CI, lint, build, unit tests, gitleaks, notice and CLA checks are green
  • branch is current with upstream main (0 commits behind)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@mnkj0021
mnkj0021 force-pushed the fix/1395-terminalize-unavailable-targets branch from 5107336 to e8b0a09 Compare September 30, 2026 02:00
@mnkj0021
mnkj0021 force-pushed the fix/1395-terminalize-unavailable-targets branch from e8b0a09 to 75659d9 Compare September 30, 2026 03:58
@manekinekko Wassim Chegham (manekinekko) added area: scheduler language: javascript Work involving JavaScript code, tooling, or dependencies. topic: testing Test coverage, test infrastructure, and validation quality. topic: reliability Availability, fault tolerance, recovery, and consistent operation. type: bug Incorrect behavior or a regression that needs fixing. labels Oct 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: scheduler language: javascript Work involving JavaScript code, tooling, or dependencies. topic: reliability Availability, fault tolerance, recovery, and consistent operation. topic: testing Test coverage, test infrastructure, and validation quality. type: bug Incorrect behavior or a regression that needs fixing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Terminalize requests pinned to permanently unavailable agent versions

3 participants