How could a Federation base survive a surprise attack by cloaked Romulan or Klingon ships?
Short answerCombine a tachyon grid and relay satellites with mines and active screening ships, giving the base time to reactivate other vessels and recall crews.
NotesA tachyon-detection grid linked to relay satellites could expose a cloaked approach. A relay going dark would warrant investigation, while a positive detection would give the defenders a firing point. Mines would add protection without requiring the whole base to remain at yellow alert continuously. Some ships should stay active as a screening force while others reactivate and crews return from shore leave.