feat: add subscription-first API billing fallback - #31
Merged
Conversation
Owner
Author
|
Addressed all five review findings in separate commits:
Validation:
Windows volume lifecycle is covered by platform simulations with a fake Docker executable, including successful fallback, failed execution, cleanup failure, and initialization timeout. No live Windows/Docker validation was available. No findings deferred. Review findings originated in the conversation; there were no GitHub review threads to resolve. |
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.
Codex experiments requesting GPT-5.4 failed when authenticated through ChatGPT, while Claude experiments stopped at shared subscription usage limits. This change defaults noninteractive Claude/Codex runs to subscription-first billing and resumes eligible failures once through paid authentication.
--billing auto|subscription|api,HEADLESS_BILLING, and per-agent config, in that precedence order. GPT-5.4 and its dated snapshot use OpenAI API directly. Codex's paid route usesCODEX_API_KEY/OPENAI_API_KEY; Claude's uses Amazon Bedrock with existing AWS credentials.Validation:
Operational notes: paid backup credentials must be available inside the execution environment; provider limits still apply and there is no local dollar cap.
--billing subscriptiondisables paid fallback. Agentic Scientist's companion branch pins this exact Headless revision (79bbe66f0fc48557eed9b878dd79daf0ef9487e4).