fix(inclusive-language): replace blacklist terminology with denylist

- Replace blacklisted_tools configuration key and comments in config/artemis.jsonc and README.md with denylisted_tools
- Update AgentGlobalConfig and AgentConfig with denylisted_tools and validation aliases
- Update AgentConfigBuilder and Explorer agent to use denylist conventions
- Update Admin Console replay manager and data engine trace filters
- Update all associated test suites and mock configurations
- Add license headers and clean up test imports
This commit is contained in:
yaoyao-open-source committed 2026-08-13 14:03:49 -07:00
1 parent 5d2283deaa
commit 701a74b546
24 files changed
+201 -67

No files matched your search

+14
View File
@@ -1,3 +1,17 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Artemis Admin & Trace Console Package."""
from apps.admin_console.server import app
+12
View File
@@ -1 +1,13 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+12
View File
@@ -1 +1,13 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
@@ -1 +1,13 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+10 -10
View File
@@ -52,7 +52,7 @@ REPLAY_TOOLS_CONFIG = {
"module": "artemis.tools.explorer_tool",
"function": "_run_explorer_logic",
"agent_name": "explorer",
"blacklist_args": ["ctx", "state"],
"denylist_args": ["ctx", "state"],
"fallback_mappings": {},
"llm_span_name": "gemini_explorer_call",
},
@@ -65,7 +65,7 @@ REPLAY_TOOLS_CONFIG = {
"module": "artemis.tools.image_processor_tool",
"function": "_run_image_processor_logic",
"agent_name": "image_processor",
"blacklist_args": ["ctx", "state"],
"denylist_args": ["ctx", "state"],
"fallback_mappings": {},
"llm_span_name": "gemini_image_processor_call",
},
@@ -1996,14 +1996,14 @@ class ReplayManager:
user_submits = user_submits or {}
sig = inspect.signature(tool_fn)
tool_args = {}
blacklist = tool_cfg.get("blacklist_args", [])
denylist = tool_cfg.get("denylist_args", [])
fallback_mappings = tool_cfg.get("fallback_mappings", {})
user_submits = user_submits or {}
sig = inspect.signature(tool_fn)
tool_args = {}
for name, param in sig.parameters.items():
if name in blacklist:
if name in denylist:
if name == "ctx":
tool_args["ctx"] = ctx
elif name == "state":
@@ -2012,7 +2012,7 @@ class ReplayManager:
if name in user_submits:
val = user_submits[name]
if param.annotation == bool and isinstance(val, str):
if param.annotation is bool and isinstance(val, str):
val = val.lower() == "true"
tool_args[name] = val
else:
@@ -2086,10 +2086,10 @@ class ReplayManager:
tool_fn = getattr(mod, tool_cfg["function"])
sig = inspect.signature(tool_fn)
blacklist = tool_cfg.get("blacklist_args", [])
denylist = tool_cfg.get("denylist_args", [])
explorer_params = []
for name, param in sig.parameters.items():
if name in blacklist:
if name in denylist:
continue
default_val = ""
if param.default is not inspect.Parameter.empty:
@@ -2106,7 +2106,7 @@ class ReplayManager:
)
):
input_type = "textarea"
elif param.annotation == bool:
elif param.annotation is bool:
input_type = "checkbox"
elif param.annotation in (int, float):
input_type = "number"
@@ -2181,12 +2181,12 @@ class ReplayManager:
all_tool_defaults = {}
for t_name, sig in tool_signatures.items():
t_cfg = REPLAY_TOOLS_CONFIG[t_name]
blacklist = t_cfg.get("blacklist_args", [])
denylist = t_cfg.get("denylist_args", [])
fallback_mappings = t_cfg.get("fallback_mappings", {})
defaults = {}
for name, param in sig.parameters.items():
if name in blacklist:
if name in denylist:
continue
val = ""
+12
View File
@@ -1 +1,13 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+12
View File
@@ -1 +1,13 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+12
View File
@@ -1 +1,13 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.