Skip to content

fix(mcp): hydrate lazy domains, fail closed on readiness, pin tree-sitter - #674

Merged
dan-petty merged 3 commits into
release/v0.2.23from
fix/mcp-deps-and-hermetic-tests
Sep 28, 2026
Merged

dan-petty merged 3 commits into
release/v0.2.23from
fix/mcp-deps-and-hermetic-tests

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

Addresses review defect issues #670 and #665.

  • chore(deps): pin tree-sitter packages and make environment-sensitive tests hermetic #670 (chore(deps): pin tree-sitter packages and make environment-sensitive tests hermetic):
    • Exact pin (==) for all 13 tree-sitter packages in pyproject.toml aligned with uv.lock.
    • Isolate test environments hermetically from developer workstation tokens (GH_TOKEN, GITHUB_TOKEN, DEVOPS_CLI_GITHUB_TOKEN) in test_devcontainer.py and test_subprocess_env_boundary.py.
    • Fix test archive error assertion for root environments in test_sandbox_logs.py.
    • Consolidate linear test assertions into structural tuple equality checks.
  • fix(mcp): hydrated tool domains never reach caching clients and readiness gates fail open #665 (fix(mcp): hydrated tool domains never reach caching clients and readiness gates fail open):
    • Add notifications/tools/list_changed JSON-RPC notification dispatch on FastMCP domain hydration via _notify_tool_list_changed(ctx).
    • Enforce CONST_MCP_LAZY_DOMAINS verification on hydrate_tool_domain, rejecting undeclared domains (secrets).
    • Drop obsolete require_ready argument from pr_check_readiness FastMCP contract.
    • Fail closed on malformed API payloads in PR check runs, slurping paginated runs and integrating commit statuses.
    • Disambiguate run IDs in get_run() raising AmbiguousRunIdError and decompose metrics extraction with $M \le 3$, depth $\le 1$.
    • Anchor coverage index search to root directory and map test helper imports.

Closes #670, Closes #665

dan-petty and others added 3 commits September 28, 2026 07:36
…run checks, and anchor coverage index

Pin tree-sitter packages and make environment-sensitive tests hermetic.
Hydrate lazy FastMCP tool domains with client notifications, fail closed on PR
readiness and run checks, disambiguate run IDs, and anchor coverage index.

Closes #670, Closes #665
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

1 participant