user-1: When a text (e.g. Abhidhamma) lists 'wholesome' mental factors, is it meant that these are also likely to produce positive karmic consequences, or that these are just beneficial in general?
For example, in the Theravada tradition I read that sati, i.e. mindfulness, is a beautiful mental factor. In a discussion with the Dalai Lama, Matthieu Ricard explains how even a sniper may use mindfulness. So I am confused as to whether 'wholesome' and 'karmically positive' are synonymous or not. 

As well, from this answer I understand that karma refers specifically to the ethical intention. So, when their compassionate action which lacks wisdom produces detrimental effects, is a well-intended, compassionate person still nevertheless generating positive karma? This possibility seems to imply that developing a compassionate intention almost negates completely the possibility of unvirtuous karma.
Thank you

user-1: 
When a text (e.g. Abhidhamma) lists 'wholesome' mental factors, is it meant that these are also likely to produce positive karmic consequences, or that these are just beneficial in general?

I'm not sure i understand your distinction between karmic consequences, and what is beneficial in general. They seem like the same thing to me.

As well, from this answer I understand that karma refers specifically to the ethical intention. So, when their compassionate action which lacks wisdom produces detrimental effects, is a well-intended, compassionate person still nevertheless generating positive karma? This possibility seems to imply that developing a compassionate intention almost negates completely the possibility of unvirtuous karma.

