Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
e02747a
Make Toolset.missing_config a pure fact-check
claude Mar 22, 2026
c5b2b60
Simplify missing_config docstring
claude Mar 22, 2026
7f883e6
Remove dead Toolset.is_default field
claude Mar 22, 2026
7e2aff3
Add missing enabled=True for kubernetes_logs and internet toolsets
claude Mar 22, 2026
480f916
Add missing enabled=True for kubernetes_logs and internet toolsets
claude Mar 22, 2026
ae52cbe
Merge branch 'claude/fix-missing-config-toolset-TgjCb' of http://127.…
claude Mar 22, 2026
51f443c
Fix InternetToolset: set enabled=True after super().__init__()
claude Mar 22, 2026
1d81a5e
Tag eval 51_logs_summarize_errors as regression
claude Mar 22, 2026
3cf9058
Fix eval 243 namespace mismatch: app-111 -> app-243
claude Mar 22, 2026
eb55910
Merge branch 'master' into claude/fix-missing-config-toolset-TgjCb
aantn Mar 22, 2026
8a7b774
Use idiomatic enabled=True in InternetToolset constructor
claude Mar 22, 2026
0aca0c3
Merge branch 'claude/fix-missing-config-toolset-TgjCb' of http://127.…
claude Mar 22, 2026
0357e3b
Fix InternetBaseToolset to accept **kwargs in __init__
claude Mar 22, 2026
3e9bf55
Add spec documenting toolset enablement complexity
claude Mar 22, 2026
a3cab75
Add ToolsetManager integration tests and document behavioral change i…
claude Mar 22, 2026
52245cd
Fix factual inaccuracies in toolset enablement spec
claude Mar 23, 2026
0937ccf
Merge branch 'master' into claude/fix-missing-config-toolset-TgjCb
moshemorad Mar 26, 2026
9d0b40d
remove unused
moshemorad Mar 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE/toolset.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Checklist for the toolset:
- [ ] Toolset has unit tests where relevant
- [ ] Toolset has both ask_holmes and investigate evals
- [ ] Toolset has a documentation
- [ ] Toolset has the correct is_default flag
- [ ] Toolset has `config_classes` defined with Field annotations for JSON Schema generation
- [ ] Toolset does a live health check in addition to checking for correct configuration
- [ ] Create a demo video (if relevant)
19 changes: 3 additions & 16 deletions holmes/core/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ class Toolset(BaseModel):
default_factory=lambda: [ToolsetTag.CORE],
)
config: Optional[Any] = None
is_default: bool = False

llm_instructions: Optional[str] = None
transformers: Optional[List[Transformer]] = None

Expand Down Expand Up @@ -862,17 +862,7 @@ def interpolate_command(self, command: str) -> str:

@property
def missing_config(self) -> bool:
"""True when this toolset requires user-supplied configuration that was not provided.

A toolset does NOT have missing config when any of these hold:
1. Already enabled or is_default
2. No config_classes (YAML toolsets, simple Python toolsets)
3. Config classes exist but all fields have defaults
4. Config is required AND was provided by user
"""
if self.enabled or self.is_default:
return False

"""True when this toolset has required config fields but no config was provided."""
if not self.config_classes:
return False

Comment thread
claude[bot] marked this conversation as resolved.
Resolved
Expand All @@ -884,10 +874,7 @@ def missing_config(self) -> bool:
if not requires_config:
return False

if self.config is not None:
return False

return True
return self.config is None

def check_prerequisites(self, silent: bool = False):
self.status = ToolsetStatusEnum.ENABLED
Expand Down
1 change: 0 additions & 1 deletion holmes/plugins/toolsets/bash/bash_toolset.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ def __init__(self):
prerequisites=[CallablePrerequisite(callable=self.prerequisites_callable)],
tools=[RunBashCommand(self), ReadImageFile(self)],
tags=[ToolsetTag.CORE],
is_default=True,
)

