Sprint 6: Worker Adapter — gh models as a self-metering budgeted fleet worker#61
Merged
Conversation
Spec for the GitHub Models worker adapter — a self-metering, budget-aware fleet worker that closes the dispatch->meter->forecast->route-around loop. Decisions d-wa-1..5. Also corrects the next-session release note (Sprint 5 shipped in stable v1.2.0; rc line closed). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Ryfter
added a commit
that referenced
this pull request
Jun 21, 2026
…sh Gate Finalize plugin 1.3.0-rc.2 -> 1.3.0 (rc line closed). Closes the 7-sprint Baton v2 MVP with Sprint 6 (Worker Adapter, PR #61/#62, d055) and Sprint 7 (Acceptance/Polish Gate, PR #63, d056) on top of v1.2.0. Both gates green (gate 39/39, bootstrap 44/0), 0 open issues. Release notes: docs/releases/2026-06-21-v1.3.0.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Sprint 6 of the Baton v2 economic-conductor MVP. Makes `gh models run ` a first-class, self-metering, budget-aware fleet worker — closing the dispatch → meter → forecast → route-around loop without manual `/baton:usage tick`.
What's new
Decisions (d-wa-1..5)
adapter-marker concept anchor; wrapper not instrumented dispatch; tick-on-real-API-hit; fail-open metering; active saturation driver deferred to its own slice.
Tests
worker-lib 35/35 hermetic (dispatch stubbed via `-Dispatcher`, temp `BATON_HOME`, zero network/model/real-journal) + bootstrap 41 (deploys cleanly). Final opus whole-branch review: READY TO MERGE, 0 Critical / 0 Important (one Minor — bare-429 false-positive — fixed in 16c6b90).
Plugin `1.2.0 → 1.3.0-rc.1`. Spec: `docs/superpowers/specs/2026-06-20-worker-adapter-sprint6-design.md`. Plan: `docs/superpowers/plans/2026-06-20-worker-adapter.md`.
🤖 Generated with Claude Code