feat(sdk): disable_environment_info, hard stop, trampoline loop fix#189
Merged
feat(sdk): disable_environment_info, hard stop, trampoline loop fix#189
Conversation
Add boolean option (default false) to omit date, platform, OS version, and working directory from agent system prompts. Supports Ruby DSL, YAML config, and all_agents defaults with agent-level override. Co-Authored-By: Claude (claude-fudge-flow[1m]) <noreply@anthropic.com>
Add swarm.stop for thread-safe cancellation of running swarms using IO.pipe signaling + Async::Barrier. Add MCP SSL patch to fix OpenSSL 3.6 CRL enforcement breaking HTTPS MCP connections by defaulting to VERIFY_PEER without CRL checks, configurable via mcp_ssl_verify. Co-Authored-By: Claude (claude-fudge-flow[1m]) <noreply@anthropic.com>
…loop Replace mutual recursion between complete() and handle_tool_calls() with a loop in complete(). handle_tool_calls() now returns halt_result or nil instead of recursing back into complete(). This makes stack usage O(1) regardless of tool-call rounds, preventing fiber stack overflow in deep delegation chains. Also adds changelog entries for hard stop mechanism and MCP SSL CRL fix from previous commit. Co-Authored-By: Claude (claude-fudge-flow[1m]) <noreply@anthropic.com>
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.
Summary
disable_environment_infoagent config option: New boolean option (defaultfalse) that controls whether environment information (date, platform, OS version, working directory) is included in agent system prompts. Supported in Ruby DSL, YAML, andall_agentsdefaults with agent-level override.swarm.stop): Thread-safe cancellation of running swarms using IO.pipe signaling + Async::Barrier. Safe to call from signal trap handlers. Interactive REPL simplified to useswarm.stopdirectly.VERIFY_PEERwithout CRL checks, configurable viamcp_ssl_verify.complete()andhandle_tool_calls()to a loop, making stack usage O(1) regardless of tool-call rounds. Prevents fiber stack overflow in deep delegation chains with heavy tool usage.Test plan
bundle exec rake swarm_sdk:test— 2284 tests, 0 failuresbundle exec rake swarm_cli:test— CLI tests for REPL cancellation changesswarm.stopcancellation in interactive mode🤖 Generated with Claude Code