Skip to content

[NO-JIRA] Role recipes set their own thinking effort (settings.thinking_effort) - #18

Merged
johnnymo87 merged 3 commits into
patched/v1.54.0from
role-effort
Nov 20, 2026
Merged

johnnymo87 merged 3 commits into
patched/v1.54.0from
role-effort

Conversation

@johnnymo87

Copy link
Copy Markdown
Owner

Description

  • A recipe's settings can now carry thinking_effort (off|low|medium|high|max). When a delegate's role recipe sets it, summon.rs resolve_model_config applies it after the parent's reasoning params are inherited, on both branches (same model as the parent, and a different model). Recipes without it keep today's behaviour: inherit the lead's thinking_effort, else GOOSE_THINKING_EFFORT.
  • Why: a worker lead is set to Opus effort medium per session (ACP session/set_config_option thinking_effort, which goose already supports), and its SDD roles must stay high. Today they inherit the lead's medium (INHERITED_SESSION_PARAM_KEYS).
  • An invalid value fails the recipe parse. validate_recipe.rs lists the field so its error messages know it. The field is not added to RecipeSettingsDto, and it is ignored for a lead session's recipe in ACP session/new (only delegates read it).

Porting to v1.60.2

The patch stays out of agent.rs. On v1.60.2, recipe::Settings has the same four fields, summon.rs resolve_model_config has the same body (about line 1304), and validate_recipe.rs and acp/server/recipe/conversions.rs are unchanged. So it should cherry-pick with at most context conflicts. The lead side (thinking_effort config option, dispatch.rs) is upstream code, which moves to agents/services.rs there but keeps its config id.

References

  • workstation-6w7i.20 (bead), evidence in workstation-6w7i.18

…rent session

* recipe: add thinking_effort to Recipe Settings
* summon: resolve_model_config applies recipe.settings.thinking_effort
* recipe: include thinking_effort in validate_recipe schema
@johnnymo87
johnnymo87 merged commit 08825a5 into patched/v1.54.0 Nov 20, 2026
5 checks passed
johnnymo87 added a commit to johnnymo87/workstation that referenced this pull request Nov 20, 2026
…k launch --effort (#878)

#### Description

- **goose → patched-1.54.0.16.** Adds two fork patches: the cache-miss
breaker for Gemini delegates (johnnymo87/goose#17, workstation-6w7i.22)
and a role recipe's `settings.thinking_effort` overriding the effort a
delegate inherits from its lead (johnnymo87/goose#18). No session DB
schema change.
- **goose-roles:** every role recipe now sets `thinking_effort: high`.
That keeps Gemini and Opus roles at high under a worker lead running at
medium. The build now checks that the pinned goose knows the field: an
older goose silently ignores it, so a bogus value must fail `goose
recipe validate`.
- **honk → 447fa5b:** `honk launch --effort <level>` sets a new
session's thinking effort (johnnymo87/honk#38). stall-watch will launch
goose workers with `--effort medium` in a follow-up, after this is live.
Coordinators and every other goose session keep goose-serve's
`GOOSE_THINKING_EFFORT=high`.
- goose-serve does not restart on switch (restartIfChanged=false), so
the new goose takes effect at the next goose-serve restart.

#### References

- workstation-6w7i.20, workstation-6w7i.22 (beads)
johnnymo87 added a commit that referenced this pull request Nov 22, 2026
…ng_effort) (#18)

* [NO-JIRA] Delegate role recipes can set thinking effort overriding parent session

* recipe: add thinking_effort to Recipe Settings
* summon: resolve_model_config applies recipe.settings.thinking_effort
* recipe: include thinking_effort in validate_recipe schema

* [NO-JIRA] patched-release: run the role thinking-effort tests

* [NO-JIRA] patched-release: header note

Ported from 08825a5 onto v1.60.2.
Adaptation: added thinking_effort field to recipe::Settings, validate_recipe schema, conversions, and summon.rs (create_subagent, build_adhoc_recipe, and resolve_model_config); ported unit tests; deferred CI workflow changes to dedicated CI commit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant