Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,7 @@
cd ${self}
python3 pkgs/goose-roles/test_gen_goose_roles.py 2>&1 | tee "$TMPDIR/gr.txt"
grep -q '^OK' "$TMPDIR/gr.txt" || { echo "GATE FAILURE: goose-roles suite did not pass." >&2; exit 1; }
grep -q '^Ran 15 tests' "$TMPDIR/gr.txt" || { echo "GATE FAILURE: expected 15 tests." >&2; exit 1; }
grep -q '^Ran 16 tests' "$TMPDIR/gr.txt" || { echo "GATE FAILURE: expected 16 tests." >&2; exit 1; }
grep -q 'skipped' "$TMPDIR/gr.txt" && { echo "GATE FAILURE: a test was skipped." >&2; exit 1; }
touch $out
'';
Expand Down
9 changes: 9 additions & 0 deletions pkgs/goose-roles/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,13 @@ runCommand "goose-roles" {
for f in $out/roles/*.yaml $out/unscoped.yaml; do
goose recipe validate "$f" || { echo "goose-roles: $f failed goose recipe validate" >&2; exit 1; }
done
# settings.thinking_effort only works on a goose that knows the field; an
# older one ignores unknown settings keys, and the roles would silently inherit
# their lead's effort (workstation-6w7i.20). A goose that knows it rejects a
# bogus value, so require that rejection.
sed 's/^ thinking_effort: high$/ thinking_effort: bogus/' $out/roles/implementer.yaml > $TMPDIR/effort-probe.yaml
grep -q '^ thinking_effort: bogus$' $TMPDIR/effort-probe.yaml || { echo "goose-roles: effort probe did not rewrite thinking_effort" >&2; exit 1; }
if goose recipe validate $TMPDIR/effort-probe.yaml >/dev/null 2>&1; then
echo "goose-roles: this goose accepts settings.thinking_effort: bogus, so it ignores the field (needs patched-1.54.0.16+)" >&2; exit 1
fi
''
11 changes: 10 additions & 1 deletion pkgs/goose-roles/gen_goose_roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@
IMPLEMENTER_MAX_TURNS = 250
READ_ONLY_MAX_TURNS = 80

# settings.thinking_effort (goose fork patch, workstation-6w7i.20) overrides the
# effort a delegate would otherwise inherit from its lead (INHERITED_SESSION_PARAM_KEYS).
# Every role runs high, as opencode's SDD roles (variant high) and reviewers do, so
# a worker lead launched at medium (`honk launch --effort medium`) does not drag its
# roles down. An older goose ignores the unknown key silently, so default.nix
# probes that the pinned goose knows it (a bogus value must fail validation).
ROLE_THINKING_EFFORT = "high"


class GenError(Exception):
pass
Expand Down Expand Up @@ -131,7 +139,8 @@ def build_role(role, text, *, ro_shell_cmd, provider, opus_model, sonnet_model):
"extensions": exts,
"settings": {"goose_provider": provider,
"goose_model": map_model(fm.get("model"), opus_model, sonnet_model, provider),
"max_turns": READ_ONLY_MAX_TURNS if ro else IMPLEMENTER_MAX_TURNS},
"max_turns": READ_ONLY_MAX_TURNS if ro else IMPLEMENTER_MAX_TURNS,
"thinking_effort": ROLE_THINKING_EFFORT},
}


Expand Down
8 changes: 7 additions & 1 deletion pkgs/goose-roles/test_gen_goose_roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class GenTest(unittest.TestCase):
def test_read_only_role(self):
r = g.build_role("oracle", RO, **KW)
self.assertEqual(r["settings"], {"goose_provider": "gcp_vertex_ai", "goose_model": "claude-opus-5-5",
"max_turns": 80})
"max_turns": 80, "thinking_effort": "high"})
self.assertEqual(r["description"], "Read-only advisor — architecture")
exts = {e["name"]: e for e in r["extensions"]}
self.assertEqual(set(exts), {"developer", "analyze", "skills", "ro-shell"})
Expand All @@ -69,6 +69,11 @@ def test_max_turns_per_role(self):
for src in (RO, EXAMPLES):
self.assertEqual(g.build_role("x", src, **KW)["settings"]["max_turns"], 80)

def test_every_role_thinks_high(self):
# A medium worker lead must not drag its roles down (workstation-6w7i.20).
for src in (RO, RW, EXAMPLES):
self.assertEqual(g.build_role("x", src, **KW)["settings"]["thinking_effort"], "high")

def test_no_role_gets_summon(self):
for src in (RO, RW, EXAMPLES):
names = [e["name"] for e in g.build_role("x", src, **KW)["extensions"]]
Expand Down Expand Up @@ -120,6 +125,7 @@ def test_real_assets(self):
ro = "ro-shell" in [e["name"] for e in r["extensions"]]
self.assertEqual(ro, role != "implementer", role)
self.assertEqual(r["settings"]["max_turns"], 80 if ro else 250, role)
self.assertEqual(r["settings"]["thinking_effort"], "high", role)
self.assertTrue(os.path.isfile(os.path.join(out, "unscoped.yaml")))

def test_unreachable_provider_rejected(self):
Expand Down
20 changes: 16 additions & 4 deletions pkgs/goose/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@
# live voice is active, and clears the session's stale context usage.
# Advertised as agentCapabilities._meta.goose.truncateFromMessage. honkd
# uses it for /undo in honk chat.
# 22. Cache-miss breaker for Gemini delegates (port of opencode's
# cache-miss-breaker, workstation#840): 10 consecutive model calls at
# >=50K prompt tokens with zero cache reads stop the delegate, and the lead
# is told to re-dispatch it once. GOOSE_CACHE_MISS_BREAKER=off disables it;
# _STEPS / _MIN_CONTEXT override the thresholds (johnnymo87/goose#17).
# 23. A recipe's settings.thinking_effort (off|low|medium|high|max) overrides
# the effort a delegate would inherit from its lead session; recipes without
# it inherit as before. goose-roles sets high on every role, so a worker
# lead launched at medium (`honk launch --effort medium`) keeps its roles at
# high (johnnymo87/goose#18, workstation-6w7i.20).
#
# WHY A PINNED RELEASE AND NO AUTO-BUMP. The pigeon goose runner depends on
# measured facts about the ACP server: the /acp path, ?token= auth, the
Expand Down Expand Up @@ -133,6 +143,8 @@
# schema change.
# patched-1.54.0.15 (2026-11-20) adds patch 21 (johnnymo87/goose#14); no
# schema change.
# patched-1.54.0.16 (2026-11-20) adds patches 22-23 (johnnymo87/goose#17,
# #18) and an aarch64-apple-darwin asset (#15, #16); no schema change.
#
# Release assets are byte-for-byte what upstream's workflow produces for the
# patched source (gnu, default features), so measurements of upstream behaviour
Expand All @@ -154,8 +166,8 @@
}:

let
version = "1.54.0-patched.15";
tag = "patched-1.54.0.15";
version = "1.54.0-patched.16";
tag = "patched-1.54.0.16";

# Upstream ships a bare `goose` binary at the archive root (not bin/goose).
# gnu, not musl: the gnu asset is the one the integration was measured
Expand All @@ -167,11 +179,11 @@ let
platforms = {
"aarch64-linux" = {
asset = "goose-aarch64-unknown-linux-gnu.tar.gz";
hash = "sha256-YifQj3xYe56KQicb/vyAvo7+rFpg6/gCdnNIC0eaMYw=";
hash = "sha256-UC8QFkHK8fO0ZimBgrUZlyDyBDpug7oWpFJZdfMm/5s=";
};
"x86_64-linux" = {
asset = "goose-x86_64-unknown-linux-gnu.tar.gz";
hash = "sha256-Bwkat3rT+Oo0whw5Qwsn0LlKe7EfkZxAkDa4cauj/9M=";
hash = "sha256-3yNA4y7OlTRFyQ9hzfBtrrnY1LMA1/aKLdj5t7Gf9iU=";
};
"aarch64-darwin" = {
asset = "goose-aarch64-apple-darwin.tar.gz";
Expand Down
Loading