In theory, we can have the best of intentions and still make a mess. A favorite (non-buddhist) quote of mine is "the road to hell is paved with good intentions".
Karma is a two sided coin. Our actions (karma) needs to be well meaning, as well as having good consequences (vipaka) in order to be considered beneficial. 
(There are other aspects to take into consideration if one wishes to develop even more skillful karma-vipaka, but that's perhaps another topic).

user471: Sati is mindfulness. It's keeping the mind on the task, without wandering.
From SN 47.20:

The Blessed One said, "Suppose, monks, that a large crowd of people
  comes thronging together, saying, 'The beauty queen! The beauty
  queen!' And suppose that the beauty queen is highly accomplished at
  singing & dancing, so that an even greater crowd comes thronging,
  saying, 'The beauty queen is singing! The beauty queen is dancing!'
  Then a man comes along, desiring life & shrinking from death, desiring
  pleasure & abhorring pain. They say to him, 'Now look here, mister.
  You must take this bowl filled to the brim with oil and carry it on
  your head in between the great crowd & the beauty queen. A man with a
  raised sword will follow right behind you, and wherever you spill even
  a drop of oil, right there will he cut off your head.' Now what do you
  think, monks: Will that man, not paying attention to the bowl of oil,
  let himself get distracted outside?"
"No, lord."
"I have given you this parable to convey a meaning. The meaning is
  this: The bowl filled to the brim with oil stands for mindfulness
  immersed in the body. Thus you should train yourselves: 'We will
  develop mindfulness immersed in the body. We will pursue it, hand it
  the reins and take it as a basis, give it a grounding, steady it,
  consolidate it, and undertake it well.' That is how you should train
  yourselves."

However, sati is not good enough. There is also samma sati - right mindfulness. Right mindfulness includes right view. Right view is the forerunner of the path according to MN 117.
From MN 117:

"One makes an effort for the abandoning of wrong view & for entering
  into right view: This is one's right effort. One is mindful to abandon
  wrong view & to enter & remain in right view: This is one's right
  mindfulness. Thus these three qualities — right view, right effort, &
  right mindfulness — run & circle around right view.

While sati or mindfulness is keeping the mind on the task, manasikara or attention is about directing the mind in the right direction. 
Yoniso manasikara is appropriate attention and ayoniso manasikara is inappropriate attention. You can read the question "What is yoniso manasikara and ayoniso manasikara?"
From SN 9.11:

I have heard that on one occasion a certain monk was dwelling among
  the Kosalans in a forest thicket. Now at that time, he spent the day's
  abiding thinking evil, unskillful thoughts: i.e., thoughts of
  sensuality, thoughts of ill will, thoughts of doing harm.
Then the devata inhabiting the forest thicket, feeling sympathy for
  the monk, desiring his benefit, desiring to bring him to his senses,
  approached him and addressed him with this verse:

From inappropriate attention
    you're being chewed by your thoughts.
    Relinquishing what's inappropriate,
    contemplate appropriately.
Keeping your mind on the Teacher,
    the Dhamma, the Sangha, your virtues,
    you will arrive at
    joy,
    rapture,
    pleasure
    without doubt.
Then, saturated
    with joy,
    you will put an end
    to suffering
    & stress.

The monk, chastened by the devata, came to his senses.

So, what does this mean? Both are needed - samma sati or right mindfulness, and yoniso manasikara or appropriate attention. However, samma ditthi or right view has to come first. Without right view, every other effort goes the wrong way.
The sniper who aims, shoots and kills another person, may be mindful and have attention, but he doesn't have right view, because a person with right view will stick heedfully (appamada) to the first precept and not kill others, especially another human being.
The sniper who aims, shoots and kills another person, may be mindful and have attention, but it's not right mindfulness and not appropriate attention.

user295: Wholesome and unwholesome minds/types of consciousness, when ripen give rise to the respective resultant minds/types of consciousness. See: 89 / 121 types of consciousness
Sati in the The 52 Mental Factors (cetasika) is the Right Mindfulness. The mindfulness a shooter uses is Ekaggatā to concentrate the aim and Manasikāra as attention. These are universal factors which can appear in wholesome and unwholesome acts.

user2282: 
For example, in the Theravada tradition I read that sati, i.e. mindfulness, is a beautiful mental factor. In a discussion with the Dalai Lama, Matthieu Ricard explains how even a sniper may use mindfulness. So I am confused as to whether 'wholesome' and 'karmically positive' are synonymous or not.

This is where it's important to examine the root words in Pali. The English term 'mindfulness' is pretty broad and can carry different connotations depending on context, hence the need to look up its Pali terms to see the distinction. For example, in the case of unwholesome mindfulness of a sniper that Ven. Ricard was referring to, he possibly meant 'Manasikara'(or 'attention') instead of Sati. Manasikara is 1 of the 13 mental factors under the Annasamana(Ethically Variable) group; while Sati(or 'mindfulness') belongs to the Sobhana(Beautiful) group along with 25 other mental factors. All the details are pretty well-explained in Ven. Bodhi's "Comprehensive Manual of Abhidhamma"
Regarding actions that was done out of good intention but ended up with terrible results, this is exactly why Buddhism emphasizes the cultivation of both compassion and wisdom, which have to go hand in hand. So for example, some well-intent action that resulted in many accidental lives lost cannot be expected to reap some exclusively good kammic fruit. At best it'd only result in what's called mixed kamma with dark and bright results (ref. MN 57).

-1: <p>When a text (e.g. Abhidhamma) lists 'wholesome' mental factors, is it meant that these are also likely to produce positive karmic consequences, or that these are just beneficial in general?</p>

<p>For example, in the Theravada tradition I read that <em>sati</em>, i.e. mindfulness, is a beautiful mental factor. In a discussion with the Dalai Lama, Matthieu Ricard explains how even a sniper may use mindfulness. So I am confused as to whether 'wholesome' and 'karmically positive' are synonymous or not. </p>

<hr>

<p>As well, from <a href="https://buddhism.stackexchange.com/a/3632/7302">this</a> answer I understand that karma refers specifically to the ethical intention. So, when their compassionate action which lacks wisdom produces detrimental effects, is a well-intended, compassionate person still nevertheless generating positive karma? This possibility seems to imply that developing a compassionate intention almost negates completely the possibility of unvirtuous karma.</p>

<p>Thank you</p>
 -1: <blockquote>
  <p>When a text (e.g. Abhidhamma) lists 'wholesome' mental factors, is it meant that these are also likely to produce positive karmic consequences, or that these are just beneficial in general?</p>
</blockquote>

<p>I'm not sure i understand your distinction between karmic consequences, and what is beneficial in general. They seem like the same thing to me.</p>

<blockquote>
  <p>As well, from this answer I understand that karma refers specifically to the ethical intention. So, when their compassionate action which lacks wisdom produces detrimental effects, is a well-intended, compassionate person still nevertheless generating positive karma? This possibility seems to imply that developing a compassionate intention almost negates completely the possibility of unvirtuous karma.</p>
</blockquote>

<p>In theory, we can have the best of intentions and still make a mess. A favorite (non-buddhist) quote of mine is "the road to hell is paved with good intentions".</p>

<p>Karma is a two sided coin. Our actions (karma) needs to be well meaning, as well as having good consequences (vipaka) in order to be considered beneficial. </p>

<p>(There are other aspects to take into consideration if one wishes to develop even more skillful karma-vipaka, but that's perhaps another topic).</p>
 471: <p><em>Sati</em> is mindfulness. It's keeping the mind on the task, without wandering.</p>

<p>From <a href="https://www.accesstoinsight.org/tipitaka/sn/sn47/sn47.020.than.html" rel="nofollow noreferrer">SN 47.20</a>:</p>

<blockquote>
  <p>The Blessed One said, "Suppose, monks, that a large crowd of people
  comes thronging together, saying, 'The beauty queen! The beauty
  queen!' And suppose that the beauty queen is highly accomplished at
  singing &amp; dancing, so that an even greater crowd comes thronging,
  saying, 'The beauty queen is singing! The beauty queen is dancing!'
  Then a man comes along, desiring life &amp; shrinking from death, desiring
  pleasure &amp; abhorring pain. They say to him, 'Now look here, mister.
  You must take this bowl filled to the brim with oil and carry it on
  your head in between the great crowd &amp; the beauty queen. A man with a
  raised sword will follow right behind you, and wherever you spill even
  a drop of oil, right there will he cut off your head.' Now what do you
  think, monks: Will that man, not paying attention to the bowl of oil,
  let himself get distracted outside?"</p>
  
  <p>"No, lord."</p>
  
  <p>"I have given you this parable to convey a meaning. The meaning is
  this: The bowl filled to the brim with oil stands for mindfulness
  immersed in the body. Thus you should train yourselves: 'We will
  develop mindfulness immersed in the body. We will pursue it, hand it
  the reins and take it as a basis, give it a grounding, steady it,
  consolidate it, and undertake it well.' That is how you should train
  yourselves."</p>
</blockquote>

<p>However, <em>sati</em> is not good enough. There is also <strong><em>samma</strong> sati</em> - <strong>right</strong> mindfulness. Right mindfulness includes right view. <a href="https://www.accesstoinsight.org/ptf/dhamma/sacca/sacca4/samma-ditthi/index.html" rel="nofollow noreferrer">Right view</a> is the forerunner of the path according to MN 117.</p>

<p>From <a href="https://www.accesstoinsight.org/tipitaka/mn/mn.117.than.html" rel="nofollow noreferrer">MN 117</a>:</p>

<blockquote>
  <p>"One makes an effort for the abandoning of wrong view &amp; for entering
  into right view: This is one's right effort. One is mindful to abandon
  wrong view &amp; to enter &amp; remain in right view: This is one's right
  mindfulness. Thus these three qualities — right view, right effort, &amp;
  right mindfulness — run &amp; circle around right view.</p>
</blockquote>

<p>While <em>sati</em> or mindfulness is keeping the mind on the task, <em>manasikara</em> or attention is about directing the mind in the right direction. </p>

<p><em>Yoniso manasikara</em> is appropriate attention and <em>ayoniso manasikara</em> is inappropriate attention. You can read the question "<a href="https://buddhism.stackexchange.com/q/25021/471">What is <em>yoniso manasikara</em> and <em>ayoniso manasikara</em>?</a>"</p>

<p>From <a href="https://www.accesstoinsight.org/tipitaka/sn/sn09/sn09.011.than.html" rel="nofollow noreferrer">SN 9.11</a>:</p>

<blockquote>
  <p>I have heard that on one occasion a certain monk was dwelling among
  the Kosalans in a forest thicket. Now at that time, he spent the day's
  abiding thinking evil, unskillful thoughts: i.e., thoughts of
  sensuality, thoughts of ill will, thoughts of doing harm.</p>
  
  <p>Then the devata inhabiting the forest thicket, feeling sympathy for
  the monk, desiring his benefit, desiring to bring him to his senses,
  approached him and addressed him with this verse:</p>
  
  <blockquote>
    <p>From inappropriate attention<br>
    you're being chewed by your thoughts.
    Relinquishing what's inappropriate,<br>
    contemplate appropriately.</p>
    
    <p>Keeping your mind on the Teacher,<br>
    the Dhamma, the Sangha, your virtues,<br>
    you will arrive at<br>
    joy,<br>
    rapture,<br>
    pleasure<br>
    without doubt.</p>
    
    <p>Then, saturated<br>
    with joy,<br>
    you will put an end<br>
    to suffering
    &amp; stress.</p>
  </blockquote>
  
  <p>The monk, chastened by the devata, came to his senses.</p>
</blockquote>

<p>So, what does this mean? Both are needed - <em>samma sati</em> or right mindfulness, and <em>yoniso manasikara</em> or appropriate attention. However, <a href="https://www.accesstoinsight.org/ptf/dhamma/sacca/sacca4/samma-ditthi/index.html" rel="nofollow noreferrer"><em>samma ditthi</em> or right view</a> has to come first. Without right view, every other effort goes the wrong way.</p>

<p>The sniper who aims, shoots and kills another person, may be mindful and have attention, but he doesn't have right view, because a person with right view will stick heedfully (<em><a href="https://buddhism.stackexchange.com/q/22181/471">appamada</a></em>) to the first precept and not kill others, especially another human being.</p>

<p>The sniper who aims, shoots and kills another person, may be mindful and have attention, but it's not right mindfulness and not appropriate attention.</p>
 295: <p>Wholesome and unwholesome minds/types of consciousness, when ripen give rise to the respective resultant minds/types of consciousness. See: <a href="https://abhidhamma-studies.weebly.com/uploads/2/7/7/2/27729113/table_of_minds.pdf" rel="nofollow noreferrer">89 / 121 types of consciousness</a></p>

<p>Sati in the <a href="http://www.abhidhamma.com/Chart_Cetasika_en.pdf" rel="nofollow noreferrer">The 52 Mental Factors (cetasika)</a> is the Right Mindfulness. The mindfulness a shooter uses is Ekaggatā to concentrate the aim and Manasikāra as attention. These are universal factors which can appear in wholesome and unwholesome acts.</p>
 2282: <blockquote>
  <p>For example, in the Theravada tradition I read that sati, i.e. mindfulness, is a beautiful mental factor. In a discussion with the Dalai Lama, Matthieu Ricard explains how even a sniper may use mindfulness. So I am confused as to whether 'wholesome' and 'karmically positive' are synonymous or not.</p>
</blockquote>

<p>This is where it's important to examine the root words in Pali. The English term 'mindfulness' is pretty broad and can carry different connotations depending on context, hence the need to look up its Pali terms to see the distinction. For example, in the case of unwholesome mindfulness of a sniper that Ven. Ricard was referring to, he possibly meant 'Manasikara'(or 'attention') instead of Sati. Manasikara is 1 of the 13 mental factors under the Annasamana(Ethically Variable) group; while Sati(or 'mindfulness') belongs to the Sobhana(Beautiful) group along with 25 other mental factors. All the details are pretty well-explained in Ven. Bodhi's <a href="https://what-buddha-said.net/library/pdfs/Comprehensive_Manual_of_%20Abhidhamma.pdf" rel="nofollow noreferrer">"Comprehensive Manual of Abhidhamma"</a></p>

<p>Regarding actions that was done out of good intention but ended up with terrible results, this is exactly why Buddhism emphasizes the cultivation of both compassion and wisdom, which have to go hand in hand. So for example, some well-intent action that resulted in many accidental lives lost cannot be expected to reap some exclusively good kammic fruit. At best it'd only result in what's called mixed kamma with dark and bright results (ref. <a href="https://suttacentral.net/mn57/en/bodhi" rel="nofollow noreferrer">MN 57</a>).</p>
