Skip to content

Turn off agent features with DATABRICKS_AGENT_FEATURES_DISABLED - #8122

Open
simonfaltum wants to merge 10 commits into
mainfrom
skills/agentoff-databricks-agent-features-disabled-turns
Open

simonfaltum wants to merge 10 commits into
mainfrom
skills/agentoff-databricks-agent-features-disabled-turns

Conversation

@simonfaltum

@simonfaltum simonfaltum commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Changes

Setting DATABRICKS_AGENT_FEATURES_DISABLED to a true value (true, 1, yes, on) turns off the agent features whatever DATABRICKS_SKILLS_PREVIEW and DATABRICKS_SKILLS_HINTS say:

  • The skills command group is not registered, and no skills hint, help footer or quickstart variant appears.
  • The aitools stderr hint prints nothing and logs no event.
  • Aitools auto-install neither prompts, runs nor writes state.
  • The databricks apps init skills tip and prompt, and the tip after databricks version --check, print nothing, ask nothing, install nothing and store no consent.
  • databricks aitools auto-install enable says when the switch still turns auto-install off, as it does for the auto-install variable.

The explicit databricks aitools commands are not gated. Unset, or any value that is not true, behaves as before.

Why

Three switches turn on the skills feature, and the aitools hints, the apps init and version tips, and auto-install had none. One variable that wins over all of them lets an eval turn the agent features off in one place.

The switch is read in libs/skills, next to the skills gate, because libs/skills cannot import libs/aitools. Only a true value turns the features off: an invalid value such as maybe leaves them as they were, like the other switches, rather than failing closed.

A disabled run does not settle the auto-install version, on purpose. The switch is a temporary off, so the first run after it is unset still installs for that version, as it would have without the switch.

Tests

  • libs/skills: empty, true, one, yes, false, zero and invalid values, and the precedence over the preview and hints switches.
  • libs/aitools/agents: with the variable set, RecommendSkillsInstall does not prompt, install or log, and PrintSkillsTip and MaybeVersionCheckTip print nothing. Unset, the tips print as before.
  • cmd/aitools: with the variable set, AutoInstallsFor reports no install, and the auto-install gate is not looked up; printAutoInstallSetting warns only when the variable is set.
  • Acceptance: cmd/skills/agent-features-disabled and cmd/aitools/auto-install/agent-features-disabled, plus two enable-disable cases for the enable warnings. The cmd/version and cmd/apps areas pass with no golden change, and cmd/aitools changes only the enable-disable golden. cmd/skills and cmd/aitools also pass with the variable exported.
  • ./task --force fmt-q lint-q is clean.

This pull request and its description were written by Isaac.

…S_DISABLED

Setting DATABRICKS_AGENT_FEATURES_DISABLED to a true value turns off the
agent features in one switch: the skills command group and its hints, the
aitools stderr hints, and aitools auto-install. It wins over
DATABRICKS_SKILLS_PREVIEW and DATABRICKS_SKILLS_HINTS. Unset, or any value
that is not true, behaves as before. The explicit `databricks aitools`
commands still work.

Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions github-actions Bot added the aitools AI tools (databricks aitools) related changes label Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Regression test report ✅

Commit: 24a093ec8 | Workflow run

Selected 3 changed tests (limit=20, 0 not selected)

3 tests: regression=3 unreleased=0 coverage=0 failing=0
test branch main (e6f3460) latest (v1.28.0)
TestAccept/cmd/aitools/auto-install/agent-features-disabled ✅ ❌ ❌
TestAccept/cmd/aitools/auto-install/enable-disable ✅ ❌ ❌
TestAccept/cmd/skills/agent-features-disabled ✅ ❌ ❌
TestAccept/cmd/aitools/auto-install/agent-features-disabled: branch ✅ | main (e6f3460) ❌ | latest (v1.28.0) ❌

main (e6f3460):

acceptance_test.go:1274: Substituted DATABRICKS_CLI_GITHUB_API_URL "$DATABRICKS_HOST" -> "http://127.0.0.1:44663" ("[DATABRICKS_HOST]")
    acceptance_test.go:1274: Substituted DATABRICKS_SKILLS_BASE_URL "$DATABRICKS_HOST" -> "http://127.0.0.1:44663" ("[DATABRICKS_HOST]")
    acceptance_test.go:1406: Diff:
        --- cmd/aitools/auto-install/agent-features-disabled/output.txt
        +++ /tmp/TestAcceptcmdaitoolsauto-installagent-features-disabled2925344455/002/output.txt
        @@ -5,14 +5,18 @@
         === disabled: no install notice, no install or skills hint, nothing installed
         
         >>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] jobs list
        +Installed Databricks AI tools for Claude Code, Cursor. Turn off: databricks aitools auto-install disable. Remove: databricks aitools uninstall
         
         >>> print_telemetry
        +{"command":"jobs_list","exit_code":0,"aitools_install_event":{"agents":["CLAUDE_CODE","CURSOR"],"scope":"GLOBAL","error_category":"TYPE_UNSPECIFIED","agent_results":[{"agent":"CLAUDE_CODE","error_category":"CLI_NOT_ON_PATH"}],"trigger":"AUTO_FIRST_RUN"}}
        +{"command":"jobs_list","exit_code":0,"aitools_auto_install_event":{"outcome":"INSTALLED","holdout_arm":"TREATMENT","interactive":false}}
         
         >>> cursor_skills
        -(no skills)
        +databricks-test
         
         >>> auto_install_state
         {
        +  "last_version": "1.30.0",
           "consented": true,
           "id": "treatment-machine"
         }
        @@ -20,11 +17,8 @@
         === unset: the first run of this version installs, and no hint is printed
         
         >>> env -u DATABRICKS_AGENT_FEATURES_DISABLED CLAUDECODE=1 [CLI] jobs list
        -Installed Databricks AI tools for Claude Code, Cursor. Turn off: databricks aitools auto-install disable. Remove: databricks aitools uninstall
         
         >>> print_telemetry
        -{"command":"jobs_list","exit_code":0,"aitools_install_event":{"agents":["CLAUDE_CODE","CURSOR"],"scope":"GLOBAL","error_category":"TYPE_UNSPECIFIED","agent_results":[{"agent":"CLAUDE_CODE","error_category":"CLI_NOT_ON_PATH"}],"trigger":"AUTO_FIRST_RUN"}}
        -{"command":"jobs_list","exit_code":0,"aitools_auto_install_event":{"outcome":"INSTALLED","holdout_arm":"TREATMENT","interactive":false}}
         
         >>> cursor_skills
         databricks-test

