docs(config): document R1 turn budgets and add a [goal] example - #5996
Open
7jrxt42BxFZo4iAnN4CX wants to merge 2 commits into
Open
docs(config): document R1 turn budgets and add a [goal] example#59967jrxt42BxFZo4iAnN4CX wants to merge 2 commits into
7jrxt42BxFZo4iAnN4CX wants to merge 2 commits into
Conversation
Contributor
|
Thanks @7jrxt42BxFZo4iAnN4CX for taking the time to contribute. This repository is observing a maintainer-managed PR intake gate in dry-run mode, so this pull request is staying open. This note helps maintainers prepare the allowlist before any enforcement is considered. Please read |
Hmbown
pushed a commit
that referenced
this pull request
Sep 8, 2026
Add providers.openrouter.vendor with strict upstream fallback suppression. Preserve pins across clients, model switches, config reload boundaries, auxiliary requests, and the app-server proxy. Preserve caller restrictions. Capture vendor routing in existing billing, child, and persisted turn receipts; report routing-dependent unknown cost until vendor-specific pricing exists. Correct unsupported routing suffix claims and the stale #5996 goal-step docs. Validation on this isolated d6698f1-based worktree: - codewhale-config lib: 648 passed, 0 failed, 1 ignored. - codewhale-protocol lib: 68 passed, 0 failed. - codewhale-app-server lib: 101 passed, 0 failed. - codewhale-tui lib vendor filter: 20 passed, 0 failed. - TUI cost_status: 19 passed; protocol_parity: 5; route_receipt: 6. Two cost tests overlap the vendor filter; 48 unique TUI tests passed. - web npm test: 411 passed; check:docs and check:facts passed. - cargo fmt --all -- --check and git diff --check passed. - Requested root npm test and npm run check:web: both failed with Missing script because the root package defines neither script. Logs retained. - Mutation proof: disabling shared vendor serialization caused the gateway capture regression to fail (0 passed, 1 failed); exact source restored, then the full gateway suite passed 101/101 again. All request tests use local fixtures. No real provider call, hosted CI, public push, merge, deployment, tag, or release performed. Refs #6007, #5996
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.
Summary
[tui].max_model_stepsand[tui].turn_wall_clock_secs(the R1 finite turnbudgets) were documented only in
config.example.tomlcomments, not in thedocs/CONFIGURATION.mdkey reference. Conversely, the[goal]loop wasdescribed in prose in
CONFIGURATION.mdbut had no commented example block inconfig.example.toml. This PR closes both gaps so a user can find and seteither knob without reading source.
What changed
docs/CONFIGURATION.md: added two bullets to "Core keys" documentingtui.max_model_steps(default 200, clamp 1..=100000,0= default / nounlimited sentinel, ~80% soft landing, exhaustion →
Failedafter onebounded final-report turn, applies to every turn including a single goal
pass) and
tui.turn_wall_clock_secs(default 3600, clamp 30..=86400, humanapproval time excluded, stops before the next billable request). All values
verified against
crates/tui/src/core/engine/turn_budget.rsandturn_loop.rs.config.example.toml: added a fully commented# [goal]example block(
max_continuationsdefault 0 = unlimited,continuation_delay_secondsdefault 0 / cap 86400), matching the "uncomment to enable" style of the file
and mirroring the Goal loop section of
CONFIGURATION.md.No code changes. No behavior changes. Reviewed against the config reference
and the R1/goal sources across two review iterations (0 Critical/Major
remaining).