Merge optimize → develop#46
Merged
brianlball merged 5 commits intodevelopfrom Apr 10, 2026
Merged
Conversation
…tries default 0 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
OSMCP_CODE_MODE env var gates fastmcp CodeMode transform; off by default. Runner/conftest detect code_mode_active, track tools called inside execute blocks, and report CodeMode ON/OFF in benchmark md. Bump fastmcp>=3.1.0 for experimental transform. Includes A/B sweep data (off=95.3%, on=24.0%) and root-cause writeup. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move llm-test-benchmark, testing, frameworks-summary, benchmark- description-guidance under docs/testing/. Add README.md as technical report with 7 embedded plots (run history, tier pass rates, progressive L1/L2/L3, token profile, failure modes, cross-model sweep, codemode A/B) + paragraph explanations and legends. Include generate_plots.py + march/april sweep data it sources. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
New research notes under docs/knowledge/: architecture/testing patterns, MCP best-practices gap analysis, reddit discovery thread, APS agent paper, tool-discovery/LLM-testing writeup. Move geometry research into knowledge/. Drop stale development-process-findings and tool-discovery-research. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Redirect C-level stdout (fd 1) to stderr once at startup, give Python sys.stdout a private fd to the real MCP client pipe. Catches ALL C-level pollution (SWIG GC, Polyhedron geometry, future unknowns) with zero races and no per-callsite wrappers. Fixes concurrent tool timeout (issue #42) and Polyhedron stdout leak on complex models (test_complex_model_stdout_purity). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Apr 10, 2026
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
Merges the
optimizebranch (159 commits) intodevelop. Key work streams:search_api,recommend_tools, tags on all 142 tools, description enrichmentcreate_bar_building,create_new_building,import_floorspacejsget_object_fields,set_object_property, dynamiclist_model_objectssearch_wiring_patternsmax_results+ filters on all list tools, brief modeset_zone_equipment_priorityStdout fix (Fixes #42)
Commit
2395d95replaces the global FastMCP middleware (which heldos.dup2()on fd 1 for entire tool calls, causing concurrent response loss) with a one-time fd redirect at startup. C-level stdout (SWIG, Polyhedron, etc.) goes to stderr permanently; Pythonsys.stdoutwrites JSON-RPC to a private fd. No races, no missed callsites.Test plan
test_concurrent_tools.pypasses (concurrent slow+fast and fast+fast)test_complex_model_stdout_puritypasses (Polyhedron leak on 44-zone model)🤖 Generated with Claude Code