Skip to content

fix(pipeline): reserve API headroom for urgent tasks - #75

Merged
ivanarama merged 1 commit into
mainfrom
fix/priority-budget-headroom
Sep 17, 2026
Merged

ivanarama merged 1 commit into
mainfrom
fix/priority-budget-headroom

Conversation

@ivanarama

Copy link
Copy Markdown
Owner

Что изменено

  • priority_one_headroom сохраняет отдельный REST/Search/GraphQL запас для задач PromptPilot с приоритетом 1
  • задачи приоритетов 2–10 получают повышенный effective floor; приоритет 1 может использовать запас
  • full refresh статистики также считается низкоприоритетной работой и не съедает запас
  • initial preflight и финальная атомарная reservation проверяют один effective floor
  • при общем GitHub token применяется покомпонентный максимум; профиль без costs блокируется fail-closed
  • dashboard показывает резерв и его назначение

Проверки

  • python -m compileall -q promptpilot tests
  • python -m pytest -q -W error — 612 passed
  • git diff --check origin/main...HEAD
  • независимый аудит correctness/race/backward compatibility — SAFE

@ivanarama
ivanarama merged commit a1b5477 into main Sep 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant