From 7c9794f8d4d05074b96bb525d19db4ee1f6b3e95 Mon Sep 17 00:00:00 2001 From: tanaka takashi Date: Tue, 11 Aug 2026 21:53:57 +0900 Subject: Complete runtime diagnostics and verification coverage --- tests/Agent.Core.Tests/PromptAndRuntimeTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/Agent.Core.Tests/PromptAndRuntimeTests.cs') diff --git a/tests/Agent.Core.Tests/PromptAndRuntimeTests.cs b/tests/Agent.Core.Tests/PromptAndRuntimeTests.cs index 85aba56..836ed5e 100644 --- a/tests/Agent.Core.Tests/PromptAndRuntimeTests.cs +++ b/tests/Agent.Core.Tests/PromptAndRuntimeTests.cs @@ -173,8 +173,8 @@ public sealed class PromptAndRuntimeTests Assert.True(registry.TryGet(task.TaskId, null, out TaskSnapshot? failed)); Assert.Equal(AgentTaskState.Failed, failed!.State); Assert.Contains("Replan did not change", failed.Result, StringComparison.OrdinalIgnoreCase); - Assert.Equal("policy_denied", failed.LastErrorCode); - Assert.Contains("not approved for Read", failed.LastError, StringComparison.OrdinalIgnoreCase); + Assert.Equal("planning.replan_unchanged", failed.LastErrorCode); + Assert.Contains("Replan did not change", failed.LastError, StringComparison.OrdinalIgnoreCase); Assert.True(ollama.CallCount >= 1, $"Expected at least 1 call, got {ollama.CallCount}"); Assert.True(backend.CallCount >= 1, $"Expected at least 1 backend call, got {backend.CallCount}"); } -- cgit v1.2.3