feat(mason): add manifest-backed LangGraph tools - #484
Merged
elainewang-db merged 12 commits intoAug 28, 2026
Conversation
junchoi-db
force-pushed
the
mason-template-aware-sandbox
branch
from
August 28, 2026 07:21
c0c7e34 to
3b4704f
Compare
elainewang-db
marked this pull request as ready for review
August 28, 2026 16:10
elainewang-db
approved these changes
Aug 28, 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.
What
This PR adds manifest-backed agent tools to Mason's LangGraph template:
mason init --framework langgraphrecords the selected framework/template in.mason/project.toml.mason tools add sandbox,mcp,python, anduc-functionupdate a canonical, framework-neutralagent.toml.agent.tomledits follow the same contract; no CLI-only generated runtime wiring is required.mason devandmason deployload the manifest through the LangGraph runtime adapter and bind native tools/MCP clients._meta.downscope; they are not exposed as model-controlled tool arguments./api/health,/api/invocations, and/api/invocations/{id}aliases for Databricks Apps OAuth ingress.Scope
This implementation intentionally supports only
integrations/mason/templates/agent-langgraph. The manifest and adapter boundary are reusable for OpenAI, Claude Code, and other harnesses, but those adapters are future work.Approval policy and auth configuration are also out of scope for this PR.
CLI
The Python command creates a user-owned tool stub and test. MCP, sandbox, and UC-function entries remain declarative; the runtime adapter creates the framework-native objects at
dev/deploystartup.Proof of work
Canonical df1 E2E metric report — exact commands first
At commit
08b56dede3ae6979ac66b573dddd0ed3a6a3dd35, the full matrix passed on productiondf1:system.ai.web_searchmason devagent.tomlmason devmason deployagent.tomlmason deployResult: 16 passed, 0 failed, 0 skipped.
Semantic proof:
system.ai.sandboxMCP with read-onlysamples.nyctaxi.tripsdownscope and returnedMASON_SANDBOX_OK;system.ai.web_searchand returned a Databricks documentation title and HTTPS URL;MASON_PYTHON_OK;supervisor_agent.mason_agent_tools_e2e.mason_uc_3264637creturnedMASON_UC_OK:matrix;RUNNINGand were intentionally retained for a demo:agent.tomlAppArtifact integrity:
b2947e1ce7f2dd72c3c4c4c5a12e732a89ab0bb28f6aa82cd1672e9a89f886d1;0c2e74130a1eab1b873aee00c3b396c3dc939284dc6bf093cd27b30a884c1327;6cebc625a9b6b9a0d78979e3e3f69f688a448513c6220eba3d835c00575b2a2b.Local gates at this head:
Exact E2E command
cd integrations/mason uv run python tests/e2e/tool_matrix.py \ --profile df1 \ --app-auth-profile df1-oauth-mcp \ --wheel /tmp/mason-tooling-dist-484/databricks_mason-0.1.0.dev0-py3-none-any.whl \ --output /tmp/mason-tool-matrix-df1-08b56de-r3 \ --uc-schema supervisor_agent.mason_agent_tools_e2e \ --template-repo /home/jun.choi/custom_agent_oss/worktrees/mason-template-aware-sandbox \ --template-ref mason-template-aware-sandbox \ --keep-resourcesThe HTML report contains clean-checkout setup, wheel build, OAuth profile verification, every generated command, all 16 cell durations/results, and retained-resource details.
CI
All Mason lint, typecheck, lowest/highest dependency, and Python-version checks pass. The only red check is the pre-existing
typechecking for integrations/openaihttpx/httpx2mismatch, which is outside this LangGraph-only diff and also fails onmain.Design
Mason CLI CUJ