Skip to content

[NO-JIRA] Carry the mechanical patches and CI onto v1.60.2 - #21

Merged
johnnymo87 merged 16 commits into
patched/v1.60.2from
port-1.60.2-mechanical
Nov 22, 2026
Merged

johnnymo87 merged 16 commits into
patched/v1.60.2from
port-1.60.2-mechanical

Conversation

@johnnymo87

Copy link
Copy Markdown
Owner

Description

Starts patched/v1.60.2: the fork's patches that carry over to upstream v1.60.2 without a rewrite, plus CI (workstation-6w7i.26.3).

No tag. The release waits for the rewrites goose-serve needs (workstation-6w7i.26.4).

References

  • workstation epic workstation-6w7i.26 (bead .26.3)

…ll build (#1)

* nix: dev shell builds goose-cli and runs the patched-release tests with no overrides

- flake.lock: bump rust-overlay to e90fafa7 so rust-toolchain.toml's 1.99.0 resolves
  (nixpkgs unchanged).
- devShell: rustPlatform.bindgenHook (LIBCLANG_PATH, BINDGEN_EXTRA_CLANG_ARGS) and cmake
  for llama-cpp-sys-2, and RUSTY_V8_ARCHIVE from the same fetchurl the package uses, so
  v8-goose's build script does not need python or curl on PATH.
- Cargo.toml: build gemm-f16 at opt-level 1 in the dev profile. Unoptimized, its NEON
  fp16 asm helpers fail to assemble on aarch64-linux (sarah-quinones/gemm#31).

* license: Apache-2.0 4(b) modification notices on the upstream files this branch changes

One line at the top of each upstream file the fork modifies: the four patched goose
sources, the root Cargo.toml and flake.nix. The vendored acp-http files already carried
a notice; it now also names who modified them and when. Cargo.lock and flake.lock are
generated (no comment syntax that survives regeneration) and are left as is.

* nix: only pin RUSTY_V8_ARCHIVE in the dev shell while Cargo.lock's v8 matches the hashed release

On a v8 bump the dev shell falls back to v8-goose's own download instead of failing
on a stale fetchurl hash; a missing v8 package no longer breaks evaluation.

Ported from 526b1f4 onto v1.60.2.
Adaptation: dropped obsolete v8 devShell bindings (upstream replaced v8 with Boa); added license notices only to files our carried patches modify (dropped shell.rs and builder.rs notices for dropped patches 1 and 4).
…ERTEX_SESSION_HEADER renames the session header

Ported from 680fffe onto v1.60.2.
Adaptation: clean cherry-pick; ran cargo fmt.
…fresh

Ported from 3245a99 and 6627940 onto v1.60.2.
Adaptation: squashed 6627940 doc comment fixup into 3245a99; clean cherry-pick.
… (patches 5/6)

- vendor: agent-client-protocol-http 2.2.0 from crates.io via [patch.crates-io]
- acp-http: Acp-Takeover: 1 on GET /acp takes a held SSE stream instead of answering 409 (HTTP mailbox only)
- acp-http: SSE event ids, a bounded per-stream replay ring, and Last-Event-ID resume (HTTP mailbox only)

Ported from 35b6b47, 80a9cdc, and c00f848 onto v1.60.2.
Adaptation: squashed vendored acp-http 2.2.0, takeover, and SSE replay into one commit; verified upstream v1.60.2 Cargo.lock resolves agent-client-protocol-http 2.2.0; adapted [patch.crates-io] and workspace members in Cargo.toml without vendor/v8.
…less GOOSE_CACHE_TTL is set

Ported from fa913cb onto v1.60.2.
Adaptation: carried only the model_config with_rederived_cache_ttl portion of fa913cb (patch 7); inverted upstream CLI test resume_drops_saved_cache_ttl_when_config_absent to resume_keeps_saved_cache_ttl_when_config_absent; settings/set and maxTurns left for rewrite beads.
… directories (#6)

* skills: GOOSE_GLOBAL_SKILLS=false limits discovery to project skill dirs

goose always scans the global skill roots found through $HOME and the config
dir (~/.agents/skills, ~/.claude/skills, ~/.config/agents/skills,
<config>/skills, user-scope plugin skill dirs) alongside the working
directory's. A process that must see only its own project's skills -- an
unattended recipe run from a dedicated directory, on a host whose interactive
sessions keep a large global library -- had no way to opt out.

GOOSE_GLOBAL_SKILLS=false drops every global directory from discovery
(all_skill_dirs_with_config) and refuses path resolution into them
(inferred_discoverable_skill_root). The latter needs an explicit check, not
just skipping the roots: ~/.agents/skills also matches the generic
<dir>/.agents/skills project shape. Unset or "true" keeps upstream
behaviour. Any other value is treated as "false" with a warning, since a
process setting the variable at all is asking for isolation.

Builtin skills are unaffected. Tests cover default, true, false, an
unrecognised value, and path resolution into home and config roots.

* ci: run the GOOSE_GLOBAL_SKILLS tests before releasing

* skills: a non-UTF-8 GOOSE_GLOBAL_SKILLS also means false; document the env-only, fail-toward-isolation choice

Ported from e02c4e8 onto v1.60.2.
Adaptation: clean cherry-pick into crates/goose/src/skills/mod.rs; resolved CI workflow conflict (CI workflows deferred to dedicated commit); ran cargo fmt.
…the parent session in request headers (#12)

* gcp_vertex_ai: GCP_VERTEX_GEMINI_HOST routes Gemini to its own proxy; session headers name the parent session

GCP_VERTEX_GEMINI_HOST overrides the host for Google-published models only, so
one goose process reaches Claude through one proxy (GCP_VERTEX_HOST) and Gemini
through another (a cost-capture gateway). GCP_VERTEX_SESSION_HEADER now takes a
comma-separated list, so cfp's x-opencode-session and a gateway's x-session-id
both see goose sessions, and GCP_VERTEX_PARENT_SESSION_HEADER sends a delegated
subagent's parent session id, from a process-wide map that
SessionUpdateBuilder::apply fills when a session is linked to a parent.

* session_manager: a new session never inherits a stale parent link; a child loaded from storage registers its parent

Ported from d8a0906 onto v1.60.2.
Adaptation: resolved conflict in gcpvertexai.rs alongside upstream map_429_retry; adapted session_manager.rs to also clear parent link on new create_session_with_id; deferred CI workflow changes to dedicated CI commit.
…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.
…ock_stop (#20)

The Anthropic SSE parser accumulated thinking_delta and signature_delta and
yielded the whole block at content_block_stop, so ACP clients saw nothing
while the model thought and then the whole thought at once. Yield each
thinking_delta as an unsigned Thinking block with the message id, and at
content_block_stop yield only the signature. Conversation::push and
collect_stream already merge unsigned deltas and adopt a trailing signature
(upstream aaif-goose#9162), so storage still holds one signed block per thinking block.
Omitted thinking (no deltas) still yields its signed empty block.

The toolshim accumulator in reply_parts only joined text, so it gets the same
thinking merge rules.

Ported from 3a1f730 and 47c99a8 onto v1.60.2.
Adaptation: resolved test conflict in anthropic.rs alongside upstream aaif-goose#13029; included Vertex summarized-thinking test from 47c99a8 (formats/gcpvertexai.rs); dropped 9180e7e (upstream aaif-goose#13029 already present); deferred CI workflow changes to dedicated CI commit.
Ported from ed1490e, 7df6758, 543efe6, e41c1ec, c658412, and 34d6bf3 onto v1.60.2.
Adaptation: consolidated CI release workflows (.github/workflows/patched-release.yml, patched-build-macos.yml, patched-release-darwin.yml) into one commit; re-synced patched-build-macos.yml with upstream v1.60.2 bundle-macos.yml action pin versions and macOS deployment target 13.0; rewrote test-patches filter list to name only unit tests for carried patches on this branch (patches 2, 3, 5, 6, 7, 13, 19, 23, 25).
Add Apache-2.0 4(b) modification notices to acp/server/recipe/conversions.rs,
recipe/validate_recipe.rs, and tests/acp_server_test.rs for patch 23
(recipe settings.thinking_effort).
…ng for thinking

- reply_parts: keep the provider stream retry window open until the first
  non-thinking content item is yielded; on a retryable error during thinking,
  restart the stream (unsigned thinking is dropped on replay on Vertex/Claude).
  Add test asserting thinking deltas before transient error retries and succeeds.
- anthropic: wrap thinking block start and delta yields in `if held.is_empty() {
  yield } else { held.push(..) }` so that once a tool_use completes, subsequent
  thinking blocks are held until message_stop, preserving ordering.
  Add test for thinking after a completed tool_use.
…tches filter

Add test_streaming_omitted_thinking and test_streamed_thinking to the
goose-provider-types test filter, and thinking_deltas_before_transient_error
to the goose test filter in patched-release.yml.
…d assert test filters match

- Add .github/workflows/patched-ci.yml triggered on pull_request to branches
  'patched/**' and workflow_dispatch, running Linux CLI build and patched tests.
- Refactor test-patches job into reusable .github/workflows/patched-test.yml
  shared by both patched-ci.yml and patched-release.yml.
- Add per-filter assertion in test-patches: verify each cargo test filter
  matches >= 1 test via `cargo test ... -- --list` before execution, failing
  loudly if any filter matches 0 tests.
- Add gate job named 'patched-ci' in patched-ci.yml for branch protection.
…ed thinking is yielded

Close the retry window in reply_parts.rs as soon as any Thinking block with a
non-empty signature, or any RedactedThinking, has been yielded. This prevents a
post-signing retry from yielding a second signed thinking block under a new
message id, which would be joined by merge_consecutive_messages_for_request into
a single turn with conflicting signed thinking.

Adds test signed_thinking_close_before_transient_error_does_not_retry.
Replace substring test filters in patched-test.yml with explicit lists of each
patch's exact test paths. Before running, each test is checked with --list
--exact to verify it exists, failing if any test is missing, and then tests are
executed with --exact to prevent substring matching on upstream tests.
@johnnymo87
johnnymo87 merged commit 74bf9be into patched/v1.60.2 Nov 22, 2026
12 checks passed
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