Repository navigation
[NO-JIRA] Subagent policy on the state machine: roles dir, default delegate recipe, strict start (R16) - #26
Merged
Conversation
johnnymo87
added a commit
that referenced
this pull request
Nov 22, 2026
…rict extension start) on the state machine Port of patch 16 (fork #9) onto v1.60.2, in the fork-only module platform_extensions/subagent_policy.rs: - GOOSE_SUBAGENT_ROLES_DIR is scanned before every other source; a role file that fails to parse still claims its name (fails closed). - GOOSE_SUBAGENT_DEFAULT_RECIPE gives a delegate whose recipe declares no extensions that recipe's extensions and instructions; a set-but-broken value is an error. The delegate tool text says unscoped delegates are read-only. - With the default recipe set, run_to_end starts the delegate's saved selection before its turn and fails the delegate if any extension did not start. A declared platform extension this goose lacks (skills, removed in 1.60) is dropped at creation, as upstream does. "Declared extensions replace the parent's" is upstream (aaif-goose#12938) and not carried. X-Shepherd-Wake: #26
johnnymo87
force-pushed
the
r16-subagent-policy
branch
from
November 22, 2026 06:17
7d6b9d4 to
7896a97
Compare
…rict extension start) on the state machine Port of patch 16 (fork #9) onto v1.60.2, in the fork-only module platform_extensions/subagent_policy.rs: - GOOSE_SUBAGENT_ROLES_DIR is scanned before every other source; a role file that fails to parse still claims its name (fails closed). - GOOSE_SUBAGENT_DEFAULT_RECIPE gives a delegate whose recipe declares no extensions that recipe's extensions and instructions; a set-but-broken value is an error. The delegate tool text says unscoped delegates are read-only. - With the default recipe set, run_to_end starts the delegate's saved selection before its turn and fails the delegate if any extension did not start. A declared platform extension this goose lacks (skills, removed in 1.60) is dropped at creation, as upstream does. "Declared extensions replace the parent's" is upstream (aaif-goose#12938) and not carried. X-Shepherd-Wake: #26
johnnymo87
force-pushed
the
r16-subagent-policy
branch
from
November 22, 2026 07:32
7896a97 to
2595898
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
This ports patch 16 (fork #9) onto v1.60.2. It is bead workstation-6w7i.26.4.6 (R16). Workstation
goose-config.nixsets both env vars;goose-roles.nixsupplies the roles.GOOSE_SUBAGENT_ROLES_DIR(~expanded) is scanned before any other source, so a repo's.claude/agents/x.mdor.goose/recipes/x.yamlcannot shadow a role. A role file that fails to parse still claims its name, so a broken role fails closed instead of letting a local impostor through..md, undeclared recipes),GOOSE_SUBAGENT_DEFAULT_RECIPEsupplies them, and its instructions are added in front. The delegate does not inherit the parent's tools. A missing, invalid or extension-less default is an error. The delegate tool text says unscoped delegates are read-only.run_to_endtherefore starts the saved selection before the turn and fails the delegate if any extension did not start. A reviewer whosero-shellfailed no longer runs without it.platform_extensions/subagent_policy.rs.summon.rsandsubagent_handler.rsget 3 hook lines.Behaviour to know at cutover:
skills(removed in 1.60), is dropped silently when the delegate is created, as upstream does. Workstation roles that still listskillskeep working, without it.gcp_vertex_ai/anthropic.Tests: 18 exact tests, added to
patched-test.yml. Two of them are end-to-end throughForegroundSubagentRunner, and the strict-start one fails without the hook. Clippy (-p goose --all-targets -D warnings) is clean.References