feat(cobuild): add get_cobuild_status - #154
Open
ludwigehlert-gif wants to merge 1 commit into
Open
ludwigehlert-gif wants to merge 1 commit into
ludwigehlert-gif wants to merge 1 commit into
Conversation
ludwigehlert-gif
force-pushed
the
feat/cobuild-readiness-check
branch
from
September 10, 2026 12:19
8ddb66d to
2a0bf67
Compare
ludwigehlert-gif
force-pushed
the
feat/cobuild-readiness-check
branch
from
September 10, 2026 12:50
d07fa69 to
1bb947e
Compare
ludwigehlert-gif
force-pushed
the
feat/cobuild-readiness-check
branch
from
September 10, 2026 12:56
1bb947e to
755765f
Compare
Checking Cobuild required listing every project to get one key: ~15 MB GET /projects/ on a 4099-project instance. get_cobuild_status takes one key from the root project folder and opens a conversation there. 0.6s measured. Temporary. Opening a conversation is the only way to ask today, and it leaves an empty one in the probed project. Replace with DSSClient.get_cobuild_status() when it ships. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
ludwigehlert-gif
force-pushed
the
feat/cobuild-readiness-check
branch
from
September 10, 2026 13:02
755765f to
bf4cf3e
Compare
ludwigehlert-gif
marked this pull request as ready for review
September 10, 2026 14:30
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.
Why
Checking Cobuild required listing every project to get one key: ~15 MB
GET /projects/on a 4099-project instance, into the agent's context.count_projectsuses the same endpoint.What
One tool.
get_cobuild_status(project_key="")takes one key from the root project folder (~3 KB, instance-wide key list as fallback), opens a conversation there, returnsenabled,instance_name,probed_project_key. 0.6s measured. A refusal raises, naming its three possible causes.Cost per call
cobuild-conversation-create); 0 LLM traces, 0 usage rowsTool tested against 15.x.
Replacement
Landed: dataiku/dip#52514, merged into
release/14.7on 2026-09-14. Ships in 14.7.5; 15.0.2 only if the forward merge makes that cut —release/15.0,release/15.1andmasterdo not carry it yet.GET /publicapi/cobuild/status→DSSClient.get_cobuild_status()→{"enabled": true}or{"enabled": false, "reason": str}. 200 either way, no parameters, no audit entry, read transaction, raw dict passthrough. Instance-level, any authenticated caller.Swap: delete
_any_project_keyand the probe, call the endpoint, passreasonthrough, setreadOnlyHint: True, move the tool to the read bucket, drop the probe's skill rule and test.project_keyandprobed_project_keydisappear with it.Two constraints on that swap:
bin/run_mcp.pypinsdataiku-api-client==14.7.2, which has noget_cobuild_status. Either bump that pin to 14.7.5 or callclient._perform_json("GET", "/cobuild/status"), which reaches the same URL under the SDK's/dip/publicapibase on the current pin.DataikuException: NotFound, an SDK below 14.7.5 raisesAttributeError. Keep the probe as the fallback branch, or drop it and require 14.7.5+.enabledscope: instance-and-user entitlement, nothing more.checkCobuildAccessdenies when the auth context carries no associated user or profile (project- and global-scoped API keys, the source named inreason), for the restricted profiles (READER, EXPLORER, AI_CONSUMER, AI_ACCESS_USER, GOVERNANCE_MANAGER), and when AI services are off — admins included, since the admin bypass sits after that check. Otherwise theuseflag is merged across the "All users" row and the caller's group rows.useis independent of the AIML/CODE/SQL categories: an account allowed only ML returnsenabled: trueand is still refused per tool byCobuildToolExecutionService. Soenabled: truemeans "may open Cobuild", not "may build this flow"; project permissions and the LLM backend stay unproven. The probe additionally provesREAD_CONF, becausecreateConversationrunscheckReadAccess=READ_CONF+checkCanUseCobuild. Community edition stays outside the check.No regression risk for the existing Cobuild tools. The same dip PR moved the controller's class mapping from
/publicapi/projects/{projectKey}/cobuildto/publicapiand spelled the full path on each of its six endpoints; final URLs are unchanged, verified against the four Cobuild routes SDK 14.7.2 calls (conversations,.../messages,.../confirmation/{id},.../question/{id}).Per-project precheck, if ever wanted:
GET /projects/{key}/variables(DSSProject.get_variables()) enforces the sameREAD_CONF, verified as 200 with a 29-byte payload.get_summary()covers any-access alone;/{key}/settingsrequires project ADMIN.Tests
test_cobuild_status_probes_without_the_instance_project_list: root-folder path, empty-root fallback, zero-project error, refused probe. Plus the surface pin and capabilities doc (128 → 129 tools, Cobuild 6 → 7).uv sync --locked,pre-commit,pytest298 passed,cz check.🤖 Generated with Claude Code