self._reload_llm_instructions()
Expand Down
1 change: 0 additions & 1 deletion holmes/plugins/toolsets/connectivity_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def __init__(self):
tags=[
ToolsetTag.CORE,
],
is_default=True,
enabled=True,
docs_url="https://holmesgpt.dev/data-sources/builtin-toolsets/connectivity-check/",
)
4 changes: 1 addition & 3 deletions holmes/plugins/toolsets/internet/internet.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ def __init__(
description: str,
icon_url: str,
tools: list[Tool],
is_default: bool,
tags: List[ToolsetTag],
docs_url: Optional[str] = None,
):
Expand All @@ -259,7 +258,6 @@ def __init__(
],
tools=tools,
tags=tags,
is_default=is_default,
docs_url=docs_url,
)

Expand All @@ -284,5 +282,5 @@ def __init__(self):
tags=[
ToolsetTag.CORE,
],
is_default=True,
enabled=True,
)
Comment thread
moshemorad marked this conversation as resolved.
Resolved
1 change: 0 additions & 1 deletion holmes/plugins/toolsets/internet/notion.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ def __init__(self):
tags=[
ToolsetTag.CORE,
],
is_default=False,
)

def prerequisites_callable(self, config: Dict[str, Any]) -> Tuple[bool, str]:
Comment thread
aantn marked this conversation as resolved.
Resolved
Expand Down
1 change: 0 additions & 1 deletion holmes/plugins/toolsets/investigator/core_investigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def __init__(self):
enabled=True,
tools=[TodoWriteTool()],
tags=[ToolsetTag.CORE],
is_default=True,
)

def _reload_instructions(self):
Expand Down
2 changes: 1 addition & 1 deletion holmes/plugins/toolsets/kubernetes_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self):
docs_url="https://holmesgpt.dev/data-sources/builtin-toolsets/kubernetes/",
icon_url="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRPKA-U9m5BxYQDF1O7atMfj9EMMXEoGu4t0Q&s",
prerequisites=[prerequisite],
is_default=True,
enabled=True,
tools=[], # Initialize with empty tools first
tags=[ToolsetTag.CORE],
)
Expand Down
1 change: 0 additions & 1 deletion holmes/plugins/toolsets/robusta/robusta.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,6 @@ def __init__(self, dal: Optional[SupabaseDal]):
tags=[
ToolsetTag.CORE,
],
is_default=True,
Comment thread
moshemorad marked this conversation as resolved.
Resolved
)
template_file_path = os.path.abspath(
os.path.join(os.path.dirname(__file__), "robusta_instructions.jinja2")
Expand Down
1 change: 0 additions & 1 deletion holmes/plugins/toolsets/runbook/runbook_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ def __init__(
tags=[
ToolsetTag.CORE,
],
is_default=True,
config=config,
enabled=True,
)
1 change: 0 additions & 1 deletion tests/plugins/toolsets/test_core_investigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def test_toolset_creation(self):
assert toolset.name == "core_investigation"
assert "investigation tools" in toolset.description
assert toolset.enabled is True
assert toolset.is_default is True
assert ToolsetTag.CORE in toolset.tags

def test_toolset_has_todo_write_tool(self):
Expand Down
11 changes: 2 additions & 9 deletions tests/test_toolset_auto_enable.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ class RequiredFieldConfig(ToolsetConfig):
def _make_toolset(
name: str = "test",
enabled: bool = False,
is_default: bool = False,
config_classes: Optional[List[Type[BaseModel]]] = None,
config: Optional[dict] = None,
) -> Toolset:
kwargs = dict(
name=name,
enabled=enabled,
is_default=is_default,
description="test toolset",
tools=[],
tags=[ToolsetTag.CORE],
Expand Down Expand Up @@ -74,14 +72,9 @@ def test_base_toolset_config(self):

class TestMissingConfig:
def test_already_enabled(self):
"""Toolset that is already enabled does not have missing config."""
"""missing_config is a pure fact-check: enabled toolset still reports missing config."""
toolset = _make_toolset(enabled=True, config_classes=[RequiredFieldConfig])
assert toolset.missing_config is False

def test_is_default(self):
"""Toolset marked as is_default does not have missing config."""
toolset = _make_toolset(is_default=True, config_classes=[RequiredFieldConfig])
assert toolset.missing_config is False
assert toolset.missing_config is True

def test_no_config_classes(self):
"""YAML-style toolset with no config_classes does not have missing config."""
Expand Down
Loading