Repository navigation
feat(providers): add OPENAI_DAYBREAK to send access_programs.cyber - #13854
Merged
Merged
Conversation
When OPENAI_DAYBREAK is true, the built-in OpenAI provider adds access_programs.cyber to every request, with the value picked from the model per OpenAI's Daybreak guide. Models outside the table get no field, and turning the setting off removes it from saved sessions. Fixes #13826 Co-authored-by: Duncan <dcfd242e557282d7a1e2cf2e6877522682f1e5c6156dc92ca7d90eaedd3b0f95@buzz.block.builderlab.xyz> Signed-off-by: Will Pfleger <wpfleger@block.xyz>
Contributor
|
Documentation preview deployed: https://pr-13854.goose-pr-previews-poc.pages.dev |
…_DAYBREAK Match Daybreak models case-insensitively, pass the config into apply_openai_request_params so tests can use an isolated config.yaml, and add tests for effort-suffixed names and cross-family subagents. Co-authored-by: Duncan <dcfd242e557282d7a1e2cf2e6877522682f1e5c6156dc92ca7d90eaedd3b0f95@buzz.block.builderlab.xyz> Signed-off-by: Will Pfleger <wpfleger@block.xyz>
wpfleger96
force-pushed
the
duncan/openai-daybreak
branch
from
November 26, 2026 21:57
338d447 to
e4050c8
Compare
wpfleger96
marked this pull request as ready for review
November 27, 2026 16:41
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
jamadeo
approved these changes
Nov 30, 2026
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.
Fixes: #13826
Summary
Adds
OPENAI_DAYBREAK, following the design agreed on the issue. When it'strue(env first, thenconfig.yaml), the built-in OpenAI provider sendsaccess_programs: {"cyber": <value>}on every request, with the value picked from the model. When it's unset orfalse, nothing is sent.It works like
OPENAI_STORE:apply_openai_request_paramsaddsaccess_programsto the model'srequest_params. When the setting is off, or the model isn't in the table, it removes the key instead, so saved and resumed sessions stop sending it. The function now takes theConfigas an argument, so tests can give it an isolatedconfig.yaml.The value comes from the model table in OpenAI's Daybreak guide, kept in one function,
daybreak_access_program. It matches the model name exactly, ignoring case, after removing any effort suffix (gpt-6.1-sol-high→gpt-6.1-sol):access_programs.cybergpt-6-sol,gpt-6-luna,gpt-6-astra,gpt-6.1-sol,gpt-6.1-terra,gpt-6.2-sol,gpt-6.2-astradaybreak_bluegpt-6-cyber,gpt-5.6-cyber,gpt-5.5-cyber-previewdaybreak_redgpt-4o,gpt-5, ...)The guide says to send the value listed for the model even when the org has a higher approval level (for example,
gpt-6.1-solrejectsdaybreak_red), so each model gets exactly one value. A new model, or a dated snapshot name, needs its own entry in the table.Which requests get it:
apply_openai_request_paramsruns only when the provider isopenai.request_paramsinto the body, so oi-kit doesn't change.model_config_from_user_config_with_session_settings, which picks the value for its own model.access_programsisn't one of the settings a subagent copies from its parent session.complete_one_shot.Docs: an
OPENAI_DAYBREAKrow next toOPENAI_STOREinproviders.md, linking the guide.Testing
cargo fmt --check,cargo clippy -p goose --all-targets -- -D warnings, andcargo test -p goose --lib model_config(34 passed). The tests inmodel_config::daybreak_tests:gpt-6.1-sol-high,gpt-6-cyber-xhigh) and mixed case (GPT-6-Cyber).config.yaml, so the machine's own goose config can't affect them.gpt-4oorgpt-5: no field.OPENAI_DAYBREAK=truein env, throughmaterialize_model_config, to the body built bycreate_responses_request.gpt-6.1-solparent, agpt-6-cybersubagent getsdaybreak_redand agpt-4osubagent gets no field.The live check from the issue's verification plan is still to do: run with a Daybreak key, and confirm that a mismatched value returns
400 invalid_access_program, which proves the field is sent. We'll post the result here.