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) } }