Logic-gated activity sensors for programmable detection of antitumor immunity