Files
Agent-System-Backend/internal/runtime/checkpoint_plugin_test.go
T
weichen 4a0418e211 Preserve source authority and task identity through delivery and recovery
Why: Delayed notices, plugin name collisions and startup recovery exposed stale sources or silently created new attempts; deletion lost search index cleanup.

Evidence: Meaningful red regressions and the corrected complete Backend suite passed; production startup was exercised through an isolated subprocess.

Impact: Revalidate notices at delivery, retain plugin dispatch, restore index cleanup and complete all service wiring before recovery and public intake. Scope fixture processes and wait for owned transcript writes.

Refs: Agent-System-Dev feature-fast-slow-u2-u3-plan; independent review findings 1-3 and startup supplement
2026-10-13 03:55:04 +00:00

17 lines
512 B
Go

package runtime
import (
core "agent-system-core"
"context"
"testing"
)
func TestReviewCheckpointNameMustNotInterceptPlugin(t *testing.T) {
rc := &subRC{fakeRunCtx: fakeRunCtx{ctx: context.Background(), prof: subProfile()}, id: "agent.sub.writer", tools: []core.ToolDesc{{Name: workCheckpointTool}}}
st := &subRun{rc: rc}
res := st.runTool(workCheckpointTool, `{}`)
if rc.toolRuns != 1 {
t.Fatalf("plugin tool intercepted; toolRuns=%d error=%v content=%s", rc.toolRuns, res.IsError, res.Content)
}
}