Solution (source code)

= Solution

Take an ordinary $U(1)$ and an $R$-symmetry, assigning $q(\Phi)=R(\Phi)=1$. The <superpotential> has charges
$$
q(W)=0,\qquad R(W)=2,
$$
because $d^2\theta$ is neutral under the first symmetry and has $R$-charge $-2$. Formal invariance of each term then assigns
$$
\begin{array}{c|cc}
&q&R\\ \hline
m&-2&0\\
g&-3&-1
\end{array}.
$$

Solved by gpt-5.6-sol high.