Repository navigation
/codex: GSTACK_CODEX_EFFORT env default for reasoning effort - #3098
Closed
Lockyer228 wants to merge 2 commits into
Closed
Lockyer228 wants to merge 2 commits into
Lockyer228 wants to merge 2 commits into
Conversation
…rrytan#2975) Manual /codex runs now read GSTACK_CODEX_EFFORT (minimal|low|medium| high|xhigh|max|ultra) as the default model_reasoning_effort for all three modes, mirroring GSTACK_CODEX_MODEL: - unset: per-mode defaults unchanged (review/challenge high, consult medium) - set: every mode uses it; a request-level --xhigh still wins - invalid value: the new gstack-codex-probe check-effort subcommand stops before any paid call with a repair hint (codex-cli itself only rejects an unknown effort at request time; verified on 0.155.1) - manual /codex only: outside-voice callers (autoplan, spec, plan-review) keep their fixed efforts so an operator env default cannot change gstack's internal review budgets Allowlist per the Codex config reference (low/medium/high/xhigh/max/ ultra) plus minimal from the API reasoning guide; levels are model-dependent. Regenerated skill docs via gen:skill-docs; codex skeleton budget raised to 60,100 (measured 59,961) with the measured note. Fixes garrytan#2975
…an#2975) The probe contract was only read from templates, an unknown per-mode default was coerced to medium, and --xhigh told the model to replace a literal the dispatch no longer contains. Co-authored-by: Cursor <[email protected]>
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
capy-ai Bot
pushed a commit
that referenced
this pull request
Oct 11, 2026
…send binaries, codex_effort setting, privacy disclosures (Wave 9 Lane C) (#3144) Outside-review consent (codex_reviews) is enforced in gstack-codex-probe run-with-timeout, gstack-claude-code, gstack-outside-voice run and the autoplan runner (not_run / consent_missing, exit 3; #3102). Codex reasoning effort resolves GSTACK_CODEX_EFFORT, then codex_effort, then each gate's default inside run-with-timeout --effort (D1-A; #3098, closes #2934). README and telemetry privacy disclosures corrected (#1081, #1080, #1150). Co-authored-by: Lockyer <[email protected]> Co-authored-by: Lubos Buracinsky <[email protected]>
Contributor
|
Adopted and adapted in v1.91.92.0 (3b7254a, #3144). |
Closed
4 of 5 tasks
4 of 5 tasks
levi85
pushed a commit
to levi85/gstack
that referenced
this pull request
Oct 14, 2026
…send binaries, codex_effort setting, privacy disclosures (Wave 9 Lane C) (garrytan#3144) Outside-review consent (codex_reviews) is enforced in gstack-codex-probe run-with-timeout, gstack-claude-code, gstack-outside-voice run and the autoplan runner (not_run / consent_missing, exit 3; garrytan#3102). Codex reasoning effort resolves GSTACK_CODEX_EFFORT, then codex_effort, then each gate's default inside run-with-timeout --effort (D1-A; garrytan#3098, closes garrytan#2934). README and telemetry privacy disclosures corrected (garrytan#1081, garrytan#1080, garrytan#1150). Co-authored-by: Lockyer <[email protected]> Co-authored-by: Lubos Buracinsky <[email protected]>
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.
Why (in your own words)
/codexlets an operator pick the model per shell withGSTACK_CODEX_MODEL, but the reasoning effort has no equivalent default: review and challenge are pinned tohighand consult tomedium, the only override is the request-level--xhighflag, and an operator who wants a different standing effort (for examplemaxon a machine that only runs small, cheap models) has to type it on every invocation and cannot reachmaxat all. This change addsGSTACK_CODEX_EFFORT(minimal|low|medium|high|xhigh|max|ultra) as the default effort for manual/codexruns, mirroringGSTACK_CODEX_MODEL: unset keeps today's per-mode defaults exactly, set it becomes the default for all three modes, the request-level--xhighstill wins, and an invalid value stops before any paid call.The value allowlist is the union of the levels documented in the Codex config reference (low, medium, high, xhigh, max, ultra) and the API reasoning guide (minimal); levels are model-dependent, so an unsupported level for a chosen model still fails at request time through the existing Model-not-supported recovery path.
Manual
/codexonly: gstack's own outside reviews (autoplan, spec, plan-review) keep their fixed efforts, so an operator's env default cannot change gstack's internal review budgets.Live evidence
gstack-codex-probe check-effortbefore this change (unknown subcommand, usage + exit 64) and after, on this branch:The generated dispatch lines change from a hardcoded effort to the captured value:
Reviewing
codex execbefore (any env) and after (GSTACK_CODEX_EFFORT=max) on the same branch shows the request carryingmodel_reasoning_effort="max"instead of the per-mode default; the review runs to a PASS/FAIL gate either way. An invalid env stops before the call:Tests (this branch; the check-effort contract test fails against
aad7b02's lack of executable coverage and passes here):Scope
bin/gstack-codex-probe(newcheck-effortsubcommand + usage line);codex/sections/{review,challenge,consult}-mode.md.tmpl(capture_CODEX_EFFORTafter the model/sandbox capture, interpolate${_CODEX_EFFORT:?}in all five dispatch lines, explicit_CODEX_EFFORT=xhighassignment for--xhigh);codex/SKILL.md.tmpl(env contract in "Reasoning effort override" and "Model & Reasoning"); regeneratedcodex/SKILL.md+codex/sections/*.md+llms.txt/agents-digest viagen:skill-docs;test/codex-effort-env.test.ts(new, 5 tests);test/codex-probe-subcommands.test.ts(check-effort in SUBCOMMANDS + behavioral contract);test/helpers/carve-guards.ts(codex skeleton budget 59,350 -> 60,250, measured 60,116, receipted in-comment).xhigh" -c "model=evilrejected exit 1);bun testfree suites for codex + parity + size budgets (726 pass / 0 fail across the touched surface);tsc -p tsconfig.jsonclean;typecheck:testratchet unchanged (865 known, none new);gen:skill-docsidempotent (zero diff on re-run).gen-skill-docs-idempotency --host all(sandboxEPERM mkdir .cursorin the review environment; default-host idempotency and--dry-runpass); a paidxhigh/ultrarun end-to-end (levels accepted per Codex docs; unsupported model/level combinations surface through the existing Model-not-supported path); Windows hosts.Liveness proof (required for external contributors)
Per prior agreement with the maintainer for this contribution, the branch is pushed from the maintainer-known account
Lockyer228(same account as PRs #2641/#2651/#2717, all absorbed into waves with Co-authored-by preserved).gh api user --jq .loginfrom the pushing environment:Checklist
GSTACK PRtyped live into a real surface) or PR author is @garrytan (owner exemption)check-effortextends the existing internalgstack-codex-probehelper, tracked in [feature] /codex: a GSTACK_CODEX_EFFORT env default, like GSTACK_CODEX_MODEL #2975