latest (v1.28.0):

acceptance_test.go:1274: Substituted DATABRICKS_CLI_GITHUB_API_URL "$DATABRICKS_HOST" -> "http://127.0.0.1:37221" ("[DATABRICKS_HOST]")
    acceptance_test.go:1274: Substituted DATABRICKS_SKILLS_BASE_URL "$DATABRICKS_HOST" -> "http://127.0.0.1:37221" ("[DATABRICKS_HOST]")
    acceptance_test.go:1406: Diff:
        --- cmd/aitools/auto-install/agent-features-disabled/output.txt
        +++ /tmp/TestAcceptcmdaitoolsauto-installagent-features-disabled420103967/002/output.txt
        @@ -5,26 +5,26 @@
         === disabled: no install notice, no install or skills hint, nothing installed
         
         >>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] jobs list
        +Installed Databricks AI tools for Claude Code, Cursor. Disable: databricks aitools auto-install disable
         
         >>> print_telemetry
        +{"command":"jobs_list","exit_code":0,"aitools_install_event":{"agents":["CLAUDE_CODE","CURSOR"],"scope":"GLOBAL","error_category":"TYPE_UNSPECIFIED","agent_results":[{"agent":"CLAUDE_CODE","error_category":"CLI_NOT_ON_PATH"}],"trigger":"AUTO_FIRST_RUN"}}
        +{"command":"jobs_list","exit_code":0,"aitools_auto_install_event":{"outcome":"INSTALLED","holdout_arm":"TREATMENT","interactive":false}}
         
         >>> cursor_skills
        -(no skills)
        +databricks-test
         
         >>> auto_install_state
         {
        -  "consented": true,
        +  "last_version": "1.30.0",
           "id": "treatment-machine"
         }
         
         === unset: the first run of this version installs, and no hint is printed
         
         >>> env -u DATABRICKS_AGENT_FEATURES_DISABLED CLAUDECODE=1 [CLI] jobs list
        -Installed Databricks AI tools for Claude Code, Cursor. Turn off: databricks aitools auto-install disable. Remove: databricks aitools uninstall
         
         >>> print_telemetry
        -{"command":"jobs_list","exit_code":0,"aitools_install_event":{"agents":["CLAUDE_CODE","CURSOR"],"scope":"GLOBAL","error_category":"TYPE_UNSPECIFIED","agent_results":[{"agent":"CLAUDE_CODE","error_category":"CLI_NOT_ON_PATH"}],"trigger":"AUTO_FIRST_RUN"}}
        -{"command":"jobs_list","exit_code":0,"aitools_auto_install_event":{"outcome":"INSTALLED","holdout_arm":"TREATMENT","interactive":false}}
         
         >>> cursor_skills
         databricks-test
TestAccept/cmd/aitools/auto-install/enable-disable: branch ✅ | main (e6f3460) ❌ | latest (v1.28.0) ❌

main (e6f3460):

acceptance_test.go:1274: Substituted DATABRICKS_CLI_GITHUB_API_URL "$DATABRICKS_HOST" -> "http://127.0.0.1:33813" ("[DATABRICKS_HOST]")
    acceptance_test.go:1274: Substituted DATABRICKS_SKILLS_BASE_URL "$DATABRICKS_HOST" -> "http://127.0.0.1:33813" ("[DATABRICKS_HOST]")
    acceptance_test.go:1406: Diff:
        --- cmd/aitools/auto-install/enable-disable/output.txt
        +++ /tmp/TestAcceptcmdaitoolsauto-installenable-disable1616176381/002/output.txt
        @@ -34,13 +34,12 @@
         
         >>> DATABRICKS_AGENT_FEATURES_DISABLED=1 [CLI] aitools auto-install enable
         Automatic installation of Databricks AI tools is enabled.
        -DATABRICKS_AGENT_FEATURES_DISABLED still disables it in this environment; unset it to let it run.
         
         === enable names both variables, and says to unset both
         
         >>> DATABRICKS_AITOOLS_AUTO_INSTALL=false DATABRICKS_AGENT_FEATURES_DISABLED=1 [CLI] aitools auto-install enable
         Automatic installation of Databricks AI tools is enabled.
        -DATABRICKS_AITOOLS_AUTO_INSTALL and DATABRICKS_AGENT_FEATURES_DISABLED still disable it in this environment; unset both to let it run.
        +DATABRICKS_AITOOLS_AUTO_INSTALL still disables it in this environment; unset it to let it run.
         
         === disable replaces a state file it cannot read
         
        
    acceptance_test.go:1184: LOG.enable-reset-1: Automatic installation of Databricks AI tools is enabled.
    acceptance_test.go:1184: LOG.enable-reset-2: Automatic installation of Databricks AI tools is enabled.
    acceptance_test.go:1184: 
        LOG.install-global: Installing Databricks skills for Cursor...
        LOG.install-global: Using skills version test-ref
        LOG.install-global: Fetching skills manifest...
        LOG.install-global: Installed 1 skill in /tmp/TestAcceptcmdaitoolsauto-installenable-disable1616176381/001/home/.databricks/aitools/skills.
FAIL

latest (v1.28.0):

acceptance_test.go:1274: Substituted DATABRICKS_CLI_GITHUB_API_URL "$DATABRICKS_HOST" -> "http://127.0.0.1:39719" ("[DATABRICKS_HOST]")
    acceptance_test.go:1274: Substituted DATABRICKS_SKILLS_BASE_URL "$DATABRICKS_HOST" -> "http://127.0.0.1:39719" ("[DATABRICKS_HOST]")
    acceptance_test.go:1406: Diff:
        --- cmd/aitools/auto-install/enable-disable/output.txt
        +++ /tmp/TestAcceptcmdaitoolsauto-installenable-disable395809221/002/output.txt
        @@ -20,9 +20,7 @@
         Automatic installation of Databricks AI tools is enabled.
         
         >>> auto_install_state
        -{
        -  "consented": true
        -}
        +{}
         
         === enable says when the environment still turns it off
         
        @@ -34,13 +32,12 @@
         
         >>> DATABRICKS_AGENT_FEATURES_DISABLED=1 [CLI] aitools auto-install enable
         Automatic installation of Databricks AI tools is enabled.
        -DATABRICKS_AGENT_FEATURES_DISABLED still disables it in this environment; unset it to let it run.
         
         === enable names both variables, and says to unset both
         
         >>> DATABRICKS_AITOOLS_AUTO_INSTALL=false DATABRICKS_AGENT_FEATURES_DISABLED=1 [CLI] aitools auto-install enable
         Automatic installation of Databricks AI tools is enabled.
        -DATABRICKS_AITOOLS_AUTO_INSTALL and DATABRICKS_AGENT_FEATURES_DISABLED still disable it in this environment; unset both to let it run.
        +DATABRICKS_AITOOLS_AUTO_INSTALL still disables it in this environment; unset it to let it run.
         
         === disable replaces a state file it cannot read
         
        @@ -60,9 +52,7 @@
         Exit code: 1
         
         >>> auto_install_state
        -{
        -  "consented": true
        -}
        +{}
         
         === a global uninstall of a mistyped skill leaves it on
         
        @@ -72,9 +62,7 @@
         Exit code: 1
         
         >>> auto_install_state
        -{
        -  "consented": true
        -}
        +{}
         
         === a global uninstall turns it off
         
        @@ -92,9 +80,7 @@
         Uninstalled 1 skill.
         
         >>> auto_install_state
        -{
        -  "consented": true
        -}
        +{}
         
         === a project install stores no consent
         
        @@ -104,9 +90,7 @@
         === a global install stores the consent
         
         >>> auto_install_state
        -{
        -  "consented": true
        -}
        +(no auto-install state)
         
         === a global install keeps an opt-out
         
        
    acceptance_test.go:1184: LOG.enable-reset-1: Automatic installation of Databricks AI tools is enabled.
    acceptance_test.go:1184: LOG.enable-reset-2: Automatic installation of Databricks AI tools is enabled.
    acceptance_test.go:1184: 
        LOG.install-global: Installing Databricks skills for Cursor...
        LOG.install-global: Using skills version test-ref
        LOG.install-global: Fetching skills manifest...
        LOG.install-global: Installed 1 skill in /tmp/TestAcceptcmdaitoolsauto-installenable-disable395809221/001/home/.databricks/aitools/skills.
FAIL
TestAccept/cmd/skills/agent-features-disabled: branch ✅ | main (e6f3460) ❌ | latest (v1.28.0) ❌

main (e6f3460):

acceptance_test.go:1406: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1406
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1147
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:690
        	Error:      	Not equal: 
        	            	expected: "\n>>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] skills list\nError: unknown command \"skills\" for \"databricks\"\n\n>>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] --help\n\n>>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] fs --help\n\n>>> env -u DATABRICKS_AGENT_FEATURES_DISABLED [CLI] --help\n\n>>> env -u DATABRICKS_AGENT_FEATURES_DISABLED [CLI] fs --help\n\n>>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] quickstart\n\n>>> env -u DATABRICKS_AGENT_FEATURES_DISABLED -u DATABRICKS_SKILLS_PREVIEW [CLI] quickstart\n"
        	            	actual  : "\n>>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] skills list\nPick the skill whose description matches the task.\nRead the skill before you act on it.\n\ndemo-skill: A skill for tests.\nfuture-skill: A skill that needs a newer CLI.\nguide-skill: A skill with a supporting file.\nTo read a skill, run: databricks skills read <name>\n\nUnexpected success\n\nExit code: 1\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,15 +2,13 @@
        	            	 >>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] skills list
        	            	-Error: unknown command "skills" for "databricks"
        	            	+Pick the skill whose description matches the task.
        	            	+Read the skill before you act on it.
        	            	 
        	            	->>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] --help
        	            	+demo-skill: A skill for tests.
        	            	+future-skill: A skill that needs a newer CLI.
        	            	+guide-skill: A skill with a supporting file.
        	            	+To read a skill, run: databricks skills read <name>
        	            	 
        	            	->>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] fs --help
        	            	+Unexpected success
        	            	 
        	            	->>> env -u DATABRICKS_AGENT_FEATURES_DISABLED [CLI] --help
        	            	+Exit code: 1
        	            	 
        	            	->>> env -u DATABRICKS_AGENT_FEATURES_DISABLED [CLI] fs --help
        	            	-
        	            	->>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] quickstart
        	            	-
        	            	->>> env -u DATABRICKS_AGENT_FEATURES_DISABLED -u DATABRICKS_SKILLS_PREVIEW [CLI] quickstart
        	            	-
        	Test:       	TestAccept/cmd/skills/agent-features-disabled
        	Messages:   	cmd/skills/agent-features-disabled/output.txt vs /tmp/TestAcceptcmdskillsagent-features-disabled1518132535/002/output.txt

latest (v1.28.0):

