Load no MCP server in a headless claude call that is denied tools
CI / tests (pull_request) Successful in 3m45s

This commit is contained in:
Lilleman
2026-11-20 17:15:42 +01:00
parent 00b87e3fb9
commit 700ac3e2ce
12 changed files with 17 additions and 12 deletions
+5
View File
@@ -139,6 +139,11 @@ class JudgePrompt(unittest.TestCase):
"""What the judge of a-driver reads of a transcript holding entries."""
return judge.Brief("Do it.", "## Goals", records, "the project's decisions", answer_destinations, kinds(*entries), escalated_at, "a-driver")
def test_runs_with_no_tools_and_loads_no_mcp_server(self):
args = judge.judge_args(Rung("claude-opus-5-5", "medium"), "a-driver")
self.assertEqual(args[args.index("--tools") + 1 :], ["", "--strict-mcp-config"])
self.assertNotIn("--mcp-config", args)
def test_shows_the_transcripts_tail_and_returns_what_it_showed(self):
entries = [assistant({"type": "text", "text": "old " + "x" * judge.JUDGE_PROMPT_CHARS}), assistant({"type": "text", "text": "new"})]
prompt, grounds = judge.judge_prompt(self.brief(entries, 0))