Repository navigation
Conversation
Add set_recipe_code_env, a narrow Design-only direct write that changes only params.envSelection of one existing Python recipe (INHERIT, EXPLICIT_ENV, or USE_BUILTIN_MODE). Cobuild cannot change this selection. The tool refuses non-Python recipes, recipes without a selection, and names that are not Python environments on the instance before saving, then returns the previous and read-back selections. Routing convention, capability matrix, tool-surface contract, and the stock skill references are updated together. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Title the tool for Python recipes, which are the only type it accepts, make the missing-selection test cases explicit, and reflow the Automation paragraph in the root skill. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Makes more sense to have this in cobuild directly. Logged as FR & this can be closed. |
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
Prompted by user feedback.
Adds
set_recipe_code_env, a narrow Design-only direct write that selects which code environment one existing Python recipe runs with. Cobuild cannot change this selection: it limits Python recipe edits to inputs and outputs, so the stock skill had no supported path and agents were left with a raw-API fallback the skill forbids.The env-name check matters because Dataiku can store an unknown name and only fail at run time. Dataiku still enforces the project's
preventOverrideand the user's code-envusepermission on save.Out of scope: PySpark, R, and plugin recipes (refused with a clear error), and any other recipe setting.
Evidence
Before: no Headless tool could change a Python recipe's environment; the code-environments reference routed it to Cobuild, which refuses the change.
After, automated:
tests/test_recipe_code_env.py(fakes only, no live instance)Local gates on this head:
uv sync --locked,uv run pre-commit run --all-files(all hooks pass),uv run pytest(854 passed),uv buildplus wheel import smoke on Python 3.12,cz checkon the branch.After, live: run against a personal Design node on DSS 15.0.0 through the real stdio launcher (
uv run --locked --script runtime/run_mcp.py --transport stdio), calling the registered tools over MCP. The test used a synthetic scratch project with a three-row uploaded dataset and one Python recipe. An existing Python environment was only selected, never modified.Merge Danger
Door: two-way
The tool only adds a capability. Reverting removes it; recipes changed through it keep a valid selection that the UI can change back.
Blast Radius: narrow
A call rewrites one Python recipe's environment selection. Dataiku saves the whole recipe, so an edit someone else makes to that recipe between the tool's read and write is lost (documented in the skill, same as
set_container_exec_config). The catalog grows by one tool (132).Shared files with #214 (Python-script scenarios): both PRs edit the tool total in
docs/capabilities.md, the Automation exclusion lists, the routing convention, and the pinned tool tests. The diffs are independent, but whichever merges second needs a small textual rebase (134 tools in total).🤖 Generated with Claude Code