acceptance_test.go:1406: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1406
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1147
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:690
        	Error:      	Not equal: 
        	            	expected: "\n>>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] skills list\nError: unknown command \"skills\" for \"databricks\"\n\n>>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] --help\n\n>>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] fs --help\n\n>>> env -u DATABRICKS_AGENT_FEATURES_DISABLED [CLI] --help\n\n>>> env -u DATABRICKS_AGENT_FEATURES_DISABLED [CLI] fs --help\n\n>>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] quickstart\n\n>>> env -u DATABRICKS_AGENT_FEATURES_DISABLED -u DATABRICKS_SKILLS_PREVIEW [CLI] quickstart\n"
        	            	actual  : "\n>>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] skills list\nError: unknown command \"skills\" for \"databricks\"\n\n>>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] --help\n\n>>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] fs --help\n\n>>> env -u DATABRICKS_AGENT_FEATURES_DISABLED [CLI] --help\ncontains error: 'databricks skills' not found in the output.\n\nExit code: 1\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -9,8 +9,5 @@
        	            	 >>> env -u DATABRICKS_AGENT_FEATURES_DISABLED [CLI] --help
        	            	+contains error: 'databricks skills' not found in the output.
        	            	 
        	            	->>> env -u DATABRICKS_AGENT_FEATURES_DISABLED [CLI] fs --help
        	            	+Exit code: 1
        	            	 
        	            	->>> DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 [CLI] quickstart
        	            	-
        	            	->>> env -u DATABRICKS_AGENT_FEATURES_DISABLED -u DATABRICKS_SKILLS_PREVIEW [CLI] quickstart
        	            	-
        	Test:       	TestAccept/cmd/skills/agent-features-disabled
        	Messages:   	cmd/skills/agent-features-disabled/output.txt vs /tmp/TestAcceptcmdskillsagent-features-disabled4110049476/002/output.txt
    acceptance_test.go:1184: 
        LOG.fs-help: Commands to do file system operations on DBFS, UC Volumes and UC Skills.
        LOG.fs-help: 
        LOG.fs-help: Usage:
        LOG.fs-help:   databricks fs [command]
        LOG.fs-help: 
        LOG.fs-help: Available Commands:
        LOG.fs-help:   cat         Show file content.
        LOG.fs-help:   cp          Copy files and directories.
        LOG.fs-help:   ls          Lists files.
        LOG.fs-help:   mkdir       Make directories.
        LOG.fs-help:   rm          Remove files and directories.
        LOG.fs-help: 
        LOG.fs-help: Flags:
        LOG.fs-help:   -h, --help[=true|false]   help for fs
        LOG.fs-help: 
        LOG.fs-help: Global Flags:
        LOG.fs-help:       --debug[=true|false]   enable debug logging
        LOG.fs-help:   -o, --output type          output type: text or json (default text)
        LOG.fs-help:   -p, --profile string       ~/.databrickscfg profile
        LOG.fs-help:   -t, --target string        bundle target to use (if applicable)
        LOG.fs-help: 
        LOG.fs-help: Use "databricks fs [command] --help" for more information about a command.
    acceptance_test.go:1184: 
        LOG.help: Databricks CLI
        LOG.help: 
        LOG.help: Usage:
        LOG.help:   databricks [command]
        LOG.help: 
        LOG.help: Lakewatch
        LOG.help:   lakewatch                              *Beta* Manage Lakewatch: security-analytics data sources, detection rules, and per-catalog configuration.
        LOG.help: 
        LOG.help: Databricks Workspace
        LOG.help:   fs                                     Filesystem related commands
        LOG.help:   git-credentials                        Registers personal access token for Databricks to do operations on behalf of the user.
        LOG.help:   repos                                  The Repos API allows users to manage their git repos.
        LOG.help:   secrets                                The Secrets API allows you to manage secrets, secret scopes, and access permissions.
        LOG.help:   workspace                              The Workspace API allows you to list, import, export, and delete workspace objects such as notebooks, files, folders, and dashboards.
        LOG.help: 
        LOG.help: Compute
        LOG.help:   cluster-policies                       You can use cluster policies to control users' ability to configure clusters based on a set of rules.
        LOG.help:   clusters                               The Clusters API allows you to create, start, edit, list, terminate, and delete clusters.
        LOG.help:   global-init-scripts                    The Global Init Scripts API enables Workspace administrators to configure global initialization scripts for their workspace.
        LOG.help:   instance-pools                         Instance Pools API are used to create, edit, delete and list instance pools by using ready-to-use cloud instances which reduces a cluster start and auto-scaling times.
        LOG.help:   instance-profiles                      The Instance Profiles API allows admins to add, list, and remove instance profiles that users can launch clusters with.
        LOG.help:   libraries                              The Libraries API allows you to install and uninstall libraries and get the status of libraries on a cluster.
        LOG.help:   policy-compliance-for-clusters         The policy compliance APIs allow you to view and manage the policy compliance status of clusters in your workspace.
        LOG.help:   policy-families                        View available policy families.
        LOG.help: 
        LOG.help: Lakeflow
        LOG.help:   jobs                                   The Jobs API allows you to create, edit, and delete jobs.
        LOG.help:   pipelines                              The Lakeflow Spark Declarative Pipelines API allows you to create, edit, delete, start, and view details about pipelines.
        LOG.help:   policy-compliance-for-jobs             The compliance APIs allow you to view and manage the policy compliance status of jobs in your workspace.
        LOG.help: 
        LOG.help: Machine Learning
        LOG.help:   experiments                            Experiments are the primary unit of organization in MLflow; all MLflow runs belong to an experiment.
        LOG.help:   feature-engineering                    Feature Engineering provides APIs for managing features and materialized features.
        LOG.help:   model-registry                         Note: This API reference documents APIs for the Workspace Model Registry.
        LOG.help: 
        LOG.help: Real-time Serving
        LOG.help:   serving-endpoints                      The Serving Endpoints API allows you to create, update, and delete model serving endpoints.
        LOG.help: 
        LOG.help: Apps
        LOG.help:   apps                                   Apps run directly on a customer's Databricks instance, integrate with their data, use and extend Databricks services, and enable users to interact through single sign-on.
        LOG.help: 
        LOG.help: Vector Search
        LOG.help:   vector-search-endpoints                **Endpoint**: Represents the compute resources to host AI Search indexes.
        LOG.help:   vector-search-indexes                  **Index**: An efficient representation of your embedding vectors that supports real-time and efficient approximate nearest neighbor (ANN) search queries.
        LOG.help: 
        LOG.help: AI Search
        LOG.help:   ai-search                              **AI Search Endpoint**: Represents the compute resources to host AI Search indexes.
        LOG.help: 
        LOG.help: Identity and Access Management
        LOG.help:   assume-group                           *Beta* Manage the workspace's restricted sharing groups.
        LOG.help:   current-user                           *Public Preview* This API allows retrieving information about currently authenticated user or service principal.
        LOG.help:   groups                                 Groups simplify identity management, making it easier to assign access to Databricks workspace, data, and other securable objects.
        LOG.help:   groups-v2                              *Public Preview* Groups simplify identity management, making it easier to assign access to Databricks workspace, data, and other securable objects.
        LOG.help:   permissions                            Permissions API are used to create read, write, edit, update and manage access for various users on different objects and endpoints.
        LOG.help:   service-principals                     Identities for use with jobs, automated tools, and systems such as scripts, apps, and CI/CD platforms.
        LOG.help:   service-principals-v2                  *Public Preview* Identities for use with jobs, automated tools, and systems such as scripts, apps, and CI/CD platforms.
        LOG.help:   users                                  User identities recognized by Databricks and represented by email addresses.
        LOG.help:   users-v2                               *Public Preview* User identities recognized by Databricks and represented by email addresses.
        LOG.help:   workspace-iam-v2                       These APIs are used to manage identities and the workspace access of these identities in Databricks.
        LOG.help: 
        LOG.help: Databricks SQL
        LOG.help:   alerts                                 The alerts API can be used to perform CRUD operations on alerts.
        LOG.help:   alerts-legacy                          *Public Preview* The alerts API can be used to perform CRUD operations on alerts.
        LOG.help:   alerts-v2                              New version of SQL Alerts.
        LOG.help:   dashboards                             In general, there is little need to modify dashboards using the API.
        LOG.help:   data-sources                           This API is provided to assist you in making new query objects.
        LOG.help:   queries                                The queries API can be used to perform CRUD operations on queries.
        LOG.help:   queries-legacy                         These endpoints are used for CRUD operations on query definitions.
        LOG.help:   query-history                          A service responsible for storing and retrieving the list of queries run against SQL endpoints and serverless compute.
        LOG.help:   statement-execution-v2                 *Public Preview* The Statement Execution API v2 can be used to execute SQL statements on a SQL warehouse and fetch the result.
        LOG.help:   warehouses                             A SQL warehouse is a compute resource that lets you run SQL commands on data objects within Databricks SQL.
        LOG.help: 
        LOG.help: AI/BI
        LOG.help:   genie                                  Genie provides a no-code experience for business users, powered by AI/BI.
        LOG.help:   lakeview                               These APIs provide specific management operations for Lakeview dashboards.
        LOG.help:   lakeview-embedded                      Token-based Lakeview APIs for embedding dashboards in external applications.
        LOG.help: 
        LOG.help: Unity Catalog
        LOG.help:   ai-gateway                             Govern AI workloads in Unity Catalog.
        LOG.help:   artifact-allowlists                    In Databricks Runtime 13.3 and above, you can add libraries and init scripts to the allowlist in UC so that users can use these artifacts on compute configured with shared access mode.
        LOG.help:   catalogs                               A catalog is the first layer of Unity Catalog’s three-level namespace.
        LOG.help:   connections                            A connection represents an external data source for use within Databricks.
        LOG.help:   credentials                            A credential represents an authentication and authorization mechanism for accessing services on your cloud tenant.
        LOG.help:   entity-tag-assignments                 Tags are attributes that include keys and optional values that you can use to organize and categorize entities in Unity Catalog.
        LOG.help:   external-lineage                       *Public Preview* External Lineage APIs enable defining and managing lineage relationships between Databricks objects and external systems.
        LOG.help:   external-locations                     An external location is an object that combines a cloud storage path with a storage credential that authorizes access to the cloud storage path.
        LOG.help:   external-metadata                      *Public Preview* External Metadata objects enable customers to register and manage metadata about external systems within Unity Catalog.
        LOG.help:   functions                              Functions implement User-Defined Functions (UDFs) in Unity Catalog.
        LOG.help:   grants                                 In Unity Catalog, data is secure by default.
        LOG.help:   metastores                             A metastore is the top-level container of objects in Unity Catalog.
        LOG.help:   model-versions                         Databricks provides a hosted version of MLflow Model Registry in Unity Catalog.
        LOG.help:   online-tables                          *Public Preview* Online tables provide lower latency and higher QPS access to data from Delta tables.
        LOG.help:   policies                               Attribute-Based Access Control (ABAC) provides high leverage governance for enforcing compliance policies in Unity Catalog.
        LOG.help:   quality-monitors                       Deprecated: Please use the Data Quality Monitors API instead (REST: /api/data-quality/v1/monitors), which manages both Data Profiling and Anomaly Detection.
        LOG.help:   registered-models                      Databricks provides a hosted version of MLflow Model Registry in Unity Catalog.
        LOG.help:   resource-quotas                        Unity Catalog enforces resource quotas on all securable objects, which limits the number of resources that can be created.
        LOG.help:   rfa                                    *Public Preview* Request for Access enables users to request access for Unity Catalog securables.
        LOG.help:   schemas                                A schema (also called a database) is the second layer of Unity Catalog’s three-level namespace.
        LOG.help:   secrets-uc                             A secret is a Unity Catalog securable object that stores sensitive credential data (such as passwords, tokens, and keys) within a three-level namespace (**catalog_name.schema_name.secret_name**).
        LOG.help:   software-artifacts                     *Public Preview* Manage software artifacts and their versions in Unity Catalog.
        LOG.help: ... (113 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)
    acceptance_test.go:1184: 
        LOG.help-unset: Databricks CLI
        LOG.help-unset: 
        LOG.help-unset: Usage:
        LOG.help-unset:   databricks [command]
        LOG.help-unset: 
        LOG.help-unset: Lakewatch
        LOG.help-unset:   lakewatch                              *Beta* Manage Lakewatch: security-analytics data sources, detection rules, and per-catalog configuration.
        LOG.help-unset: 
        LOG.help-unset: Databricks Workspace
        LOG.help-unset:   fs                                     Filesystem related commands
        LOG.help-unset:   git-credentials                        Registers personal access token for Databricks to do operations on behalf of the user.
        LOG.help-unset:   repos                                  The Repos API allows users to manage their git repos.
        LOG.help-unset:   secrets                                The Secrets API allows you to manage secrets, secret scopes, and access permissions.
        LOG.help-unset:   workspace                              The Workspace API allows you to list, import, export, and delete workspace objects such as notebooks, files, folders, and dashboards.
        LOG.help-unset: 
        LOG.help-unset: Compute
        LOG.help-unset:   cluster-policies                       You can use cluster policies to control users' ability to configure clusters based on a set of rules.
        LOG.help-unset:   clusters                               The Clusters API allows you to create, start, edit, list, terminate, and delete clusters.
        LOG.help-unset:   global-init-scripts                    The Global Init Scripts API enables Workspace administrators to configure global initialization scripts for their workspace.
        LOG.help-unset:   instance-pools                         Instance Pools API are used to create, edit, delete and list instance pools by using ready-to-use cloud instances which reduces a cluster start and auto-scaling times.
        LOG.help-unset:   instance-profiles                      The Instance Profiles API allows admins to add, list, and remove instance profiles that users can launch clusters with.
        LOG.help-unset:   libraries                              The Libraries API allows you to install and uninstall libraries and get the status of libraries on a cluster.
        LOG.help-unset:   policy-compliance-for-clusters         The policy compliance APIs allow you to view and manage the policy compliance status of clusters in your workspace.
        LOG.help-unset:   policy-families                        View available policy families.
        LOG.help-unset: 
        LOG.help-unset: Lakeflow
        LOG.help-unset:   jobs                                   The Jobs API allows you to create, edit, and delete jobs.
        LOG.help-unset:   pipelines                              The Lakeflow Spark Declarative Pipelines API allows you to create, edit, delete, start, and view details about pipelines.
        LOG.help-unset:   policy-compliance-for-jobs             The compliance APIs allow you to view and manage the policy compliance status of jobs in your workspace.
        LOG.help-unset: 
        LOG.help-unset: Machine Learning
        LOG.help-unset:   experiments                            Experiments are the primary unit of organization in MLflow; all MLflow runs belong to an experiment.
        LOG.help-unset:   feature-engineering                    Feature Engineering provides APIs for managing features and materialized features.
        LOG.help-unset:   model-registry                         Note: This API reference documents APIs for the Workspace Model Registry.
        LOG.help-unset: 
        LOG.help-unset: Real-time Serving
        LOG.help-unset:   serving-endpoints                      The Serving Endpoints API allows you to create, update, and delete model serving endpoints.
        LOG.help-unset: 
        LOG.help-unset: Apps
        LOG.help-unset:   apps                                   Apps run directly on a customer's Databricks instance, integrate with their data, use and extend Databricks services, and enable users to interact through single sign-on.
        LOG.help-unset: 
        LOG.help-unset: Vector Search
        LOG.help-unset:   vector-search-endpoints                **Endpoint**: Represents the compute resources to host AI Search indexes.
        LOG.help-unset:   vector-search-indexes                  **Index**: An efficient representation of your embedding vectors that supports real-time and efficient approximate nearest neighbor (ANN) search queries.
        LOG.help-unset: 
        LOG.help-unset: AI Search
        LOG.help-unset:   ai-search                              **AI Search Endpoint**: Represents the compute resources to host AI Search indexes.
        LOG.help-unset: 
        LOG.help-unset: Identity and Access Management
