Repository navigation
fix(pstack): respect provider cooldowns and pool availability - #20
Open
ScriptedAlchemy wants to merge 1 commit into
Open
ScriptedAlchemy wants to merge 1 commit into
ScriptedAlchemy wants to merge 1 commit into
Conversation
Use delegation's project-aware provider constraints when resolving both default and explicit pstack roles. Skip cooling defaults and preserve the visible parent fallback for unavailable targets. Add service regressions for cooling accounts and exhausted or project-restricted pools.
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
pstack resolved exact delegation targets using installation and authentication checks, but did not apply delegation's cooldown and project-aware pool checks. An agent could receive a cooling account or an exhausted pool as its exact target and then have
delegate_taskreject it.Changes
delegationProviderConstraintspredicate for both default role selection and explicit targets.PstackPack.expandComposer.This is the remaining pstack availability follow-up to the integration audit. It targets
mainindependently of #19.Validation
vp run check:changed --serialpassed the native project-memory build, formatting, lint, both knip passes, GraphQL generation check, typechecks for three affected packages, and 95 tests across three files.git diff --checkpassed.Runtime check through
PstackPack.expandComposerwith fixture providers:Delegation continues to recheck availability at dispatch, since quota can change after prompt expansion. Full-suite and build validation remain with CI.
Implemented and verified with GPT-6 Astra Pro in the Codex harness.