Repository navigation
[NO-JIRA] Per-session settings on the state machine: settings/set {cacheTtl, recipe} and maxTurns (R8) - #25
Closed
johnnymo87 wants to merge 0 commit into
Closed
johnnymo87 wants to merge 0 commit into
johnnymo87 wants to merge 0 commit into
Conversation
johnnymo87
force-pushed
the
r8-settings-set
branch
from
November 22, 2026 06:00
5da2220 to
a6551d6
Compare
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.
Description
Ports the fork's per-session settings onto the v1.60.2 state machine (R8+R9, workstation-6w7i.26.4.1). stall-watch calls
settings/seton every coordinator session and fails closed without it; honk sendsmaxTurns._goose/unstable/session/settings/set {sessionId, cacheTtl?, recipe?}cacheTtl(5mor1h) is pinned on the session's model config.recipeis validated, rendered with the session's parameter values (scheduled sessions keep the template), and stored on the session row. On 1.60 the recipe and final_output operations read that row every turn, so nothing is applied in memory. This is simpler than 1.54.retryandsub_recipesare dropped before storing. Unlike 1.54, 1.60 would act on them every turn, and aretryblock could truncate a coordinator's history.invalid cacheTtl:andinvalid recipe:(invalid_params) leave the row as it was, and an unknown session returns resource_not_found.session/prompt _meta.goose.maxTurnstakes a positive integer and bounds the run. Any other value is invalid_params.acp/server/session_settings.rsandcustom_requests/session_settings.rs. Upstream files only get registration lines.rollingMemorycomes in R12 (.26.4.3). Until then the field is ignored.Tests: 4 unit tests, and 6 integration tests ported from 1.54 (
tests/acp_session_settings_test.rs). All of them are in the patched-ci exact-test list. The tests check for final_output in the provider request, because 1.60'stools/listonly lists extension tools.Consumer note (stall-watch, not this PR):
_goose/unstable/tools/listno longer listsrecipe__final_output. Thetools=Falseguard athonk_transport.py:1183expects it. Production callers all passtools=True, so only tests reach that guard.References