... (52 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: 24a093e

Run: 46065144754

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 173 20 3:36
💚​ aws-windows-latest-4core-16gb 1 173 20 3:01
💚​ azure linux-2core-8gb 1 172 20 4:01
💚​ azure-windows-latest-4core-16gb 1 172 20 2:57
💚​ gcp linux-2core-8gb 1 173 20 3:30
💚​ gcp-windows-latest-4core-16gb 1 173 20 2:51
Test Name aws linux-2core-8gb aws-windows-latest-4core-16gb azure linux-2core-8gb azure-windows-latest-4core-16gb gcp linux-2core-8gb gcp-windows-latest-4core-16gb
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 6 slowest tests (at least 2 minutes):
duration env testname
4:01 azure linux-2core-8gb TestAccept
3:24 aws linux-2core-8gb TestAccept
3:16 gcp linux-2core-8gb TestAccept
2:59 aws-windows-latest-4core-16gb TestAccept
2:56 azure-windows-latest-4core-16gb TestAccept
2:50 gcp-windows-latest-4core-16gb TestAccept

simonfaltum and others added 3 commits November 27, 2026 14:43
…S_DISABLED

The switch already turned off skills and the aitools hints. The apps init
tip and prompt, the version --check tip and the auto-install warning for an
enable that the environment overrides did not check it. Now they do: with the
switch set, RecommendSkillsInstall, PrintSkillsTip and MaybeVersionCheckTip
print nothing, ask nothing, install nothing and store no consent, and
printAutoInstallSetting says the switch still turns auto-install off. Unset,
behaviour is unchanged.

Co-authored-by: Isaac <no-reply@databricks.com>
Acceptance tests unset DATABRICKS_AGENT_FEATURES_DISABLED with the other
agent variables, so an exported value no longer changes the goldens.

The aitools tests set the switch to false explicitly instead of leaving it
to the host environment, and AutoInstallsFor returns false when the switch
is on, as autoInstall does, with a test case for it.

The skills guard tests use AgentFeaturesDisabledEnv instead of the literal.

Co-authored-by: Isaac <no-reply@databricks.com>
@simonfaltum
simonfaltum marked this pull request as ready for review November 27, 2026 16:29
@simonfaltum
simonfaltum requested review from a team and lennartkats-db as code owners November 27, 2026 16:29

@review-oss-bot review-oss-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review at bcd98a6. Each finding was verified against the code.

No blocking issues found. 5 non-blocking comment(s) and 1 question(s) below.

This PR adds DATABRICKS_AGENT_FEATURES_DISABLED. Setting it to a true value turns off the skills group, the aitools hints, the apps init and version --check tips, and auto-install, and it overrides the skills preview and hints switches. I found no runtime defect in the gates themselves. What's left: the libs/skills unit tests aren't isolated from the new variable, the auto-install help text doesn't mention it, there's no changelog fragment, and there are a few small comment and test-output fixes.

Questions

  1. Should the new switch go into the shared auto-install decision instead of separate early returns? autoInstallInputs/Decide already carry the DATABRICKS_AITOOLS_AUTO_INSTALL opt-out for both autoInstall and AutoInstallsFor, but the new check is copied into AutoInstall and AutoInstallsFor. The same goes for PrintSkillsTip, which RecommendSkillsInstall already guards. One option is a not-due reason in stateFreeSkips that leaves the version unsettled. The other is keeping the per-entry-point checks. (non-blocking)

Comments outside the changed lines

  • [nice to have] libs/skills/guard.go: This adds a user-facing env var: once it's set, the hints, the apps init prompt, the version --check tip and auto-install all stop, and auto-install enable prints a new warning. The diff adds no file under .nextchanges/. Can you add a fragment under .nextchanges/cli/ that names DATABRICKS_AGENT_FEATURES_DISABLED?

Comment thread libs/skills/guard.go
// DATABRICKS_AGENT_FEATURES_DISABLED is set.
func Enabled(ctx context.Context) bool {
return envTrue(ctx, previewEnv)
return !AgentFeaturesDisabled(ctx) && envTrue(ctx, previewEnv)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nice to have] Enabled now also reads DATABRICKS_AGENT_FEATURES_DISABLED, but TestEnabled and TestHintsEnabled set only the preview and hints variables in the context. env.GetBool falls back to os.LookupEnv, so a developer who exports DATABRICKS_AGENT_FEATURES_DISABLED=1 sees the true/one cases fail. That breaks the promise in the comment at the top of guard_test.go that host values don't leak in. Can you set AgentFeaturesDisabledEnv to "" in those test contexts, and in any other test that relies on skills.Enabled, such as the quickstart environment tests?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in ee9742b. TestEnabled and TestHintsEnabled now set DATABRICKS_AGENT_FEATURES_DISABLED to an empty value in their contexts, so an exported value cannot leak in. The other tests that turn the skills feature on got the same line: TestWriteGroupHint, the two quickstart tests (TestSkillFlagRegisteredOnlyWhenSkillsEnabled and TestQuickstartVariantSelectedByEnv), and TestHelpSkillsFooterForNestedGroup in cmd/air. With the variable exported, those six failed before the change; they pass now with it set and unset. The cmd/skills acceptance area also passes with it exported.

if autoinstall.EnvOptedOut(ctx) {
cmdio.LogString(ctx, cmdio.Yellow(ctx, autoinstall.EnvVar+" still disables it in this environment; unset it to let it run."))
}
if skills.AgentFeaturesDisabled(ctx) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nice to have] enable now warns that DATABRICKS_AGENT_FEATURES_DISABLED still turns auto-install off. The Long help of auto-install (lines 27-31) still names DATABRICKS_AITOOLS_AUTO_INSTALL as the only environment switch. Can you add the new variable there so databricks aitools auto-install --help matches the warning? Also, with both variables set, enable prints two warnings that each say "unset it to let it run", but unsetting just one of them isn't enough.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in ee9742b. The auto-install help now names DATABRICKS_AGENT_FEATURES_DISABLED and says a true value turns auto-install off, along with the skills and the aitools hints. When both auto-install variables are set, enable now prints one warning that names both and says to unset both. With only one set, the message is the same as before. TestPrintAutoInstallSettingBothOverrides covers the two-variable case.

