fix: correct task scheduling and simplify agent internals

Fix queue cancellation, concurrency limits and worker status updates.

Use direct Explorer imports, split the Diagnoser loop into helpers and remove unused tool registration and prompt-builder code.

Correct model caching, endpoint selection and retry handling.
This commit is contained in:
somew1nd committed 2026-09-02 22:58:00 -07:00
1 parent 67248c887e
commit 12d7902a82
92 files changed
+1085 -1763

No files matched your search

@@ -16,7 +16,7 @@ from pathlib import Path
from unittest.mock import MagicMock, patch
from artemis.context import ArtemisContext
from artemis.tools.base import ArtemisTool, ToolRegistry
from artemis.tools.base import ArtemisTool
from artemis.tools.scratchpad import (
UpdateNoteArgs,
UpdateNotePure,
@@ -36,8 +36,8 @@ def mock_ctx(tmp_path):
return ctx
def test_update_note_pure_tool_subclass_and_registry():
"""Verify UpdateNotePureTool is a subclass of ArtemisTool and properly registered."""
def test_update_note_pure_tool_subclass():
"""Verify UpdateNotePureTool is a subclass of ArtemisTool."""
assert issubclass(UpdateNotePureTool, ArtemisTool)
assert issubclass(UpdateNotePure, ArtemisTool)
assert isinstance(update_note_pure, ArtemisTool)
@@ -47,11 +47,6 @@ def test_update_note_pure_tool_subclass_and_registry():
assert update_note_pure.category == "memory"
assert update_note_pure.args_schema == UpdateNoteArgs
# Registry lookup
reg_tool = ToolRegistry.get("update_note_pure")
assert reg_tool is not None
assert isinstance(reg_tool, UpdateNotePureTool)
# GenAI FunctionDeclaration export
declaration = update_note_pure.to_genai_declaration()
assert declaration.name == "update_note_pure"