Question: is work done by the system?
Answer: If system volume expands against a force, work is done by the system. If system volume contracts under a force, work is done on the system.