Comment thread cmd/aitools/autoinstall_hint.go Outdated
// fetched, so it counts as installing for each of them.
// fetched, so it counts as installing for each of them. With
// DATABRICKS_AGENT_FEATURES_DISABLED set, nothing is installed, so it reports
// false, as autoInstall does.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] The comment says this reports false "as autoInstall does", but the new check is in the exported AutoInstall, not in autoInstall. Can you change it to name AutoInstall?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in ee9742b. The comment now names AutoInstall, where the check is.

musterr trace DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 $CLI skills list

# Help shows no skills footer, on the root or on a group the fixture skill covers.
trace DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 $CLI --help | contains.py "!databricks skills" > /dev/null

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] .agents/rules/testing.md says to route this output to LOG.<name> instead of /dev/null, and the sibling cmd/skills/disabled/script already writes the same kind of check to > LOG.help. As written, the help output is lost when a contains.py check fails. The same applies to lines 10 and 13. Can you send these to LOG.help and similar files?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in ee9742b. The three help checks in the script now write to LOG.help, LOG.fs-help and LOG.fs-help-unset, so the output is kept when a contains.py check fails. The output.txt golden does not change, and the cmd/skills and cmd/aitools acceptance areas pass.

- Clear DATABRICKS_AGENT_FEATURES_DISABLED in the test contexts that expect
  the skills feature on, so an exported value does not fail them.
