fixed multile issues
Some checks failed
validation / verify (push) Failing after 8s

This commit is contained in:
2026-10-07 17:33:36 +01:00
parent 4c4d44ef87
commit 5bb22d984e
76 changed files with 5799 additions and 179 deletions

View File

@@ -12,6 +12,7 @@ def settings(tmp_path, **overrides) -> Settings:
values: dict[str, Any] = {
"CHECKPOINTER": "memory",
"MCP_ENABLED": False,
"ORCHESTRATOR": "model",
"ORCHESTRATOR_BUDGET": 9,
"SPECIALIST_BUDGET": 4,
}
@@ -50,3 +51,42 @@ async def test_preview_mcp_servers_follow_the_setting(tmp_path):
assert "asset_inventory" not in servers
assert "compute" in servers
async def test_the_assembly_routes_by_default_and_runs_without_a_jev_key(tmp_path):
"""With no Jev key the router follows its playbook on rules alone."""
from app.adk.fake_runtime import sample_submission
from app.adk.runtime import NoDecider
from app.workflows.deliverables import DeliverableKind
runtime = FakeAgentRuntime(
{"requirements-analyst": [[sample_submission(DeliverableKind.REQUIREMENTS)]]}
)
async with open_assembly(
settings(tmp_path, ORCHESTRATOR="router", TYPESAFE_API_KEY=None),
runtime=runtime,
recorder=InMemoryRecorder(),
output_root=tmp_path,
) as assembly:
interaction = await assembly.engine.start("Design ingestion")
assert isinstance(assembly.decider, NoDecider)
# The router delegated requirements with no Orchestrator model, then the
# decomposer (unscripted here) stopped and its question reached the user.
assert [run.role for run in runtime.runs] == ["requirements-analyst"]
assert interaction.status == "awaiting_user"
assert "reply-writer" in assembly.roles
async def test_an_unknown_orchestrator_setting_is_refused(tmp_path):
import pytest
with pytest.raises(ValueError, match="ORCHESTRATOR must be router or model"):
async with open_assembly(
settings(tmp_path, ORCHESTRATOR="llm"),
runtime=FakeAgentRuntime({}),
recorder=InMemoryRecorder(),
output_root=tmp_path,
):
pass