- Name the switch in the auto-install help, and show one warning when both
  auto-install variables are set, so unsetting one is not taken for a fix.
- Send the acceptance script's help checks to LOG files, as the testing
  rules ask.
- Name AutoInstall, not autoInstall, in the AutoInstallsFor comment.

Co-authored-by: Isaac <no-reply@databricks.com>
@simonfaltum
simonfaltum requested a review from a team as a code owner November 27, 2026 16:45
@github-actions github-actions Bot added the AIR Databricks AI Runtime CLI label Nov 27, 2026
Resolve the guard_test.go conflict by keeping the base's test setup
(testutil.CleanupEnvironment and conditional env sets) and the explicit
empty DATABRICKS_AGENT_FEATURES_DISABLED in the context. Clear the
process environment in the quickstart tests too, so an exported skills
switch does not leak into the unset cases.

Co-authored-by: Isaac <no-reply@databricks.com>

@rugpanov rugpanov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of the DATABRICKS_AGENT_FEATURES_DISABLED switch at 33dc492.

I found no runtime defect. Each gated path returns early only when the variable is true, so the default behavior does not change.

Not approved yet: two items from review-oss-bot are still open, with no reply.

  • The PR adds no .nextchanges/cli/ fragment. .agents/rules/changelog.md asks for one for a user-visible change, and aitools auto-install --help now names the variable.
  • The bot asks if the skip can be one reason in autoinstall.Decide (stateFreeSkips). If you make this change, keep the guard in PrintSkillsTip. cmd/apps/init.go calls PrintSkillsTip directly in flags mode, not through RecommendSkillsInstall.

[Question] cmd/quickstart/quickstart.go: with the switch set, skills.Enabled is false. Thus databricks quickstart shows the non-skills text of quickstart-agent.md, and its <!--aitools--> blocks still tell the agent to run databricks aitools install. Is this intended? An eval that sets the switch to stop agent nudges still gets this nudge from quickstart.

Risk: LOW. The variable is opt-in and off by default. The change adds only early returns on the hint, tip, auto-install and preview skills paths. Unset, false or invalid values keep the old behavior, and CI passes. A user rolls back by unsetting the variable.

cmdio.LogString(ctx, cmdio.Yellow(ctx, autoinstall.EnvVar+" still disables it in this environment; unset it to let it run."))
overrides = append(overrides, autoinstall.EnvVar)
}
if skills.AgentFeaturesDisabled(ctx) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nice to have] The new enable warnings, for this variable alone and for both variables, have only unit tests in cmd/aitools/autoinstall_test.go. .agents/rules/testing.md asks for acceptance tests for user-visible CLI output. A text change in these warnings does not show in a golden file. Add the two cases as trace lines to acceptance/cmd/aitools/auto-install/enable-disable/script, next to the DATABRICKS_AITOOLS_AUTO_INSTALL=false case.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in b130330. The enable-disable acceptance script has two new cases next to the DATABRICKS_AITOOLS_AUTO_INSTALL=false one: DATABRICKS_AGENT_FEATURES_DISABLED=1 alone, which names that variable, and both variables together, which get the shared warning that says to unset both. Their lines are in the regenerated output.txt, and cmd/aitools acceptance passes.

Comment thread libs/skills/guard_test.go Outdated
t.Run(c.name, func(t *testing.T) {
testutil.CleanupEnvironment(t)
ctx := t.Context()
ctx := env.Set(t.Context(), AgentFeaturesDisabledEnv, "")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] This env.Set(ctx, AgentFeaturesDisabledEnv, "") has no effect. testutil.CleanupEnvironment(t) already runs os.Clearenv(), so a host value cannot reach this test. The same is true at line 133, and in cmd/quickstart/quickstart_test.go at lines 98 and 129. Remove these lines, or keep only CleanupEnvironment. Also, the helper comment in libs/aitools/agents/recommend_test.go (line 302) says the empty value guards against the host environment. hostenv.Isolate() in main_test.go already unsets all DATABRICKS_* variables, so correct that comment.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, fixed in b130330. testutil.CleanupEnvironment already clears the process environment, so the empty settings did nothing. They are gone from TestEnabled and TestHintsEnabled in libs/skills/guard_test.go and from the two quickstart tests in cmd/quickstart/quickstart_test.go, and the file comment now names only CleanupEnvironment. The tests that do not clear the environment keep their explicit values (TestAgentFeaturesDisabled, TestAgentFeaturesDisabledOverridesSkillsSwitches, and hints_test.go), since libs/skills has no TestMain isolation and a value in the context is what masks a host value there. The recommend_test.go helper comment now names hostenv.Isolate, which TestMain in that package runs.

musterr trace DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 $CLI skills list

# Help shows no skills footer, on the root or on a group the fixture skill covers.
trace DATABRICKS_AGENT_FEATURES_DISABLED=1 CLAUDECODE=1 $CLI --help | contains.py "!databricks skills" > LOG.help

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] The root --help check has no control run without the variable. If a later change removes the skills footer from root help, this check still passes and tests nothing. Add a run of root --help with env -u DATABRICKS_AGENT_FEATURES_DISABLED that contains databricks skills, as line 13 does for fs --help.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in b130330. Root --help with DATABRICKS_AGENT_FEATURES_DISABLED unset now runs in the script and must contain "databricks skills", the control for the root footer check. It sits beside the fs --help control and writes to LOG.help-unset. The golden shows the run, and the acceptance test passes, so the root footer is checked with the variable set and unset.

simonfaltum and others added 2 commits November 27, 2026 19:19
Drop the empty DATABRICKS_AGENT_FEATURES_DISABLED settings in tests that
already clear the process environment with testutil.CleanupEnvironment,
and correct the recommend_test helper comment, since hostenv.Isolate
unsets the DATABRICKS_* variables. The skills acceptance test now also
checks root help with the variable unset, as a control for the footer
check. The auto-install enable acceptance test covers both warnings.

Co-authored-by: Isaac <no-reply@databricks.com>
… is set

With DATABRICKS_AGENT_FEATURES_DISABLED set, databricks quickstart prints the
agent text without its aitools block, so it names no aitools install. Unset,
the output is unchanged.

Co-authored-by: Isaac <no-reply@databricks.com>
@simonfaltum

Copy link
Copy Markdown
Member Author

Quickstart point, fixed in 60366a6. With DATABRICKS_AGENT_FEATURES_DISABLED set to a true value, databricks quickstart now drops the aitools blocks of the agent text, so it no longer tells agents to run databricks aitools install. Unset, or a value that is not true, the output is unchanged.

Checks: a unit test in cmd/quickstart (set and not set), and an acceptance case in acceptance/cmd/skills/agent-features-disabled that shows the output with the switch set and with it unset. Only that case's golden was regenerated.

simonfaltum and others added 2 commits November 27, 2026 19:53
Main removed the auto-install consent prompt (#8135). Keep main's side of
the auto-install run, and keep only the early return for the agent features
switch at the top of AutoInstall, before the state is read. The seeded state
in the disabled case now keeps its consent, and the disabled acceptance case
seeds consent first, so the disabled run is shown to install nothing even
with consent given.

Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIR Databricks AI Runtime CLI aitools AI tools (databricks aitools) related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants